autotool.patch 2.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227
  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 libdaemon-0.13.orig/aclocal.m4 libdaemon-0.13/aclocal.m4
  6. --- libdaemon-0.13.orig/aclocal.m4 2008-07-29 00:35:30.000000000 +0200
  7. +++ libdaemon-0.13/aclocal.m4 2011-02-20 22:17:57.776055174 +0100
  8. @@ -1,7 +1,7 @@
  9. -# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
  10. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  11. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  12. -# 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  13. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  14. # This file is free software; the Free Software Foundation
  15. # gives unlimited permission to copy and/or distribute it,
  16. # with or without modifications, as long as this notice is preserved.
  17. @@ -13,108 +13,194 @@
  18. m4_ifndef([AC_AUTOCONF_VERSION],
  19. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  20. -m4_if(AC_AUTOCONF_VERSION, [2.62],,
  21. -[m4_warning([this file was generated for autoconf 2.62.
  22. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  23. +[m4_warning([this file was generated for autoconf 2.65.
  24. You have another version of autoconf. It may work, but is not guaranteed to.
  25. If you have problems, you may need to regenerate the build system entirely.
  26. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  27. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  28. +#
  29. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  30. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  31. +# Written by Gordon Matzigkeit, 1996
  32. +#
  33. +# This file is free software; the Free Software Foundation gives
  34. +# unlimited permission to copy and/or distribute it, with or without
  35. +# modifications, as long as this notice is preserved.
  36. +
  37. +m4_define([_LT_COPYING], [dnl
  38. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  39. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  40. +# Written by Gordon Matzigkeit, 1996
  41. +#
  42. +# This file is part of GNU Libtool.
  43. +#
  44. +# GNU Libtool is free software; you can redistribute it and/or
  45. +# modify it under the terms of the GNU General Public License as
  46. +# published by the Free Software Foundation; either version 2 of
  47. +# the License, or (at your option) any later version.
  48. +#
  49. +# As a special exception to the GNU General Public License,
  50. +# if you distribute this file as part of a program or library that
  51. +# is built using GNU Libtool, you may include this file under the
  52. +# same distribution terms that you use for the rest of that program.
  53. +#
  54. +# GNU Libtool is distributed in the hope that it will be useful,
  55. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  56. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  57. +# GNU General Public License for more details.
  58. +#
  59. +# You should have received a copy of the GNU General Public License
  60. +# along with GNU Libtool; see the file COPYING. If not, a copy
  61. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  62. +# obtained by writing to the Free Software Foundation, Inc.,
  63. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  64. +])
  65. -# serial 52 AC_PROG_LIBTOOL
  66. +# serial 56 LT_INIT
  67. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  68. -# -----------------------------------------------------------
  69. -# If this macro is not defined by Autoconf, define it here.
  70. -m4_ifdef([AC_PROVIDE_IFELSE],
  71. - [],
  72. - [m4_define([AC_PROVIDE_IFELSE],
  73. - [m4_ifdef([AC_PROVIDE_$1],
  74. - [$2], [$3])])])
  75. +# LT_PREREQ(VERSION)
  76. +# ------------------
  77. +# Complain and exit if this libtool version is less that VERSION.
  78. +m4_defun([LT_PREREQ],
  79. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  80. + [m4_default([$3],
  81. + [m4_fatal([Libtool version $1 or higher is required],
  82. + 63)])],
  83. + [$2])])
  84. -# AC_PROG_LIBTOOL
  85. -# ---------------
  86. -AC_DEFUN([AC_PROG_LIBTOOL],
  87. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  88. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  89. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  90. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  91. - [AC_LIBTOOL_CXX],
  92. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  93. - ])])
  94. -dnl And a similar setup for Fortran 77 support
  95. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  96. - [AC_LIBTOOL_F77],
  97. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  98. -])])
  99. -
  100. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  101. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  102. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  103. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  104. - [AC_LIBTOOL_GCJ],
  105. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  106. - [AC_LIBTOOL_GCJ],
  107. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  108. - [AC_LIBTOOL_GCJ],
  109. - [ifdef([AC_PROG_GCJ],
  110. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  111. - ifdef([A][M_PROG_GCJ],
  112. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  113. - ifdef([LT_AC_PROG_GCJ],
  114. - [define([LT_AC_PROG_GCJ],
  115. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  116. -])])# AC_PROG_LIBTOOL
  117. +# _LT_CHECK_BUILDDIR
  118. +# ------------------
  119. +# Complain if the absolute build directory name contains unusual characters
  120. +m4_defun([_LT_CHECK_BUILDDIR],
  121. +[case `pwd` in
  122. + *\ * | *\ *)
  123. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  124. +esac
  125. +])
  126. -# _AC_PROG_LIBTOOL
  127. -# ----------------
  128. -AC_DEFUN([_AC_PROG_LIBTOOL],
  129. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  130. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  131. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  132. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  133. +# LT_INIT([OPTIONS])
  134. +# ------------------
  135. +AC_DEFUN([LT_INIT],
  136. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  137. +AC_BEFORE([$0], [LT_LANG])dnl
  138. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  139. +AC_BEFORE([$0], [LTDL_INIT])dnl
  140. +m4_require([_LT_CHECK_BUILDDIR])dnl
  141. +
  142. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  143. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  144. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  145. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  146. +dnl unless we require an AC_DEFUNed macro:
  147. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  148. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  149. +AC_REQUIRE([LTVERSION_VERSION])dnl
  150. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  151. +m4_require([_LT_PROG_LTMAIN])dnl
  152. +
  153. +dnl Parse OPTIONS
  154. +_LT_SET_OPTIONS([$0], [$1])
  155. # This can be used to rebuild libtool when needed
  156. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  157. +LIBTOOL_DEPS="$ltmain"
  158. # Always use our own libtool.
  159. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  160. AC_SUBST(LIBTOOL)dnl
  161. -# Prevent multiple expansion
  162. -define([AC_PROG_LIBTOOL], [])
  163. -])# _AC_PROG_LIBTOOL
  164. +_LT_SETUP
  165. +# Only expand once:
  166. +m4_define([LT_INIT])
  167. +])# LT_INIT
  168. +
  169. +# Old names:
  170. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  171. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  172. +dnl aclocal-1.4 backwards compatibility:
  173. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  174. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  175. -# AC_LIBTOOL_SETUP
  176. -# ----------------
  177. -AC_DEFUN([AC_LIBTOOL_SETUP],
  178. -[AC_PREREQ(2.50)dnl
  179. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  180. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  181. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  182. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  183. +
  184. +# _LT_CC_BASENAME(CC)
  185. +# -------------------
  186. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  187. +m4_defun([_LT_CC_BASENAME],
  188. +[for cc_temp in $1""; do
  189. + case $cc_temp in
  190. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  191. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  192. + \-*) ;;
  193. + *) break;;
  194. + esac
  195. +done
  196. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  197. +])
  198. +
  199. +
  200. +# _LT_FILEUTILS_DEFAULTS
  201. +# ----------------------
  202. +# It is okay to use these file commands and assume they have been set
  203. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  204. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  205. +[: ${CP="cp -f"}
  206. +: ${MV="mv -f"}
  207. +: ${RM="rm -f"}
  208. +])# _LT_FILEUTILS_DEFAULTS
  209. +
  210. +
  211. +# _LT_SETUP
  212. +# ---------
  213. +m4_defun([_LT_SETUP],
  214. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  215. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  216. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  217. +_LT_DECL([], [host], [0])dnl
  218. +_LT_DECL([], [host_os], [0])dnl
  219. +dnl
  220. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  221. +_LT_DECL([], [build], [0])dnl
  222. +_LT_DECL([], [build_os], [0])dnl
  223. +dnl
  224. AC_REQUIRE([AC_PROG_CC])dnl
  225. -AC_REQUIRE([AC_PROG_LD])dnl
  226. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  227. -AC_REQUIRE([AC_PROG_NM])dnl
  228. -
  229. +AC_REQUIRE([LT_PATH_LD])dnl
  230. +AC_REQUIRE([LT_PATH_NM])dnl
  231. +dnl
  232. AC_REQUIRE([AC_PROG_LN_S])dnl
  233. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  234. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  235. -AC_REQUIRE([AC_OBJEXT])dnl
  236. -AC_REQUIRE([AC_EXEEXT])dnl
  237. +test -z "$LN_S" && LN_S="ln -s"
  238. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  239. dnl
  240. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  241. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  242. -AC_LIBTOOL_OBJDIR
  243. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  244. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  245. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  246. +dnl
  247. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  248. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  249. +m4_require([_LT_CMD_RELOAD])dnl
  250. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  251. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  252. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  253. +
  254. +_LT_CONFIG_LIBTOOL_INIT([
  255. +# See if we are running on zsh, and set the options which allow our
  256. +# commands through without removal of \ escapes INIT.
  257. +if test -n "\${ZSH_VERSION+set}" ; then
  258. + setopt NO_GLOB_SUBST
  259. +fi
  260. +])
  261. +if test -n "${ZSH_VERSION+set}" ; then
  262. + setopt NO_GLOB_SUBST
  263. +fi
  264. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  265. -_LT_AC_PROG_ECHO_BACKSLASH
  266. +_LT_CHECK_OBJDIR
  267. +
  268. +m4_require([_LT_TAG_COMPILER])dnl
  269. +_LT_PROG_ECHO_BACKSLASH
  270. case $host_os in
  271. aix3*)
  272. @@ -130,116 +216,653 @@
  273. # Sed substitution that helps us do robust quoting. It backslashifies
  274. # metacharacters that are still active within double-quoted strings.
  275. -Xsed='sed -e 1s/^X//'
  276. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  277. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  278. # Same as above, but do not quote variable references.
  279. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  280. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  281. # Sed substitution to delay expansion of an escaped shell variable in a
  282. # double_quote_subst'ed string.
  283. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  284. +# Sed substitution to delay expansion of an escaped single quote.
  285. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  286. +
  287. # Sed substitution to avoid accidental globbing in evaled expressions
  288. no_glob_subst='s/\*/\\\*/g'
  289. -# Constants:
  290. -rm="rm -f"
  291. -
  292. # Global variables:
  293. -default_ofile=libtool
  294. +ofile=libtool
  295. can_build_shared=yes
  296. # All known linkers require a `.a' archive for static linking (except MSVC,
  297. # which needs '.lib').
  298. libext=a
  299. -ltmain="$ac_aux_dir/ltmain.sh"
  300. -ofile="$default_ofile"
  301. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  302. -AC_CHECK_TOOL(AR, ar, false)
  303. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  304. -AC_CHECK_TOOL(STRIP, strip, :)
  305. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  306. old_CC="$CC"
  307. old_CFLAGS="$CFLAGS"
  308. # Set sane defaults for various variables
  309. -test -z "$AR" && AR=ar
  310. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  311. -test -z "$AS" && AS=as
  312. test -z "$CC" && CC=cc
  313. test -z "$LTCC" && LTCC=$CC
  314. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  315. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  316. test -z "$LD" && LD=ld
  317. -test -z "$LN_S" && LN_S="ln -s"
  318. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  319. -test -z "$NM" && NM=nm
  320. -test -z "$SED" && SED=sed
  321. -test -z "$OBJDUMP" && OBJDUMP=objdump
  322. -test -z "$RANLIB" && RANLIB=:
  323. -test -z "$STRIP" && STRIP=:
  324. test -z "$ac_objext" && ac_objext=o
  325. -# Determine commands to create old-style static archives.
  326. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  327. -old_postinstall_cmds='chmod 644 $oldlib'
  328. -old_postuninstall_cmds=
  329. -
  330. -if test -n "$RANLIB"; then
  331. - case $host_os in
  332. - openbsd*)
  333. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  334. - ;;
  335. - *)
  336. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  337. - ;;
  338. - esac
  339. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  340. -fi
  341. -
  342. _LT_CC_BASENAME([$compiler])
  343. # Only perform the check for file, if the check method requires it
  344. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  345. case $deplibs_check_method in
  346. file_magic*)
  347. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  348. - AC_PATH_MAGIC
  349. + _LT_PATH_MAGIC
  350. fi
  351. ;;
  352. esac
  353. -_LT_REQUIRED_DARWIN_CHECKS
  354. +# Use C for the default configuration in the libtool script
  355. +LT_SUPPORTED_TAG([CC])
  356. +_LT_LANG_C_CONFIG
  357. +_LT_LANG_DEFAULT_CONFIG
  358. +_LT_CONFIG_COMMANDS
  359. +])# _LT_SETUP
  360. +
  361. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  362. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  363. -enable_win32_dll=yes, enable_win32_dll=no)
  364. -
  365. -AC_ARG_ENABLE([libtool-lock],
  366. - [AC_HELP_STRING([--disable-libtool-lock],
  367. - [avoid locking (might break parallel builds)])])
  368. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  369. +# _LT_PROG_LTMAIN
  370. +# ---------------
  371. +# Note that this code is called both from `configure', and `config.status'
  372. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  373. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  374. +# so we pass a copy along to make sure it has a sensible value anyway.
  375. +m4_defun([_LT_PROG_LTMAIN],
  376. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  377. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  378. +ltmain="$ac_aux_dir/ltmain.sh"
  379. +])# _LT_PROG_LTMAIN
  380. -AC_ARG_WITH([pic],
  381. - [AC_HELP_STRING([--with-pic],
  382. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  383. - [pic_mode="$withval"],
  384. - [pic_mode=default])
  385. -test -z "$pic_mode" && pic_mode=default
  386. -# Use C for the default configuration in the libtool script
  387. -tagname=
  388. -AC_LIBTOOL_LANG_C_CONFIG
  389. -_LT_AC_TAGCONFIG
  390. -])# AC_LIBTOOL_SETUP
  391. +
  392. +# So that we can recreate a full libtool script including additional
  393. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  394. +# in macros and then make a single call at the end using the `libtool'
  395. +# label.
  396. +
  397. +
  398. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  399. +# ----------------------------------------
  400. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  401. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  402. +[m4_ifval([$1],
  403. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  404. + [$1
  405. +])])])
  406. +
  407. +# Initialize.
  408. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  409. +
  410. +
  411. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  412. +# ------------------------------
  413. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  414. +m4_define([_LT_CONFIG_LIBTOOL],
  415. +[m4_ifval([$1],
  416. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  417. + [$1
  418. +])])])
  419. +
  420. +# Initialize.
  421. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  422. +
  423. +
  424. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  425. +# -----------------------------------------------------
  426. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  427. +[_LT_CONFIG_LIBTOOL([$1])
  428. +_LT_CONFIG_LIBTOOL_INIT([$2])
  429. +])
  430. +
  431. +
  432. +# _LT_FORMAT_COMMENT([COMMENT])
  433. +# -----------------------------
  434. +# Add leading comment marks to the start of each line, and a trailing
  435. +# full-stop to the whole comment if one is not present already.
  436. +m4_define([_LT_FORMAT_COMMENT],
  437. +[m4_ifval([$1], [
  438. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  439. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  440. +)])
  441. +
  442. +
  443. +
  444. +
  445. +
  446. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  447. +# -------------------------------------------------------------------
  448. +# CONFIGNAME is the name given to the value in the libtool script.
  449. +# VARNAME is the (base) name used in the configure script.
  450. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  451. +# VARNAME. Any other value will be used directly.
  452. +m4_define([_LT_DECL],
  453. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  454. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  455. + [m4_ifval([$1], [$1], [$2])])
  456. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  457. + m4_ifval([$4],
  458. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  459. + lt_dict_add_subkey([lt_decl_dict], [$2],
  460. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  461. +])
  462. +
  463. +
  464. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  465. +# --------------------------------------------------------
  466. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  467. +
  468. +
  469. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  470. +# ------------------------------------------------
  471. +m4_define([lt_decl_tag_varnames],
  472. +[_lt_decl_filter([tagged?], [yes], $@)])
  473. +
  474. +
  475. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  476. +# ---------------------------------------------------------
  477. +m4_define([_lt_decl_filter],
  478. +[m4_case([$#],
  479. + [0], [m4_fatal([$0: too few arguments: $#])],
  480. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  481. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  482. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  483. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  484. +])
  485. +
  486. +
  487. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  488. +# --------------------------------------------------
  489. +m4_define([lt_decl_quote_varnames],
  490. +[_lt_decl_filter([value], [1], $@)])
  491. +
  492. +
  493. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  494. +# ---------------------------------------------------
  495. +m4_define([lt_decl_dquote_varnames],
  496. +[_lt_decl_filter([value], [2], $@)])
  497. +
  498. +
  499. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  500. +# ---------------------------------------------------
  501. +m4_define([lt_decl_varnames_tagged],
  502. +[m4_assert([$# <= 2])dnl
  503. +_$0(m4_quote(m4_default([$1], [[, ]])),
  504. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  505. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  506. +m4_define([_lt_decl_varnames_tagged],
  507. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  508. +
  509. +
  510. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  511. +# ------------------------------------------------
  512. +m4_define([lt_decl_all_varnames],
  513. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  514. + m4_if([$2], [],
  515. + m4_quote(lt_decl_varnames),
  516. + m4_quote(m4_shift($@))))[]dnl
  517. +])
  518. +m4_define([_lt_decl_all_varnames],
  519. +[lt_join($@, lt_decl_varnames_tagged([$1],
  520. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  521. +])
  522. +
  523. +
  524. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  525. +# ------------------------------------
  526. +# Quote a variable value, and forward it to `config.status' so that its
  527. +# declaration there will have the same value as in `configure'. VARNAME
  528. +# must have a single quote delimited value for this to work.
  529. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  530. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  531. +
  532. +
  533. +# _LT_CONFIG_STATUS_DECLARATIONS
  534. +# ------------------------------
  535. +# We delimit libtool config variables with single quotes, so when
  536. +# we write them to config.status, we have to be sure to quote all
  537. +# embedded single quotes properly. In configure, this macro expands
  538. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  539. +#
  540. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  541. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  542. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  543. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  544. +
  545. +
  546. +# _LT_LIBTOOL_TAGS
  547. +# ----------------
  548. +# Output comment and list of tags supported by the script
  549. +m4_defun([_LT_LIBTOOL_TAGS],
  550. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  551. +available_tags="_LT_TAGS"dnl
  552. +])
  553. +
  554. +
  555. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  556. +# -----------------------------------
  557. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  558. +# expand to a commented shell variable setting:
  559. +#
  560. +# # Some comment about what VAR is for.
  561. +# visible_name=$lt_internal_name
  562. +m4_define([_LT_LIBTOOL_DECLARE],
  563. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  564. + [description])))[]dnl
  565. +m4_pushdef([_libtool_name],
  566. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  567. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  568. + [0], [_libtool_name=[$]$1],
  569. + [1], [_libtool_name=$lt_[]$1],
  570. + [2], [_libtool_name=$lt_[]$1],
  571. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  572. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  573. +])
  574. +
  575. +
  576. +# _LT_LIBTOOL_CONFIG_VARS
  577. +# -----------------------
  578. +# Produce commented declarations of non-tagged libtool config variables
  579. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  580. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  581. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  582. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  583. +[m4_foreach([_lt_var],
  584. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  585. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  586. +
  587. +
  588. +# _LT_LIBTOOL_TAG_VARS(TAG)
  589. +# -------------------------
  590. +m4_define([_LT_LIBTOOL_TAG_VARS],
  591. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  592. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  593. +
  594. +
  595. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  596. +# ------------------------------
  597. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  598. -# _LT_AC_SYS_COMPILER
  599. +# _LT_CONFIG_COMMANDS
  600. # -------------------
  601. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  602. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  603. +# variables for single and double quote escaping we saved from calls
  604. +# to _LT_DECL, we can put quote escaped variables declarations
  605. +# into `config.status', and then the shell code to quote escape them in
  606. +# for loops in `config.status'. Finally, any additional code accumulated
  607. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  608. +m4_defun([_LT_CONFIG_COMMANDS],
  609. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  610. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  611. + dnl instead of duplicating it all over again into config.status,
  612. + dnl then we will have config.status run $CONFIG_LT later, so it
  613. + dnl needs to know what name is stored there:
  614. + [AC_CONFIG_COMMANDS([libtool],
  615. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  616. + dnl If the libtool generation code is destined for config.status,
  617. + dnl expand the accumulated commands and init code now:
  618. + [AC_CONFIG_COMMANDS([libtool],
  619. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  620. +])#_LT_CONFIG_COMMANDS
  621. +
  622. +
  623. +# Initialize.
  624. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  625. +[
  626. +
  627. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  628. +# if CDPATH is set.
  629. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  630. +
  631. +sed_quote_subst='$sed_quote_subst'
  632. +double_quote_subst='$double_quote_subst'
  633. +delay_variable_subst='$delay_variable_subst'
  634. +_LT_CONFIG_STATUS_DECLARATIONS
  635. +LTCC='$LTCC'
  636. +LTCFLAGS='$LTCFLAGS'
  637. +compiler='$compiler_DEFAULT'
  638. +
  639. +# Quote evaled strings.
  640. +for var in lt_decl_all_varnames([[ \
  641. +]], lt_decl_quote_varnames); do
  642. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  643. + *[[\\\\\\\`\\"\\\$]]*)
  644. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  645. + ;;
  646. + *)
  647. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  648. + ;;
  649. + esac
  650. +done
  651. +
  652. +# Double-quote double-evaled strings.
  653. +for var in lt_decl_all_varnames([[ \
  654. +]], lt_decl_dquote_varnames); do
  655. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  656. + *[[\\\\\\\`\\"\\\$]]*)
  657. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  658. + ;;
  659. + *)
  660. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  661. + ;;
  662. + esac
  663. +done
  664. +
  665. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  666. +case \$lt_ECHO in
  667. +*'\\\[$]0 --fallback-echo"')dnl "
  668. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  669. + ;;
  670. +esac
  671. +
  672. +_LT_OUTPUT_LIBTOOL_INIT
  673. +])
  674. +
  675. +
  676. +# LT_OUTPUT
  677. +# ---------
  678. +# This macro allows early generation of the libtool script (before
  679. +# AC_OUTPUT is called), incase it is used in configure for compilation
  680. +# tests.
  681. +AC_DEFUN([LT_OUTPUT],
  682. +[: ${CONFIG_LT=./config.lt}
  683. +AC_MSG_NOTICE([creating $CONFIG_LT])
  684. +cat >"$CONFIG_LT" <<_LTEOF
  685. +#! $SHELL
  686. +# Generated by $as_me.
  687. +# Run this file to recreate a libtool stub with the current configuration.
  688. +
  689. +lt_cl_silent=false
  690. +SHELL=\${CONFIG_SHELL-$SHELL}
  691. +_LTEOF
  692. +
  693. +cat >>"$CONFIG_LT" <<\_LTEOF
  694. +AS_SHELL_SANITIZE
  695. +_AS_PREPARE
  696. +
  697. +exec AS_MESSAGE_FD>&1
  698. +exec AS_MESSAGE_LOG_FD>>config.log
  699. +{
  700. + echo
  701. + AS_BOX([Running $as_me.])
  702. +} >&AS_MESSAGE_LOG_FD
  703. +
  704. +lt_cl_help="\
  705. +\`$as_me' creates a local libtool stub from the current configuration,
  706. +for use in further configure time tests before the real libtool is
  707. +generated.
  708. +
  709. +Usage: $[0] [[OPTIONS]]
  710. +
  711. + -h, --help print this help, then exit
  712. + -V, --version print version number, then exit
  713. + -q, --quiet do not print progress messages
  714. + -d, --debug don't remove temporary files
  715. +
  716. +Report bugs to <bug-libtool@gnu.org>."
  717. +
  718. +lt_cl_version="\
  719. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  720. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  721. +configured by $[0], generated by m4_PACKAGE_STRING.
  722. +
  723. +Copyright (C) 2008 Free Software Foundation, Inc.
  724. +This config.lt script is free software; the Free Software Foundation
  725. +gives unlimited permision to copy, distribute and modify it."
  726. +
  727. +while test $[#] != 0
  728. +do
  729. + case $[1] in
  730. + --version | --v* | -V )
  731. + echo "$lt_cl_version"; exit 0 ;;
  732. + --help | --h* | -h )
  733. + echo "$lt_cl_help"; exit 0 ;;
  734. + --debug | --d* | -d )
  735. + debug=: ;;
  736. + --quiet | --q* | --silent | --s* | -q )
  737. + lt_cl_silent=: ;;
  738. +
  739. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  740. +Try \`$[0] --help' for more information.]) ;;
  741. +
  742. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  743. +Try \`$[0] --help' for more information.]) ;;
  744. + esac
  745. + shift
  746. +done
  747. +
  748. +if $lt_cl_silent; then
  749. + exec AS_MESSAGE_FD>/dev/null
  750. +fi
  751. +_LTEOF
  752. +
  753. +cat >>"$CONFIG_LT" <<_LTEOF
  754. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  755. +_LTEOF
  756. +
  757. +cat >>"$CONFIG_LT" <<\_LTEOF
  758. +AC_MSG_NOTICE([creating $ofile])
  759. +_LT_OUTPUT_LIBTOOL_COMMANDS
  760. +AS_EXIT(0)
  761. +_LTEOF
  762. +chmod +x "$CONFIG_LT"
  763. +
  764. +# configure is writing to config.log, but config.lt does its own redirection,
  765. +# appending to config.log, which fails on DOS, as config.log is still kept
  766. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  767. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  768. +if test "$no_create" != yes; then
  769. + lt_cl_success=:
  770. + test "$silent" = yes &&
  771. + lt_config_lt_args="$lt_config_lt_args --quiet"
  772. + exec AS_MESSAGE_LOG_FD>/dev/null
  773. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  774. + exec AS_MESSAGE_LOG_FD>>config.log
  775. + $lt_cl_success || AS_EXIT(1)
  776. +fi
  777. +])# LT_OUTPUT
  778. +
  779. +
  780. +# _LT_CONFIG(TAG)
  781. +# ---------------
  782. +# If TAG is the built-in tag, create an initial libtool script with a
  783. +# default configuration from the untagged config vars. Otherwise add code
  784. +# to config.status for appending the configuration named by TAG from the
  785. +# matching tagged config vars.
  786. +m4_defun([_LT_CONFIG],
  787. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  788. +_LT_CONFIG_SAVE_COMMANDS([
  789. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  790. + m4_if(_LT_TAG, [C], [
  791. + # See if we are running on zsh, and set the options which allow our
  792. + # commands through without removal of \ escapes.
  793. + if test -n "${ZSH_VERSION+set}" ; then
  794. + setopt NO_GLOB_SUBST
  795. + fi
  796. +
  797. + cfgfile="${ofile}T"
  798. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  799. + $RM "$cfgfile"
  800. +
  801. + cat <<_LT_EOF >> "$cfgfile"
  802. +#! $SHELL
  803. +
  804. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  805. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  806. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  807. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  808. +#
  809. +_LT_COPYING
  810. +_LT_LIBTOOL_TAGS
  811. +
  812. +# ### BEGIN LIBTOOL CONFIG
  813. +_LT_LIBTOOL_CONFIG_VARS
  814. +_LT_LIBTOOL_TAG_VARS
  815. +# ### END LIBTOOL CONFIG
  816. +
  817. +_LT_EOF
  818. +
  819. + case $host_os in
  820. + aix3*)
  821. + cat <<\_LT_EOF >> "$cfgfile"
  822. +# AIX sometimes has problems with the GCC collect2 program. For some
  823. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  824. +# vanish in a puff of smoke.
  825. +if test "X${COLLECT_NAMES+set}" != Xset; then
  826. + COLLECT_NAMES=
  827. + export COLLECT_NAMES
  828. +fi
  829. +_LT_EOF
  830. + ;;
  831. + esac
  832. +
  833. + _LT_PROG_LTMAIN
  834. +
  835. + # We use sed instead of cat because bash on DJGPP gets confused if
  836. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  837. + # text mode, it properly converts lines to CR/LF. This bash problem
  838. + # is reportedly fixed, but why not run on old versions too?
  839. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  840. + || (rm -f "$cfgfile"; exit 1)
  841. +
  842. + _LT_PROG_XSI_SHELLFNS
  843. +
  844. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  845. + || (rm -f "$cfgfile"; exit 1)
  846. +
  847. + mv -f "$cfgfile" "$ofile" ||
  848. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  849. + chmod +x "$ofile"
  850. +],
  851. +[cat <<_LT_EOF >> "$ofile"
  852. +
  853. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  854. +dnl in a comment (ie after a #).
  855. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  856. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  857. +# ### END LIBTOOL TAG CONFIG: $1
  858. +_LT_EOF
  859. +])dnl /m4_if
  860. +],
  861. +[m4_if([$1], [], [
  862. + PACKAGE='$PACKAGE'
  863. + VERSION='$VERSION'
  864. + TIMESTAMP='$TIMESTAMP'
  865. + RM='$RM'
  866. + ofile='$ofile'], [])
  867. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  868. +])# _LT_CONFIG
  869. +
  870. +
  871. +# LT_SUPPORTED_TAG(TAG)
  872. +# ---------------------
  873. +# Trace this macro to discover what tags are supported by the libtool
  874. +# --tag option, using:
  875. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  876. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  877. +
  878. +
  879. +# C support is built-in for now
  880. +m4_define([_LT_LANG_C_enabled], [])
  881. +m4_define([_LT_TAGS], [])
  882. +
  883. +
  884. +# LT_LANG(LANG)
  885. +# -------------
  886. +# Enable libtool support for the given language if not already enabled.
  887. +AC_DEFUN([LT_LANG],
  888. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  889. +m4_case([$1],
  890. + [C], [_LT_LANG(C)],
  891. + [C++], [_LT_LANG(CXX)],
  892. + [Java], [_LT_LANG(GCJ)],
  893. + [Fortran 77], [_LT_LANG(F77)],
  894. + [Fortran], [_LT_LANG(FC)],
  895. + [Windows Resource], [_LT_LANG(RC)],
  896. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  897. + [_LT_LANG($1)],
  898. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  899. +])# LT_LANG
  900. +
  901. +
  902. +# _LT_LANG(LANGNAME)
  903. +# ------------------
  904. +m4_defun([_LT_LANG],
  905. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  906. + [LT_SUPPORTED_TAG([$1])dnl
  907. + m4_append([_LT_TAGS], [$1 ])dnl
  908. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  909. + _LT_LANG_$1_CONFIG($1)])dnl
  910. +])# _LT_LANG
  911. +
  912. +
  913. +# _LT_LANG_DEFAULT_CONFIG
  914. +# -----------------------
  915. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  916. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  917. + [LT_LANG(CXX)],
  918. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  919. +
  920. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  921. + [LT_LANG(F77)],
  922. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  923. +
  924. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  925. + [LT_LANG(FC)],
  926. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  927. +
  928. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  929. +dnl pulling things in needlessly.
  930. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  931. + [LT_LANG(GCJ)],
  932. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  933. + [LT_LANG(GCJ)],
  934. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  935. + [LT_LANG(GCJ)],
  936. + [m4_ifdef([AC_PROG_GCJ],
  937. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  938. + m4_ifdef([A][M_PROG_GCJ],
  939. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  940. + m4_ifdef([LT_PROG_GCJ],
  941. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  942. +
  943. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  944. + [LT_LANG(RC)],
  945. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  946. +])# _LT_LANG_DEFAULT_CONFIG
  947. +
  948. +# Obsolete macros:
  949. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  950. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  951. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  952. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  953. +dnl aclocal-1.4 backwards compatibility:
  954. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  955. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  956. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  957. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  958. +
  959. +
  960. +# _LT_TAG_COMPILER
  961. +# ----------------
  962. +m4_defun([_LT_TAG_COMPILER],
  963. [AC_REQUIRE([AC_PROG_CC])dnl
  964. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  965. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  966. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  967. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  968. +
  969. # If no C compiler was specified, use CC.
  970. LTCC=${LTCC-"$CC"}
  971. @@ -248,36 +871,20 @@
  972. # Allow CC to be a program name with arguments.
  973. compiler=$CC
  974. -])# _LT_AC_SYS_COMPILER
  975. -
  976. -
  977. -# _LT_CC_BASENAME(CC)
  978. -# -------------------
  979. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  980. -AC_DEFUN([_LT_CC_BASENAME],
  981. -[for cc_temp in $1""; do
  982. - case $cc_temp in
  983. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  984. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  985. - \-*) ;;
  986. - *) break;;
  987. - esac
  988. -done
  989. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  990. -])
  991. +])# _LT_TAG_COMPILER
  992. # _LT_COMPILER_BOILERPLATE
  993. # ------------------------
  994. # Check for compiler boilerplate output or warnings with
  995. # the simple compiler test code.
  996. -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  997. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  998. +m4_defun([_LT_COMPILER_BOILERPLATE],
  999. +[m4_require([_LT_DECL_SED])dnl
  1000. ac_outfile=conftest.$ac_objext
  1001. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  1002. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1003. _lt_compiler_boilerplate=`cat conftest.err`
  1004. -$rm conftest*
  1005. +$RM conftest*
  1006. ])# _LT_COMPILER_BOILERPLATE
  1007. @@ -285,39 +892,57 @@
  1008. # ----------------------
  1009. # Check for linker boilerplate output or warnings with
  1010. # the simple link test code.
  1011. -AC_DEFUN([_LT_LINKER_BOILERPLATE],
  1012. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1013. +m4_defun([_LT_LINKER_BOILERPLATE],
  1014. +[m4_require([_LT_DECL_SED])dnl
  1015. ac_outfile=conftest.$ac_objext
  1016. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1017. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1018. _lt_linker_boilerplate=`cat conftest.err`
  1019. -$rm -r conftest*
  1020. +$RM -r conftest*
  1021. ])# _LT_LINKER_BOILERPLATE
  1022. # _LT_REQUIRED_DARWIN_CHECKS
  1023. -# --------------------------
  1024. -# Check for some things on darwin
  1025. -AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
  1026. +# -------------------------
  1027. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1028. case $host_os in
  1029. rhapsody* | darwin*)
  1030. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1031. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1032. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  1033. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  1034. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1035. + _LT_DECL([], [DSYMUTIL], [1],
  1036. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1037. + _LT_DECL([], [NMEDIT], [1],
  1038. + [Tool to change global to local symbols on Mac OS X])
  1039. + _LT_DECL([], [LIPO], [1],
  1040. + [Tool to manipulate fat objects and archives on Mac OS X])
  1041. + _LT_DECL([], [OTOOL], [1],
  1042. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1043. + _LT_DECL([], [OTOOL64], [1],
  1044. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1045. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1046. [lt_cv_apple_cc_single_mod=no
  1047. if test -z "${LT_MULTI_MODULE}"; then
  1048. - # By default we will add the -single_module flag. You can override
  1049. - # by either setting the environment variable LT_MULTI_MODULE
  1050. - # non-empty at configure time, or by adding -multi_module to the
  1051. - # link flags.
  1052. - echo "int foo(void){return 1;}" > conftest.c
  1053. - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1054. - -dynamiclib ${wl}-single_module conftest.c
  1055. - if test -f libconftest.dylib; then
  1056. - lt_cv_apple_cc_single_mod=yes
  1057. - rm -rf libconftest.dylib*
  1058. - fi
  1059. - rm conftest.c
  1060. + # By default we will add the -single_module flag. You can override
  1061. + # by either setting the environment variable LT_MULTI_MODULE
  1062. + # non-empty at configure time, or by adding -multi_module to the
  1063. + # link flags.
  1064. + rm -rf libconftest.dylib*
  1065. + echo "int foo(void){return 1;}" > conftest.c
  1066. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1067. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1068. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1069. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1070. + _lt_result=$?
  1071. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1072. + lt_cv_apple_cc_single_mod=yes
  1073. + else
  1074. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1075. + fi
  1076. + rm -rf libconftest.dylib*
  1077. + rm -f conftest.*
  1078. fi])
  1079. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1080. [lt_cv_ld_exported_symbols_list],
  1081. @@ -326,26 +951,26 @@
  1082. echo "_main" > conftest.sym
  1083. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1084. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1085. - [lt_cv_ld_exported_symbols_list=yes],
  1086. - [lt_cv_ld_exported_symbols_list=no])
  1087. - LDFLAGS="$save_LDFLAGS"
  1088. + [lt_cv_ld_exported_symbols_list=yes],
  1089. + [lt_cv_ld_exported_symbols_list=no])
  1090. + LDFLAGS="$save_LDFLAGS"
  1091. ])
  1092. case $host_os in
  1093. - rhapsody* | darwin1.[[0123]])
  1094. + rhapsody* | darwin1.[[012]])
  1095. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1096. darwin1.*)
  1097. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1098. - darwin*)
  1099. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1100. + darwin*) # darwin 5.x on
  1101. # if running on 10.5 or later, the deployment target defaults
  1102. # to the OS version, if on x86, and 10.4, the deployment
  1103. # target defaults to 10.4. Don't you love it?
  1104. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1105. - 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1106. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1107. - 10.[[012]]*)
  1108. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1109. - 10.*)
  1110. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1111. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1112. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1113. + 10.[[012]]*)
  1114. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1115. + 10.*)
  1116. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1117. esac
  1118. ;;
  1119. esac
  1120. @@ -355,10 +980,10 @@
  1121. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1122. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1123. else
  1124. - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  1125. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1126. fi
  1127. if test "$DSYMUTIL" != ":"; then
  1128. - _lt_dsymutil="~$DSYMUTIL \$lib || :"
  1129. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  1130. else
  1131. _lt_dsymutil=
  1132. fi
  1133. @@ -366,16 +991,51 @@
  1134. esac
  1135. ])
  1136. -# _LT_AC_SYS_LIBPATH_AIX
  1137. -# ----------------------
  1138. -# Links a minimal program and checks the executable
  1139. +
  1140. +# _LT_DARWIN_LINKER_FEATURES
  1141. +# --------------------------
  1142. +# Checks for linker and compiler features on darwin
  1143. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1144. +[
  1145. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1146. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1147. + _LT_TAGVAR(hardcode_direct, $1)=no
  1148. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1149. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1150. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1151. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1152. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1153. + case $cc_basename in
  1154. + ifort*) _lt_dar_can_shared=yes ;;
  1155. + *) _lt_dar_can_shared=$GCC ;;
  1156. + esac
  1157. + if test "$_lt_dar_can_shared" = "yes"; then
  1158. + output_verbose_link_cmd=echo
  1159. + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  1160. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1161. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  1162. + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  1163. + m4_if([$1], [CXX],
  1164. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1165. + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  1166. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  1167. + fi
  1168. +],[])
  1169. + else
  1170. + _LT_TAGVAR(ld_shlibs, $1)=no
  1171. + fi
  1172. +])
  1173. +
  1174. +# _LT_SYS_MODULE_PATH_AIX
  1175. +# -----------------------
  1176. +# Links a minimal program and checks the executable
  1177. # for the system default hardcoded library path. In most cases,
  1178. # this is /usr/lib:/lib, but when the MPI compilers are used
  1179. # the location of the communication and MPI libs are included too.
  1180. # If we don't find anything, use the default library path according
  1181. # to the aix ld manual.
  1182. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  1183. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1184. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1185. +[m4_require([_LT_DECL_SED])dnl
  1186. AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1187. lt_aix_libpath_sed='
  1188. /Import File Strings/,/^$/ {
  1189. @@ -390,45 +1050,45 @@
  1190. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1191. fi],[])
  1192. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1193. -])# _LT_AC_SYS_LIBPATH_AIX
  1194. +])# _LT_SYS_MODULE_PATH_AIX
  1195. -# _LT_AC_SHELL_INIT(ARG)
  1196. -# ----------------------
  1197. -AC_DEFUN([_LT_AC_SHELL_INIT],
  1198. +# _LT_SHELL_INIT(ARG)
  1199. +# -------------------
  1200. +m4_define([_LT_SHELL_INIT],
  1201. [ifdef([AC_DIVERSION_NOTICE],
  1202. [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1203. [AC_DIVERT_PUSH(NOTICE)])
  1204. $1
  1205. AC_DIVERT_POP
  1206. -])# _LT_AC_SHELL_INIT
  1207. +])# _LT_SHELL_INIT
  1208. -# _LT_AC_PROG_ECHO_BACKSLASH
  1209. -# --------------------------
  1210. +# _LT_PROG_ECHO_BACKSLASH
  1211. +# -----------------------
  1212. # Add some code to the start of the generated configure script which
  1213. # will find an echo command which doesn't interpret backslashes.
  1214. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  1215. -[_LT_AC_SHELL_INIT([
  1216. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1217. +[_LT_SHELL_INIT([
  1218. # Check that we are running under the correct shell.
  1219. SHELL=${CONFIG_SHELL-/bin/sh}
  1220. -case X$ECHO in
  1221. +case X$lt_ECHO in
  1222. X*--fallback-echo)
  1223. # Remove one level of quotation (which was required for Make).
  1224. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1225. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1226. ;;
  1227. esac
  1228. -echo=${ECHO-echo}
  1229. +ECHO=${lt_ECHO-echo}
  1230. if test "X[$]1" = X--no-reexec; then
  1231. # Discard the --no-reexec flag, and continue.
  1232. shift
  1233. elif test "X[$]1" = X--fallback-echo; then
  1234. # Avoid inline document here, it may be left over
  1235. :
  1236. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  1237. - # Yippee, $echo works!
  1238. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1239. + # Yippee, $ECHO works!
  1240. :
  1241. else
  1242. # Restart under the correct shell.
  1243. @@ -438,9 +1098,9 @@
  1244. if test "X[$]1" = X--fallback-echo; then
  1245. # used as fallback echo
  1246. shift
  1247. - cat <<EOF
  1248. + cat <<_LT_EOF
  1249. [$]*
  1250. -EOF
  1251. +_LT_EOF
  1252. exit 0
  1253. fi
  1254. @@ -448,124 +1108,127 @@
  1255. # if CDPATH is set.
  1256. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1257. -if test -z "$ECHO"; then
  1258. -if test "X${echo_test_string+set}" != Xset; then
  1259. -# find a string as large as possible, as long as the shell can cope with it
  1260. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1261. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1262. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  1263. - echo_test_string=`eval $cmd` &&
  1264. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  1265. - then
  1266. - break
  1267. - fi
  1268. - done
  1269. -fi
  1270. +if test -z "$lt_ECHO"; then
  1271. + if test "X${echo_test_string+set}" != Xset; then
  1272. + # find a string as large as possible, as long as the shell can cope with it
  1273. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1274. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1275. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1276. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1277. + then
  1278. + break
  1279. + fi
  1280. + done
  1281. + fi
  1282. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  1283. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  1284. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1285. - :
  1286. -else
  1287. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  1288. - # backslashes. This makes it impossible to quote backslashes using
  1289. - # echo "$something" | sed 's/\\/\\\\/g'
  1290. - #
  1291. - # So, first we look for a working echo in the user's PATH.
  1292. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1293. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1294. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1295. + :
  1296. + else
  1297. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  1298. + # backslashes. This makes it impossible to quote backslashes using
  1299. + # echo "$something" | sed 's/\\/\\\\/g'
  1300. + #
  1301. + # So, first we look for a working echo in the user's PATH.
  1302. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1303. - for dir in $PATH /usr/ucb; do
  1304. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1305. + for dir in $PATH /usr/ucb; do
  1306. + IFS="$lt_save_ifs"
  1307. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1308. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1309. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1310. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1311. + ECHO="$dir/echo"
  1312. + break
  1313. + fi
  1314. + done
  1315. IFS="$lt_save_ifs"
  1316. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1317. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1318. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1319. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1320. - echo="$dir/echo"
  1321. - break
  1322. - fi
  1323. - done
  1324. - IFS="$lt_save_ifs"
  1325. - if test "X$echo" = Xecho; then
  1326. - # We didn't find a better echo, so look for alternatives.
  1327. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  1328. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  1329. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1330. - # This shell has a builtin print -r that does the trick.
  1331. - echo='print -r'
  1332. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  1333. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  1334. - # If we have ksh, try running configure again with it.
  1335. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1336. - export ORIGINAL_CONFIG_SHELL
  1337. - CONFIG_SHELL=/bin/ksh
  1338. - export CONFIG_SHELL
  1339. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1340. - else
  1341. - # Try using printf.
  1342. - echo='printf %s\n'
  1343. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  1344. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  1345. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1346. - # Cool, printf works
  1347. - :
  1348. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1349. - test "X$echo_testing_string" = 'X\t' &&
  1350. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1351. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1352. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1353. - export CONFIG_SHELL
  1354. - SHELL="$CONFIG_SHELL"
  1355. - export SHELL
  1356. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  1357. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1358. - test "X$echo_testing_string" = 'X\t' &&
  1359. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1360. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1361. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  1362. + if test "X$ECHO" = Xecho; then
  1363. + # We didn't find a better echo, so look for alternatives.
  1364. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1365. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1366. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1367. + # This shell has a builtin print -r that does the trick.
  1368. + ECHO='print -r'
  1369. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1370. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  1371. + # If we have ksh, try running configure again with it.
  1372. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1373. + export ORIGINAL_CONFIG_SHELL
  1374. + CONFIG_SHELL=/bin/ksh
  1375. + export CONFIG_SHELL
  1376. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1377. else
  1378. - # maybe with a smaller string...
  1379. - prev=:
  1380. + # Try using printf.
  1381. + ECHO='printf %s\n'
  1382. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1383. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1384. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1385. + # Cool, printf works
  1386. + :
  1387. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1388. + test "X$echo_testing_string" = 'X\t' &&
  1389. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1390. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1391. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1392. + export CONFIG_SHELL
  1393. + SHELL="$CONFIG_SHELL"
  1394. + export SHELL
  1395. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1396. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1397. + test "X$echo_testing_string" = 'X\t' &&
  1398. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1399. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1400. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1401. + else
  1402. + # maybe with a smaller string...
  1403. + prev=:
  1404. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1405. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  1406. - then
  1407. - break
  1408. - fi
  1409. - prev="$cmd"
  1410. - done
  1411. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1412. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  1413. + then
  1414. + break
  1415. + fi
  1416. + prev="$cmd"
  1417. + done
  1418. - if test "$prev" != 'sed 50q "[$]0"'; then
  1419. - echo_test_string=`eval $prev`
  1420. - export echo_test_string
  1421. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1422. - else
  1423. - # Oops. We lost completely, so just stick with echo.
  1424. - echo=echo
  1425. - fi
  1426. + if test "$prev" != 'sed 50q "[$]0"'; then
  1427. + echo_test_string=`eval $prev`
  1428. + export echo_test_string
  1429. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1430. + else
  1431. + # Oops. We lost completely, so just stick with echo.
  1432. + ECHO=echo
  1433. + fi
  1434. + fi
  1435. fi
  1436. fi
  1437. fi
  1438. fi
  1439. -fi
  1440. # Copy echo and quote the copy suitably for passing to libtool from
  1441. # the Makefile, instead of quoting the original, which is used later.
  1442. -ECHO=$echo
  1443. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1444. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1445. +lt_ECHO=$ECHO
  1446. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1447. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1448. fi
  1449. -AC_SUBST(ECHO)
  1450. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  1451. +AC_SUBST(lt_ECHO)
  1452. +])
  1453. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1454. +_LT_DECL([], [ECHO], [1],
  1455. + [An echo program that does not interpret backslashes])
  1456. +])# _LT_PROG_ECHO_BACKSLASH
  1457. -# _LT_AC_LOCK
  1458. -# -----------
  1459. -AC_DEFUN([_LT_AC_LOCK],
  1460. +# _LT_ENABLE_LOCK
  1461. +# ---------------
  1462. +m4_defun([_LT_ENABLE_LOCK],
  1463. [AC_ARG_ENABLE([libtool-lock],
  1464. - [AC_HELP_STRING([--disable-libtool-lock],
  1465. - [avoid locking (might break parallel builds)])])
  1466. + [AS_HELP_STRING([--disable-libtool-lock],
  1467. + [avoid locking (might break parallel builds)])])
  1468. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1469. # Some flags need to be propagated to the compiler or linker for good
  1470. @@ -576,12 +1239,12 @@
  1471. echo 'int i;' > conftest.$ac_ext
  1472. if AC_TRY_EVAL(ac_compile); then
  1473. case `/usr/bin/file conftest.$ac_objext` in
  1474. - *ELF-32*)
  1475. - HPUX_IA64_MODE="32"
  1476. - ;;
  1477. - *ELF-64*)
  1478. - HPUX_IA64_MODE="64"
  1479. - ;;
  1480. + *ELF-32*)
  1481. + HPUX_IA64_MODE="32"
  1482. + ;;
  1483. + *ELF-64*)
  1484. + HPUX_IA64_MODE="64"
  1485. + ;;
  1486. esac
  1487. fi
  1488. rm -rf conftest*
  1489. @@ -590,80 +1253,79 @@
  1490. # Find out which ABI we are using.
  1491. echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  1492. if AC_TRY_EVAL(ac_compile); then
  1493. - if test "$lt_cv_prog_gnu_ld" = yes; then
  1494. - case `/usr/bin/file conftest.$ac_objext` in
  1495. - *32-bit*)
  1496. - LD="${LD-ld} -melf32bsmip"
  1497. - ;;
  1498. - *N32*)
  1499. - LD="${LD-ld} -melf32bmipn32"
  1500. - ;;
  1501. - *64-bit*)
  1502. - LD="${LD-ld} -melf64bmip"
  1503. - ;;
  1504. - esac
  1505. - else
  1506. - case `/usr/bin/file conftest.$ac_objext` in
  1507. - *32-bit*)
  1508. - LD="${LD-ld} -32"
  1509. - ;;
  1510. - *N32*)
  1511. - LD="${LD-ld} -n32"
  1512. - ;;
  1513. - *64-bit*)
  1514. - LD="${LD-ld} -64"
  1515. - ;;
  1516. - esac
  1517. - fi
  1518. + if test "$lt_cv_prog_gnu_ld" = yes; then
  1519. + case `/usr/bin/file conftest.$ac_objext` in
  1520. + *32-bit*)
  1521. + LD="${LD-ld} -melf32bsmip"
  1522. + ;;
  1523. + *N32*)
  1524. + LD="${LD-ld} -melf32bmipn32"
  1525. + ;;
  1526. + *64-bit*)
  1527. + LD="${LD-ld} -melf64bmip"
  1528. + ;;
  1529. + esac
  1530. + else
  1531. + case `/usr/bin/file conftest.$ac_objext` in
  1532. + *32-bit*)
  1533. + LD="${LD-ld} -32"
  1534. + ;;
  1535. + *N32*)
  1536. + LD="${LD-ld} -n32"
  1537. + ;;
  1538. + *64-bit*)
  1539. + LD="${LD-ld} -64"
  1540. + ;;
  1541. + esac
  1542. + fi
  1543. fi
  1544. rm -rf conftest*
  1545. ;;
  1546. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1547. -s390*-*linux*|sparc*-*linux*)
  1548. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1549. # Find out which ABI we are using.
  1550. echo 'int i;' > conftest.$ac_ext
  1551. if AC_TRY_EVAL(ac_compile); then
  1552. case `/usr/bin/file conftest.o` in
  1553. - *32-bit*)
  1554. - case $host in
  1555. - x86_64-*kfreebsd*-gnu)
  1556. - LD="${LD-ld} -m elf_i386_fbsd"
  1557. - ;;
  1558. - x86_64-*linux*)
  1559. - LD="${LD-ld} -m elf_i386"
  1560. - ;;
  1561. - ppc64-*linux*|powerpc64-*linux*)
  1562. - LD="${LD-ld} -m elf32ppclinux"
  1563. - ;;
  1564. - s390x-*linux*)
  1565. - LD="${LD-ld} -m elf_s390"
  1566. - ;;
  1567. - sparc64-*linux*)
  1568. - LD="${LD-ld} -m elf32_sparc"
  1569. - ;;
  1570. - esac
  1571. - ;;
  1572. - *64-bit*)
  1573. - libsuff=64
  1574. - case $host in
  1575. - x86_64-*kfreebsd*-gnu)
  1576. - LD="${LD-ld} -m elf_x86_64_fbsd"
  1577. - ;;
  1578. - x86_64-*linux*)
  1579. - LD="${LD-ld} -m elf_x86_64"
  1580. - ;;
  1581. - ppc*-*linux*|powerpc*-*linux*)
  1582. - LD="${LD-ld} -m elf64ppc"
  1583. - ;;
  1584. - s390*-*linux*)
  1585. - LD="${LD-ld} -m elf64_s390"
  1586. - ;;
  1587. - sparc*-*linux*)
  1588. - LD="${LD-ld} -m elf64_sparc"
  1589. - ;;
  1590. - esac
  1591. - ;;
  1592. + *32-bit*)
  1593. + case $host in
  1594. + x86_64-*kfreebsd*-gnu)
  1595. + LD="${LD-ld} -m elf_i386_fbsd"
  1596. + ;;
  1597. + x86_64-*linux*)
  1598. + LD="${LD-ld} -m elf_i386"
  1599. + ;;
  1600. + ppc64-*linux*|powerpc64-*linux*)
  1601. + LD="${LD-ld} -m elf32ppclinux"
  1602. + ;;
  1603. + s390x-*linux*)
  1604. + LD="${LD-ld} -m elf_s390"
  1605. + ;;
  1606. + sparc64-*linux*)
  1607. + LD="${LD-ld} -m elf32_sparc"
  1608. + ;;
  1609. + esac
  1610. + ;;
  1611. + *64-bit*)
  1612. + case $host in
  1613. + x86_64-*kfreebsd*-gnu)
  1614. + LD="${LD-ld} -m elf_x86_64_fbsd"
  1615. + ;;
  1616. + x86_64-*linux*)
  1617. + LD="${LD-ld} -m elf_x86_64"
  1618. + ;;
  1619. + ppc*-*linux*|powerpc*-*linux*)
  1620. + LD="${LD-ld} -m elf64ppc"
  1621. + ;;
  1622. + s390*-*linux*|s390*-*tpf*)
  1623. + LD="${LD-ld} -m elf64_s390"
  1624. + ;;
  1625. + sparc*-*linux*)
  1626. + LD="${LD-ld} -m elf64_sparc"
  1627. + ;;
  1628. + esac
  1629. + ;;
  1630. esac
  1631. fi
  1632. rm -rf conftest*
  1633. @@ -675,7 +1337,7 @@
  1634. CFLAGS="$CFLAGS -belf"
  1635. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1636. [AC_LANG_PUSH(C)
  1637. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1638. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1639. AC_LANG_POP])
  1640. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1641. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1642. @@ -691,7 +1353,7 @@
  1643. case $lt_cv_prog_gnu_ld in
  1644. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  1645. *)
  1646. - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1647. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1648. LD="${LD-ld} -64"
  1649. fi
  1650. ;;
  1651. @@ -701,30 +1363,63 @@
  1652. fi
  1653. rm -rf conftest*
  1654. ;;
  1655. -
  1656. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  1657. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  1658. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  1659. - AC_CHECK_TOOL(AS, as, false)
  1660. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  1661. - ;;
  1662. - ])
  1663. esac
  1664. need_locks="$enable_libtool_lock"
  1665. +])# _LT_ENABLE_LOCK
  1666. +
  1667. +
  1668. +# _LT_CMD_OLD_ARCHIVE
  1669. +# -------------------
  1670. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  1671. +[AC_CHECK_TOOL(AR, ar, false)
  1672. +test -z "$AR" && AR=ar
  1673. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  1674. +_LT_DECL([], [AR], [1], [The archiver])
  1675. +_LT_DECL([], [AR_FLAGS], [1])
  1676. +
  1677. +AC_CHECK_TOOL(STRIP, strip, :)
  1678. +test -z "$STRIP" && STRIP=:
  1679. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1680. +
  1681. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  1682. +test -z "$RANLIB" && RANLIB=:
  1683. +_LT_DECL([], [RANLIB], [1],
  1684. + [Commands used to install an old-style archive])
  1685. +
  1686. +# Determine commands to create old-style static archives.
  1687. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1688. +old_postinstall_cmds='chmod 644 $oldlib'
  1689. +old_postuninstall_cmds=
  1690. -])# _LT_AC_LOCK
  1691. +if test -n "$RANLIB"; then
  1692. + case $host_os in
  1693. + openbsd*)
  1694. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  1695. + ;;
  1696. + *)
  1697. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  1698. + ;;
  1699. + esac
  1700. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1701. +fi
  1702. +_LT_DECL([], [old_postinstall_cmds], [2])
  1703. +_LT_DECL([], [old_postuninstall_cmds], [2])
  1704. +_LT_TAGDECL([], [old_archive_cmds], [2],
  1705. + [Commands used to build an old-style archive])
  1706. +])# _LT_CMD_OLD_ARCHIVE
  1707. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1708. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1709. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1710. # ----------------------------------------------------------------
  1711. # Check whether the given compiler option works
  1712. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  1713. -[AC_REQUIRE([LT_AC_PROG_SED])
  1714. +AC_DEFUN([_LT_COMPILER_OPTION],
  1715. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1716. +m4_require([_LT_DECL_SED])dnl
  1717. AC_CACHE_CHECK([$1], [$2],
  1718. [$2=no
  1719. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1720. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1721. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1722. lt_compiler_flag="$3"
  1723. # Insert the option either (1) after the last *FLAGS variable, or
  1724. @@ -744,29 +1439,35 @@
  1725. if (exit $ac_status) && test -s "$ac_outfile"; then
  1726. # The compiler can only warn and ignore the option if not recognized
  1727. # So say no if there are warnings other than the usual output.
  1728. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1729. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1730. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1731. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1732. $2=yes
  1733. fi
  1734. fi
  1735. - $rm conftest*
  1736. + $RM conftest*
  1737. ])
  1738. if test x"[$]$2" = xyes; then
  1739. - ifelse([$5], , :, [$5])
  1740. + m4_if([$5], , :, [$5])
  1741. else
  1742. - ifelse([$6], , :, [$6])
  1743. + m4_if([$6], , :, [$6])
  1744. fi
  1745. -])# AC_LIBTOOL_COMPILER_OPTION
  1746. +])# _LT_COMPILER_OPTION
  1747. -
  1748. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1749. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  1750. -# ------------------------------------------------------------
  1751. -# Check whether the given compiler option works
  1752. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  1753. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1754. +# Old name:
  1755. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1756. +dnl aclocal-1.4 backwards compatibility:
  1757. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1758. +
  1759. +
  1760. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1761. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  1762. +# ----------------------------------------------------
  1763. +# Check whether the given linker option works
  1764. +AC_DEFUN([_LT_LINKER_OPTION],
  1765. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1766. +m4_require([_LT_DECL_SED])dnl
  1767. AC_CACHE_CHECK([$1], [$2],
  1768. [$2=no
  1769. save_LDFLAGS="$LDFLAGS"
  1770. @@ -778,7 +1479,7 @@
  1771. if test -s conftest.err; then
  1772. # Append any errors to the config.log.
  1773. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1774. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1775. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1776. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1777. if diff conftest.exp conftest.er2 >/dev/null; then
  1778. $2=yes
  1779. @@ -787,22 +1488,28 @@
  1780. $2=yes
  1781. fi
  1782. fi
  1783. - $rm -r conftest*
  1784. + $RM -r conftest*
  1785. LDFLAGS="$save_LDFLAGS"
  1786. ])
  1787. if test x"[$]$2" = xyes; then
  1788. - ifelse([$4], , :, [$4])
  1789. + m4_if([$4], , :, [$4])
  1790. else
  1791. - ifelse([$5], , :, [$5])
  1792. + m4_if([$5], , :, [$5])
  1793. fi
  1794. -])# AC_LIBTOOL_LINKER_OPTION
  1795. +])# _LT_LINKER_OPTION
  1796. +# Old name:
  1797. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1798. +dnl aclocal-1.4 backwards compatibility:
  1799. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1800. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1801. -# --------------------------
  1802. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  1803. -[# find the maximum length of command line arguments
  1804. +
  1805. +# LT_CMD_MAX_LEN
  1806. +#---------------
  1807. +AC_DEFUN([LT_CMD_MAX_LEN],
  1808. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1809. +# find the maximum length of command line arguments
  1810. AC_MSG_CHECKING([the maximum length of command line arguments])
  1811. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1812. i=0
  1813. @@ -824,7 +1531,7 @@
  1814. lt_cv_sys_max_cmd_len=-1;
  1815. ;;
  1816. - cygwin* | mingw*)
  1817. + cygwin* | mingw* | cegcc*)
  1818. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1819. # about 5 minutes as the teststring grows exponentially.
  1820. # Worse, since 9x/ME are not pre-emptively multitasking,
  1821. @@ -879,7 +1586,7 @@
  1822. sysv5* | sco5v6* | sysv4.2uw2*)
  1823. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1824. if test -n "$kargmax"; then
  1825. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1826. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1827. else
  1828. lt_cv_sys_max_cmd_len=32768
  1829. fi
  1830. @@ -890,20 +1597,28 @@
  1831. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1832. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1833. else
  1834. + # Make teststring a little bigger before we do anything with it.
  1835. + # a 1K string should be a reasonable start.
  1836. + for i in 1 2 3 4 5 6 7 8 ; do
  1837. + teststring=$teststring$teststring
  1838. + done
  1839. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1840. - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1841. - = "XX$teststring") >/dev/null 2>&1 &&
  1842. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1843. - lt_cv_sys_max_cmd_len=$new_result &&
  1844. + # If test is not a shell built-in, we'll probably end up computing a
  1845. + # maximum length that is only half of the actual maximum length, but
  1846. + # we can't tell.
  1847. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  1848. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  1849. test $i != 17 # 1/2 MB should be enough
  1850. do
  1851. i=`expr $i + 1`
  1852. teststring=$teststring$teststring
  1853. done
  1854. + # Only check the string length outside the loop.
  1855. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1856. teststring=
  1857. - # Add a significant safety factor because C++ compilers can tack on massive
  1858. - # amounts of additional arguments before passing them to the linker.
  1859. - # It appears as though 1/2 is a usable value.
  1860. + # Add a significant safety factor because C++ compilers can tack on
  1861. + # massive amounts of additional arguments before passing them to the
  1862. + # linker. It appears as though 1/2 is a usable value.
  1863. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1864. fi
  1865. ;;
  1866. @@ -914,27 +1629,35 @@
  1867. else
  1868. AC_MSG_RESULT(none)
  1869. fi
  1870. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1871. +max_cmd_len=$lt_cv_sys_max_cmd_len
  1872. +_LT_DECL([], [max_cmd_len], [0],
  1873. + [What is the maximum length of a command?])
  1874. +])# LT_CMD_MAX_LEN
  1875. +# Old name:
  1876. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1877. +dnl aclocal-1.4 backwards compatibility:
  1878. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1879. -# _LT_AC_CHECK_DLFCN
  1880. -# ------------------
  1881. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1882. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  1883. -])# _LT_AC_CHECK_DLFCN
  1884. +
  1885. +# _LT_HEADER_DLFCN
  1886. +# ----------------
  1887. +m4_defun([_LT_HEADER_DLFCN],
  1888. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1889. +])# _LT_HEADER_DLFCN
  1890. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1891. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1892. -# ---------------------------------------------------------------------
  1893. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1894. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1895. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1896. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1897. +# ----------------------------------------------------------------
  1898. +m4_defun([_LT_TRY_DLOPEN_SELF],
  1899. +[m4_require([_LT_HEADER_DLFCN])dnl
  1900. if test "$cross_compiling" = yes; then :
  1901. [$4]
  1902. else
  1903. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1904. lt_status=$lt_dlunknown
  1905. - cat > conftest.$ac_ext <<EOF
  1906. + cat > conftest.$ac_ext <<_LT_EOF
  1907. [#line __oline__ "configure"
  1908. #include "confdefs.h"
  1909. @@ -976,10 +1699,6 @@
  1910. # endif
  1911. #endif
  1912. -#ifdef __cplusplus
  1913. -extern "C" void exit (int);
  1914. -#endif
  1915. -
  1916. void fnord() { int i=42;}
  1917. int main ()
  1918. {
  1919. @@ -995,9 +1714,9 @@
  1920. else
  1921. puts (dlerror ());
  1922. - exit (status);
  1923. + return status;
  1924. }]
  1925. -EOF
  1926. +_LT_EOF
  1927. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1928. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1929. lt_status=$?
  1930. @@ -1012,13 +1731,13 @@
  1931. fi
  1932. fi
  1933. rm -fr conftest*
  1934. -])# _LT_AC_TRY_DLOPEN_SELF
  1935. +])# _LT_TRY_DLOPEN_SELF
  1936. -# AC_LIBTOOL_DLOPEN_SELF
  1937. -# ----------------------
  1938. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1939. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1940. +# LT_SYS_DLOPEN_SELF
  1941. +# ------------------
  1942. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1943. +[m4_require([_LT_HEADER_DLFCN])dnl
  1944. if test "x$enable_dlopen" != xyes; then
  1945. enable_dlopen=unknown
  1946. enable_dlopen_self=unknown
  1947. @@ -1034,15 +1753,15 @@
  1948. lt_cv_dlopen_self=yes
  1949. ;;
  1950. - mingw* | pw32*)
  1951. + mingw* | pw32* | cegcc*)
  1952. lt_cv_dlopen="LoadLibrary"
  1953. lt_cv_dlopen_libs=
  1954. - ;;
  1955. + ;;
  1956. cygwin*)
  1957. lt_cv_dlopen="dlopen"
  1958. lt_cv_dlopen_libs=
  1959. - ;;
  1960. + ;;
  1961. darwin*)
  1962. # if libdl is installed we need to link against it
  1963. @@ -1052,7 +1771,7 @@
  1964. lt_cv_dlopen_libs=
  1965. lt_cv_dlopen_self=yes
  1966. ])
  1967. - ;;
  1968. + ;;
  1969. *)
  1970. AC_CHECK_FUNC([shl_load],
  1971. @@ -1094,7 +1813,7 @@
  1972. AC_CACHE_CHECK([whether a program can dlopen itself],
  1973. lt_cv_dlopen_self, [dnl
  1974. - _LT_AC_TRY_DLOPEN_SELF(
  1975. + _LT_TRY_DLOPEN_SELF(
  1976. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1977. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1978. ])
  1979. @@ -1102,8 +1821,8 @@
  1980. if test "x$lt_cv_dlopen_self" = xyes; then
  1981. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1982. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1983. - lt_cv_dlopen_self_static, [dnl
  1984. - _LT_AC_TRY_DLOPEN_SELF(
  1985. + lt_cv_dlopen_self_static, [dnl
  1986. + _LT_TRY_DLOPEN_SELF(
  1987. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1988. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1989. ])
  1990. @@ -1125,19 +1844,32 @@
  1991. *) enable_dlopen_self_static=unknown ;;
  1992. esac
  1993. fi
  1994. -])# AC_LIBTOOL_DLOPEN_SELF
  1995. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  1996. + [Whether dlopen is supported])
  1997. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1998. + [Whether dlopen of programs is supported])
  1999. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  2000. + [Whether dlopen of statically linked programs is supported])
  2001. +])# LT_SYS_DLOPEN_SELF
  2002. +
  2003. +# Old name:
  2004. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  2005. +dnl aclocal-1.4 backwards compatibility:
  2006. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  2007. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  2008. -# ---------------------------------
  2009. -# Check to see if options -c and -o are simultaneously supported by compiler
  2010. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  2011. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  2012. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  2013. +# _LT_COMPILER_C_O([TAGNAME])
  2014. +# ---------------------------
  2015. +# Check to see if options -c and -o are simultaneously supported by compiler.
  2016. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2017. +m4_defun([_LT_COMPILER_C_O],
  2018. +[m4_require([_LT_DECL_SED])dnl
  2019. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2020. +m4_require([_LT_TAG_COMPILER])dnl
  2021. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  2022. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2023. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2024. - $rm -r conftest 2>/dev/null
  2025. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2026. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2027. + $RM -r conftest 2>/dev/null
  2028. mkdir conftest
  2029. cd conftest
  2030. mkdir out
  2031. @@ -1161,37 +1893,41 @@
  2032. then
  2033. # The compiler can only warn and ignore the option if not recognized
  2034. # So say no if there are warnings
  2035. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  2036. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  2037. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  2038. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  2039. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2040. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2041. fi
  2042. fi
  2043. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  2044. - $rm conftest*
  2045. + $RM conftest*
  2046. # SGI C++ compiler will create directory out/ii_files/ for
  2047. # template instantiation
  2048. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  2049. - $rm out/* && rmdir out
  2050. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  2051. + $RM out/* && rmdir out
  2052. cd ..
  2053. - rmdir conftest
  2054. - $rm conftest*
  2055. + $RM -r conftest
  2056. + $RM conftest*
  2057. ])
  2058. -])# AC_LIBTOOL_PROG_CC_C_O
  2059. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  2060. + [Does compiler simultaneously support -c and -o options?])
  2061. +])# _LT_COMPILER_C_O
  2062. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  2063. -# -----------------------------------------
  2064. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2065. +# ----------------------------------
  2066. # Check to see if we can do hard links to lock some files if needed
  2067. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  2068. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  2069. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  2070. +[m4_require([_LT_ENABLE_LOCK])dnl
  2071. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2072. +_LT_COMPILER_C_O([$1])
  2073. hard_links="nottested"
  2074. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2075. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2076. # do not overwrite the value of need_locks provided by the user
  2077. AC_MSG_CHECKING([if we can lock with hard links])
  2078. hard_links=yes
  2079. - $rm conftest*
  2080. + $RM conftest*
  2081. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2082. touch conftest.a
  2083. ln conftest.a conftest.b 2>&5 || hard_links=no
  2084. @@ -1204,12 +1940,13 @@
  2085. else
  2086. need_locks=no
  2087. fi
  2088. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  2089. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  2090. +])# _LT_COMPILER_FILE_LOCKS
  2091. -# AC_LIBTOOL_OBJDIR
  2092. -# -----------------
  2093. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  2094. +# _LT_CHECK_OBJDIR
  2095. +# ----------------
  2096. +m4_defun([_LT_CHECK_OBJDIR],
  2097. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  2098. [rm -f .libs 2>/dev/null
  2099. mkdir .libs 2>/dev/null
  2100. @@ -1221,40 +1958,46 @@
  2101. fi
  2102. rmdir .libs 2>/dev/null])
  2103. objdir=$lt_cv_objdir
  2104. -])# AC_LIBTOOL_OBJDIR
  2105. +_LT_DECL([], [objdir], [0],
  2106. + [The name of the directory that contains temporary libtool files])dnl
  2107. +m4_pattern_allow([LT_OBJDIR])dnl
  2108. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  2109. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  2110. +])# _LT_CHECK_OBJDIR
  2111. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  2112. -# ----------------------------------------------
  2113. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2114. +# --------------------------------------
  2115. # Check hardcoding attributes.
  2116. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  2117. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  2118. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  2119. -_LT_AC_TAGVAR(hardcode_action, $1)=
  2120. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  2121. - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  2122. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2123. +_LT_TAGVAR(hardcode_action, $1)=
  2124. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  2125. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  2126. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2127. - # We can hardcode non-existant directories.
  2128. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  2129. + # We can hardcode non-existent directories.
  2130. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  2131. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2132. # have to relink, otherwise we might link with an installed library
  2133. # when we should be linking with a yet-to-be-installed one
  2134. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2135. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  2136. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2137. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  2138. # Linking always hardcodes the temporary library directory.
  2139. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  2140. + _LT_TAGVAR(hardcode_action, $1)=relink
  2141. else
  2142. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2143. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  2144. + _LT_TAGVAR(hardcode_action, $1)=immediate
  2145. fi
  2146. else
  2147. # We cannot hardcode anything, or else we can only hardcode existing
  2148. # directories.
  2149. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  2150. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  2151. fi
  2152. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  2153. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  2154. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  2155. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  2156. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  2157. # Fast installation is not supported
  2158. enable_fast_install=no
  2159. elif test "$shlibpath_overrides_runpath" = yes ||
  2160. @@ -1262,73 +2005,70 @@
  2161. # Fast installation is not necessary
  2162. enable_fast_install=needless
  2163. fi
  2164. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  2165. +_LT_TAGDECL([], [hardcode_action], [0],
  2166. + [How to hardcode a shared library path into an executable])
  2167. +])# _LT_LINKER_HARDCODE_LIBPATH
  2168. -# AC_LIBTOOL_SYS_LIB_STRIP
  2169. -# ------------------------
  2170. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  2171. -[striplib=
  2172. +# _LT_CMD_STRIPLIB
  2173. +# ----------------
  2174. +m4_defun([_LT_CMD_STRIPLIB],
  2175. +[m4_require([_LT_DECL_EGREP])
  2176. +striplib=
  2177. old_striplib=
  2178. AC_MSG_CHECKING([whether stripping libraries is possible])
  2179. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  2180. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  2181. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2182. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2183. AC_MSG_RESULT([yes])
  2184. else
  2185. # FIXME - insert some real tests, host_os isn't really good enough
  2186. case $host_os in
  2187. - darwin*)
  2188. - if test -n "$STRIP" ; then
  2189. - striplib="$STRIP -x"
  2190. - old_striplib="$STRIP -S"
  2191. - AC_MSG_RESULT([yes])
  2192. - else
  2193. - AC_MSG_RESULT([no])
  2194. -fi
  2195. - ;;
  2196. - *)
  2197. - AC_MSG_RESULT([no])
  2198. + darwin*)
  2199. + if test -n "$STRIP" ; then
  2200. + striplib="$STRIP -x"
  2201. + old_striplib="$STRIP -S"
  2202. + AC_MSG_RESULT([yes])
  2203. + else
  2204. + AC_MSG_RESULT([no])
  2205. + fi
  2206. + ;;
  2207. + *)
  2208. + AC_MSG_RESULT([no])
  2209. ;;
  2210. esac
  2211. fi
  2212. -])# AC_LIBTOOL_SYS_LIB_STRIP
  2213. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  2214. +_LT_DECL([], [striplib], [1])
  2215. +])# _LT_CMD_STRIPLIB
  2216. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2217. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  2218. # -----------------------------
  2219. # PORTME Fill in your ld.so characteristics
  2220. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  2221. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  2222. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  2223. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2224. +m4_require([_LT_DECL_EGREP])dnl
  2225. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2226. +m4_require([_LT_DECL_OBJDUMP])dnl
  2227. +m4_require([_LT_DECL_SED])dnl
  2228. AC_MSG_CHECKING([dynamic linker characteristics])
  2229. -library_names_spec=
  2230. -libname_spec='lib$name'
  2231. -soname_spec=
  2232. -shrext_cmds=".so"
  2233. -postinstall_cmds=
  2234. -postuninstall_cmds=
  2235. -finish_cmds=
  2236. -finish_eval=
  2237. -shlibpath_var=
  2238. -shlibpath_overrides_runpath=unknown
  2239. -version_type=none
  2240. -dynamic_linker="$host_os ld.so"
  2241. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2242. -m4_if($1,[],[
  2243. +m4_if([$1],
  2244. + [], [
  2245. if test "$GCC" = yes; then
  2246. case $host_os in
  2247. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  2248. *) lt_awk_arg="/^libraries:/" ;;
  2249. esac
  2250. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2251. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  2252. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  2253. # if the path contains ";" then we assume it to be the separator
  2254. # otherwise default to the standard path separator (i.e. ":") - it is
  2255. # assumed that no part of a normal pathname contains ";" but that should
  2256. # okay in the real world where ";" in dirpaths is itself problematic.
  2257. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  2258. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  2259. else
  2260. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2261. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2262. fi
  2263. # Ok, now we have the path, separated by spaces, we can step through it
  2264. # and add multilib dir if necessary.
  2265. @@ -1342,7 +2082,7 @@
  2266. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2267. fi
  2268. done
  2269. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  2270. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  2271. BEGIN {RS=" "; FS="/|\n";} {
  2272. lt_foo="";
  2273. lt_count=0;
  2274. @@ -1362,10 +2102,23 @@
  2275. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  2276. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  2277. }'`
  2278. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  2279. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  2280. else
  2281. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2282. fi])
  2283. +library_names_spec=
  2284. +libname_spec='lib$name'
  2285. +soname_spec=
  2286. +shrext_cmds=".so"
  2287. +postinstall_cmds=
  2288. +postuninstall_cmds=
  2289. +finish_cmds=
  2290. +finish_eval=
  2291. +shlibpath_var=
  2292. +shlibpath_overrides_runpath=unknown
  2293. +version_type=none
  2294. +dynamic_linker="$host_os ld.so"
  2295. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2296. need_lib_prefix=unknown
  2297. hardcode_into_libs=no
  2298. @@ -1402,7 +2155,7 @@
  2299. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2300. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2301. echo ' yes '
  2302. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  2303. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2304. :
  2305. else
  2306. can_build_shared=no
  2307. @@ -1428,9 +2181,18 @@
  2308. ;;
  2309. amigaos*)
  2310. - library_names_spec='$libname.ixlibrary $libname.a'
  2311. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2312. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  2313. + case $host_cpu in
  2314. + powerpc)
  2315. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  2316. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2317. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2318. + ;;
  2319. + m68k)
  2320. + library_names_spec='$libname.ixlibrary $libname.a'
  2321. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2322. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  2323. + ;;
  2324. + esac
  2325. ;;
  2326. beos*)
  2327. @@ -1453,25 +2215,28 @@
  2328. # libtool to hard-code these into programs
  2329. ;;
  2330. -cygwin* | mingw* | pw32*)
  2331. +cygwin* | mingw* | pw32* | cegcc*)
  2332. version_type=windows
  2333. shrext_cmds=".dll"
  2334. need_version=no
  2335. need_lib_prefix=no
  2336. case $GCC,$host_os in
  2337. - yes,cygwin* | yes,mingw* | yes,pw32*)
  2338. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  2339. library_names_spec='$libname.dll.a'
  2340. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2341. postinstall_cmds='base_file=`basename \${file}`~
  2342. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  2343. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2344. dldir=$destdir/`dirname \$dlpath`~
  2345. test -d \$dldir || mkdir -p \$dldir~
  2346. $install_prog $dir/$dlname \$dldir/$dlname~
  2347. - chmod a+x \$dldir/$dlname'
  2348. + chmod a+x \$dldir/$dlname~
  2349. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2350. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2351. + fi'
  2352. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2353. dlpath=$dir/\$dldll~
  2354. - $rm \$dlpath'
  2355. + $RM \$dlpath'
  2356. shlibpath_overrides_runpath=yes
  2357. case $host_os in
  2358. @@ -1480,20 +2245,20 @@
  2359. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2360. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2361. ;;
  2362. - mingw*)
  2363. + mingw* | cegcc*)
  2364. # MinGW DLLs use traditional 'lib' prefix
  2365. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2366. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2367. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  2368. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2369. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2370. # It is most probably a Windows format PATH printed by
  2371. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2372. # path with ; separators, and with drive letters. We can handle the
  2373. # drive letters (cygwin fileutils understands them), so leave them,
  2374. # especially as we might pass files found there to a mingw objdump,
  2375. # which wouldn't understand a cygwinified path. Ahh.
  2376. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2377. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2378. else
  2379. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2380. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2381. fi
  2382. ;;
  2383. pw32*)
  2384. @@ -1517,13 +2282,13 @@
  2385. version_type=darwin
  2386. need_lib_prefix=no
  2387. need_version=no
  2388. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2389. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2390. soname_spec='${libname}${release}${major}$shared_ext'
  2391. shlibpath_overrides_runpath=yes
  2392. shlibpath_var=DYLD_LIBRARY_PATH
  2393. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2394. - m4_if([$1], [],[
  2395. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2396. +m4_if([$1], [],[
  2397. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2398. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2399. ;;
  2400. @@ -1616,18 +2381,18 @@
  2401. fi
  2402. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2403. ;;
  2404. - hppa*64*)
  2405. - shrext_cmds='.sl'
  2406. - hardcode_into_libs=yes
  2407. - dynamic_linker="$host_os dld.sl"
  2408. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2409. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2410. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2411. - soname_spec='${libname}${release}${shared_ext}$major'
  2412. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2413. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2414. - ;;
  2415. - *)
  2416. + hppa*64*)
  2417. + shrext_cmds='.sl'
  2418. + hardcode_into_libs=yes
  2419. + dynamic_linker="$host_os dld.sl"
  2420. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2421. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2422. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2423. + soname_spec='${libname}${release}${shared_ext}$major'
  2424. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2425. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2426. + ;;
  2427. + *)
  2428. shrext_cmds='.sl'
  2429. dynamic_linker="$host_os dld.sl"
  2430. shlibpath_var=SHLIB_PATH
  2431. @@ -1695,7 +2460,7 @@
  2432. ;;
  2433. # This must be Linux ELF.
  2434. -linux* | k*bsd*-gnu)
  2435. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2436. version_type=linux
  2437. need_lib_prefix=no
  2438. need_version=no
  2439. @@ -1704,17 +2469,26 @@
  2440. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2441. shlibpath_var=LD_LIBRARY_PATH
  2442. shlibpath_overrides_runpath=no
  2443. + # Some binutils ld are patched to set DT_RUNPATH
  2444. + save_LDFLAGS=$LDFLAGS
  2445. + save_libdir=$libdir
  2446. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2447. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2448. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2449. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2450. + [shlibpath_overrides_runpath=yes])])
  2451. + LDFLAGS=$save_LDFLAGS
  2452. + libdir=$save_libdir
  2453. +
  2454. # This implies no fast_install, which is unacceptable.
  2455. # Some rework will be needed to allow for fast_install
  2456. # before this can be enabled.
  2457. hardcode_into_libs=yes
  2458. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2459. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2460. # Append ld.so.conf contents to the search path
  2461. if test -f /etc/ld.so.conf; then
  2462. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  2463. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  2464. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  2465. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2466. fi
  2467. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2468. @@ -1726,11 +2500,23 @@
  2469. dynamic_linker='GNU/Linux ld.so'
  2470. ;;
  2471. +netbsdelf*-gnu)
  2472. + version_type=linux
  2473. + need_lib_prefix=no
  2474. + need_version=no
  2475. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2476. + soname_spec='${libname}${release}${shared_ext}$major'
  2477. + shlibpath_var=LD_LIBRARY_PATH
  2478. + shlibpath_overrides_runpath=no
  2479. + hardcode_into_libs=yes
  2480. + dynamic_linker='NetBSD ld.elf_so'
  2481. + ;;
  2482. +
  2483. netbsd*)
  2484. version_type=sunos
  2485. need_lib_prefix=no
  2486. need_version=no
  2487. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2488. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2489. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2490. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2491. dynamic_linker='NetBSD (a.out) ld.so'
  2492. @@ -1751,14 +2537,16 @@
  2493. shlibpath_overrides_runpath=yes
  2494. ;;
  2495. -nto-qnx*)
  2496. - version_type=linux
  2497. +*nto* | *qnx*)
  2498. + version_type=qnx
  2499. need_lib_prefix=no
  2500. need_version=no
  2501. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2502. soname_spec='${libname}${release}${shared_ext}$major'
  2503. shlibpath_var=LD_LIBRARY_PATH
  2504. - shlibpath_overrides_runpath=yes
  2505. + shlibpath_overrides_runpath=no
  2506. + hardcode_into_libs=yes
  2507. + dynamic_linker='ldqnx.so'
  2508. ;;
  2509. openbsd*)
  2510. @@ -1767,13 +2555,13 @@
  2511. need_lib_prefix=no
  2512. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2513. case $host_os in
  2514. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2515. - *) need_version=no ;;
  2516. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2517. + *) need_version=no ;;
  2518. esac
  2519. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2520. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2521. shlibpath_var=LD_LIBRARY_PATH
  2522. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2523. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2524. case $host_os in
  2525. openbsd2.[[89]] | openbsd2.[[89]].*)
  2526. shlibpath_overrides_runpath=no
  2527. @@ -1845,7 +2633,6 @@
  2528. sni)
  2529. shlibpath_overrides_runpath=no
  2530. need_lib_prefix=no
  2531. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  2532. runpath_var=LD_RUN_PATH
  2533. ;;
  2534. siemens)
  2535. @@ -1876,13 +2663,12 @@
  2536. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2537. soname_spec='${libname}${release}${shared_ext}$major'
  2538. shlibpath_var=LD_LIBRARY_PATH
  2539. + shlibpath_overrides_runpath=yes
  2540. hardcode_into_libs=yes
  2541. if test "$with_gnu_ld" = yes; then
  2542. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2543. - shlibpath_overrides_runpath=no
  2544. else
  2545. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2546. - shlibpath_overrides_runpath=yes
  2547. case $host_os in
  2548. sco3.2v5*)
  2549. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2550. @@ -1892,6 +2678,17 @@
  2551. sys_lib_dlsearch_path_spec='/usr/lib'
  2552. ;;
  2553. +tpf*)
  2554. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2555. + version_type=linux
  2556. + need_lib_prefix=no
  2557. + need_version=no
  2558. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2559. + shlibpath_var=LD_LIBRARY_PATH
  2560. + shlibpath_overrides_runpath=no
  2561. + hardcode_into_libs=yes
  2562. + ;;
  2563. +
  2564. uts4*)
  2565. version_type=linux
  2566. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2567. @@ -1906,288 +2703,58 @@
  2568. AC_MSG_RESULT([$dynamic_linker])
  2569. test "$dynamic_linker" = no && can_build_shared=no
  2570. -AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
  2571. -[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
  2572. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2573. -AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
  2574. -[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
  2575. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2576. -
  2577. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2578. if test "$GCC" = yes; then
  2579. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2580. fi
  2581. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2582. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2583. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2584. +fi
  2585. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2586. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2587. +fi
  2588. -# _LT_AC_TAGCONFIG
  2589. -# ----------------
  2590. -AC_DEFUN([_LT_AC_TAGCONFIG],
  2591. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  2592. -AC_ARG_WITH([tags],
  2593. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  2594. - [include additional configurations @<:@automatic@:>@])],
  2595. - [tagnames="$withval"])
  2596. -
  2597. -if test -f "$ltmain" && test -n "$tagnames"; then
  2598. - if test ! -f "${ofile}"; then
  2599. - AC_MSG_WARN([output file `$ofile' does not exist])
  2600. - fi
  2601. -
  2602. - if test -z "$LTCC"; then
  2603. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  2604. - if test -z "$LTCC"; then
  2605. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  2606. - else
  2607. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  2608. - fi
  2609. - fi
  2610. - if test -z "$LTCFLAGS"; then
  2611. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  2612. - fi
  2613. -
  2614. - # Extract list of available tagged configurations in $ofile.
  2615. - # Note that this assumes the entire list is on one line.
  2616. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  2617. -
  2618. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2619. - for tagname in $tagnames; do
  2620. - IFS="$lt_save_ifs"
  2621. - # Check whether tagname contains only valid characters
  2622. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  2623. - "") ;;
  2624. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  2625. - ;;
  2626. - esac
  2627. -
  2628. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  2629. - then
  2630. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  2631. - fi
  2632. -
  2633. - # Update the list of available tags.
  2634. - if test -n "$tagname"; then
  2635. - echo appending configuration tag \"$tagname\" to $ofile
  2636. -
  2637. - case $tagname in
  2638. - CXX)
  2639. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  2640. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  2641. - (test "X$CXX" != "Xg++"))) ; then
  2642. - AC_LIBTOOL_LANG_CXX_CONFIG
  2643. - else
  2644. - tagname=""
  2645. - fi
  2646. - ;;
  2647. -
  2648. - F77)
  2649. - if test -n "$F77" && test "X$F77" != "Xno"; then
  2650. - AC_LIBTOOL_LANG_F77_CONFIG
  2651. - else
  2652. - tagname=""
  2653. - fi
  2654. - ;;
  2655. -
  2656. - GCJ)
  2657. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  2658. - AC_LIBTOOL_LANG_GCJ_CONFIG
  2659. - else
  2660. - tagname=""
  2661. - fi
  2662. - ;;
  2663. -
  2664. - RC)
  2665. - AC_LIBTOOL_LANG_RC_CONFIG
  2666. - ;;
  2667. -
  2668. - *)
  2669. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  2670. - ;;
  2671. - esac
  2672. -
  2673. - # Append the new tag name to the list of available tags.
  2674. - if test -n "$tagname" ; then
  2675. - available_tags="$available_tags $tagname"
  2676. - fi
  2677. - fi
  2678. - done
  2679. - IFS="$lt_save_ifs"
  2680. -
  2681. - # Now substitute the updated list of available tags.
  2682. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  2683. - mv "${ofile}T" "$ofile"
  2684. - chmod +x "$ofile"
  2685. - else
  2686. - rm -f "${ofile}T"
  2687. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  2688. - fi
  2689. -fi
  2690. -])# _LT_AC_TAGCONFIG
  2691. -
  2692. -
  2693. -# AC_LIBTOOL_DLOPEN
  2694. -# -----------------
  2695. -# enable checks for dlopen support
  2696. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  2697. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  2698. -])# AC_LIBTOOL_DLOPEN
  2699. -
  2700. -
  2701. -# AC_LIBTOOL_WIN32_DLL
  2702. -# --------------------
  2703. -# declare package support for building win32 DLLs
  2704. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  2705. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  2706. -])# AC_LIBTOOL_WIN32_DLL
  2707. -
  2708. -
  2709. -# AC_ENABLE_SHARED([DEFAULT])
  2710. -# ---------------------------
  2711. -# implement the --enable-shared flag
  2712. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2713. -AC_DEFUN([AC_ENABLE_SHARED],
  2714. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  2715. -AC_ARG_ENABLE([shared],
  2716. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  2717. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  2718. - [p=${PACKAGE-default}
  2719. - case $enableval in
  2720. - yes) enable_shared=yes ;;
  2721. - no) enable_shared=no ;;
  2722. - *)
  2723. - enable_shared=no
  2724. - # Look at the argument we got. We use all the common list separators.
  2725. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2726. - for pkg in $enableval; do
  2727. - IFS="$lt_save_ifs"
  2728. - if test "X$pkg" = "X$p"; then
  2729. - enable_shared=yes
  2730. - fi
  2731. - done
  2732. - IFS="$lt_save_ifs"
  2733. - ;;
  2734. - esac],
  2735. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  2736. -])# AC_ENABLE_SHARED
  2737. -
  2738. -
  2739. -# AC_DISABLE_SHARED
  2740. -# -----------------
  2741. -# set the default shared flag to --disable-shared
  2742. -AC_DEFUN([AC_DISABLE_SHARED],
  2743. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2744. -AC_ENABLE_SHARED(no)
  2745. -])# AC_DISABLE_SHARED
  2746. -
  2747. -
  2748. -# AC_ENABLE_STATIC([DEFAULT])
  2749. -# ---------------------------
  2750. -# implement the --enable-static flag
  2751. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2752. -AC_DEFUN([AC_ENABLE_STATIC],
  2753. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  2754. -AC_ARG_ENABLE([static],
  2755. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  2756. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  2757. - [p=${PACKAGE-default}
  2758. - case $enableval in
  2759. - yes) enable_static=yes ;;
  2760. - no) enable_static=no ;;
  2761. - *)
  2762. - enable_static=no
  2763. - # Look at the argument we got. We use all the common list separators.
  2764. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2765. - for pkg in $enableval; do
  2766. - IFS="$lt_save_ifs"
  2767. - if test "X$pkg" = "X$p"; then
  2768. - enable_static=yes
  2769. - fi
  2770. - done
  2771. - IFS="$lt_save_ifs"
  2772. - ;;
  2773. - esac],
  2774. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  2775. -])# AC_ENABLE_STATIC
  2776. -
  2777. -
  2778. -# AC_DISABLE_STATIC
  2779. -# -----------------
  2780. -# set the default static flag to --disable-static
  2781. -AC_DEFUN([AC_DISABLE_STATIC],
  2782. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2783. -AC_ENABLE_STATIC(no)
  2784. -])# AC_DISABLE_STATIC
  2785. -
  2786. -
  2787. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  2788. -# ---------------------------------
  2789. -# implement the --enable-fast-install flag
  2790. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2791. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  2792. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  2793. -AC_ARG_ENABLE([fast-install],
  2794. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  2795. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  2796. - [p=${PACKAGE-default}
  2797. - case $enableval in
  2798. - yes) enable_fast_install=yes ;;
  2799. - no) enable_fast_install=no ;;
  2800. - *)
  2801. - enable_fast_install=no
  2802. - # Look at the argument we got. We use all the common list separators.
  2803. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2804. - for pkg in $enableval; do
  2805. - IFS="$lt_save_ifs"
  2806. - if test "X$pkg" = "X$p"; then
  2807. - enable_fast_install=yes
  2808. - fi
  2809. - done
  2810. - IFS="$lt_save_ifs"
  2811. - ;;
  2812. - esac],
  2813. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  2814. -])# AC_ENABLE_FAST_INSTALL
  2815. +_LT_DECL([], [variables_saved_for_relink], [1],
  2816. + [Variables whose values should be saved in libtool wrapper scripts and
  2817. + restored at link time])
  2818. +_LT_DECL([], [need_lib_prefix], [0],
  2819. + [Do we need the "lib" prefix for modules?])
  2820. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2821. +_LT_DECL([], [version_type], [0], [Library versioning type])
  2822. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2823. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2824. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  2825. + [Is shlibpath searched before the hard-coded library search path?])
  2826. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2827. +_LT_DECL([], [library_names_spec], [1],
  2828. + [[List of archive names. First name is the real one, the rest are links.
  2829. + The last name is the one that the linker finds with -lNAME]])
  2830. +_LT_DECL([], [soname_spec], [1],
  2831. + [[The coded name of the library, if different from the real name]])
  2832. +_LT_DECL([], [postinstall_cmds], [2],
  2833. + [Command to use after installation of a shared archive])
  2834. +_LT_DECL([], [postuninstall_cmds], [2],
  2835. + [Command to use after uninstallation of a shared archive])
  2836. +_LT_DECL([], [finish_cmds], [2],
  2837. + [Commands used to finish a libtool library installation in a directory])
  2838. +_LT_DECL([], [finish_eval], [1],
  2839. + [[As "finish_cmds", except a single script fragment to be evaled but
  2840. + not shown]])
  2841. +_LT_DECL([], [hardcode_into_libs], [0],
  2842. + [Whether we should hardcode library paths into libraries])
  2843. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  2844. + [Compile-time system search path for libraries])
  2845. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2846. + [Run-time system search path for libraries])
  2847. +])# _LT_SYS_DYNAMIC_LINKER
  2848. -# AC_DISABLE_FAST_INSTALL
  2849. -# -----------------------
  2850. -# set the default to --disable-fast-install
  2851. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  2852. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2853. -AC_ENABLE_FAST_INSTALL(no)
  2854. -])# AC_DISABLE_FAST_INSTALL
  2855. -
  2856. -
  2857. -# AC_LIBTOOL_PICMODE([MODE])
  2858. +# _LT_PATH_TOOL_PREFIX(TOOL)
  2859. # --------------------------
  2860. -# implement the --with-pic flag
  2861. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  2862. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  2863. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2864. -pic_mode=ifelse($#,1,$1,default)
  2865. -])# AC_LIBTOOL_PICMODE
  2866. -
  2867. -
  2868. -# AC_PROG_EGREP
  2869. -# -------------
  2870. -# This is predefined starting with Autoconf 2.54, so this conditional
  2871. -# definition can be removed once we require Autoconf 2.54 or later.
  2872. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  2873. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  2874. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2875. - then ac_cv_prog_egrep='grep -E'
  2876. - else ac_cv_prog_egrep='egrep'
  2877. - fi])
  2878. - EGREP=$ac_cv_prog_egrep
  2879. - AC_SUBST([EGREP])
  2880. -])])
  2881. -
  2882. -
  2883. -# AC_PATH_TOOL_PREFIX
  2884. -# -------------------
  2885. # find a file program which can recognize shared library
  2886. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  2887. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  2888. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2889. +[m4_require([_LT_DECL_EGREP])dnl
  2890. AC_MSG_CHECKING([for $1])
  2891. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2892. [case $MAGIC_CMD in
  2893. @@ -2200,7 +2767,7 @@
  2894. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2895. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2896. dnl not every word. This closes a longstanding sh security hole.
  2897. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  2898. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  2899. for ac_dir in $ac_dummy; do
  2900. IFS="$lt_save_ifs"
  2901. test -z "$ac_dir" && ac_dir=.
  2902. @@ -2215,7 +2782,7 @@
  2903. $EGREP "$file_magic_regex" > /dev/null; then
  2904. :
  2905. else
  2906. - cat <<EOF 1>&2
  2907. + cat <<_LT_EOF 1>&2
  2908. *** Warning: the command libtool uses to detect shared libraries,
  2909. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2910. @@ -2226,7 +2793,7 @@
  2911. *** may want to report the problem to your system manager and/or to
  2912. *** bug-libtool@gnu.org
  2913. -EOF
  2914. +_LT_EOF
  2915. fi ;;
  2916. esac
  2917. fi
  2918. @@ -2243,37 +2810,47 @@
  2919. else
  2920. AC_MSG_RESULT(no)
  2921. fi
  2922. -])# AC_PATH_TOOL_PREFIX
  2923. +_LT_DECL([], [MAGIC_CMD], [0],
  2924. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2925. +])# _LT_PATH_TOOL_PREFIX
  2926. +# Old name:
  2927. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2928. +dnl aclocal-1.4 backwards compatibility:
  2929. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2930. -# AC_PATH_MAGIC
  2931. -# -------------
  2932. +
  2933. +# _LT_PATH_MAGIC
  2934. +# --------------
  2935. # find a file program which can recognize a shared library
  2936. -AC_DEFUN([AC_PATH_MAGIC],
  2937. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2938. +m4_defun([_LT_PATH_MAGIC],
  2939. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2940. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2941. if test -n "$ac_tool_prefix"; then
  2942. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2943. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2944. else
  2945. MAGIC_CMD=:
  2946. fi
  2947. fi
  2948. -])# AC_PATH_MAGIC
  2949. +])# _LT_PATH_MAGIC
  2950. -# AC_PROG_LD
  2951. +# LT_PATH_LD
  2952. # ----------
  2953. # find the pathname to the GNU or non-GNU linker
  2954. -AC_DEFUN([AC_PROG_LD],
  2955. -[AC_ARG_WITH([gnu-ld],
  2956. - [AC_HELP_STRING([--with-gnu-ld],
  2957. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2958. - [test "$withval" = no || with_gnu_ld=yes],
  2959. - [with_gnu_ld=no])
  2960. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  2961. -AC_REQUIRE([AC_PROG_CC])dnl
  2962. +AC_DEFUN([LT_PATH_LD],
  2963. +[AC_REQUIRE([AC_PROG_CC])dnl
  2964. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2965. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2966. +m4_require([_LT_DECL_SED])dnl
  2967. +m4_require([_LT_DECL_EGREP])dnl
  2968. +
  2969. +AC_ARG_WITH([gnu-ld],
  2970. + [AS_HELP_STRING([--with-gnu-ld],
  2971. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2972. + [test "$withval" = no || with_gnu_ld=yes],
  2973. + [with_gnu_ld=no])dnl
  2974. +
  2975. ac_prog=ld
  2976. if test "$GCC" = yes; then
  2977. # Check if gcc -print-prog-name=ld gives a path.
  2978. @@ -2290,9 +2867,9 @@
  2979. [[\\/]]* | ?:[[\\/]]*)
  2980. re_direlt='/[[^/]][[^/]]*/\.\./'
  2981. # Canonicalize the pathname of ld
  2982. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  2983. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2984. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  2985. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2986. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2987. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2988. done
  2989. test -z "$LD" && LD="$ac_prog"
  2990. ;;
  2991. @@ -2342,15 +2919,24 @@
  2992. AC_MSG_RESULT(no)
  2993. fi
  2994. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2995. -AC_PROG_LD_GNU
  2996. -])# AC_PROG_LD
  2997. +_LT_PATH_LD_GNU
  2998. +AC_SUBST([LD])
  2999. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  3000. +])# LT_PATH_LD
  3001. -# AC_PROG_LD_GNU
  3002. -# --------------
  3003. -AC_DEFUN([AC_PROG_LD_GNU],
  3004. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3005. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3006. +# Old names:
  3007. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  3008. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  3009. +dnl aclocal-1.4 backwards compatibility:
  3010. +dnl AC_DEFUN([AM_PROG_LD], [])
  3011. +dnl AC_DEFUN([AC_PROG_LD], [])
  3012. +
  3013. +
  3014. +# _LT_PATH_LD_GNU
  3015. +#- --------------
  3016. +m4_defun([_LT_PATH_LD_GNU],
  3017. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3018. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3019. case `$LD -v 2>&1 </dev/null` in
  3020. *GNU* | *'with BFD'*)
  3021. @@ -2361,14 +2947,14 @@
  3022. ;;
  3023. esac])
  3024. with_gnu_ld=$lt_cv_prog_gnu_ld
  3025. -])# AC_PROG_LD_GNU
  3026. +])# _LT_PATH_LD_GNU
  3027. -# AC_PROG_LD_RELOAD_FLAG
  3028. -# ----------------------
  3029. +# _LT_CMD_RELOAD
  3030. +# --------------
  3031. # find reload flag for linker
  3032. # -- PORTME Some linkers may need a different reload flag.
  3033. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  3034. +m4_defun([_LT_CMD_RELOAD],
  3035. [AC_CACHE_CHECK([for $LD option to reload object files],
  3036. lt_cv_ld_reload_flag,
  3037. [lt_cv_ld_reload_flag='-r'])
  3038. @@ -2387,15 +2973,19 @@
  3039. fi
  3040. ;;
  3041. esac
  3042. -])# AC_PROG_LD_RELOAD_FLAG
  3043. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  3044. +_LT_DECL([], [reload_cmds], [2])dnl
  3045. +])# _LT_CMD_RELOAD
  3046. -# AC_DEPLIBS_CHECK_METHOD
  3047. -# -----------------------
  3048. +# _LT_CHECK_MAGIC_METHOD
  3049. +# ----------------------
  3050. # how to check for library dependencies
  3051. # -- PORTME fill in with the dynamic library characteristics
  3052. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  3053. -[AC_CACHE_CHECK([how to recognize dependent libraries],
  3054. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  3055. +[m4_require([_LT_DECL_EGREP])
  3056. +m4_require([_LT_DECL_OBJDUMP])
  3057. +AC_CACHE_CHECK([how to recognize dependent libraries],
  3058. lt_cv_deplibs_check_method,
  3059. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  3060. lt_cv_file_magic_test_file=
  3061. @@ -2445,12 +3035,18 @@
  3062. fi
  3063. ;;
  3064. +cegcc)
  3065. + # use the weaker test based on 'objdump'. See mingw*.
  3066. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  3067. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  3068. + ;;
  3069. +
  3070. darwin* | rhapsody*)
  3071. lt_cv_deplibs_check_method=pass_all
  3072. ;;
  3073. freebsd* | dragonfly*)
  3074. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3075. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3076. case $host_cpu in
  3077. i*86 )
  3078. # Not sure whether the presence of OpenBSD here was a mistake.
  3079. @@ -2503,12 +3099,12 @@
  3080. ;;
  3081. # This must be Linux ELF.
  3082. -linux* | k*bsd*-gnu)
  3083. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3084. lt_cv_deplibs_check_method=pass_all
  3085. ;;
  3086. -netbsd*)
  3087. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3088. +netbsd* | netbsdelf*-gnu)
  3089. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3090. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3091. else
  3092. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3093. @@ -2521,12 +3117,12 @@
  3094. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3095. ;;
  3096. -nto-qnx*)
  3097. - lt_cv_deplibs_check_method=unknown
  3098. +*nto* | *qnx*)
  3099. + lt_cv_deplibs_check_method=pass_all
  3100. ;;
  3101. openbsd*)
  3102. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3103. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3104. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3105. else
  3106. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3107. @@ -2545,6 +3141,10 @@
  3108. lt_cv_deplibs_check_method=pass_all
  3109. ;;
  3110. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3111. + lt_cv_deplibs_check_method=pass_all
  3112. + ;;
  3113. +
  3114. sysv4 | sysv4.3*)
  3115. case $host_vendor in
  3116. motorola)
  3117. @@ -2572,7 +3172,7 @@
  3118. esac
  3119. ;;
  3120. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3121. +tpf*)
  3122. lt_cv_deplibs_check_method=pass_all
  3123. ;;
  3124. esac
  3125. @@ -2580,14 +3180,20 @@
  3126. file_magic_cmd=$lt_cv_file_magic_cmd
  3127. deplibs_check_method=$lt_cv_deplibs_check_method
  3128. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3129. -])# AC_DEPLIBS_CHECK_METHOD
  3130. +_LT_DECL([], [deplibs_check_method], [1],
  3131. + [Method to check whether dependent libraries are shared objects])
  3132. +_LT_DECL([], [file_magic_cmd], [1],
  3133. + [Command to use when deplibs_check_method == "file_magic"])
  3134. +])# _LT_CHECK_MAGIC_METHOD
  3135. -# AC_PROG_NM
  3136. +
  3137. +# LT_PATH_NM
  3138. # ----------
  3139. -# find the pathname to a BSD-compatible name lister
  3140. -AC_DEFUN([AC_PROG_NM],
  3141. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  3142. +# find the pathname to a BSD- or MS-compatible name lister
  3143. +AC_DEFUN([LT_PATH_NM],
  3144. +[AC_REQUIRE([AC_PROG_CC])dnl
  3145. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3146. [if test -n "$NM"; then
  3147. # Let the user override the test.
  3148. lt_cv_path_NM="$NM"
  3149. @@ -2629,16 +3235,51 @@
  3150. done
  3151. IFS="$lt_save_ifs"
  3152. done
  3153. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3154. + : ${lt_cv_path_NM=no}
  3155. fi])
  3156. -NM="$lt_cv_path_NM"
  3157. -])# AC_PROG_NM
  3158. +if test "$lt_cv_path_NM" != "no"; then
  3159. + NM="$lt_cv_path_NM"
  3160. +else
  3161. + # Didn't find any BSD compatible name lister, look for dumpbin.
  3162. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  3163. + AC_SUBST([DUMPBIN])
  3164. + if test "$DUMPBIN" != ":"; then
  3165. + NM="$DUMPBIN"
  3166. + fi
  3167. +fi
  3168. +test -z "$NM" && NM=nm
  3169. +AC_SUBST([NM])
  3170. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3171. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3172. + [lt_cv_nm_interface="BSD nm"
  3173. + echo "int some_variable = 0;" > conftest.$ac_ext
  3174. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3175. + (eval "$ac_compile" 2>conftest.err)
  3176. + cat conftest.err >&AS_MESSAGE_LOG_FD
  3177. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3178. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3179. + cat conftest.err >&AS_MESSAGE_LOG_FD
  3180. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  3181. + cat conftest.out >&AS_MESSAGE_LOG_FD
  3182. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3183. + lt_cv_nm_interface="MS dumpbin"
  3184. + fi
  3185. + rm -f conftest*])
  3186. +])# LT_PATH_NM
  3187. +
  3188. +# Old names:
  3189. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3190. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3191. +dnl aclocal-1.4 backwards compatibility:
  3192. +dnl AC_DEFUN([AM_PROG_NM], [])
  3193. +dnl AC_DEFUN([AC_PROG_NM], [])
  3194. -# AC_CHECK_LIBM
  3195. -# -------------
  3196. +
  3197. +# LT_LIB_M
  3198. +# --------
  3199. # check for math library
  3200. -AC_DEFUN([AC_CHECK_LIBM],
  3201. +AC_DEFUN([LT_LIB_M],
  3202. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3203. LIBM=
  3204. case $host in
  3205. @@ -2653,4012 +3294,4698 @@
  3206. AC_CHECK_LIB(m, cos, LIBM="-lm")
  3207. ;;
  3208. esac
  3209. -])# AC_CHECK_LIBM
  3210. +AC_SUBST([LIBM])
  3211. +])# LT_LIB_M
  3212. +# Old name:
  3213. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3214. +dnl aclocal-1.4 backwards compatibility:
  3215. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3216. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  3217. -# -----------------------------------
  3218. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  3219. -# LTDLINCL to the include flags for the libltdl header and adds
  3220. -# --enable-ltdl-convenience to the configure arguments. Note that
  3221. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  3222. -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  3223. -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  3224. -# (note the single quotes!). If your package is not flat and you're not
  3225. -# using automake, define top_builddir and top_srcdir appropriately in
  3226. -# the Makefiles.
  3227. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  3228. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3229. - case $enable_ltdl_convenience in
  3230. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  3231. - "") enable_ltdl_convenience=yes
  3232. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  3233. - esac
  3234. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  3235. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3236. - # For backwards non-gettext consistent compatibility...
  3237. - INCLTDL="$LTDLINCL"
  3238. -])# AC_LIBLTDL_CONVENIENCE
  3239. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  3240. +# -------------------------------
  3241. +m4_defun([_LT_COMPILER_NO_RTTI],
  3242. +[m4_require([_LT_TAG_COMPILER])dnl
  3243. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  3244. -# -----------------------------------
  3245. -# sets LIBLTDL to the link flags for the libltdl installable library and
  3246. -# LTDLINCL to the include flags for the libltdl header and adds
  3247. -# --enable-ltdl-install to the configure arguments. Note that
  3248. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  3249. -# and an installed libltdl is not found, it is assumed to be `libltdl'.
  3250. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  3251. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  3252. -# flat and you're not using automake, define top_builddir and top_srcdir
  3253. -# appropriately in the Makefiles.
  3254. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  3255. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  3256. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3257. - AC_CHECK_LIB(ltdl, lt_dlinit,
  3258. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  3259. - [if test x"$enable_ltdl_install" = xno; then
  3260. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  3261. - else
  3262. - enable_ltdl_install=yes
  3263. - fi
  3264. - ])
  3265. - if test x"$enable_ltdl_install" = x"yes"; then
  3266. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  3267. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  3268. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3269. - else
  3270. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  3271. - LIBLTDL="-lltdl"
  3272. - LTDLINCL=
  3273. - fi
  3274. - # For backwards non-gettext consistent compatibility...
  3275. - INCLTDL="$LTDLINCL"
  3276. -])# AC_LIBLTDL_INSTALLABLE
  3277. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3278. +if test "$GCC" = yes; then
  3279. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  3280. -# AC_LIBTOOL_CXX
  3281. -# --------------
  3282. -# enable support for C++ libraries
  3283. -AC_DEFUN([AC_LIBTOOL_CXX],
  3284. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  3285. -])# AC_LIBTOOL_CXX
  3286. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3287. + lt_cv_prog_compiler_rtti_exceptions,
  3288. + [-fno-rtti -fno-exceptions], [],
  3289. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3290. +fi
  3291. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3292. + [Compiler flag to turn off builtin functions])
  3293. +])# _LT_COMPILER_NO_RTTI
  3294. -# _LT_AC_LANG_CXX
  3295. -# ---------------
  3296. -AC_DEFUN([_LT_AC_LANG_CXX],
  3297. -[AC_REQUIRE([AC_PROG_CXX])
  3298. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  3299. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  3300. -])# _LT_AC_LANG_CXX
  3301. +# _LT_CMD_GLOBAL_SYMBOLS
  3302. +# ----------------------
  3303. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3304. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3305. +AC_REQUIRE([AC_PROG_CC])dnl
  3306. +AC_REQUIRE([LT_PATH_NM])dnl
  3307. +AC_REQUIRE([LT_PATH_LD])dnl
  3308. +m4_require([_LT_DECL_SED])dnl
  3309. +m4_require([_LT_DECL_EGREP])dnl
  3310. +m4_require([_LT_TAG_COMPILER])dnl
  3311. -# _LT_AC_PROG_CXXCPP
  3312. -# ------------------
  3313. -AC_DEFUN([_LT_AC_PROG_CXXCPP],
  3314. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  3315. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3316. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3317. [
  3318. -AC_REQUIRE([AC_PROG_CXX])
  3319. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3320. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3321. - (test "X$CXX" != "Xg++"))) ; then
  3322. - AC_PROG_CXXCPP
  3323. -fi
  3324. -])# _LT_AC_PROG_CXXCPP
  3325. -
  3326. -# AC_LIBTOOL_F77
  3327. -# --------------
  3328. -# enable support for Fortran 77 libraries
  3329. -AC_DEFUN([AC_LIBTOOL_F77],
  3330. -[AC_REQUIRE([_LT_AC_LANG_F77])
  3331. -])# AC_LIBTOOL_F77
  3332. +# These are sane defaults that work on at least a few old systems.
  3333. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3334. +# Character class describing NM global symbol codes.
  3335. +symcode='[[BCDEGRST]]'
  3336. -# _LT_AC_LANG_F77
  3337. -# ---------------
  3338. -AC_DEFUN([_LT_AC_LANG_F77],
  3339. -[AC_REQUIRE([AC_PROG_F77])
  3340. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  3341. -])# _LT_AC_LANG_F77
  3342. +# Regexp to match symbols that can be accessed directly from C.
  3343. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3344. +# Define system-specific variables.
  3345. +case $host_os in
  3346. +aix*)
  3347. + symcode='[[BCDT]]'
  3348. + ;;
  3349. +cygwin* | mingw* | pw32* | cegcc*)
  3350. + symcode='[[ABCDGISTW]]'
  3351. + ;;
  3352. +hpux*)
  3353. + if test "$host_cpu" = ia64; then
  3354. + symcode='[[ABCDEGRST]]'
  3355. + fi
  3356. + ;;
  3357. +irix* | nonstopux*)
  3358. + symcode='[[BCDEGRST]]'
  3359. + ;;
  3360. +osf*)
  3361. + symcode='[[BCDEGQRST]]'
  3362. + ;;
  3363. +solaris*)
  3364. + symcode='[[BDRT]]'
  3365. + ;;
  3366. +sco3.2v5*)
  3367. + symcode='[[DT]]'
  3368. + ;;
  3369. +sysv4.2uw2*)
  3370. + symcode='[[DT]]'
  3371. + ;;
  3372. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3373. + symcode='[[ABDT]]'
  3374. + ;;
  3375. +sysv4)
  3376. + symcode='[[DFNSTU]]'
  3377. + ;;
  3378. +esac
  3379. -# AC_LIBTOOL_GCJ
  3380. -# --------------
  3381. -# enable support for GCJ libraries
  3382. -AC_DEFUN([AC_LIBTOOL_GCJ],
  3383. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  3384. -])# AC_LIBTOOL_GCJ
  3385. +# If we're using GNU nm, then use its standard symbol codes.
  3386. +case `$NM -V 2>&1` in
  3387. +*GNU* | *'with BFD'*)
  3388. + symcode='[[ABCDGIRSTW]]' ;;
  3389. +esac
  3390. +# Transform an extracted symbol line into a proper C declaration.
  3391. +# Some systems (esp. on ia64) link data and code symbols differently,
  3392. +# so use this general approach.
  3393. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3394. -# _LT_AC_LANG_GCJ
  3395. -# ---------------
  3396. -AC_DEFUN([_LT_AC_LANG_GCJ],
  3397. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  3398. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  3399. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  3400. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  3401. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  3402. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  3403. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  3404. -])# _LT_AC_LANG_GCJ
  3405. +# Transform an extracted symbol line into symbol name and symbol address
  3406. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3407. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  3408. +# Handle CRLF in mingw tool chain
  3409. +opt_cr=
  3410. +case $build_os in
  3411. +mingw*)
  3412. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3413. + ;;
  3414. +esac
  3415. -# AC_LIBTOOL_RC
  3416. -# -------------
  3417. -# enable support for Windows resource files
  3418. -AC_DEFUN([AC_LIBTOOL_RC],
  3419. -[AC_REQUIRE([LT_AC_PROG_RC])
  3420. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  3421. -])# AC_LIBTOOL_RC
  3422. +# Try without a prefix underscore, then with it.
  3423. +for ac_symprfx in "" "_"; do
  3424. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3425. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  3426. -# AC_LIBTOOL_LANG_C_CONFIG
  3427. -# ------------------------
  3428. -# Ensure that the configuration vars for the C compiler are
  3429. -# suitably defined. Those variables are subsequently used by
  3430. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3431. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  3432. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  3433. -[lt_save_CC="$CC"
  3434. -AC_LANG_PUSH(C)
  3435. + # Write the raw and C identifiers.
  3436. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3437. + # Fake it for dumpbin and say T for any non-static function
  3438. + # and D for any global variable.
  3439. + # Also find C++ and __fastcall symbols from MSVC++,
  3440. + # which start with @ or ?.
  3441. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3442. +" {last_section=section; section=\$ 3};"\
  3443. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3444. +" \$ 0!~/External *\|/{next};"\
  3445. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3446. +" {if(hide[section]) next};"\
  3447. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3448. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3449. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3450. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3451. +" ' prfx=^$ac_symprfx]"
  3452. + else
  3453. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3454. + fi
  3455. -# Source file extension for C test sources.
  3456. -ac_ext=c
  3457. -
  3458. -# Object file extension for compiled C test sources.
  3459. -objext=o
  3460. -_LT_AC_TAGVAR(objext, $1)=$objext
  3461. -
  3462. -# Code to be used in simple compile tests
  3463. -lt_simple_compile_test_code="int some_variable = 0;"
  3464. -
  3465. -# Code to be used in simple link tests
  3466. -lt_simple_link_test_code='int main(){return(0);}'
  3467. -
  3468. -_LT_AC_SYS_COMPILER
  3469. -
  3470. -# save warnings/boilerplate of simple test code
  3471. -_LT_COMPILER_BOILERPLATE
  3472. -_LT_LINKER_BOILERPLATE
  3473. -
  3474. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  3475. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3476. -AC_LIBTOOL_PROG_CC_C_O($1)
  3477. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3478. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3479. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3480. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3481. -AC_LIBTOOL_SYS_LIB_STRIP
  3482. -AC_LIBTOOL_DLOPEN_SELF
  3483. -
  3484. -# Report which library types will actually be built
  3485. -AC_MSG_CHECKING([if libtool supports shared libraries])
  3486. -AC_MSG_RESULT([$can_build_shared])
  3487. -
  3488. -AC_MSG_CHECKING([whether to build shared libraries])
  3489. -test "$can_build_shared" = "no" && enable_shared=no
  3490. -
  3491. -# On AIX, shared libraries and static libraries use the same namespace, and
  3492. -# are all built from PIC.
  3493. -case $host_os in
  3494. -aix3*)
  3495. - test "$enable_shared" = yes && enable_static=no
  3496. - if test -n "$RANLIB"; then
  3497. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  3498. - postinstall_cmds='$RANLIB $lib'
  3499. - fi
  3500. - ;;
  3501. -
  3502. -aix[[4-9]]*)
  3503. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  3504. - test "$enable_shared" = yes && enable_static=no
  3505. - fi
  3506. - ;;
  3507. -esac
  3508. -AC_MSG_RESULT([$enable_shared])
  3509. -
  3510. -AC_MSG_CHECKING([whether to build static libraries])
  3511. -# Make sure either enable_shared or enable_static is yes.
  3512. -test "$enable_shared" = yes || enable_static=yes
  3513. -AC_MSG_RESULT([$enable_static])
  3514. -
  3515. -AC_LIBTOOL_CONFIG($1)
  3516. -
  3517. -AC_LANG_POP
  3518. -CC="$lt_save_CC"
  3519. -])# AC_LIBTOOL_LANG_C_CONFIG
  3520. -
  3521. -
  3522. -# AC_LIBTOOL_LANG_CXX_CONFIG
  3523. -# --------------------------
  3524. -# Ensure that the configuration vars for the C compiler are
  3525. -# suitably defined. Those variables are subsequently used by
  3526. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3527. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  3528. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  3529. -[AC_LANG_PUSH(C++)
  3530. -AC_REQUIRE([AC_PROG_CXX])
  3531. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  3532. -
  3533. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3534. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  3535. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  3536. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  3537. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  3538. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  3539. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  3540. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  3541. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3542. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  3543. -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3544. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  3545. -_LT_AC_TAGVAR(module_cmds, $1)=
  3546. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  3547. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  3548. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  3549. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  3550. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3551. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  3552. -
  3553. -# Dependencies to place before and after the object being linked:
  3554. -_LT_AC_TAGVAR(predep_objects, $1)=
  3555. -_LT_AC_TAGVAR(postdep_objects, $1)=
  3556. -_LT_AC_TAGVAR(predeps, $1)=
  3557. -_LT_AC_TAGVAR(postdeps, $1)=
  3558. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  3559. -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  3560. -
  3561. -# Source file extension for C++ test sources.
  3562. -ac_ext=cpp
  3563. -
  3564. -# Object file extension for compiled C++ test sources.
  3565. -objext=o
  3566. -_LT_AC_TAGVAR(objext, $1)=$objext
  3567. -
  3568. -# Code to be used in simple compile tests
  3569. -lt_simple_compile_test_code="int some_variable = 0;"
  3570. -
  3571. -# Code to be used in simple link tests
  3572. -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  3573. -
  3574. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  3575. -_LT_AC_SYS_COMPILER
  3576. -
  3577. -# save warnings/boilerplate of simple test code
  3578. -_LT_COMPILER_BOILERPLATE
  3579. -_LT_LINKER_BOILERPLATE
  3580. + # Check to see that the pipe works correctly.
  3581. + pipe_works=no
  3582. -# Allow CC to be a program name with arguments.
  3583. -lt_save_CC=$CC
  3584. -lt_save_LD=$LD
  3585. -lt_save_GCC=$GCC
  3586. -GCC=$GXX
  3587. -lt_save_with_gnu_ld=$with_gnu_ld
  3588. -lt_save_path_LD=$lt_cv_path_LD
  3589. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  3590. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  3591. -else
  3592. - $as_unset lt_cv_prog_gnu_ld
  3593. -fi
  3594. -if test -n "${lt_cv_path_LDCXX+set}"; then
  3595. - lt_cv_path_LD=$lt_cv_path_LDCXX
  3596. -else
  3597. - $as_unset lt_cv_path_LD
  3598. -fi
  3599. -test -z "${LDCXX+set}" || LD=$LDCXX
  3600. -CC=${CXX-"c++"}
  3601. -compiler=$CC
  3602. -_LT_AC_TAGVAR(compiler, $1)=$CC
  3603. -_LT_CC_BASENAME([$compiler])
  3604. + rm -f conftest*
  3605. + cat > conftest.$ac_ext <<_LT_EOF
  3606. +#ifdef __cplusplus
  3607. +extern "C" {
  3608. +#endif
  3609. +char nm_test_var;
  3610. +void nm_test_func(void);
  3611. +void nm_test_func(void){}
  3612. +#ifdef __cplusplus
  3613. +}
  3614. +#endif
  3615. +int main(){nm_test_var='a';nm_test_func();return(0);}
  3616. +_LT_EOF
  3617. -# We don't want -fno-exception wen compiling C++ code, so set the
  3618. -# no_builtin_flag separately
  3619. -if test "$GXX" = yes; then
  3620. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  3621. -else
  3622. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3623. -fi
  3624. + if AC_TRY_EVAL(ac_compile); then
  3625. + # Now try to grab the symbols.
  3626. + nlist=conftest.nm
  3627. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  3628. + # Try sorting and uniquifying the output.
  3629. + if sort "$nlist" | uniq > "$nlist"T; then
  3630. + mv -f "$nlist"T "$nlist"
  3631. + else
  3632. + rm -f "$nlist"T
  3633. + fi
  3634. -if test "$GXX" = yes; then
  3635. - # Set up default GNU C++ configuration
  3636. + # Make sure that we snagged all the symbols we need.
  3637. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3638. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3639. + cat <<_LT_EOF > conftest.$ac_ext
  3640. +#ifdef __cplusplus
  3641. +extern "C" {
  3642. +#endif
  3643. - AC_PROG_LD
  3644. +_LT_EOF
  3645. + # Now generate the symbol file.
  3646. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3647. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  3648. - # archiving commands below assume that GNU ld is being used.
  3649. - if test "$with_gnu_ld" = yes; then
  3650. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3651. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3652. + cat <<_LT_EOF >> conftest.$ac_ext
  3653. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  3654. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3655. +/* The mapping between symbol names and symbols. */
  3656. +const struct {
  3657. + const char *name;
  3658. + void *address;
  3659. +}
  3660. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3661. +{
  3662. + { "@PROGRAM@", (void *) 0 },
  3663. +_LT_EOF
  3664. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3665. + cat <<\_LT_EOF >> conftest.$ac_ext
  3666. + {0, (void *) 0}
  3667. +};
  3668. - # If archive_cmds runs LD, not CC, wlarc should be empty
  3669. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  3670. - # investigate it a little bit more. (MM)
  3671. - wlarc='${wl}'
  3672. +/* This works around a problem in FreeBSD linker */
  3673. +#ifdef FREEBSD_WORKAROUND
  3674. +static const void *lt_preloaded_setup() {
  3675. + return lt__PROGRAM__LTX_preloaded_symbols;
  3676. +}
  3677. +#endif
  3678. - # ancient GNU ld didn't support --whole-archive et. al.
  3679. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  3680. - grep 'no-whole-archive' > /dev/null; then
  3681. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3682. +#ifdef __cplusplus
  3683. +}
  3684. +#endif
  3685. +_LT_EOF
  3686. + # Now try linking the two files.
  3687. + mv conftest.$ac_objext conftstm.$ac_objext
  3688. + lt_save_LIBS="$LIBS"
  3689. + lt_save_CFLAGS="$CFLAGS"
  3690. + LIBS="conftstm.$ac_objext"
  3691. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3692. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3693. + pipe_works=yes
  3694. + fi
  3695. + LIBS="$lt_save_LIBS"
  3696. + CFLAGS="$lt_save_CFLAGS"
  3697. + else
  3698. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3699. + fi
  3700. + else
  3701. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3702. + fi
  3703. else
  3704. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3705. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3706. fi
  3707. else
  3708. - with_gnu_ld=no
  3709. - wlarc=
  3710. -
  3711. - # A generic and very simple default shared library creation
  3712. - # command for GNU C++ for the case where it uses the native
  3713. - # linker, instead of GNU ld. If possible, this setting should
  3714. - # overridden to take advantage of the native linker features on
  3715. - # the platform it is being used on.
  3716. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  3717. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3718. + cat conftest.$ac_ext >&5
  3719. fi
  3720. + rm -rf conftest* conftst*
  3721. - # Commands to make compiler produce verbose output that lists
  3722. - # what "hidden" libraries, object files and flags are used when
  3723. - # linking a shared library.
  3724. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3725. -
  3726. + # Do not use the global_symbol_pipe unless it works.
  3727. + if test "$pipe_works" = yes; then
  3728. + break
  3729. + else
  3730. + lt_cv_sys_global_symbol_pipe=
  3731. + fi
  3732. +done
  3733. +])
  3734. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3735. + lt_cv_sys_global_symbol_to_cdecl=
  3736. +fi
  3737. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3738. + AC_MSG_RESULT(failed)
  3739. else
  3740. - GXX=no
  3741. - with_gnu_ld=no
  3742. - wlarc=
  3743. + AC_MSG_RESULT(ok)
  3744. fi
  3745. -# PORTME: fill in a description of your system's C++ link characteristics
  3746. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  3747. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3748. -case $host_os in
  3749. - aix3*)
  3750. - # FIXME: insert proper C++ library support
  3751. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3752. - ;;
  3753. - aix[[4-9]]*)
  3754. - if test "$host_cpu" = ia64; then
  3755. - # On IA64, the linker does run time linking by default, so we don't
  3756. - # have to do anything special.
  3757. - aix_use_runtimelinking=no
  3758. - exp_sym_flag='-Bexport'
  3759. - no_entry_flag=""
  3760. - else
  3761. - aix_use_runtimelinking=no
  3762. -
  3763. - # Test if we are trying to use run time linking or normal
  3764. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  3765. - # need to do runtime linking.
  3766. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  3767. - for ld_flag in $LDFLAGS; do
  3768. - case $ld_flag in
  3769. - *-brtl*)
  3770. - aix_use_runtimelinking=yes
  3771. - break
  3772. - ;;
  3773. - esac
  3774. - done
  3775. - ;;
  3776. - esac
  3777. -
  3778. - exp_sym_flag='-bexport'
  3779. - no_entry_flag='-bnoentry'
  3780. - fi
  3781. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3782. + [Take the output of nm and produce a listing of raw symbols and C names])
  3783. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3784. + [Transform the output of nm in a proper C declaration])
  3785. +_LT_DECL([global_symbol_to_c_name_address],
  3786. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3787. + [Transform the output of nm in a C name address pair])
  3788. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3789. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3790. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  3791. +]) # _LT_CMD_GLOBAL_SYMBOLS
  3792. - # When large executables or shared objects are built, AIX ld can
  3793. - # have problems creating the table of contents. If linking a library
  3794. - # or program results in "error TOC overflow" add -mminimal-toc to
  3795. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  3796. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  3797. -
  3798. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  3799. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3800. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  3801. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3802. - if test "$GXX" = yes; then
  3803. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  3804. - # We only want to do this on AIX 4.2 and lower, the check
  3805. - # below for broken collect2 doesn't work under 4.3+
  3806. - collect2name=`${CC} -print-prog-name=collect2`
  3807. - if test -f "$collect2name" && \
  3808. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  3809. - then
  3810. - # We have reworked collect2
  3811. - :
  3812. - else
  3813. - # We have old collect2
  3814. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  3815. - # It fails to find uninstalled libraries when the uninstalled
  3816. - # path is not listed in the libpath. Setting hardcode_minus_L
  3817. - # to unsupported forces relinking
  3818. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3819. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3820. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3821. - fi
  3822. - ;;
  3823. - esac
  3824. - shared_flag='-shared'
  3825. - if test "$aix_use_runtimelinking" = yes; then
  3826. - shared_flag="$shared_flag "'${wl}-G'
  3827. - fi
  3828. - else
  3829. - # not using gcc
  3830. - if test "$host_cpu" = ia64; then
  3831. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  3832. - # chokes on -Wl,-G. The following line is correct:
  3833. - shared_flag='-G'
  3834. - else
  3835. - if test "$aix_use_runtimelinking" = yes; then
  3836. - shared_flag='${wl}-G'
  3837. - else
  3838. - shared_flag='${wl}-bM:SRE'
  3839. - fi
  3840. - fi
  3841. - fi
  3842. +# _LT_COMPILER_PIC([TAGNAME])
  3843. +# ---------------------------
  3844. +m4_defun([_LT_COMPILER_PIC],
  3845. +[m4_require([_LT_TAG_COMPILER])dnl
  3846. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3847. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3848. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  3849. - # It seems that -bexpall does not export symbols beginning with
  3850. - # underscore (_), so it is better to generate a list of symbols to export.
  3851. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  3852. - if test "$aix_use_runtimelinking" = yes; then
  3853. - # Warning - without using the other runtime loading flags (-brtl),
  3854. - # -berok will link without error, but may produce a broken library.
  3855. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  3856. - # Determine the default libpath from the value encoded in an empty executable.
  3857. - _LT_AC_SYS_LIBPATH_AIX
  3858. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3859. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  3860. +m4_if([$1], [CXX], [
  3861. + # C++ specific cases for pic, static, wl, etc.
  3862. + if test "$GXX" = yes; then
  3863. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3864. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3865. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  3866. - else
  3867. + case $host_os in
  3868. + aix*)
  3869. + # All AIX code is PIC.
  3870. if test "$host_cpu" = ia64; then
  3871. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  3872. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  3873. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  3874. - else
  3875. - # Determine the default libpath from the value encoded in an empty executable.
  3876. - _LT_AC_SYS_LIBPATH_AIX
  3877. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3878. - # Warning - without using the other run time loading flags,
  3879. - # -berok will link without error, but may produce a broken library.
  3880. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  3881. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  3882. - # Exported symbols can be pulled into shared objects from archives
  3883. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  3884. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  3885. - # This is similar to how AIX traditionally builds its shared libraries.
  3886. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  3887. - fi
  3888. - fi
  3889. - ;;
  3890. -
  3891. - beos*)
  3892. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  3893. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3894. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  3895. - # support --undefined. This deserves some investigation. FIXME
  3896. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3897. - else
  3898. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3899. - fi
  3900. - ;;
  3901. -
  3902. - chorus*)
  3903. - case $cc_basename in
  3904. - *)
  3905. - # FIXME: insert proper C++ library support
  3906. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3907. - ;;
  3908. - esac
  3909. - ;;
  3910. -
  3911. - cygwin* | mingw* | pw32*)
  3912. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  3913. - # as there is no search path for DLLs.
  3914. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3915. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3916. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  3917. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  3918. -
  3919. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  3920. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  3921. - # If the export-symbols file already is a .def file (1st line
  3922. - # is EXPORTS), use it as is; otherwise, prepend...
  3923. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  3924. - cp $export_symbols $output_objdir/$soname.def;
  3925. - else
  3926. - echo EXPORTS > $output_objdir/$soname.def;
  3927. - cat $export_symbols >> $output_objdir/$soname.def;
  3928. - fi~
  3929. - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  3930. - else
  3931. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3932. - fi
  3933. - ;;
  3934. - darwin* | rhapsody*)
  3935. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3936. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3937. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  3938. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3939. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  3940. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3941. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  3942. - if test "$GXX" = yes ; then
  3943. - output_verbose_link_cmd='echo'
  3944. - _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  3945. - _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  3946. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  3947. - _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  3948. - if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  3949. - _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  3950. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  3951. - fi
  3952. - else
  3953. - case $cc_basename in
  3954. - xlc*)
  3955. - output_verbose_link_cmd='echo'
  3956. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  3957. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  3958. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  3959. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3960. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3961. - ;;
  3962. - *)
  3963. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3964. - ;;
  3965. - esac
  3966. - fi
  3967. - ;;
  3968. -
  3969. - dgux*)
  3970. - case $cc_basename in
  3971. - ec++*)
  3972. - # FIXME: insert proper C++ library support
  3973. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3974. - ;;
  3975. - ghcx*)
  3976. - # Green Hills C++ Compiler
  3977. - # FIXME: insert proper C++ library support
  3978. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3979. - ;;
  3980. - *)
  3981. - # FIXME: insert proper C++ library support
  3982. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3983. - ;;
  3984. - esac
  3985. - ;;
  3986. - freebsd[[12]]*)
  3987. - # C++ shared libraries reported to be fairly broken before switch to ELF
  3988. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3989. - ;;
  3990. - freebsd-elf*)
  3991. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3992. - ;;
  3993. - freebsd* | dragonfly*)
  3994. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  3995. - # conventions
  3996. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3997. - ;;
  3998. - gnu*)
  3999. - ;;
  4000. - hpux9*)
  4001. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4002. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4003. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4004. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4005. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4006. - # but as the default
  4007. - # location of the library.
  4008. -
  4009. - case $cc_basename in
  4010. - CC*)
  4011. - # FIXME: insert proper C++ library support
  4012. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4013. - ;;
  4014. - aCC*)
  4015. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4016. - # Commands to make compiler produce verbose output that lists
  4017. - # what "hidden" libraries, object files and flags are used when
  4018. - # linking a shared library.
  4019. - #
  4020. - # There doesn't appear to be a way to prevent this compiler from
  4021. - # explicitly linking system object files so we need to strip them
  4022. - # from the output so that they don't get included in the library
  4023. - # dependencies.
  4024. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4025. - ;;
  4026. - *)
  4027. - if test "$GXX" = yes; then
  4028. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4029. - else
  4030. - # FIXME: insert proper C++ library support
  4031. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4032. + # AIX 5 now supports IA64 processor
  4033. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4034. fi
  4035. ;;
  4036. - esac
  4037. - ;;
  4038. - hpux10*|hpux11*)
  4039. - if test $with_gnu_ld = no; then
  4040. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4041. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4042. + amigaos*)
  4043. case $host_cpu in
  4044. - hppa*64*|ia64*) ;;
  4045. - *)
  4046. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4047. + powerpc)
  4048. + # see comment about AmigaOS4 .so support
  4049. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4050. + ;;
  4051. + m68k)
  4052. + # FIXME: we need at least 68020 code to build shared libraries, but
  4053. + # adding the `-m68020' flag to GCC prevents building anything better,
  4054. + # like `-m68040'.
  4055. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4056. ;;
  4057. esac
  4058. - fi
  4059. - case $host_cpu in
  4060. - hppa*64*|ia64*)
  4061. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4062. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4063. - ;;
  4064. - *)
  4065. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4066. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4067. - # but as the default
  4068. - # location of the library.
  4069. ;;
  4070. - esac
  4071. - case $cc_basename in
  4072. - CC*)
  4073. - # FIXME: insert proper C++ library support
  4074. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4075. - ;;
  4076. - aCC*)
  4077. - case $host_cpu in
  4078. - hppa*64*)
  4079. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4080. - ;;
  4081. - ia64*)
  4082. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4083. - ;;
  4084. - *)
  4085. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4086. - ;;
  4087. - esac
  4088. - # Commands to make compiler produce verbose output that lists
  4089. - # what "hidden" libraries, object files and flags are used when
  4090. - # linking a shared library.
  4091. - #
  4092. - # There doesn't appear to be a way to prevent this compiler from
  4093. - # explicitly linking system object files so we need to strip them
  4094. - # from the output so that they don't get included in the library
  4095. - # dependencies.
  4096. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4097. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4098. + # PIC is the default for these OSes.
  4099. + ;;
  4100. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  4101. + # This hack is so that the source file can tell whether it is being
  4102. + # built for inclusion in a dll (and should export symbols for example).
  4103. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4104. + # (--disable-auto-import) libraries
  4105. + m4_if([$1], [GCJ], [],
  4106. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4107. + ;;
  4108. + darwin* | rhapsody*)
  4109. + # PIC is the default on this platform
  4110. + # Common symbols not allowed in MH_DYLIB files
  4111. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4112. + ;;
  4113. + *djgpp*)
  4114. + # DJGPP does not support shared libraries at all
  4115. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4116. + ;;
  4117. + interix[[3-9]]*)
  4118. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4119. + # Instead, we relocate shared libraries at runtime.
  4120. + ;;
  4121. + sysv4*MP*)
  4122. + if test -d /usr/nec; then
  4123. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4124. + fi
  4125. + ;;
  4126. + hpux*)
  4127. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4128. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4129. + # sets the default TLS model and affects inlining.
  4130. + case $host_cpu in
  4131. + hppa*64*)
  4132. ;;
  4133. *)
  4134. - if test "$GXX" = yes; then
  4135. - if test $with_gnu_ld = no; then
  4136. - case $host_cpu in
  4137. - hppa*64*)
  4138. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4139. - ;;
  4140. - ia64*)
  4141. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4142. - ;;
  4143. - *)
  4144. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4145. - ;;
  4146. - esac
  4147. - fi
  4148. - else
  4149. - # FIXME: insert proper C++ library support
  4150. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4151. - fi
  4152. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4153. ;;
  4154. + esac
  4155. + ;;
  4156. + *qnx* | *nto*)
  4157. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  4158. + # it will coredump.
  4159. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4160. + ;;
  4161. + *)
  4162. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4163. + ;;
  4164. esac
  4165. - ;;
  4166. - interix[[3-9]]*)
  4167. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4168. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4169. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4170. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4171. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4172. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  4173. - # default) and relocated if they conflict, which is a slow very memory
  4174. - # consuming and fragmenting process. To avoid this, we pick a random,
  4175. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4176. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4177. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  4178. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  4179. - ;;
  4180. - irix5* | irix6*)
  4181. - case $cc_basename in
  4182. - CC*)
  4183. - # SGI C++
  4184. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  4185. -
  4186. - # Archives containing C++ object files must be created using
  4187. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  4188. - # necessary to make sure instantiated templates are included
  4189. - # in the archive.
  4190. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  4191. - ;;
  4192. - *)
  4193. - if test "$GXX" = yes; then
  4194. - if test "$with_gnu_ld" = no; then
  4195. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4196. - else
  4197. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  4198. - fi
  4199. + else
  4200. + case $host_os in
  4201. + aix[[4-9]]*)
  4202. + # All AIX code is PIC.
  4203. + if test "$host_cpu" = ia64; then
  4204. + # AIX 5 now supports IA64 processor
  4205. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4206. + else
  4207. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4208. fi
  4209. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4210. ;;
  4211. - esac
  4212. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4213. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4214. - ;;
  4215. - linux* | k*bsd*-gnu)
  4216. - case $cc_basename in
  4217. - KCC*)
  4218. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4219. -
  4220. - # KCC will only create a shared library if the output file
  4221. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4222. - # to its proper name (with version) after linking.
  4223. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  4224. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  4225. - # Commands to make compiler produce verbose output that lists
  4226. - # what "hidden" libraries, object files and flags are used when
  4227. - # linking a shared library.
  4228. - #
  4229. - # There doesn't appear to be a way to prevent this compiler from
  4230. - # explicitly linking system object files so we need to strip them
  4231. - # from the output so that they don't get included in the library
  4232. - # dependencies.
  4233. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4234. -
  4235. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  4236. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4237. -
  4238. - # Archives containing C++ object files must be created using
  4239. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  4240. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  4241. - ;;
  4242. - icpc*)
  4243. - # Intel C++
  4244. - with_gnu_ld=yes
  4245. - # version 8.0 and above of icpc choke on multiply defined symbols
  4246. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  4247. - # earlier do not add the objects themselves.
  4248. - case `$CC -V 2>&1` in
  4249. - *"Version 7."*)
  4250. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4251. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4252. - ;;
  4253. - *) # Version 8.0 or newer
  4254. - tmp_idyn=
  4255. - case $host_cpu in
  4256. - ia64*) tmp_idyn=' -i_dynamic';;
  4257. - esac
  4258. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4259. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4260. + chorus*)
  4261. + case $cc_basename in
  4262. + cxch68*)
  4263. + # Green Hills C++ Compiler
  4264. + # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  4265. ;;
  4266. esac
  4267. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4268. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4269. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4270. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4271. - ;;
  4272. - pgCC* | pgcpp*)
  4273. - # Portland Group C++ compiler
  4274. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  4275. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  4276. -
  4277. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  4278. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4279. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  4280. - ;;
  4281. - cxx*)
  4282. - # Compaq C++
  4283. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4284. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  4285. -
  4286. - runpath_var=LD_RUN_PATH
  4287. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4288. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4289. -
  4290. - # Commands to make compiler produce verbose output that lists
  4291. - # what "hidden" libraries, object files and flags are used when
  4292. - # linking a shared library.
  4293. - #
  4294. - # There doesn't appear to be a way to prevent this compiler from
  4295. - # explicitly linking system object files so we need to strip them
  4296. - # from the output so that they don't get included in the library
  4297. - # dependencies.
  4298. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4299. ;;
  4300. - *)
  4301. - case `$CC -V 2>&1 | sed 5q` in
  4302. - *Sun\ C*)
  4303. - # Sun C++ 5.9
  4304. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  4305. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4306. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  4307. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4308. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  4309. -
  4310. - # Not sure whether something based on
  4311. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  4312. - # would be better.
  4313. - output_verbose_link_cmd='echo'
  4314. -
  4315. - # Archives containing C++ object files must be created using
  4316. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  4317. - # necessary to make sure instantiated templates are included
  4318. - # in the archive.
  4319. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  4320. - ;;
  4321. + dgux*)
  4322. + case $cc_basename in
  4323. + ec++*)
  4324. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4325. + ;;
  4326. + ghcx*)
  4327. + # Green Hills C++ Compiler
  4328. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4329. + ;;
  4330. + *)
  4331. + ;;
  4332. esac
  4333. ;;
  4334. - esac
  4335. - ;;
  4336. - lynxos*)
  4337. - # FIXME: insert proper C++ library support
  4338. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4339. - ;;
  4340. - m88k*)
  4341. - # FIXME: insert proper C++ library support
  4342. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4343. - ;;
  4344. - mvs*)
  4345. - case $cc_basename in
  4346. - cxx*)
  4347. - # FIXME: insert proper C++ library support
  4348. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4349. - ;;
  4350. - *)
  4351. - # FIXME: insert proper C++ library support
  4352. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4353. + freebsd* | dragonfly*)
  4354. + # FreeBSD uses GNU C++
  4355. ;;
  4356. - esac
  4357. - ;;
  4358. - netbsd*)
  4359. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4360. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  4361. - wlarc=
  4362. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4363. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4364. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4365. - fi
  4366. - # Workaround some broken pre-1.5 toolchains
  4367. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  4368. - ;;
  4369. - openbsd2*)
  4370. - # C++ shared libraries are fairly broken
  4371. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4372. - ;;
  4373. - openbsd*)
  4374. - if test -f /usr/libexec/ld.so; then
  4375. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4376. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4377. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  4378. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4379. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4380. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  4381. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4382. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4383. - fi
  4384. - output_verbose_link_cmd='echo'
  4385. - else
  4386. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4387. - fi
  4388. - ;;
  4389. - osf3*)
  4390. - case $cc_basename in
  4391. - KCC*)
  4392. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4393. -
  4394. - # KCC will only create a shared library if the output file
  4395. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4396. - # to its proper name (with version) after linking.
  4397. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  4398. -
  4399. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4400. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4401. -
  4402. - # Archives containing C++ object files must be created using
  4403. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  4404. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  4405. -
  4406. - ;;
  4407. - RCC*)
  4408. - # Rational C++ 2.4.1
  4409. - # FIXME: insert proper C++ library support
  4410. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4411. - ;;
  4412. - cxx*)
  4413. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4414. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  4415. -
  4416. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4417. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4418. -
  4419. - # Commands to make compiler produce verbose output that lists
  4420. - # what "hidden" libraries, object files and flags are used when
  4421. - # linking a shared library.
  4422. - #
  4423. - # There doesn't appear to be a way to prevent this compiler from
  4424. - # explicitly linking system object files so we need to strip them
  4425. - # from the output so that they don't get included in the library
  4426. - # dependencies.
  4427. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4428. + hpux9* | hpux10* | hpux11*)
  4429. + case $cc_basename in
  4430. + CC*)
  4431. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4432. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4433. + if test "$host_cpu" != ia64; then
  4434. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4435. + fi
  4436. + ;;
  4437. + aCC*)
  4438. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4439. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4440. + case $host_cpu in
  4441. + hppa*64*|ia64*)
  4442. + # +Z the default
  4443. + ;;
  4444. + *)
  4445. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4446. + ;;
  4447. + esac
  4448. + ;;
  4449. + *)
  4450. + ;;
  4451. + esac
  4452. ;;
  4453. - *)
  4454. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4455. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4456. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4457. -
  4458. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4459. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4460. -
  4461. - # Commands to make compiler produce verbose output that lists
  4462. - # what "hidden" libraries, object files and flags are used when
  4463. - # linking a shared library.
  4464. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  4465. -
  4466. - else
  4467. - # FIXME: insert proper C++ library support
  4468. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4469. - fi
  4470. + interix*)
  4471. + # This is c89, which is MS Visual C++ (no shared libs)
  4472. + # Anyone wants to do a port?
  4473. ;;
  4474. - esac
  4475. - ;;
  4476. - osf4* | osf5*)
  4477. - case $cc_basename in
  4478. - KCC*)
  4479. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4480. -
  4481. - # KCC will only create a shared library if the output file
  4482. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4483. - # to its proper name (with version) after linking.
  4484. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  4485. -
  4486. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4487. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4488. -
  4489. - # Archives containing C++ object files must be created using
  4490. - # the KAI C++ compiler.
  4491. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  4492. - ;;
  4493. - RCC*)
  4494. - # Rational C++ 2.4.1
  4495. - # FIXME: insert proper C++ library support
  4496. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4497. - ;;
  4498. - cxx*)
  4499. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4500. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  4501. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  4502. - echo "-hidden">> $lib.exp~
  4503. - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  4504. - $rm $lib.exp'
  4505. -
  4506. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4507. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4508. -
  4509. - # Commands to make compiler produce verbose output that lists
  4510. - # what "hidden" libraries, object files and flags are used when
  4511. - # linking a shared library.
  4512. - #
  4513. - # There doesn't appear to be a way to prevent this compiler from
  4514. - # explicitly linking system object files so we need to strip them
  4515. - # from the output so that they don't get included in the library
  4516. - # dependencies.
  4517. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4518. + irix5* | irix6* | nonstopux*)
  4519. + case $cc_basename in
  4520. + CC*)
  4521. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4522. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4523. + # CC pic flag -KPIC is the default.
  4524. + ;;
  4525. + *)
  4526. + ;;
  4527. + esac
  4528. ;;
  4529. - *)
  4530. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4531. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4532. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4533. -
  4534. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4535. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4536. -
  4537. - # Commands to make compiler produce verbose output that lists
  4538. - # what "hidden" libraries, object files and flags are used when
  4539. - # linking a shared library.
  4540. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  4541. -
  4542. - else
  4543. - # FIXME: insert proper C++ library support
  4544. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4545. - fi
  4546. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4547. + case $cc_basename in
  4548. + KCC*)
  4549. + # KAI C++ Compiler
  4550. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4551. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4552. + ;;
  4553. + ecpc* )
  4554. + # old Intel C++ for x86_64 which still supported -KPIC.
  4555. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4556. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4557. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4558. + ;;
  4559. + icpc* )
  4560. + # Intel C++, used to be incompatible with GCC.
  4561. + # ICC 10 doesn't accept -KPIC any more.
  4562. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4563. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4564. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4565. + ;;
  4566. + pgCC* | pgcpp*)
  4567. + # Portland Group C++ compiler
  4568. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4569. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4570. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4571. + ;;
  4572. + cxx*)
  4573. + # Compaq C++
  4574. + # Make sure the PIC flag is empty. It appears that all Alpha
  4575. + # Linux and Compaq Tru64 Unix objects are PIC.
  4576. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4577. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4578. + ;;
  4579. + xlc* | xlC*)
  4580. + # IBM XL 8.0 on PPC
  4581. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4582. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4583. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4584. + ;;
  4585. + *)
  4586. + case `$CC -V 2>&1 | sed 5q` in
  4587. + *Sun\ C*)
  4588. + # Sun C++ 5.9
  4589. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4590. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4591. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4592. + ;;
  4593. + esac
  4594. + ;;
  4595. + esac
  4596. ;;
  4597. - esac
  4598. - ;;
  4599. - psos*)
  4600. - # FIXME: insert proper C++ library support
  4601. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4602. - ;;
  4603. - sunos4*)
  4604. - case $cc_basename in
  4605. - CC*)
  4606. - # Sun C++ 4.x
  4607. - # FIXME: insert proper C++ library support
  4608. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4609. - ;;
  4610. - lcc*)
  4611. - # Lucid
  4612. - # FIXME: insert proper C++ library support
  4613. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4614. + lynxos*)
  4615. ;;
  4616. - *)
  4617. - # FIXME: insert proper C++ library support
  4618. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4619. + m88k*)
  4620. ;;
  4621. - esac
  4622. - ;;
  4623. - solaris*)
  4624. - case $cc_basename in
  4625. - CC*)
  4626. - # Sun C++ 4.2, 5.x and Centerline C++
  4627. - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  4628. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  4629. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4630. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4631. - $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  4632. -
  4633. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4634. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4635. - case $host_os in
  4636. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4637. + mvs*)
  4638. + case $cc_basename in
  4639. + cxx*)
  4640. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  4641. + ;;
  4642. *)
  4643. - # The compiler driver will combine and reorder linker options,
  4644. - # but understands `-z linker_flag'.
  4645. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  4646. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  4647. ;;
  4648. esac
  4649. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4650. -
  4651. - output_verbose_link_cmd='echo'
  4652. -
  4653. - # Archives containing C++ object files must be created using
  4654. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  4655. - # necessary to make sure instantiated templates are included
  4656. - # in the archive.
  4657. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  4658. - ;;
  4659. - gcx*)
  4660. - # Green Hills C++ Compiler
  4661. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  4662. -
  4663. - # The C++ compiler must be used to create the archive.
  4664. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  4665. ;;
  4666. - *)
  4667. - # GNU C++ compiler with Solaris linker
  4668. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4669. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  4670. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  4671. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  4672. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4673. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  4674. -
  4675. - # Commands to make compiler produce verbose output that lists
  4676. - # what "hidden" libraries, object files and flags are used when
  4677. - # linking a shared library.
  4678. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  4679. - else
  4680. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  4681. - # platform.
  4682. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  4683. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4684. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  4685. -
  4686. - # Commands to make compiler produce verbose output that lists
  4687. - # what "hidden" libraries, object files and flags are used when
  4688. - # linking a shared library.
  4689. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  4690. - fi
  4691. -
  4692. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  4693. - case $host_os in
  4694. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4695. + netbsd* | netbsdelf*-gnu)
  4696. + ;;
  4697. + *qnx* | *nto*)
  4698. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  4699. + # it will coredump.
  4700. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4701. + ;;
  4702. + osf3* | osf4* | osf5*)
  4703. + case $cc_basename in
  4704. + KCC*)
  4705. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4706. + ;;
  4707. + RCC*)
  4708. + # Rational C++ 2.4.1
  4709. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4710. + ;;
  4711. + cxx*)
  4712. + # Digital/Compaq C++
  4713. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4714. + # Make sure the PIC flag is empty. It appears that all Alpha
  4715. + # Linux and Compaq Tru64 Unix objects are PIC.
  4716. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4717. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4718. + ;;
  4719. *)
  4720. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  4721. ;;
  4722. - esac
  4723. - fi
  4724. + esac
  4725. ;;
  4726. - esac
  4727. - ;;
  4728. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  4729. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4730. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4731. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4732. - runpath_var='LD_RUN_PATH'
  4733. -
  4734. - case $cc_basename in
  4735. - CC*)
  4736. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4737. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4738. + psos*)
  4739. ;;
  4740. - *)
  4741. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4742. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4743. + solaris*)
  4744. + case $cc_basename in
  4745. + CC*)
  4746. + # Sun C++ 4.2, 5.x and Centerline C++
  4747. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4748. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4749. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4750. + ;;
  4751. + gcx*)
  4752. + # Green Hills C++ Compiler
  4753. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4754. + ;;
  4755. + *)
  4756. + ;;
  4757. + esac
  4758. ;;
  4759. - esac
  4760. - ;;
  4761. - sysv5* | sco3.2v5* | sco5v6*)
  4762. - # Note: We can NOT use -z defs as we might desire, because we do not
  4763. - # link with -lc, and that would cause any symbols used from libc to
  4764. - # always be unresolved, which means just about no library would
  4765. - # ever link correctly. If we're not using GNU ld we use -z text
  4766. - # though, which does catch some bad symbols but isn't as heavy-handed
  4767. - # as -z defs.
  4768. - # For security reasons, it is highly recommended that you always
  4769. - # use absolute paths for naming shared libraries, and exclude the
  4770. - # DT_RUNPATH tag from executables and libraries. But doing so
  4771. - # requires that you compile everything twice, which is a pain.
  4772. - # So that behaviour is only enabled if SCOABSPATH is set to a
  4773. - # non-empty value in the environment. Most likely only useful for
  4774. - # creating official distributions of packages.
  4775. - # This is a hack until libtool officially supports absolute path
  4776. - # names for shared libraries.
  4777. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4778. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  4779. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4780. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4781. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  4782. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  4783. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4784. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  4785. - runpath_var='LD_RUN_PATH'
  4786. -
  4787. - case $cc_basename in
  4788. - CC*)
  4789. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4790. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4791. + sunos4*)
  4792. + case $cc_basename in
  4793. + CC*)
  4794. + # Sun C++ 4.x
  4795. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4796. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4797. + ;;
  4798. + lcc*)
  4799. + # Lucid
  4800. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4801. + ;;
  4802. + *)
  4803. + ;;
  4804. + esac
  4805. ;;
  4806. - *)
  4807. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4808. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4809. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4810. + case $cc_basename in
  4811. + CC*)
  4812. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4813. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4814. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4815. + ;;
  4816. + esac
  4817. ;;
  4818. - esac
  4819. - ;;
  4820. - tandem*)
  4821. - case $cc_basename in
  4822. - NCC*)
  4823. - # NonStop-UX NCC 3.20
  4824. - # FIXME: insert proper C++ library support
  4825. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4826. + tandem*)
  4827. + case $cc_basename in
  4828. + NCC*)
  4829. + # NonStop-UX NCC 3.20
  4830. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4831. + ;;
  4832. + *)
  4833. + ;;
  4834. + esac
  4835. + ;;
  4836. + vxworks*)
  4837. ;;
  4838. *)
  4839. - # FIXME: insert proper C++ library support
  4840. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4841. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4842. ;;
  4843. esac
  4844. - ;;
  4845. - vxworks*)
  4846. - # FIXME: insert proper C++ library support
  4847. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4848. - ;;
  4849. - *)
  4850. - # FIXME: insert proper C++ library support
  4851. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4852. - ;;
  4853. -esac
  4854. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  4855. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  4856. -
  4857. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  4858. -_LT_AC_TAGVAR(LD, $1)="$LD"
  4859. -
  4860. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  4861. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4862. -AC_LIBTOOL_PROG_CC_C_O($1)
  4863. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4864. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4865. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4866. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4867. -
  4868. -AC_LIBTOOL_CONFIG($1)
  4869. + fi
  4870. +],
  4871. +[
  4872. + if test "$GCC" = yes; then
  4873. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4874. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4875. -AC_LANG_POP
  4876. -CC=$lt_save_CC
  4877. -LDCXX=$LD
  4878. -LD=$lt_save_LD
  4879. -GCC=$lt_save_GCC
  4880. -with_gnu_ldcxx=$with_gnu_ld
  4881. -with_gnu_ld=$lt_save_with_gnu_ld
  4882. -lt_cv_path_LDCXX=$lt_cv_path_LD
  4883. -lt_cv_path_LD=$lt_save_path_LD
  4884. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  4885. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  4886. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  4887. + case $host_os in
  4888. + aix*)
  4889. + # All AIX code is PIC.
  4890. + if test "$host_cpu" = ia64; then
  4891. + # AIX 5 now supports IA64 processor
  4892. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4893. + fi
  4894. + ;;
  4895. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  4896. -# ------------------------------------
  4897. -# Figure out "hidden" library dependencies from verbose
  4898. -# compiler output when linking a shared library.
  4899. -# Parse the compiler output and extract the necessary
  4900. -# objects, libraries and library flags.
  4901. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
  4902. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  4903. -dnl we can't use the lt_simple_compile_test_code here,
  4904. -dnl because it contains code intended for an executable,
  4905. -dnl not a library. It's possible we should let each
  4906. -dnl tag define a new lt_????_link_test_code variable,
  4907. -dnl but it's only used here...
  4908. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  4909. -int a;
  4910. -void foo (void) { a = 0; }
  4911. -EOF
  4912. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  4913. -class Foo
  4914. -{
  4915. -public:
  4916. - Foo (void) { a = 0; }
  4917. -private:
  4918. - int a;
  4919. -};
  4920. -EOF
  4921. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  4922. - subroutine foo
  4923. - implicit none
  4924. - integer*4 a
  4925. - a=0
  4926. - return
  4927. - end
  4928. -EOF
  4929. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  4930. -public class foo {
  4931. - private int a;
  4932. - public void bar (void) {
  4933. - a = 0;
  4934. - }
  4935. -};
  4936. -EOF
  4937. -])
  4938. -dnl Parse the compiler output and extract the necessary
  4939. -dnl objects, libraries and library flags.
  4940. -if AC_TRY_EVAL(ac_compile); then
  4941. - # Parse the compiler output and extract the necessary
  4942. - # objects, libraries and library flags.
  4943. + amigaos*)
  4944. + case $host_cpu in
  4945. + powerpc)
  4946. + # see comment about AmigaOS4 .so support
  4947. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4948. + ;;
  4949. + m68k)
  4950. + # FIXME: we need at least 68020 code to build shared libraries, but
  4951. + # adding the `-m68020' flag to GCC prevents building anything better,
  4952. + # like `-m68040'.
  4953. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4954. + ;;
  4955. + esac
  4956. + ;;
  4957. - # Sentinel used to keep track of whether or not we are before
  4958. - # the conftest object file.
  4959. - pre_test_object_deps_done=no
  4960. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4961. + # PIC is the default for these OSes.
  4962. + ;;
  4963. - # The `*' in the case matches for architectures that use `case' in
  4964. - # $output_verbose_cmd can trigger glob expansion during the loop
  4965. - # eval without this substitution.
  4966. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  4967. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  4968. + # This hack is so that the source file can tell whether it is being
  4969. + # built for inclusion in a dll (and should export symbols for example).
  4970. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4971. + # (--disable-auto-import) libraries
  4972. + m4_if([$1], [GCJ], [],
  4973. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4974. + ;;
  4975. - for p in `eval $output_verbose_link_cmd`; do
  4976. - case $p in
  4977. + darwin* | rhapsody*)
  4978. + # PIC is the default on this platform
  4979. + # Common symbols not allowed in MH_DYLIB files
  4980. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4981. + ;;
  4982. - -L* | -R* | -l*)
  4983. - # Some compilers place space between "-{L,R}" and the path.
  4984. - # Remove the space.
  4985. - if test $p = "-L" \
  4986. - || test $p = "-R"; then
  4987. - prev=$p
  4988. - continue
  4989. - else
  4990. - prev=
  4991. - fi
  4992. + hpux*)
  4993. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4994. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4995. + # sets the default TLS model and affects inlining.
  4996. + case $host_cpu in
  4997. + hppa*64*)
  4998. + # +Z the default
  4999. + ;;
  5000. + *)
  5001. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5002. + ;;
  5003. + esac
  5004. + ;;
  5005. - if test "$pre_test_object_deps_done" = no; then
  5006. - case $p in
  5007. - -L* | -R*)
  5008. - # Internal compiler library paths should come after those
  5009. - # provided the user. The postdeps already come after the
  5010. - # user supplied libs so there is no need to process them.
  5011. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  5012. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  5013. - else
  5014. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  5015. - fi
  5016. - ;;
  5017. - # The "-l" case would never come before the object being
  5018. - # linked, so don't bother handling this case.
  5019. - esac
  5020. - else
  5021. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  5022. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  5023. - else
  5024. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  5025. - fi
  5026. - fi
  5027. - ;;
  5028. + interix[[3-9]]*)
  5029. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5030. + # Instead, we relocate shared libraries at runtime.
  5031. + ;;
  5032. - *.$objext)
  5033. - # This assumes that the test object file only shows up
  5034. - # once in the compiler output.
  5035. - if test "$p" = "conftest.$objext"; then
  5036. - pre_test_object_deps_done=yes
  5037. - continue
  5038. - fi
  5039. + msdosdjgpp*)
  5040. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  5041. + # on systems that don't support them.
  5042. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5043. + enable_shared=no
  5044. + ;;
  5045. - if test "$pre_test_object_deps_done" = no; then
  5046. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  5047. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  5048. - else
  5049. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  5050. - fi
  5051. - else
  5052. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  5053. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  5054. - else
  5055. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  5056. - fi
  5057. - fi
  5058. - ;;
  5059. + *nto* | *qnx*)
  5060. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  5061. + # it will coredump.
  5062. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  5063. + ;;
  5064. - *) ;; # Ignore the rest.
  5065. + sysv4*MP*)
  5066. + if test -d /usr/nec; then
  5067. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  5068. + fi
  5069. + ;;
  5070. + *)
  5071. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5072. + ;;
  5073. esac
  5074. - done
  5075. -
  5076. - # Clean up.
  5077. - rm -f a.out a.exe
  5078. -else
  5079. - echo "libtool.m4: error: problem compiling $1 test program"
  5080. -fi
  5081. + else
  5082. + # PORTME Check for flag to pass linker flags through the system compiler.
  5083. + case $host_os in
  5084. + aix*)
  5085. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5086. + if test "$host_cpu" = ia64; then
  5087. + # AIX 5 now supports IA64 processor
  5088. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5089. + else
  5090. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  5091. + fi
  5092. + ;;
  5093. -$rm -f confest.$objext
  5094. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  5095. + # This hack is so that the source file can tell whether it is being
  5096. + # built for inclusion in a dll (and should export symbols for example).
  5097. + m4_if([$1], [GCJ], [],
  5098. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  5099. + ;;
  5100. -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  5101. -if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  5102. - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  5103. -fi
  5104. + hpux9* | hpux10* | hpux11*)
  5105. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5106. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5107. + # not for PA HP-UX.
  5108. + case $host_cpu in
  5109. + hppa*64*|ia64*)
  5110. + # +Z the default
  5111. + ;;
  5112. + *)
  5113. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5114. + ;;
  5115. + esac
  5116. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5117. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5118. + ;;
  5119. -# PORTME: override above test on systems where it is broken
  5120. -ifelse([$1],[CXX],
  5121. -[case $host_os in
  5122. -interix[[3-9]]*)
  5123. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  5124. - # hack all around it, let's just trust "g++" to DTRT.
  5125. - _LT_AC_TAGVAR(predep_objects,$1)=
  5126. - _LT_AC_TAGVAR(postdep_objects,$1)=
  5127. - _LT_AC_TAGVAR(postdeps,$1)=
  5128. - ;;
  5129. + irix5* | irix6* | nonstopux*)
  5130. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5131. + # PIC (with -KPIC) is the default.
  5132. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5133. + ;;
  5134. -linux*)
  5135. - case `$CC -V 2>&1 | sed 5q` in
  5136. - *Sun\ C*)
  5137. - # Sun C++ 5.9
  5138. - #
  5139. - # The more standards-conforming stlport4 library is
  5140. - # incompatible with the Cstd library. Avoid specifying
  5141. - # it if it's in CXXFLAGS. Ignore libCrun as
  5142. - # -library=stlport4 depends on it.
  5143. - case " $CXX $CXXFLAGS " in
  5144. - *" -library=stlport4 "*)
  5145. - solaris_use_stlport4=yes
  5146. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5147. + case $cc_basename in
  5148. + # old Intel for x86_64 which still supported -KPIC.
  5149. + ecc*)
  5150. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5151. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5152. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5153. + ;;
  5154. + # icc used to be incompatible with GCC.
  5155. + # ICC 10 doesn't accept -KPIC any more.
  5156. + icc* | ifort*)
  5157. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5158. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5159. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5160. + ;;
  5161. + # Lahey Fortran 8.1.
  5162. + lf95*)
  5163. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5164. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  5165. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  5166. + ;;
  5167. + pgcc* | pgf77* | pgf90* | pgf95*)
  5168. + # Portland Group compilers (*not* the Pentium gcc compiler,
  5169. + # which looks to be a dead project)
  5170. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5171. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  5172. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5173. + ;;
  5174. + ccc*)
  5175. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5176. + # All Alpha code is PIC.
  5177. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5178. + ;;
  5179. + xl*)
  5180. + # IBM XL C 8.0/Fortran 10.1 on PPC
  5181. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5182. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  5183. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  5184. + ;;
  5185. + *)
  5186. + case `$CC -V 2>&1 | sed 5q` in
  5187. + *Sun\ C*)
  5188. + # Sun C 5.9
  5189. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5190. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5191. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5192. + ;;
  5193. + *Sun\ F*)
  5194. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  5195. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5196. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5197. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  5198. + ;;
  5199. + esac
  5200. + ;;
  5201. + esac
  5202. ;;
  5203. - esac
  5204. - if test "$solaris_use_stlport4" != yes; then
  5205. - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  5206. - fi
  5207. - ;;
  5208. - esac
  5209. - ;;
  5210. -solaris*)
  5211. - case $cc_basename in
  5212. - CC*)
  5213. - # The more standards-conforming stlport4 library is
  5214. - # incompatible with the Cstd library. Avoid specifying
  5215. - # it if it's in CXXFLAGS. Ignore libCrun as
  5216. - # -library=stlport4 depends on it.
  5217. - case " $CXX $CXXFLAGS " in
  5218. - *" -library=stlport4 "*)
  5219. - solaris_use_stlport4=yes
  5220. + newsos6)
  5221. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5222. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5223. ;;
  5224. - esac
  5225. - # Adding this requires a known-good setup of shared libraries for
  5226. - # Sun compiler versions before 5.6, else PIC objects from an old
  5227. - # archive will be linked into the output, leading to subtle bugs.
  5228. - if test "$solaris_use_stlport4" != yes; then
  5229. - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  5230. - fi
  5231. - ;;
  5232. - esac
  5233. - ;;
  5234. -esac
  5235. -])
  5236. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  5237. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  5238. -esac
  5239. -])# AC_LIBTOOL_POSTDEP_PREDEP
  5240. + *nto* | *qnx*)
  5241. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  5242. + # it will coredump.
  5243. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  5244. + ;;
  5245. -# AC_LIBTOOL_LANG_F77_CONFIG
  5246. -# --------------------------
  5247. -# Ensure that the configuration vars for the C compiler are
  5248. -# suitably defined. Those variables are subsequently used by
  5249. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5250. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  5251. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  5252. -[AC_REQUIRE([AC_PROG_F77])
  5253. -AC_LANG_PUSH(Fortran 77)
  5254. + osf3* | osf4* | osf5*)
  5255. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5256. + # All OSF/1 code is PIC.
  5257. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5258. + ;;
  5259. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5260. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  5261. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  5262. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  5263. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5264. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  5265. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5266. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5267. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5268. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  5269. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  5270. -_LT_AC_TAGVAR(module_cmds, $1)=
  5271. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  5272. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  5273. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5274. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  5275. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5276. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5277. + rdos*)
  5278. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5279. + ;;
  5280. -# Source file extension for f77 test sources.
  5281. -ac_ext=f
  5282. -
  5283. -# Object file extension for compiled f77 test sources.
  5284. -objext=o
  5285. -_LT_AC_TAGVAR(objext, $1)=$objext
  5286. -
  5287. -# Code to be used in simple compile tests
  5288. -lt_simple_compile_test_code="\
  5289. - subroutine t
  5290. - return
  5291. - end
  5292. -"
  5293. + solaris*)
  5294. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5295. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5296. + case $cc_basename in
  5297. + f77* | f90* | f95*)
  5298. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  5299. + *)
  5300. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  5301. + esac
  5302. + ;;
  5303. -# Code to be used in simple link tests
  5304. -lt_simple_link_test_code="\
  5305. - program t
  5306. - end
  5307. -"
  5308. + sunos4*)
  5309. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5310. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  5311. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5312. + ;;
  5313. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5314. -_LT_AC_SYS_COMPILER
  5315. + sysv4 | sysv4.2uw2* | sysv4.3*)
  5316. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5317. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5318. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5319. + ;;
  5320. -# save warnings/boilerplate of simple test code
  5321. -_LT_COMPILER_BOILERPLATE
  5322. -_LT_LINKER_BOILERPLATE
  5323. + sysv4*MP*)
  5324. + if test -d /usr/nec ;then
  5325. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  5326. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5327. + fi
  5328. + ;;
  5329. -# Allow CC to be a program name with arguments.
  5330. -lt_save_CC="$CC"
  5331. -CC=${F77-"f77"}
  5332. -compiler=$CC
  5333. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5334. -_LT_CC_BASENAME([$compiler])
  5335. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5336. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5337. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5338. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5339. + ;;
  5340. -AC_MSG_CHECKING([if libtool supports shared libraries])
  5341. -AC_MSG_RESULT([$can_build_shared])
  5342. + unicos*)
  5343. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5344. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5345. + ;;
  5346. -AC_MSG_CHECKING([whether to build shared libraries])
  5347. -test "$can_build_shared" = "no" && enable_shared=no
  5348. + uts4*)
  5349. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5350. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5351. + ;;
  5352. -# On AIX, shared libraries and static libraries use the same namespace, and
  5353. -# are all built from PIC.
  5354. -case $host_os in
  5355. -aix3*)
  5356. - test "$enable_shared" = yes && enable_static=no
  5357. - if test -n "$RANLIB"; then
  5358. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5359. - postinstall_cmds='$RANLIB $lib'
  5360. - fi
  5361. - ;;
  5362. -aix[[4-9]]*)
  5363. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5364. - test "$enable_shared" = yes && enable_static=no
  5365. + *)
  5366. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5367. + ;;
  5368. + esac
  5369. fi
  5370. - ;;
  5371. +])
  5372. +case $host_os in
  5373. + # For platforms which do not support PIC, -DPIC is meaningless:
  5374. + *djgpp*)
  5375. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5376. + ;;
  5377. + *)
  5378. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  5379. + ;;
  5380. esac
  5381. -AC_MSG_RESULT([$enable_shared])
  5382. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  5383. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  5384. + [How to pass a linker flag through the compiler])
  5385. -AC_MSG_CHECKING([whether to build static libraries])
  5386. -# Make sure either enable_shared or enable_static is yes.
  5387. -test "$enable_shared" = yes || enable_static=yes
  5388. -AC_MSG_RESULT([$enable_static])
  5389. -
  5390. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  5391. -_LT_AC_TAGVAR(LD, $1)="$LD"
  5392. -
  5393. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5394. -AC_LIBTOOL_PROG_CC_C_O($1)
  5395. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5396. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5397. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5398. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5399. +#
  5400. +# Check to make sure the PIC flag actually works.
  5401. +#
  5402. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  5403. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  5404. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  5405. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  5406. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  5407. + "" | " "*) ;;
  5408. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  5409. + esac],
  5410. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5411. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  5412. +fi
  5413. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  5414. + [Additional compiler flags for building library objects])
  5415. -AC_LIBTOOL_CONFIG($1)
  5416. +#
  5417. +# Check to make sure the static flag actually works.
  5418. +#
  5419. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  5420. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  5421. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  5422. + $lt_tmp_static_flag,
  5423. + [],
  5424. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  5425. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  5426. + [Compiler flag to prevent dynamic linking])
  5427. +])# _LT_COMPILER_PIC
  5428. -AC_LANG_POP
  5429. -CC="$lt_save_CC"
  5430. -])# AC_LIBTOOL_LANG_F77_CONFIG
  5431. +# _LT_LINKER_SHLIBS([TAGNAME])
  5432. +# ----------------------------
  5433. +# See if the linker supports building shared libraries.
  5434. +m4_defun([_LT_LINKER_SHLIBS],
  5435. +[AC_REQUIRE([LT_PATH_LD])dnl
  5436. +AC_REQUIRE([LT_PATH_NM])dnl
  5437. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5438. +m4_require([_LT_DECL_EGREP])dnl
  5439. +m4_require([_LT_DECL_SED])dnl
  5440. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  5441. +m4_require([_LT_TAG_COMPILER])dnl
  5442. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5443. +m4_if([$1], [CXX], [
  5444. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5445. + case $host_os in
  5446. + aix[[4-9]]*)
  5447. + # If we're using GNU nm, then we don't want the "-C" option.
  5448. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5449. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  5450. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  5451. + else
  5452. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  5453. + fi
  5454. + ;;
  5455. + pw32*)
  5456. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  5457. + ;;
  5458. + cygwin* | mingw* | cegcc*)
  5459. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  5460. + ;;
  5461. + linux* | k*bsd*-gnu)
  5462. + _LT_TAGVAR(link_all_deplibs, $1)=no
  5463. + ;;
  5464. + *)
  5465. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5466. + ;;
  5467. + esac
  5468. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  5469. +], [
  5470. + runpath_var=
  5471. + _LT_TAGVAR(allow_undefined_flag, $1)=
  5472. + _LT_TAGVAR(always_export_symbols, $1)=no
  5473. + _LT_TAGVAR(archive_cmds, $1)=
  5474. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  5475. + _LT_TAGVAR(compiler_needs_object, $1)=no
  5476. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5477. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5478. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5479. + _LT_TAGVAR(hardcode_automatic, $1)=no
  5480. + _LT_TAGVAR(hardcode_direct, $1)=no
  5481. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5482. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5483. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5484. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5485. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  5486. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5487. + _LT_TAGVAR(inherit_rpath, $1)=no
  5488. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5489. + _LT_TAGVAR(module_cmds, $1)=
  5490. + _LT_TAGVAR(module_expsym_cmds, $1)=
  5491. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  5492. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  5493. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  5494. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5495. + # include_expsyms should be a list of space-separated symbols to be *always*
  5496. + # included in the symbol list
  5497. + _LT_TAGVAR(include_expsyms, $1)=
  5498. + # exclude_expsyms can be an extended regexp of symbols to exclude
  5499. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  5500. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  5501. + # as well as any symbol that contains `d'.
  5502. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  5503. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  5504. + # platforms (ab)use it in PIC code, but their linkers get confused if
  5505. + # the symbol is explicitly referenced. Since portable code cannot
  5506. + # rely on this symbol name, it's probably fine to never include it in
  5507. + # preloaded symbol tables.
  5508. + # Exclude shared library initialization/finalization symbols.
  5509. +dnl Note also adjust exclude_expsyms for C++ above.
  5510. + extract_expsyms_cmds=
  5511. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  5512. -# --------------------------
  5513. -# Ensure that the configuration vars for the C compiler are
  5514. -# suitably defined. Those variables are subsequently used by
  5515. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5516. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  5517. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  5518. -[AC_LANG_SAVE
  5519. + case $host_os in
  5520. + cygwin* | mingw* | pw32* | cegcc*)
  5521. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5522. + # When not using gcc, we currently assume that we are using
  5523. + # Microsoft Visual C++.
  5524. + if test "$GCC" != yes; then
  5525. + with_gnu_ld=no
  5526. + fi
  5527. + ;;
  5528. + interix*)
  5529. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  5530. + with_gnu_ld=yes
  5531. + ;;
  5532. + openbsd*)
  5533. + with_gnu_ld=no
  5534. + ;;
  5535. + linux* | k*bsd*-gnu)
  5536. + _LT_TAGVAR(link_all_deplibs, $1)=no
  5537. + ;;
  5538. + esac
  5539. -# Source file extension for Java test sources.
  5540. -ac_ext=java
  5541. + _LT_TAGVAR(ld_shlibs, $1)=yes
  5542. + if test "$with_gnu_ld" = yes; then
  5543. + # If archive_cmds runs LD, not CC, wlarc should be empty
  5544. + wlarc='${wl}'
  5545. -# Object file extension for compiled Java test sources.
  5546. -objext=o
  5547. -_LT_AC_TAGVAR(objext, $1)=$objext
  5548. + # Set some defaults for GNU ld with shared library support. These
  5549. + # are reset later if shared libraries are not supported. Putting them
  5550. + # here allows them to be overridden if necessary.
  5551. + runpath_var=LD_RUN_PATH
  5552. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5553. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5554. + # ancient GNU ld didn't support --whole-archive et. al.
  5555. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  5556. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5557. + else
  5558. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5559. + fi
  5560. + supports_anon_versioning=no
  5561. + case `$LD -v 2>&1` in
  5562. + *GNU\ gold*) supports_anon_versioning=yes ;;
  5563. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  5564. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  5565. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  5566. + *\ 2.11.*) ;; # other 2.11 versions
  5567. + *) supports_anon_versioning=yes ;;
  5568. + esac
  5569. -# Code to be used in simple compile tests
  5570. -lt_simple_compile_test_code="class foo {}"
  5571. + # See if GNU ld supports shared libraries.
  5572. + case $host_os in
  5573. + aix[[3-9]]*)
  5574. + # On AIX/PPC, the GNU linker is very broken
  5575. + if test "$host_cpu" != ia64; then
  5576. + _LT_TAGVAR(ld_shlibs, $1)=no
  5577. + cat <<_LT_EOF 1>&2
  5578. -# Code to be used in simple link tests
  5579. -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  5580. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  5581. +*** to be unable to reliably create shared libraries on AIX.
  5582. +*** Therefore, libtool is disabling shared libraries support. If you
  5583. +*** really care for shared libraries, you may want to modify your PATH
  5584. +*** so that a non-GNU linker is found, and then restart.
  5585. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5586. -_LT_AC_SYS_COMPILER
  5587. +_LT_EOF
  5588. + fi
  5589. + ;;
  5590. -# save warnings/boilerplate of simple test code
  5591. -_LT_COMPILER_BOILERPLATE
  5592. -_LT_LINKER_BOILERPLATE
  5593. + amigaos*)
  5594. + case $host_cpu in
  5595. + powerpc)
  5596. + # see comment about AmigaOS4 .so support
  5597. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5598. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  5599. + ;;
  5600. + m68k)
  5601. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  5602. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5603. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5604. + ;;
  5605. + esac
  5606. + ;;
  5607. -# Allow CC to be a program name with arguments.
  5608. -lt_save_CC="$CC"
  5609. -CC=${GCJ-"gcj"}
  5610. -compiler=$CC
  5611. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5612. -_LT_CC_BASENAME([$compiler])
  5613. + beos*)
  5614. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5615. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5616. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5617. + # support --undefined. This deserves some investigation. FIXME
  5618. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5619. + else
  5620. + _LT_TAGVAR(ld_shlibs, $1)=no
  5621. + fi
  5622. + ;;
  5623. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  5624. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5625. + cygwin* | mingw* | pw32* | cegcc*)
  5626. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5627. + # as there is no search path for DLLs.
  5628. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5629. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5630. + _LT_TAGVAR(always_export_symbols, $1)=no
  5631. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5632. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  5633. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5634. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5635. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5636. + # If the export-symbols file already is a .def file (1st line
  5637. + # is EXPORTS), use it as is; otherwise, prepend...
  5638. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5639. + cp $export_symbols $output_objdir/$soname.def;
  5640. + else
  5641. + echo EXPORTS > $output_objdir/$soname.def;
  5642. + cat $export_symbols >> $output_objdir/$soname.def;
  5643. + fi~
  5644. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5645. + else
  5646. + _LT_TAGVAR(ld_shlibs, $1)=no
  5647. + fi
  5648. + ;;
  5649. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  5650. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5651. -AC_LIBTOOL_PROG_CC_C_O($1)
  5652. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5653. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5654. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5655. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5656. + interix[[3-9]]*)
  5657. + _LT_TAGVAR(hardcode_direct, $1)=no
  5658. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5659. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5660. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5661. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5662. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  5663. + # default) and relocated if they conflict, which is a slow very memory
  5664. + # consuming and fragmenting process. To avoid this, we pick a random,
  5665. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5666. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5667. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5668. + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5669. + ;;
  5670. -AC_LIBTOOL_CONFIG($1)
  5671. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  5672. + tmp_diet=no
  5673. + if test "$host_os" = linux-dietlibc; then
  5674. + case $cc_basename in
  5675. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  5676. + esac
  5677. + fi
  5678. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  5679. + && test "$tmp_diet" = no
  5680. + then
  5681. + tmp_addflag=
  5682. + tmp_sharedflag='-shared'
  5683. + case $cc_basename,$host_cpu in
  5684. + pgcc*) # Portland Group C compiler
  5685. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  5686. + tmp_addflag=' $pic_flag'
  5687. + ;;
  5688. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  5689. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  5690. + tmp_addflag=' $pic_flag -Mnomain' ;;
  5691. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  5692. + tmp_addflag=' -i_dynamic' ;;
  5693. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  5694. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  5695. + ifc* | ifort*) # Intel Fortran compiler
  5696. + tmp_addflag=' -nofor_main' ;;
  5697. + lf95*) # Lahey Fortran 8.1
  5698. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5699. + tmp_sharedflag='--shared' ;;
  5700. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  5701. + tmp_sharedflag='-qmkshrobj'
  5702. + tmp_addflag= ;;
  5703. + esac
  5704. + case `$CC -V 2>&1 | sed 5q` in
  5705. + *Sun\ C*) # Sun C 5.9
  5706. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  5707. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  5708. + tmp_sharedflag='-G' ;;
  5709. + *Sun\ F*) # Sun Fortran 8.3
  5710. + tmp_sharedflag='-G' ;;
  5711. + esac
  5712. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5713. -AC_LANG_RESTORE
  5714. -CC="$lt_save_CC"
  5715. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  5716. + if test "x$supports_anon_versioning" = xyes; then
  5717. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5718. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5719. + echo "local: *; };" >> $output_objdir/$libname.ver~
  5720. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5721. + fi
  5722. + case $cc_basename in
  5723. + xlf*)
  5724. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  5725. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  5726. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5727. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  5728. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  5729. + if test "x$supports_anon_versioning" = xyes; then
  5730. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5731. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5732. + echo "local: *; };" >> $output_objdir/$libname.ver~
  5733. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  5734. + fi
  5735. + ;;
  5736. + esac
  5737. + else
  5738. + _LT_TAGVAR(ld_shlibs, $1)=no
  5739. + fi
  5740. + ;;
  5741. -# AC_LIBTOOL_LANG_RC_CONFIG
  5742. -# -------------------------
  5743. -# Ensure that the configuration vars for the Windows resource compiler are
  5744. -# suitably defined. Those variables are subsequently used by
  5745. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5746. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  5747. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  5748. -[AC_LANG_SAVE
  5749. + netbsd* | netbsdelf*-gnu)
  5750. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5751. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5752. + wlarc=
  5753. + else
  5754. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5755. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5756. + fi
  5757. + ;;
  5758. -# Source file extension for RC test sources.
  5759. -ac_ext=rc
  5760. + solaris*)
  5761. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  5762. + _LT_TAGVAR(ld_shlibs, $1)=no
  5763. + cat <<_LT_EOF 1>&2
  5764. -# Object file extension for compiled RC test sources.
  5765. -objext=o
  5766. -_LT_AC_TAGVAR(objext, $1)=$objext
  5767. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  5768. +*** create shared libraries on Solaris systems. Therefore, libtool
  5769. +*** is disabling shared libraries support. We urge you to upgrade GNU
  5770. +*** binutils to release 2.9.1 or newer. Another option is to modify
  5771. +*** your PATH or compiler configuration so that the native linker is
  5772. +*** used, and then restart.
  5773. -# Code to be used in simple compile tests
  5774. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  5775. -
  5776. -# Code to be used in simple link tests
  5777. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  5778. -
  5779. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5780. -_LT_AC_SYS_COMPILER
  5781. -
  5782. -# save warnings/boilerplate of simple test code
  5783. -_LT_COMPILER_BOILERPLATE
  5784. -_LT_LINKER_BOILERPLATE
  5785. -
  5786. -# Allow CC to be a program name with arguments.
  5787. -lt_save_CC="$CC"
  5788. -CC=${RC-"windres"}
  5789. -compiler=$CC
  5790. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5791. -_LT_CC_BASENAME([$compiler])
  5792. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  5793. +_LT_EOF
  5794. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5795. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5796. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5797. + else
  5798. + _LT_TAGVAR(ld_shlibs, $1)=no
  5799. + fi
  5800. + ;;
  5801. -AC_LIBTOOL_CONFIG($1)
  5802. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  5803. + case `$LD -v 2>&1` in
  5804. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  5805. + _LT_TAGVAR(ld_shlibs, $1)=no
  5806. + cat <<_LT_EOF 1>&2
  5807. -AC_LANG_RESTORE
  5808. -CC="$lt_save_CC"
  5809. -])# AC_LIBTOOL_LANG_RC_CONFIG
  5810. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  5811. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  5812. +*** is disabling shared libraries support. We urge you to upgrade GNU
  5813. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  5814. +*** your PATH or compiler configuration so that the native linker is
  5815. +*** used, and then restart.
  5816. +_LT_EOF
  5817. + ;;
  5818. + *)
  5819. + # For security reasons, it is highly recommended that you always
  5820. + # use absolute paths for naming shared libraries, and exclude the
  5821. + # DT_RUNPATH tag from executables and libraries. But doing so
  5822. + # requires that you compile everything twice, which is a pain.
  5823. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5824. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5825. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5826. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5827. + else
  5828. + _LT_TAGVAR(ld_shlibs, $1)=no
  5829. + fi
  5830. + ;;
  5831. + esac
  5832. + ;;
  5833. -# AC_LIBTOOL_CONFIG([TAGNAME])
  5834. -# ----------------------------
  5835. -# If TAGNAME is not passed, then create an initial libtool script
  5836. -# with a default configuration from the untagged config vars. Otherwise
  5837. -# add code to config.status for appending the configuration named by
  5838. -# TAGNAME from the matching tagged config vars.
  5839. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  5840. -[# The else clause should only fire when bootstrapping the
  5841. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  5842. -# with your package, and you will get complaints that there are
  5843. -# no rules to generate ltmain.sh.
  5844. -if test -f "$ltmain"; then
  5845. - # See if we are running on zsh, and set the options which allow our commands through
  5846. - # without removal of \ escapes.
  5847. - if test -n "${ZSH_VERSION+set}" ; then
  5848. - setopt NO_GLOB_SUBST
  5849. - fi
  5850. - # Now quote all the things that may contain metacharacters while being
  5851. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  5852. - # variables and quote the copies for generation of the libtool script.
  5853. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  5854. - SED SHELL STRIP \
  5855. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  5856. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  5857. - deplibs_check_method reload_flag reload_cmds need_locks \
  5858. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  5859. - lt_cv_sys_global_symbol_to_c_name_address \
  5860. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  5861. - old_postinstall_cmds old_postuninstall_cmds \
  5862. - _LT_AC_TAGVAR(compiler, $1) \
  5863. - _LT_AC_TAGVAR(CC, $1) \
  5864. - _LT_AC_TAGVAR(LD, $1) \
  5865. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  5866. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  5867. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  5868. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  5869. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  5870. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  5871. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  5872. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  5873. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  5874. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  5875. - _LT_AC_TAGVAR(predep_objects, $1) \
  5876. - _LT_AC_TAGVAR(postdep_objects, $1) \
  5877. - _LT_AC_TAGVAR(predeps, $1) \
  5878. - _LT_AC_TAGVAR(postdeps, $1) \
  5879. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  5880. - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
  5881. - _LT_AC_TAGVAR(archive_cmds, $1) \
  5882. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  5883. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  5884. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  5885. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  5886. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  5887. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  5888. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  5889. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  5890. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  5891. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  5892. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  5893. - _LT_AC_TAGVAR(module_cmds, $1) \
  5894. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  5895. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  5896. - _LT_AC_TAGVAR(fix_srcfile_path, $1) \
  5897. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  5898. - _LT_AC_TAGVAR(include_expsyms, $1); do
  5899. -
  5900. - case $var in
  5901. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  5902. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  5903. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  5904. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  5905. - _LT_AC_TAGVAR(module_cmds, $1) | \
  5906. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  5907. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  5908. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  5909. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  5910. - postinstall_cmds | postuninstall_cmds | \
  5911. - old_postinstall_cmds | old_postuninstall_cmds | \
  5912. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  5913. - # Double-quote double-evaled strings.
  5914. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  5915. + sunos4*)
  5916. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5917. + wlarc=
  5918. + _LT_TAGVAR(hardcode_direct, $1)=yes
  5919. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5920. ;;
  5921. +
  5922. *)
  5923. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  5924. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5925. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5926. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5927. + else
  5928. + _LT_TAGVAR(ld_shlibs, $1)=no
  5929. + fi
  5930. ;;
  5931. esac
  5932. - done
  5933. -
  5934. - case $lt_echo in
  5935. - *'\[$]0 --fallback-echo"')
  5936. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  5937. - ;;
  5938. - esac
  5939. -
  5940. -ifelse([$1], [],
  5941. - [cfgfile="${ofile}T"
  5942. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  5943. - $rm -f "$cfgfile"
  5944. - AC_MSG_NOTICE([creating $ofile])],
  5945. - [cfgfile="$ofile"])
  5946. -
  5947. - cat <<__EOF__ >> "$cfgfile"
  5948. -ifelse([$1], [],
  5949. -[#! $SHELL
  5950. -
  5951. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  5952. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  5953. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  5954. -#
  5955. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  5956. -# Free Software Foundation, Inc.
  5957. -#
  5958. -# This file is part of GNU Libtool:
  5959. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  5960. -#
  5961. -# This program is free software; you can redistribute it and/or modify
  5962. -# it under the terms of the GNU General Public License as published by
  5963. -# the Free Software Foundation; either version 2 of the License, or
  5964. -# (at your option) any later version.
  5965. -#
  5966. -# This program is distributed in the hope that it will be useful, but
  5967. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  5968. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  5969. -# General Public License for more details.
  5970. -#
  5971. -# You should have received a copy of the GNU General Public License
  5972. -# along with this program; if not, write to the Free Software
  5973. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  5974. -#
  5975. -# As a special exception to the GNU General Public License, if you
  5976. -# distribute this file as part of a program that contains a
  5977. -# configuration script generated by Autoconf, you may include it under
  5978. -# the same distribution terms that you use for the rest of that program.
  5979. -# A sed program that does not truncate output.
  5980. -SED=$lt_SED
  5981. -
  5982. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  5983. -Xsed="$SED -e 1s/^X//"
  5984. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  5985. + runpath_var=
  5986. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5987. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5988. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5989. + fi
  5990. + else
  5991. + # PORTME fill in a description of your system's linker (not GNU ld)
  5992. + case $host_os in
  5993. + aix3*)
  5994. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5995. + _LT_TAGVAR(always_export_symbols, $1)=yes
  5996. + _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  5997. + # Note: this linker hardcodes the directories in LIBPATH if there
  5998. + # are no directories specified by -L.
  5999. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6000. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6001. + # Neither direct hardcoding nor static linking is supported with a
  6002. + # broken collect2.
  6003. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  6004. + fi
  6005. + ;;
  6006. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  6007. -# if CDPATH is set.
  6008. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6009. + aix[[4-9]]*)
  6010. + if test "$host_cpu" = ia64; then
  6011. + # On IA64, the linker does run time linking by default, so we don't
  6012. + # have to do anything special.
  6013. + aix_use_runtimelinking=no
  6014. + exp_sym_flag='-Bexport'
  6015. + no_entry_flag=""
  6016. + else
  6017. + # If we're using GNU nm, then we don't want the "-C" option.
  6018. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6019. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  6020. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  6021. + else
  6022. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  6023. + fi
  6024. + aix_use_runtimelinking=no
  6025. -# The names of the tagged configurations supported by this script.
  6026. -available_tags=
  6027. + # Test if we are trying to use run time linking or normal
  6028. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6029. + # need to do runtime linking.
  6030. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  6031. + for ld_flag in $LDFLAGS; do
  6032. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6033. + aix_use_runtimelinking=yes
  6034. + break
  6035. + fi
  6036. + done
  6037. + ;;
  6038. + esac
  6039. -# ### BEGIN LIBTOOL CONFIG],
  6040. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  6041. + exp_sym_flag='-bexport'
  6042. + no_entry_flag='-bnoentry'
  6043. + fi
  6044. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  6045. + # When large executables or shared objects are built, AIX ld can
  6046. + # have problems creating the table of contents. If linking a library
  6047. + # or program results in "error TOC overflow" add -mminimal-toc to
  6048. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6049. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6050. -# Shell to use when invoking shell scripts.
  6051. -SHELL=$lt_SHELL
  6052. + _LT_TAGVAR(archive_cmds, $1)=''
  6053. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6054. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6055. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6056. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6057. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  6058. -# Whether or not to build shared libraries.
  6059. -build_libtool_libs=$enable_shared
  6060. + if test "$GCC" = yes; then
  6061. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  6062. + # We only want to do this on AIX 4.2 and lower, the check
  6063. + # below for broken collect2 doesn't work under 4.3+
  6064. + collect2name=`${CC} -print-prog-name=collect2`
  6065. + if test -f "$collect2name" &&
  6066. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  6067. + then
  6068. + # We have reworked collect2
  6069. + :
  6070. + else
  6071. + # We have old collect2
  6072. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  6073. + # It fails to find uninstalled libraries when the uninstalled
  6074. + # path is not listed in the libpath. Setting hardcode_minus_L
  6075. + # to unsupported forces relinking
  6076. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6077. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6078. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6079. + fi
  6080. + ;;
  6081. + esac
  6082. + shared_flag='-shared'
  6083. + if test "$aix_use_runtimelinking" = yes; then
  6084. + shared_flag="$shared_flag "'${wl}-G'
  6085. + fi
  6086. + _LT_TAGVAR(link_all_deplibs, $1)=no
  6087. + else
  6088. + # not using gcc
  6089. + if test "$host_cpu" = ia64; then
  6090. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6091. + # chokes on -Wl,-G. The following line is correct:
  6092. + shared_flag='-G'
  6093. + else
  6094. + if test "$aix_use_runtimelinking" = yes; then
  6095. + shared_flag='${wl}-G'
  6096. + else
  6097. + shared_flag='${wl}-bM:SRE'
  6098. + fi
  6099. + fi
  6100. + fi
  6101. -# Whether or not to build static libraries.
  6102. -build_old_libs=$enable_static
  6103. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  6104. + # It seems that -bexpall does not export symbols beginning with
  6105. + # underscore (_), so it is better to generate a list of symbols to export.
  6106. + _LT_TAGVAR(always_export_symbols, $1)=yes
  6107. + if test "$aix_use_runtimelinking" = yes; then
  6108. + # Warning - without using the other runtime loading flags (-brtl),
  6109. + # -berok will link without error, but may produce a broken library.
  6110. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  6111. + # Determine the default libpath from the value encoded in an
  6112. + # empty executable.
  6113. + _LT_SYS_MODULE_PATH_AIX
  6114. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6115. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  6116. + else
  6117. + if test "$host_cpu" = ia64; then
  6118. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  6119. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  6120. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  6121. + else
  6122. + # Determine the default libpath from the value encoded in an
  6123. + # empty executable.
  6124. + _LT_SYS_MODULE_PATH_AIX
  6125. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6126. + # Warning - without using the other run time loading flags,
  6127. + # -berok will link without error, but may produce a broken library.
  6128. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  6129. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  6130. + # Exported symbols can be pulled into shared objects from archives
  6131. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6132. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6133. + # This is similar to how AIX traditionally builds its shared libraries.
  6134. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  6135. + fi
  6136. + fi
  6137. + ;;
  6138. -# Whether or not to add -lc for building shared libraries.
  6139. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  6140. + amigaos*)
  6141. + case $host_cpu in
  6142. + powerpc)
  6143. + # see comment about AmigaOS4 .so support
  6144. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6145. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  6146. + ;;
  6147. + m68k)
  6148. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  6149. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6150. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6151. + ;;
  6152. + esac
  6153. + ;;
  6154. -# Whether or not to disallow shared libs when runtime libs are static
  6155. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  6156. + bsdi[[45]]*)
  6157. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  6158. + ;;
  6159. -# Whether or not to optimize for fast installation.
  6160. -fast_install=$enable_fast_install
  6161. + cygwin* | mingw* | pw32* | cegcc*)
  6162. + # When not using gcc, we currently assume that we are using
  6163. + # Microsoft Visual C++.
  6164. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  6165. + # no search path for DLLs.
  6166. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  6167. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6168. + # Tell ltmain to make .lib files, not .a files.
  6169. + libext=lib
  6170. + # Tell ltmain to make .dll files, not .so files.
  6171. + shrext_cmds=".dll"
  6172. + # FIXME: Setting linknames here is a bad hack.
  6173. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6174. + # The linker will automatically build a .lib file if we build a DLL.
  6175. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  6176. + # FIXME: Should let the user specify the lib program.
  6177. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  6178. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  6179. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6180. + ;;
  6181. -# The host system.
  6182. -host_alias=$host_alias
  6183. -host=$host
  6184. -host_os=$host_os
  6185. + darwin* | rhapsody*)
  6186. + _LT_DARWIN_LINKER_FEATURES($1)
  6187. + ;;
  6188. -# The build system.
  6189. -build_alias=$build_alias
  6190. -build=$build
  6191. -build_os=$build_os
  6192. + dgux*)
  6193. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6194. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6195. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6196. + ;;
  6197. -# An echo program that does not interpret backslashes.
  6198. -echo=$lt_echo
  6199. + freebsd1*)
  6200. + _LT_TAGVAR(ld_shlibs, $1)=no
  6201. + ;;
  6202. -# The archiver.
  6203. -AR=$lt_AR
  6204. -AR_FLAGS=$lt_AR_FLAGS
  6205. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6206. + # support. Future versions do this automatically, but an explicit c++rt0.o
  6207. + # does not break anything, and helps significantly (at the cost of a little
  6208. + # extra space).
  6209. + freebsd2.2*)
  6210. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6211. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6212. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6213. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6214. + ;;
  6215. -# A C compiler.
  6216. -LTCC=$lt_LTCC
  6217. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6218. + freebsd2*)
  6219. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6220. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6221. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6222. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6223. + ;;
  6224. -# LTCC compiler flags.
  6225. -LTCFLAGS=$lt_LTCFLAGS
  6226. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6227. + freebsd* | dragonfly*)
  6228. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6229. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6230. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6231. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6232. + ;;
  6233. -# A language-specific compiler.
  6234. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  6235. + hpux9*)
  6236. + if test "$GCC" = yes; then
  6237. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  6238. + else
  6239. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  6240. + fi
  6241. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6242. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6243. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6244. -# Is the compiler the GNU C compiler?
  6245. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  6246. + # hardcode_minus_L: Not really in the search PATH,
  6247. + # but as the default location of the library.
  6248. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6249. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6250. + ;;
  6251. -# An ERE matcher.
  6252. -EGREP=$lt_EGREP
  6253. + hpux10*)
  6254. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6255. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6256. + else
  6257. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6258. + fi
  6259. + if test "$with_gnu_ld" = no; then
  6260. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6261. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  6262. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6263. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6264. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6265. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6266. + # hardcode_minus_L: Not really in the search PATH,
  6267. + # but as the default location of the library.
  6268. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6269. + fi
  6270. + ;;
  6271. -# The linker used to build libraries.
  6272. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  6273. + hpux11*)
  6274. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6275. + case $host_cpu in
  6276. + hppa*64*)
  6277. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6278. + ;;
  6279. + ia64*)
  6280. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6281. + ;;
  6282. + *)
  6283. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6284. + ;;
  6285. + esac
  6286. + else
  6287. + case $host_cpu in
  6288. + hppa*64*)
  6289. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6290. + ;;
  6291. + ia64*)
  6292. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6293. + ;;
  6294. + *)
  6295. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6296. + ;;
  6297. + esac
  6298. + fi
  6299. + if test "$with_gnu_ld" = no; then
  6300. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6301. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6302. -# Whether we need hard or soft links.
  6303. -LN_S=$lt_LN_S
  6304. + case $host_cpu in
  6305. + hppa*64*|ia64*)
  6306. + _LT_TAGVAR(hardcode_direct, $1)=no
  6307. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6308. + ;;
  6309. + *)
  6310. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6311. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6312. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6313. -# A BSD-compatible nm program.
  6314. -NM=$lt_NM
  6315. + # hardcode_minus_L: Not really in the search PATH,
  6316. + # but as the default location of the library.
  6317. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6318. + ;;
  6319. + esac
  6320. + fi
  6321. + ;;
  6322. -# A symbol stripping program
  6323. -STRIP=$lt_STRIP
  6324. + irix5* | irix6* | nonstopux*)
  6325. + if test "$GCC" = yes; then
  6326. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6327. + # Try to use the -exported_symbol ld option, if it does not
  6328. + # work, assume that -exports_file does not work either and
  6329. + # implicitly export all symbols.
  6330. + save_LDFLAGS="$LDFLAGS"
  6331. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  6332. + AC_LINK_IFELSE(int foo(void) {},
  6333. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  6334. + )
  6335. + LDFLAGS="$save_LDFLAGS"
  6336. + else
  6337. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  6338. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  6339. + fi
  6340. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6341. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6342. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6343. + _LT_TAGVAR(inherit_rpath, $1)=yes
  6344. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6345. + ;;
  6346. -# Used to examine libraries when file_magic_cmd begins "file"
  6347. -MAGIC_CMD=$MAGIC_CMD
  6348. + netbsd* | netbsdelf*-gnu)
  6349. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6350. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6351. + else
  6352. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6353. + fi
  6354. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6355. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6356. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6357. + ;;
  6358. -# Used on cygwin: DLL creation program.
  6359. -DLLTOOL="$DLLTOOL"
  6360. + newsos6)
  6361. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6362. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6363. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6364. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6365. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6366. + ;;
  6367. -# Used on cygwin: object dumper.
  6368. -OBJDUMP="$OBJDUMP"
  6369. + *nto* | *qnx*)
  6370. + ;;
  6371. -# Used on cygwin: assembler.
  6372. -AS="$AS"
  6373. -
  6374. -# The name of the directory that contains temporary libtool files.
  6375. -objdir=$objdir
  6376. -
  6377. -# How to create reloadable object files.
  6378. -reload_flag=$lt_reload_flag
  6379. -reload_cmds=$lt_reload_cmds
  6380. -
  6381. -# How to pass a linker flag through the compiler.
  6382. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  6383. -
  6384. -# Object file suffix (normally "o").
  6385. -objext="$ac_objext"
  6386. -
  6387. -# Old archive suffix (normally "a").
  6388. -libext="$libext"
  6389. + openbsd*)
  6390. + if test -f /usr/libexec/ld.so; then
  6391. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6392. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6393. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6394. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6395. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6396. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6397. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6398. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6399. + else
  6400. + case $host_os in
  6401. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  6402. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6403. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6404. + ;;
  6405. + *)
  6406. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6407. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6408. + ;;
  6409. + esac
  6410. + fi
  6411. + else
  6412. + _LT_TAGVAR(ld_shlibs, $1)=no
  6413. + fi
  6414. + ;;
  6415. -# Shared library suffix (normally ".so").
  6416. -shrext_cmds='$shrext_cmds'
  6417. + os2*)
  6418. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6419. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6420. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6421. + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  6422. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6423. + ;;
  6424. -# Executable file suffix (normally "").
  6425. -exeext="$exeext"
  6426. + osf3*)
  6427. + if test "$GCC" = yes; then
  6428. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6429. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6430. + else
  6431. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6432. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  6433. + fi
  6434. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6435. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6436. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6437. + ;;
  6438. -# Additional compiler flags for building library objects.
  6439. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  6440. -pic_mode=$pic_mode
  6441. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  6442. + if test "$GCC" = yes; then
  6443. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6444. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6445. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6446. + else
  6447. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6448. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  6449. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  6450. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  6451. -# What is the maximum length of a command?
  6452. -max_cmd_len=$lt_cv_sys_max_cmd_len
  6453. + # Both c and cxx compiler support -rpath directly
  6454. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6455. + fi
  6456. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6457. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6458. + ;;
  6459. -# Does compiler simultaneously support -c and -o options?
  6460. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  6461. + solaris*)
  6462. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  6463. + if test "$GCC" = yes; then
  6464. + wlarc='${wl}'
  6465. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6466. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6467. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  6468. + else
  6469. + case `$CC -V 2>&1` in
  6470. + *"Compilers 5.0"*)
  6471. + wlarc=''
  6472. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6473. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6474. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  6475. + ;;
  6476. + *)
  6477. + wlarc='${wl}'
  6478. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6479. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6480. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  6481. + ;;
  6482. + esac
  6483. + fi
  6484. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6485. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6486. + case $host_os in
  6487. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6488. + *)
  6489. + # The compiler driver will combine and reorder linker options,
  6490. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  6491. + # but is careful enough not to reorder.
  6492. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  6493. + if test "$GCC" = yes; then
  6494. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6495. + else
  6496. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6497. + fi
  6498. + ;;
  6499. + esac
  6500. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6501. + ;;
  6502. -# Must we lock files when doing compilation?
  6503. -need_locks=$lt_need_locks
  6504. + sunos4*)
  6505. + if test "x$host_vendor" = xsequent; then
  6506. + # Use $CC to link under sequent, because it throws in some extra .o
  6507. + # files that make .init and .fini sections work.
  6508. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6509. + else
  6510. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6511. + fi
  6512. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6513. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6514. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6515. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6516. + ;;
  6517. -# Do we need the lib prefix for modules?
  6518. -need_lib_prefix=$need_lib_prefix
  6519. + sysv4)
  6520. + case $host_vendor in
  6521. + sni)
  6522. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6523. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  6524. + ;;
  6525. + siemens)
  6526. + ## LD is ld it makes a PLAMLIB
  6527. + ## CC just makes a GrossModule.
  6528. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6529. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  6530. + _LT_TAGVAR(hardcode_direct, $1)=no
  6531. + ;;
  6532. + motorola)
  6533. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6534. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  6535. + ;;
  6536. + esac
  6537. + runpath_var='LD_RUN_PATH'
  6538. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6539. + ;;
  6540. -# Do we need a version for libraries?
  6541. -need_version=$need_version
  6542. + sysv4.3*)
  6543. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6544. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6545. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  6546. + ;;
  6547. -# Whether dlopen is supported.
  6548. -dlopen_support=$enable_dlopen
  6549. + sysv4*MP*)
  6550. + if test -d /usr/nec; then
  6551. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6552. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6553. + runpath_var=LD_RUN_PATH
  6554. + hardcode_runpath_var=yes
  6555. + _LT_TAGVAR(ld_shlibs, $1)=yes
  6556. + fi
  6557. + ;;
  6558. -# Whether dlopen of programs is supported.
  6559. -dlopen_self=$enable_dlopen_self
  6560. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6561. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6562. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6563. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6564. + runpath_var='LD_RUN_PATH'
  6565. -# Whether dlopen of statically linked programs is supported.
  6566. -dlopen_self_static=$enable_dlopen_self_static
  6567. + if test "$GCC" = yes; then
  6568. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6569. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6570. + else
  6571. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6572. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6573. + fi
  6574. + ;;
  6575. -# Compiler flag to prevent dynamic linking.
  6576. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  6577. + sysv5* | sco3.2v5* | sco5v6*)
  6578. + # Note: We can NOT use -z defs as we might desire, because we do not
  6579. + # link with -lc, and that would cause any symbols used from libc to
  6580. + # always be unresolved, which means just about no library would
  6581. + # ever link correctly. If we're not using GNU ld we use -z text
  6582. + # though, which does catch some bad symbols but isn't as heavy-handed
  6583. + # as -z defs.
  6584. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6585. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6586. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6587. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6588. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6589. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6590. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6591. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6592. + runpath_var='LD_RUN_PATH'
  6593. -# Compiler flag to turn off builtin functions.
  6594. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  6595. + if test "$GCC" = yes; then
  6596. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6597. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6598. + else
  6599. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6600. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6601. + fi
  6602. + ;;
  6603. -# Compiler flag to allow reflexive dlopens.
  6604. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  6605. + uts4*)
  6606. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6607. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6608. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6609. + ;;
  6610. -# Compiler flag to generate shared objects directly from archives.
  6611. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  6612. + *)
  6613. + _LT_TAGVAR(ld_shlibs, $1)=no
  6614. + ;;
  6615. + esac
  6616. -# Compiler flag to generate thread-safe objects.
  6617. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  6618. + if test x$host_vendor = xsni; then
  6619. + case $host in
  6620. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6621. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  6622. + ;;
  6623. + esac
  6624. + fi
  6625. + fi
  6626. +])
  6627. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6628. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6629. -# Library versioning type.
  6630. -version_type=$version_type
  6631. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  6632. -# Format of library name prefix.
  6633. -libname_spec=$lt_libname_spec
  6634. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  6635. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  6636. +_LT_DECL([], [extract_expsyms_cmds], [2],
  6637. + [The commands to extract the exported symbol list from a shared archive])
  6638. -# List of archive names. First name is the real one, the rest are links.
  6639. -# The last name is the one that the linker finds with -lNAME.
  6640. -library_names_spec=$lt_library_names_spec
  6641. +#
  6642. +# Do we need to explicitly link libc?
  6643. +#
  6644. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  6645. +x|xyes)
  6646. + # Assume -lc should be added
  6647. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6648. -# The coded name of the library, if different from the real name.
  6649. -soname_spec=$lt_soname_spec
  6650. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  6651. + case $_LT_TAGVAR(archive_cmds, $1) in
  6652. + *'~'*)
  6653. + # FIXME: we may have to deal with multi-command sequences.
  6654. + ;;
  6655. + '$CC '*)
  6656. + # Test whether the compiler implicitly links with -lc since on some
  6657. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6658. + # to ld, don't add -lc before -lgcc.
  6659. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  6660. + $RM conftest*
  6661. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6662. -# Commands used to build and install an old-style archive.
  6663. -RANLIB=$lt_RANLIB
  6664. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  6665. -old_postinstall_cmds=$lt_old_postinstall_cmds
  6666. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  6667. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  6668. + soname=conftest
  6669. + lib=conftest
  6670. + libobjs=conftest.$ac_objext
  6671. + deplibs=
  6672. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  6673. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  6674. + compiler_flags=-v
  6675. + linker_flags=-v
  6676. + verstring=
  6677. + output_objdir=.
  6678. + libname=conftest
  6679. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  6680. + _LT_TAGVAR(allow_undefined_flag, $1)=
  6681. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  6682. + then
  6683. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6684. + else
  6685. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6686. + fi
  6687. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  6688. + else
  6689. + cat conftest.err 1>&5
  6690. + fi
  6691. + $RM conftest*
  6692. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  6693. + ;;
  6694. + esac
  6695. + fi
  6696. + ;;
  6697. +esac
  6698. -# Create an old-style archive from a shared archive.
  6699. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  6700. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  6701. + [Whether or not to add -lc for building shared libraries])
  6702. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  6703. + [enable_shared_with_static_runtimes], [0],
  6704. + [Whether or not to disallow shared libs when runtime libs are static])
  6705. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  6706. + [Compiler flag to allow reflexive dlopens])
  6707. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  6708. + [Compiler flag to generate shared objects directly from archives])
  6709. +_LT_TAGDECL([], [compiler_needs_object], [1],
  6710. + [Whether the compiler copes with passing no objects directly])
  6711. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  6712. + [Create an old-style archive from a shared archive])
  6713. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  6714. + [Create a temporary old-style archive to link instead of a shared archive])
  6715. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  6716. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  6717. +_LT_TAGDECL([], [module_cmds], [2],
  6718. + [Commands used to build a loadable module if different from building
  6719. + a shared archive.])
  6720. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  6721. +_LT_TAGDECL([], [with_gnu_ld], [1],
  6722. + [Whether we are building with GNU ld or not])
  6723. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  6724. + [Flag that allows shared libraries with undefined symbols to be built])
  6725. +_LT_TAGDECL([], [no_undefined_flag], [1],
  6726. + [Flag that enforces no undefined symbols])
  6727. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  6728. + [Flag to hardcode $libdir into a binary during linking.
  6729. + This must work even if $libdir does not exist])
  6730. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  6731. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  6732. + during linking. This must work even if $libdir does not exist]])
  6733. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  6734. + [Whether we need a single "-rpath" flag with a separated argument])
  6735. +_LT_TAGDECL([], [hardcode_direct], [0],
  6736. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  6737. + DIR into the resulting binary])
  6738. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  6739. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  6740. + DIR into the resulting binary and the resulting library dependency is
  6741. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  6742. + library is relocated])
  6743. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  6744. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  6745. + into the resulting binary])
  6746. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  6747. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  6748. + into the resulting binary])
  6749. +_LT_TAGDECL([], [hardcode_automatic], [0],
  6750. + [Set to "yes" if building a shared library automatically hardcodes DIR
  6751. + into the library and all subsequent libraries and executables linked
  6752. + against it])
  6753. +_LT_TAGDECL([], [inherit_rpath], [0],
  6754. + [Set to yes if linker adds runtime paths of dependent libraries
  6755. + to runtime path list])
  6756. +_LT_TAGDECL([], [link_all_deplibs], [0],
  6757. + [Whether libtool must link a program against all its dependency libraries])
  6758. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  6759. + [Fix the shell variable $srcfile for the compiler])
  6760. +_LT_TAGDECL([], [always_export_symbols], [0],
  6761. + [Set to "yes" if exported symbols are required])
  6762. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  6763. + [The commands to list exported symbols])
  6764. +_LT_TAGDECL([], [exclude_expsyms], [1],
  6765. + [Symbols that should not be listed in the preloaded symbols])
  6766. +_LT_TAGDECL([], [include_expsyms], [1],
  6767. + [Symbols that must always be exported])
  6768. +_LT_TAGDECL([], [prelink_cmds], [2],
  6769. + [Commands necessary for linking programs (against libraries) with templates])
  6770. +_LT_TAGDECL([], [file_list_spec], [1],
  6771. + [Specify filename containing input files])
  6772. +dnl FIXME: Not yet implemented
  6773. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  6774. +dnl [Compiler flag to generate thread safe objects])
  6775. +])# _LT_LINKER_SHLIBS
  6776. -# Create a temporary old-style archive to link instead of a shared archive.
  6777. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  6778. -# Commands used to build and install a shared archive.
  6779. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  6780. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  6781. -postinstall_cmds=$lt_postinstall_cmds
  6782. -postuninstall_cmds=$lt_postuninstall_cmds
  6783. +# _LT_LANG_C_CONFIG([TAG])
  6784. +# ------------------------
  6785. +# Ensure that the configuration variables for a C compiler are suitably
  6786. +# defined. These variables are subsequently used by _LT_CONFIG to write
  6787. +# the compiler configuration to `libtool'.
  6788. +m4_defun([_LT_LANG_C_CONFIG],
  6789. +[m4_require([_LT_DECL_EGREP])dnl
  6790. +lt_save_CC="$CC"
  6791. +AC_LANG_PUSH(C)
  6792. -# Commands used to build a loadable module (assumed same as above if empty)
  6793. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  6794. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  6795. +# Source file extension for C test sources.
  6796. +ac_ext=c
  6797. -# Commands to strip libraries.
  6798. -old_striplib=$lt_old_striplib
  6799. -striplib=$lt_striplib
  6800. +# Object file extension for compiled C test sources.
  6801. +objext=o
  6802. +_LT_TAGVAR(objext, $1)=$objext
  6803. -# Dependencies to place before the objects being linked to create a
  6804. -# shared library.
  6805. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  6806. +# Code to be used in simple compile tests
  6807. +lt_simple_compile_test_code="int some_variable = 0;"
  6808. -# Dependencies to place after the objects being linked to create a
  6809. -# shared library.
  6810. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  6811. +# Code to be used in simple link tests
  6812. +lt_simple_link_test_code='int main(){return(0);}'
  6813. -# Dependencies to place before the objects being linked to create a
  6814. -# shared library.
  6815. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  6816. +_LT_TAG_COMPILER
  6817. +# Save the default compiler, since it gets overwritten when the other
  6818. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6819. +compiler_DEFAULT=$CC
  6820. -# Dependencies to place after the objects being linked to create a
  6821. -# shared library.
  6822. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  6823. +# save warnings/boilerplate of simple test code
  6824. +_LT_COMPILER_BOILERPLATE
  6825. +_LT_LINKER_BOILERPLATE
  6826. -# The directories searched by this compiler when creating a shared
  6827. -# library
  6828. -compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
  6829. +if test -n "$compiler"; then
  6830. + _LT_COMPILER_NO_RTTI($1)
  6831. + _LT_COMPILER_PIC($1)
  6832. + _LT_COMPILER_C_O($1)
  6833. + _LT_COMPILER_FILE_LOCKS($1)
  6834. + _LT_LINKER_SHLIBS($1)
  6835. + _LT_SYS_DYNAMIC_LINKER($1)
  6836. + _LT_LINKER_HARDCODE_LIBPATH($1)
  6837. + LT_SYS_DLOPEN_SELF
  6838. + _LT_CMD_STRIPLIB
  6839. +
  6840. + # Report which library types will actually be built
  6841. + AC_MSG_CHECKING([if libtool supports shared libraries])
  6842. + AC_MSG_RESULT([$can_build_shared])
  6843. -# The library search path used internally by the compiler when linking
  6844. -# a shared library.
  6845. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  6846. + AC_MSG_CHECKING([whether to build shared libraries])
  6847. + test "$can_build_shared" = "no" && enable_shared=no
  6848. -# Method to check whether dependent libraries are shared objects.
  6849. -deplibs_check_method=$lt_deplibs_check_method
  6850. + # On AIX, shared libraries and static libraries use the same namespace, and
  6851. + # are all built from PIC.
  6852. + case $host_os in
  6853. + aix3*)
  6854. + test "$enable_shared" = yes && enable_static=no
  6855. + if test -n "$RANLIB"; then
  6856. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6857. + postinstall_cmds='$RANLIB $lib'
  6858. + fi
  6859. + ;;
  6860. -# Command to use when deplibs_check_method == file_magic.
  6861. -file_magic_cmd=$lt_file_magic_cmd
  6862. + aix[[4-9]]*)
  6863. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6864. + test "$enable_shared" = yes && enable_static=no
  6865. + fi
  6866. + ;;
  6867. + esac
  6868. + AC_MSG_RESULT([$enable_shared])
  6869. -# Flag that allows shared libraries with undefined symbols to be built.
  6870. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  6871. + AC_MSG_CHECKING([whether to build static libraries])
  6872. + # Make sure either enable_shared or enable_static is yes.
  6873. + test "$enable_shared" = yes || enable_static=yes
  6874. + AC_MSG_RESULT([$enable_static])
  6875. -# Flag that forces no undefined symbols.
  6876. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  6877. + _LT_CONFIG($1)
  6878. +fi
  6879. +AC_LANG_POP
  6880. +CC="$lt_save_CC"
  6881. +])# _LT_LANG_C_CONFIG
  6882. -# Commands used to finish a libtool library installation in a directory.
  6883. -finish_cmds=$lt_finish_cmds
  6884. -# Same as above, but a single script fragment to be evaled but not shown.
  6885. -finish_eval=$lt_finish_eval
  6886. +# _LT_PROG_CXX
  6887. +# ------------
  6888. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  6889. +# compiler, we have our own version here.
  6890. +m4_defun([_LT_PROG_CXX],
  6891. +[
  6892. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  6893. +AC_PROG_CXX
  6894. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6895. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6896. + (test "X$CXX" != "Xg++"))) ; then
  6897. + AC_PROG_CXXCPP
  6898. +else
  6899. + _lt_caught_CXX_error=yes
  6900. +fi
  6901. +popdef([AC_MSG_ERROR])
  6902. +])# _LT_PROG_CXX
  6903. -# Take the output of nm and produce a listing of raw symbols and C names.
  6904. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  6905. +dnl aclocal-1.4 backwards compatibility:
  6906. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  6907. -# Transform the output of nm in a proper C declaration
  6908. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  6909. -# Transform the output of nm in a C name address pair
  6910. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  6911. +# _LT_LANG_CXX_CONFIG([TAG])
  6912. +# --------------------------
  6913. +# Ensure that the configuration variables for a C++ compiler are suitably
  6914. +# defined. These variables are subsequently used by _LT_CONFIG to write
  6915. +# the compiler configuration to `libtool'.
  6916. +m4_defun([_LT_LANG_CXX_CONFIG],
  6917. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  6918. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6919. +m4_require([_LT_DECL_EGREP])dnl
  6920. +
  6921. +AC_LANG_PUSH(C++)
  6922. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6923. +_LT_TAGVAR(allow_undefined_flag, $1)=
  6924. +_LT_TAGVAR(always_export_symbols, $1)=no
  6925. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  6926. +_LT_TAGVAR(compiler_needs_object, $1)=no
  6927. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6928. +_LT_TAGVAR(hardcode_direct, $1)=no
  6929. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6930. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6931. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6932. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  6933. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  6934. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  6935. +_LT_TAGVAR(hardcode_automatic, $1)=no
  6936. +_LT_TAGVAR(inherit_rpath, $1)=no
  6937. +_LT_TAGVAR(module_cmds, $1)=
  6938. +_LT_TAGVAR(module_expsym_cmds, $1)=
  6939. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  6940. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6941. +_LT_TAGVAR(no_undefined_flag, $1)=
  6942. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  6943. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6944. -# This is the shared library runtime path variable.
  6945. -runpath_var=$runpath_var
  6946. +# Source file extension for C++ test sources.
  6947. +ac_ext=cpp
  6948. -# This is the shared library path variable.
  6949. -shlibpath_var=$shlibpath_var
  6950. +# Object file extension for compiled C++ test sources.
  6951. +objext=o
  6952. +_LT_TAGVAR(objext, $1)=$objext
  6953. -# Is shlibpath searched before the hard-coded library search path?
  6954. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  6955. +# No sense in running all these tests if we already determined that
  6956. +# the CXX compiler isn't working. Some variables (like enable_shared)
  6957. +# are currently assumed to apply to all compilers on this platform,
  6958. +# and will be corrupted by setting them based on a non-working compiler.
  6959. +if test "$_lt_caught_CXX_error" != yes; then
  6960. + # Code to be used in simple compile tests
  6961. + lt_simple_compile_test_code="int some_variable = 0;"
  6962. +
  6963. + # Code to be used in simple link tests
  6964. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  6965. +
  6966. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6967. + _LT_TAG_COMPILER
  6968. +
  6969. + # save warnings/boilerplate of simple test code
  6970. + _LT_COMPILER_BOILERPLATE
  6971. + _LT_LINKER_BOILERPLATE
  6972. +
  6973. + # Allow CC to be a program name with arguments.
  6974. + lt_save_CC=$CC
  6975. + lt_save_LD=$LD
  6976. + lt_save_GCC=$GCC
  6977. + GCC=$GXX
  6978. + lt_save_with_gnu_ld=$with_gnu_ld
  6979. + lt_save_path_LD=$lt_cv_path_LD
  6980. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  6981. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  6982. + else
  6983. + $as_unset lt_cv_prog_gnu_ld
  6984. + fi
  6985. + if test -n "${lt_cv_path_LDCXX+set}"; then
  6986. + lt_cv_path_LD=$lt_cv_path_LDCXX
  6987. + else
  6988. + $as_unset lt_cv_path_LD
  6989. + fi
  6990. + test -z "${LDCXX+set}" || LD=$LDCXX
  6991. + CC=${CXX-"c++"}
  6992. + compiler=$CC
  6993. + _LT_TAGVAR(compiler, $1)=$CC
  6994. + _LT_CC_BASENAME([$compiler])
  6995. -# How to hardcode a shared library path into an executable.
  6996. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  6997. + if test -n "$compiler"; then
  6998. + # We don't want -fno-exception when compiling C++ code, so set the
  6999. + # no_builtin_flag separately
  7000. + if test "$GXX" = yes; then
  7001. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  7002. + else
  7003. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  7004. + fi
  7005. -# Whether we should hardcode library paths into libraries.
  7006. -hardcode_into_libs=$hardcode_into_libs
  7007. + if test "$GXX" = yes; then
  7008. + # Set up default GNU C++ configuration
  7009. -# Flag to hardcode \$libdir into a binary during linking.
  7010. -# This must work even if \$libdir does not exist.
  7011. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  7012. + LT_PATH_LD
  7013. -# If ld is used when linking, flag to hardcode \$libdir into
  7014. -# a binary during linking. This must work even if \$libdir does
  7015. -# not exist.
  7016. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  7017. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  7018. + # archiving commands below assume that GNU ld is being used.
  7019. + if test "$with_gnu_ld" = yes; then
  7020. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7021. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7022. +
  7023. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7024. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7025. +
  7026. + # If archive_cmds runs LD, not CC, wlarc should be empty
  7027. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  7028. + # investigate it a little bit more. (MM)
  7029. + wlarc='${wl}'
  7030. +
  7031. + # ancient GNU ld didn't support --whole-archive et. al.
  7032. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  7033. + $GREP 'no-whole-archive' > /dev/null; then
  7034. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7035. + else
  7036. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7037. + fi
  7038. + else
  7039. + with_gnu_ld=no
  7040. + wlarc=
  7041. -# Whether we need a single -rpath flag with a separated argument.
  7042. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  7043. + # A generic and very simple default shared library creation
  7044. + # command for GNU C++ for the case where it uses the native
  7045. + # linker, instead of GNU ld. If possible, this setting should
  7046. + # overridden to take advantage of the native linker features on
  7047. + # the platform it is being used on.
  7048. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  7049. + fi
  7050. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  7051. -# resulting binary.
  7052. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  7053. + # Commands to make compiler produce verbose output that lists
  7054. + # what "hidden" libraries, object files and flags are used when
  7055. + # linking a shared library.
  7056. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7057. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  7058. -# resulting binary.
  7059. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  7060. + else
  7061. + GXX=no
  7062. + with_gnu_ld=no
  7063. + wlarc=
  7064. + fi
  7065. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  7066. -# the resulting binary.
  7067. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  7068. + # PORTME: fill in a description of your system's C++ link characteristics
  7069. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  7070. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7071. + case $host_os in
  7072. + aix3*)
  7073. + # FIXME: insert proper C++ library support
  7074. + _LT_TAGVAR(ld_shlibs, $1)=no
  7075. + ;;
  7076. + aix[[4-9]]*)
  7077. + if test "$host_cpu" = ia64; then
  7078. + # On IA64, the linker does run time linking by default, so we don't
  7079. + # have to do anything special.
  7080. + aix_use_runtimelinking=no
  7081. + exp_sym_flag='-Bexport'
  7082. + no_entry_flag=""
  7083. + else
  7084. + aix_use_runtimelinking=no
  7085. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  7086. -# and all subsequent libraries and executables linked against it.
  7087. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  7088. + # Test if we are trying to use run time linking or normal
  7089. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7090. + # need to do runtime linking.
  7091. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  7092. + for ld_flag in $LDFLAGS; do
  7093. + case $ld_flag in
  7094. + *-brtl*)
  7095. + aix_use_runtimelinking=yes
  7096. + break
  7097. + ;;
  7098. + esac
  7099. + done
  7100. + ;;
  7101. + esac
  7102. -# Variables whose values should be saved in libtool wrapper scripts and
  7103. -# restored at relink time.
  7104. -variables_saved_for_relink="$variables_saved_for_relink"
  7105. + exp_sym_flag='-bexport'
  7106. + no_entry_flag='-bnoentry'
  7107. + fi
  7108. -# Whether libtool must link a program against all its dependency libraries.
  7109. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  7110. + # When large executables or shared objects are built, AIX ld can
  7111. + # have problems creating the table of contents. If linking a library
  7112. + # or program results in "error TOC overflow" add -mminimal-toc to
  7113. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7114. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7115. +
  7116. + _LT_TAGVAR(archive_cmds, $1)=''
  7117. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7118. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7119. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  7120. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7121. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  7122. +
  7123. + if test "$GXX" = yes; then
  7124. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  7125. + # We only want to do this on AIX 4.2 and lower, the check
  7126. + # below for broken collect2 doesn't work under 4.3+
  7127. + collect2name=`${CC} -print-prog-name=collect2`
  7128. + if test -f "$collect2name" &&
  7129. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7130. + then
  7131. + # We have reworked collect2
  7132. + :
  7133. + else
  7134. + # We have old collect2
  7135. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  7136. + # It fails to find uninstalled libraries when the uninstalled
  7137. + # path is not listed in the libpath. Setting hardcode_minus_L
  7138. + # to unsupported forces relinking
  7139. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7140. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7141. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7142. + fi
  7143. + esac
  7144. + shared_flag='-shared'
  7145. + if test "$aix_use_runtimelinking" = yes; then
  7146. + shared_flag="$shared_flag "'${wl}-G'
  7147. + fi
  7148. + else
  7149. + # not using gcc
  7150. + if test "$host_cpu" = ia64; then
  7151. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7152. + # chokes on -Wl,-G. The following line is correct:
  7153. + shared_flag='-G'
  7154. + else
  7155. + if test "$aix_use_runtimelinking" = yes; then
  7156. + shared_flag='${wl}-G'
  7157. + else
  7158. + shared_flag='${wl}-bM:SRE'
  7159. + fi
  7160. + fi
  7161. + fi
  7162. -# Compile-time system search path for libraries
  7163. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  7164. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  7165. + # It seems that -bexpall does not export symbols beginning with
  7166. + # underscore (_), so it is better to generate a list of symbols to
  7167. + # export.
  7168. + _LT_TAGVAR(always_export_symbols, $1)=yes
  7169. + if test "$aix_use_runtimelinking" = yes; then
  7170. + # Warning - without using the other runtime loading flags (-brtl),
  7171. + # -berok will link without error, but may produce a broken library.
  7172. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  7173. + # Determine the default libpath from the value encoded in an empty
  7174. + # executable.
  7175. + _LT_SYS_MODULE_PATH_AIX
  7176. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7177. -# Run-time system search path for libraries
  7178. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  7179. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7180. + else
  7181. + if test "$host_cpu" = ia64; then
  7182. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  7183. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  7184. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  7185. + else
  7186. + # Determine the default libpath from the value encoded in an
  7187. + # empty executable.
  7188. + _LT_SYS_MODULE_PATH_AIX
  7189. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7190. + # Warning - without using the other run time loading flags,
  7191. + # -berok will link without error, but may produce a broken library.
  7192. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  7193. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  7194. + # Exported symbols can be pulled into shared objects from archives
  7195. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  7196. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  7197. + # This is similar to how AIX traditionally builds its shared
  7198. + # libraries.
  7199. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7200. + fi
  7201. + fi
  7202. + ;;
  7203. -# Fix the shell variable \$srcfile for the compiler.
  7204. -fix_srcfile_path=$lt_fix_srcfile_path
  7205. + beos*)
  7206. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7207. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7208. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7209. + # support --undefined. This deserves some investigation. FIXME
  7210. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7211. + else
  7212. + _LT_TAGVAR(ld_shlibs, $1)=no
  7213. + fi
  7214. + ;;
  7215. -# Set to yes if exported symbols are required.
  7216. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  7217. + chorus*)
  7218. + case $cc_basename in
  7219. + *)
  7220. + # FIXME: insert proper C++ library support
  7221. + _LT_TAGVAR(ld_shlibs, $1)=no
  7222. + ;;
  7223. + esac
  7224. + ;;
  7225. -# The commands to list exported symbols.
  7226. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  7227. + cygwin* | mingw* | pw32* | cegcc*)
  7228. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  7229. + # as there is no search path for DLLs.
  7230. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7231. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7232. + _LT_TAGVAR(always_export_symbols, $1)=no
  7233. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  7234. +
  7235. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7236. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7237. + # If the export-symbols file already is a .def file (1st line
  7238. + # is EXPORTS), use it as is; otherwise, prepend...
  7239. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7240. + cp $export_symbols $output_objdir/$soname.def;
  7241. + else
  7242. + echo EXPORTS > $output_objdir/$soname.def;
  7243. + cat $export_symbols >> $output_objdir/$soname.def;
  7244. + fi~
  7245. + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7246. + else
  7247. + _LT_TAGVAR(ld_shlibs, $1)=no
  7248. + fi
  7249. + ;;
  7250. + darwin* | rhapsody*)
  7251. + _LT_DARWIN_LINKER_FEATURES($1)
  7252. + ;;
  7253. -# The commands to extract the exported symbol list from a shared archive.
  7254. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  7255. + dgux*)
  7256. + case $cc_basename in
  7257. + ec++*)
  7258. + # FIXME: insert proper C++ library support
  7259. + _LT_TAGVAR(ld_shlibs, $1)=no
  7260. + ;;
  7261. + ghcx*)
  7262. + # Green Hills C++ Compiler
  7263. + # FIXME: insert proper C++ library support
  7264. + _LT_TAGVAR(ld_shlibs, $1)=no
  7265. + ;;
  7266. + *)
  7267. + # FIXME: insert proper C++ library support
  7268. + _LT_TAGVAR(ld_shlibs, $1)=no
  7269. + ;;
  7270. + esac
  7271. + ;;
  7272. -# Symbols that should not be listed in the preloaded symbols.
  7273. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  7274. + freebsd[[12]]*)
  7275. + # C++ shared libraries reported to be fairly broken before
  7276. + # switch to ELF
  7277. + _LT_TAGVAR(ld_shlibs, $1)=no
  7278. + ;;
  7279. -# Symbols that must always be exported.
  7280. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  7281. + freebsd-elf*)
  7282. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7283. + ;;
  7284. -ifelse([$1],[],
  7285. -[# ### END LIBTOOL CONFIG],
  7286. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  7287. + freebsd* | dragonfly*)
  7288. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  7289. + # conventions
  7290. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7291. + ;;
  7292. -__EOF__
  7293. + gnu*)
  7294. + ;;
  7295. -ifelse([$1],[], [
  7296. - case $host_os in
  7297. - aix3*)
  7298. - cat <<\EOF >> "$cfgfile"
  7299. + hpux9*)
  7300. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7301. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7302. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7303. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7304. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  7305. + # but as the default
  7306. + # location of the library.
  7307. +
  7308. + case $cc_basename in
  7309. + CC*)
  7310. + # FIXME: insert proper C++ library support
  7311. + _LT_TAGVAR(ld_shlibs, $1)=no
  7312. + ;;
  7313. + aCC*)
  7314. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7315. + # Commands to make compiler produce verbose output that lists
  7316. + # what "hidden" libraries, object files and flags are used when
  7317. + # linking a shared library.
  7318. + #
  7319. + # There doesn't appear to be a way to prevent this compiler from
  7320. + # explicitly linking system object files so we need to strip them
  7321. + # from the output so that they don't get included in the library
  7322. + # dependencies.
  7323. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  7324. + ;;
  7325. + *)
  7326. + if test "$GXX" = yes; then
  7327. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7328. + else
  7329. + # FIXME: insert proper C++ library support
  7330. + _LT_TAGVAR(ld_shlibs, $1)=no
  7331. + fi
  7332. + ;;
  7333. + esac
  7334. + ;;
  7335. -# AIX sometimes has problems with the GCC collect2 program. For some
  7336. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  7337. -# vanish in a puff of smoke.
  7338. -if test "X${COLLECT_NAMES+set}" != Xset; then
  7339. - COLLECT_NAMES=
  7340. - export COLLECT_NAMES
  7341. -fi
  7342. -EOF
  7343. - ;;
  7344. - esac
  7345. + hpux10*|hpux11*)
  7346. + if test $with_gnu_ld = no; then
  7347. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7348. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7349. +
  7350. + case $host_cpu in
  7351. + hppa*64*|ia64*)
  7352. + ;;
  7353. + *)
  7354. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7355. + ;;
  7356. + esac
  7357. + fi
  7358. + case $host_cpu in
  7359. + hppa*64*|ia64*)
  7360. + _LT_TAGVAR(hardcode_direct, $1)=no
  7361. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7362. + ;;
  7363. + *)
  7364. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7365. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7366. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  7367. + # but as the default
  7368. + # location of the library.
  7369. + ;;
  7370. + esac
  7371. +
  7372. + case $cc_basename in
  7373. + CC*)
  7374. + # FIXME: insert proper C++ library support
  7375. + _LT_TAGVAR(ld_shlibs, $1)=no
  7376. + ;;
  7377. + aCC*)
  7378. + case $host_cpu in
  7379. + hppa*64*)
  7380. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7381. + ;;
  7382. + ia64*)
  7383. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7384. + ;;
  7385. + *)
  7386. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7387. + ;;
  7388. + esac
  7389. + # Commands to make compiler produce verbose output that lists
  7390. + # what "hidden" libraries, object files and flags are used when
  7391. + # linking a shared library.
  7392. + #
  7393. + # There doesn't appear to be a way to prevent this compiler from
  7394. + # explicitly linking system object files so we need to strip them
  7395. + # from the output so that they don't get included in the library
  7396. + # dependencies.
  7397. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  7398. + ;;
  7399. + *)
  7400. + if test "$GXX" = yes; then
  7401. + if test $with_gnu_ld = no; then
  7402. + case $host_cpu in
  7403. + hppa*64*)
  7404. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7405. + ;;
  7406. + ia64*)
  7407. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7408. + ;;
  7409. + *)
  7410. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7411. + ;;
  7412. + esac
  7413. + fi
  7414. + else
  7415. + # FIXME: insert proper C++ library support
  7416. + _LT_TAGVAR(ld_shlibs, $1)=no
  7417. + fi
  7418. + ;;
  7419. + esac
  7420. + ;;
  7421. - # We use sed instead of cat because bash on DJGPP gets confused if
  7422. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  7423. - # text mode, it properly converts lines to CR/LF. This bash problem
  7424. - # is reportedly fixed, but why not run on old versions too?
  7425. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  7426. + interix[[3-9]]*)
  7427. + _LT_TAGVAR(hardcode_direct, $1)=no
  7428. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7429. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7430. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7431. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7432. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  7433. + # default) and relocated if they conflict, which is a slow very memory
  7434. + # consuming and fragmenting process. To avoid this, we pick a random,
  7435. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7436. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7437. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7438. + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7439. + ;;
  7440. + irix5* | irix6*)
  7441. + case $cc_basename in
  7442. + CC*)
  7443. + # SGI C++
  7444. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7445. +
  7446. + # Archives containing C++ object files must be created using
  7447. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  7448. + # necessary to make sure instantiated templates are included
  7449. + # in the archive.
  7450. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  7451. + ;;
  7452. + *)
  7453. + if test "$GXX" = yes; then
  7454. + if test "$with_gnu_ld" = no; then
  7455. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7456. + else
  7457. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  7458. + fi
  7459. + fi
  7460. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7461. + ;;
  7462. + esac
  7463. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7464. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7465. + _LT_TAGVAR(inherit_rpath, $1)=yes
  7466. + ;;
  7467. - mv -f "$cfgfile" "$ofile" || \
  7468. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  7469. - chmod +x "$ofile"
  7470. -])
  7471. -else
  7472. - # If there is no Makefile yet, we rely on a make rule to execute
  7473. - # `config.status --recheck' to rerun these tests and create the
  7474. - # libtool script then.
  7475. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  7476. - if test -f "$ltmain_in"; then
  7477. - test -f Makefile && make "$ltmain"
  7478. - fi
  7479. -fi
  7480. -])# AC_LIBTOOL_CONFIG
  7481. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7482. + case $cc_basename in
  7483. + KCC*)
  7484. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  7485. +
  7486. + # KCC will only create a shared library if the output file
  7487. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  7488. + # to its proper name (with version) after linking.
  7489. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  7490. + _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  7491. + # Commands to make compiler produce verbose output that lists
  7492. + # what "hidden" libraries, object files and flags are used when
  7493. + # linking a shared library.
  7494. + #
  7495. + # There doesn't appear to be a way to prevent this compiler from
  7496. + # explicitly linking system object files so we need to strip them
  7497. + # from the output so that they don't get included in the library
  7498. + # dependencies.
  7499. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  7500. +
  7501. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7502. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7503. +
  7504. + # Archives containing C++ object files must be created using
  7505. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  7506. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  7507. + ;;
  7508. + icpc* | ecpc* )
  7509. + # Intel C++
  7510. + with_gnu_ld=yes
  7511. + # version 8.0 and above of icpc choke on multiply defined symbols
  7512. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  7513. + # earlier do not add the objects themselves.
  7514. + case `$CC -V 2>&1` in
  7515. + *"Version 7."*)
  7516. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7517. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7518. + ;;
  7519. + *) # Version 8.0 or newer
  7520. + tmp_idyn=
  7521. + case $host_cpu in
  7522. + ia64*) tmp_idyn=' -i_dynamic';;
  7523. + esac
  7524. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7525. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7526. + ;;
  7527. + esac
  7528. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7529. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7530. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7531. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7532. + ;;
  7533. + pgCC* | pgcpp*)
  7534. + # Portland Group C++ compiler
  7535. + case `$CC -V` in
  7536. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  7537. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  7538. + rm -rf $tpldir~
  7539. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  7540. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  7541. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  7542. + rm -rf $tpldir~
  7543. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  7544. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  7545. + $RANLIB $oldlib'
  7546. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  7547. + rm -rf $tpldir~
  7548. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  7549. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  7550. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  7551. + rm -rf $tpldir~
  7552. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  7553. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  7554. + ;;
  7555. + *) # Version 6 will use weak symbols
  7556. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  7557. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  7558. + ;;
  7559. + esac
  7560. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  7561. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7562. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7563. + ;;
  7564. + cxx*)
  7565. + # Compaq C++
  7566. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7567. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  7568. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  7569. -# -------------------------------------------
  7570. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  7571. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  7572. + runpath_var=LD_RUN_PATH
  7573. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7574. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7575. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  7576. + # Commands to make compiler produce verbose output that lists
  7577. + # what "hidden" libraries, object files and flags are used when
  7578. + # linking a shared library.
  7579. + #
  7580. + # There doesn't appear to be a way to prevent this compiler from
  7581. + # explicitly linking system object files so we need to strip them
  7582. + # from the output so that they don't get included in the library
  7583. + # dependencies.
  7584. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  7585. + ;;
  7586. + xl*)
  7587. + # IBM XL 8.0 on PPC, with GNU ld
  7588. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7589. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7590. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7591. + if test "x$supports_anon_versioning" = xyes; then
  7592. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  7593. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7594. + echo "local: *; };" >> $output_objdir/$libname.ver~
  7595. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7596. + fi
  7597. + ;;
  7598. + *)
  7599. + case `$CC -V 2>&1 | sed 5q` in
  7600. + *Sun\ C*)
  7601. + # Sun C++ 5.9
  7602. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  7603. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7604. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  7605. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7606. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7607. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  7608. +
  7609. + # Not sure whether something based on
  7610. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  7611. + # would be better.
  7612. + output_verbose_link_cmd='echo'
  7613. +
  7614. + # Archives containing C++ object files must be created using
  7615. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  7616. + # necessary to make sure instantiated templates are included
  7617. + # in the archive.
  7618. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  7619. + ;;
  7620. + esac
  7621. + ;;
  7622. + esac
  7623. + ;;
  7624. -if test "$GCC" = yes; then
  7625. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  7626. + lynxos*)
  7627. + # FIXME: insert proper C++ library support
  7628. + _LT_TAGVAR(ld_shlibs, $1)=no
  7629. + ;;
  7630. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  7631. - lt_cv_prog_compiler_rtti_exceptions,
  7632. - [-fno-rtti -fno-exceptions], [],
  7633. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  7634. -fi
  7635. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  7636. + m88k*)
  7637. + # FIXME: insert proper C++ library support
  7638. + _LT_TAGVAR(ld_shlibs, $1)=no
  7639. + ;;
  7640. + mvs*)
  7641. + case $cc_basename in
  7642. + cxx*)
  7643. + # FIXME: insert proper C++ library support
  7644. + _LT_TAGVAR(ld_shlibs, $1)=no
  7645. + ;;
  7646. + *)
  7647. + # FIXME: insert proper C++ library support
  7648. + _LT_TAGVAR(ld_shlibs, $1)=no
  7649. + ;;
  7650. + esac
  7651. + ;;
  7652. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  7653. -# ---------------------------------
  7654. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  7655. -[AC_REQUIRE([AC_CANONICAL_HOST])
  7656. -AC_REQUIRE([LT_AC_PROG_SED])
  7657. -AC_REQUIRE([AC_PROG_NM])
  7658. -AC_REQUIRE([AC_OBJEXT])
  7659. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  7660. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  7661. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  7662. -[
  7663. -# These are sane defaults that work on at least a few old systems.
  7664. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7665. + netbsd*)
  7666. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7667. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  7668. + wlarc=
  7669. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7670. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7671. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7672. + fi
  7673. + # Workaround some broken pre-1.5 toolchains
  7674. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  7675. + ;;
  7676. -# Character class describing NM global symbol codes.
  7677. -symcode='[[BCDEGRST]]'
  7678. + *nto* | *qnx*)
  7679. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7680. + ;;
  7681. -# Regexp to match symbols that can be accessed directly from C.
  7682. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  7683. + openbsd2*)
  7684. + # C++ shared libraries are fairly broken
  7685. + _LT_TAGVAR(ld_shlibs, $1)=no
  7686. + ;;
  7687. +
  7688. + openbsd*)
  7689. + if test -f /usr/libexec/ld.so; then
  7690. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7691. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7692. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7693. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  7694. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7695. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7696. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  7697. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7698. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7699. + fi
  7700. + output_verbose_link_cmd=echo
  7701. + else
  7702. + _LT_TAGVAR(ld_shlibs, $1)=no
  7703. + fi
  7704. + ;;
  7705. -# Transform an extracted symbol line into a proper C declaration
  7706. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  7707. + osf3* | osf4* | osf5*)
  7708. + case $cc_basename in
  7709. + KCC*)
  7710. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  7711. +
  7712. + # KCC will only create a shared library if the output file
  7713. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  7714. + # to its proper name (with version) after linking.
  7715. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  7716. +
  7717. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7718. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7719. +
  7720. + # Archives containing C++ object files must be created using
  7721. + # the KAI C++ compiler.
  7722. + case $host in
  7723. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  7724. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  7725. + esac
  7726. + ;;
  7727. + RCC*)
  7728. + # Rational C++ 2.4.1
  7729. + # FIXME: insert proper C++ library support
  7730. + _LT_TAGVAR(ld_shlibs, $1)=no
  7731. + ;;
  7732. + cxx*)
  7733. + case $host in
  7734. + osf3*)
  7735. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7736. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7737. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7738. + ;;
  7739. + *)
  7740. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  7741. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7742. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  7743. + echo "-hidden">> $lib.exp~
  7744. + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  7745. + $RM $lib.exp'
  7746. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7747. + ;;
  7748. + esac
  7749. -# Transform an extracted symbol line into symbol name and symbol address
  7750. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  7751. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7752. -# Define system-specific variables.
  7753. -case $host_os in
  7754. -aix*)
  7755. - symcode='[[BCDT]]'
  7756. - ;;
  7757. -cygwin* | mingw* | pw32*)
  7758. - symcode='[[ABCDGISTW]]'
  7759. - ;;
  7760. -hpux*) # Its linker distinguishes data from code symbols
  7761. - if test "$host_cpu" = ia64; then
  7762. - symcode='[[ABCDEGRST]]'
  7763. - fi
  7764. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7765. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  7766. - ;;
  7767. -linux* | k*bsd*-gnu)
  7768. - if test "$host_cpu" = ia64; then
  7769. - symcode='[[ABCDGIRSTW]]'
  7770. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7771. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  7772. - fi
  7773. - ;;
  7774. -irix* | nonstopux*)
  7775. - symcode='[[BCDEGRST]]'
  7776. - ;;
  7777. -osf*)
  7778. - symcode='[[BCDEGQRST]]'
  7779. - ;;
  7780. -solaris*)
  7781. - symcode='[[BDRT]]'
  7782. - ;;
  7783. -sco3.2v5*)
  7784. - symcode='[[DT]]'
  7785. - ;;
  7786. -sysv4.2uw2*)
  7787. - symcode='[[DT]]'
  7788. - ;;
  7789. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7790. - symcode='[[ABDT]]'
  7791. - ;;
  7792. -sysv4)
  7793. - symcode='[[DFNSTU]]'
  7794. - ;;
  7795. -esac
  7796. + # Commands to make compiler produce verbose output that lists
  7797. + # what "hidden" libraries, object files and flags are used when
  7798. + # linking a shared library.
  7799. + #
  7800. + # There doesn't appear to be a way to prevent this compiler from
  7801. + # explicitly linking system object files so we need to strip them
  7802. + # from the output so that they don't get included in the library
  7803. + # dependencies.
  7804. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  7805. + ;;
  7806. + *)
  7807. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  7808. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7809. + case $host in
  7810. + osf3*)
  7811. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7812. + ;;
  7813. + *)
  7814. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7815. + ;;
  7816. + esac
  7817. +
  7818. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7819. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7820. +
  7821. + # Commands to make compiler produce verbose output that lists
  7822. + # what "hidden" libraries, object files and flags are used when
  7823. + # linking a shared library.
  7824. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7825. +
  7826. + else
  7827. + # FIXME: insert proper C++ library support
  7828. + _LT_TAGVAR(ld_shlibs, $1)=no
  7829. + fi
  7830. + ;;
  7831. + esac
  7832. + ;;
  7833. -# Handle CRLF in mingw tool chain
  7834. -opt_cr=
  7835. -case $build_os in
  7836. -mingw*)
  7837. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7838. - ;;
  7839. -esac
  7840. + psos*)
  7841. + # FIXME: insert proper C++ library support
  7842. + _LT_TAGVAR(ld_shlibs, $1)=no
  7843. + ;;
  7844. -# If we're using GNU nm, then use its standard symbol codes.
  7845. -case `$NM -V 2>&1` in
  7846. -*GNU* | *'with BFD'*)
  7847. - symcode='[[ABCDGIRSTW]]' ;;
  7848. -esac
  7849. + sunos4*)
  7850. + case $cc_basename in
  7851. + CC*)
  7852. + # Sun C++ 4.x
  7853. + # FIXME: insert proper C++ library support
  7854. + _LT_TAGVAR(ld_shlibs, $1)=no
  7855. + ;;
  7856. + lcc*)
  7857. + # Lucid
  7858. + # FIXME: insert proper C++ library support
  7859. + _LT_TAGVAR(ld_shlibs, $1)=no
  7860. + ;;
  7861. + *)
  7862. + # FIXME: insert proper C++ library support
  7863. + _LT_TAGVAR(ld_shlibs, $1)=no
  7864. + ;;
  7865. + esac
  7866. + ;;
  7867. -# Try without a prefix undercore, then with it.
  7868. -for ac_symprfx in "" "_"; do
  7869. + solaris*)
  7870. + case $cc_basename in
  7871. + CC*)
  7872. + # Sun C++ 4.2, 5.x and Centerline C++
  7873. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  7874. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  7875. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7876. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7877. + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  7878. +
  7879. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7880. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7881. + case $host_os in
  7882. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  7883. + *)
  7884. + # The compiler driver will combine and reorder linker options,
  7885. + # but understands `-z linker_flag'.
  7886. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  7887. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  7888. + ;;
  7889. + esac
  7890. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7891. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7892. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  7893. + output_verbose_link_cmd='echo'
  7894. - # Write the raw and C identifiers.
  7895. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7896. + # Archives containing C++ object files must be created using
  7897. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  7898. + # necessary to make sure instantiated templates are included
  7899. + # in the archive.
  7900. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  7901. + ;;
  7902. + gcx*)
  7903. + # Green Hills C++ Compiler
  7904. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7905. - # Check to see that the pipe works correctly.
  7906. - pipe_works=no
  7907. + # The C++ compiler must be used to create the archive.
  7908. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  7909. + ;;
  7910. + *)
  7911. + # GNU C++ compiler with Solaris linker
  7912. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  7913. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  7914. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  7915. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7916. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7917. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  7918. +
  7919. + # Commands to make compiler produce verbose output that lists
  7920. + # what "hidden" libraries, object files and flags are used when
  7921. + # linking a shared library.
  7922. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7923. + else
  7924. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  7925. + # platform.
  7926. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7927. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7928. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  7929. +
  7930. + # Commands to make compiler produce verbose output that lists
  7931. + # what "hidden" libraries, object files and flags are used when
  7932. + # linking a shared library.
  7933. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7934. + fi
  7935. +
  7936. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  7937. + case $host_os in
  7938. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  7939. + *)
  7940. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7941. + ;;
  7942. + esac
  7943. + fi
  7944. + ;;
  7945. + esac
  7946. + ;;
  7947. - rm -f conftest*
  7948. - cat > conftest.$ac_ext <<EOF
  7949. -#ifdef __cplusplus
  7950. -extern "C" {
  7951. -#endif
  7952. -char nm_test_var;
  7953. -void nm_test_func(){}
  7954. -#ifdef __cplusplus
  7955. -}
  7956. -#endif
  7957. -int main(){nm_test_var='a';nm_test_func();return(0);}
  7958. -EOF
  7959. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  7960. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7961. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7962. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7963. + runpath_var='LD_RUN_PATH'
  7964. - if AC_TRY_EVAL(ac_compile); then
  7965. - # Now try to grab the symbols.
  7966. - nlist=conftest.nm
  7967. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  7968. - # Try sorting and uniquifying the output.
  7969. - if sort "$nlist" | uniq > "$nlist"T; then
  7970. - mv -f "$nlist"T "$nlist"
  7971. - else
  7972. - rm -f "$nlist"T
  7973. - fi
  7974. + case $cc_basename in
  7975. + CC*)
  7976. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7977. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7978. + ;;
  7979. + *)
  7980. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7981. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7982. + ;;
  7983. + esac
  7984. + ;;
  7985. - # Make sure that we snagged all the symbols we need.
  7986. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  7987. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  7988. - cat <<EOF > conftest.$ac_ext
  7989. -#ifdef __cplusplus
  7990. -extern "C" {
  7991. -#endif
  7992. + sysv5* | sco3.2v5* | sco5v6*)
  7993. + # Note: We can NOT use -z defs as we might desire, because we do not
  7994. + # link with -lc, and that would cause any symbols used from libc to
  7995. + # always be unresolved, which means just about no library would
  7996. + # ever link correctly. If we're not using GNU ld we use -z text
  7997. + # though, which does catch some bad symbols but isn't as heavy-handed
  7998. + # as -z defs.
  7999. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8000. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  8001. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8002. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8003. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  8004. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8005. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8006. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  8007. + runpath_var='LD_RUN_PATH'
  8008. -EOF
  8009. - # Now generate the symbol file.
  8010. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  8011. + case $cc_basename in
  8012. + CC*)
  8013. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8014. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8015. + ;;
  8016. + *)
  8017. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8018. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8019. + ;;
  8020. + esac
  8021. + ;;
  8022. - cat <<EOF >> conftest.$ac_ext
  8023. -#if defined (__STDC__) && __STDC__
  8024. -# define lt_ptr_t void *
  8025. -#else
  8026. -# define lt_ptr_t char *
  8027. -# define const
  8028. -#endif
  8029. + tandem*)
  8030. + case $cc_basename in
  8031. + NCC*)
  8032. + # NonStop-UX NCC 3.20
  8033. + # FIXME: insert proper C++ library support
  8034. + _LT_TAGVAR(ld_shlibs, $1)=no
  8035. + ;;
  8036. + *)
  8037. + # FIXME: insert proper C++ library support
  8038. + _LT_TAGVAR(ld_shlibs, $1)=no
  8039. + ;;
  8040. + esac
  8041. + ;;
  8042. -/* The mapping between symbol names and symbols. */
  8043. -const struct {
  8044. - const char *name;
  8045. - lt_ptr_t address;
  8046. -}
  8047. -lt_preloaded_symbols[[]] =
  8048. -{
  8049. -EOF
  8050. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  8051. - cat <<\EOF >> conftest.$ac_ext
  8052. - {0, (lt_ptr_t) 0}
  8053. -};
  8054. + vxworks*)
  8055. + # FIXME: insert proper C++ library support
  8056. + _LT_TAGVAR(ld_shlibs, $1)=no
  8057. + ;;
  8058. -#ifdef __cplusplus
  8059. -}
  8060. -#endif
  8061. -EOF
  8062. - # Now try linking the two files.
  8063. - mv conftest.$ac_objext conftstm.$ac_objext
  8064. - lt_save_LIBS="$LIBS"
  8065. - lt_save_CFLAGS="$CFLAGS"
  8066. - LIBS="conftstm.$ac_objext"
  8067. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  8068. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  8069. - pipe_works=yes
  8070. - fi
  8071. - LIBS="$lt_save_LIBS"
  8072. - CFLAGS="$lt_save_CFLAGS"
  8073. - else
  8074. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  8075. - fi
  8076. - else
  8077. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  8078. - fi
  8079. - else
  8080. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  8081. - fi
  8082. - else
  8083. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  8084. - cat conftest.$ac_ext >&5
  8085. - fi
  8086. - rm -rf conftest* conftst*
  8087. + *)
  8088. + # FIXME: insert proper C++ library support
  8089. + _LT_TAGVAR(ld_shlibs, $1)=no
  8090. + ;;
  8091. + esac
  8092. - # Do not use the global_symbol_pipe unless it works.
  8093. - if test "$pipe_works" = yes; then
  8094. - break
  8095. - else
  8096. - lt_cv_sys_global_symbol_pipe=
  8097. - fi
  8098. -done
  8099. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  8100. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  8101. +
  8102. + _LT_TAGVAR(GCC, $1)="$GXX"
  8103. + _LT_TAGVAR(LD, $1)="$LD"
  8104. +
  8105. + ## CAVEAT EMPTOR:
  8106. + ## There is no encapsulation within the following macros, do not change
  8107. + ## the running order or otherwise move them around unless you know exactly
  8108. + ## what you are doing...
  8109. + _LT_SYS_HIDDEN_LIBDEPS($1)
  8110. + _LT_COMPILER_PIC($1)
  8111. + _LT_COMPILER_C_O($1)
  8112. + _LT_COMPILER_FILE_LOCKS($1)
  8113. + _LT_LINKER_SHLIBS($1)
  8114. + _LT_SYS_DYNAMIC_LINKER($1)
  8115. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8116. +
  8117. + _LT_CONFIG($1)
  8118. + fi # test -n "$compiler"
  8119. +
  8120. + CC=$lt_save_CC
  8121. + LDCXX=$LD
  8122. + LD=$lt_save_LD
  8123. + GCC=$lt_save_GCC
  8124. + with_gnu_ld=$lt_save_with_gnu_ld
  8125. + lt_cv_path_LDCXX=$lt_cv_path_LD
  8126. + lt_cv_path_LD=$lt_save_path_LD
  8127. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  8128. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  8129. +fi # test "$_lt_caught_CXX_error" != yes
  8130. +
  8131. +AC_LANG_POP
  8132. +])# _LT_LANG_CXX_CONFIG
  8133. +
  8134. +
  8135. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  8136. +# ---------------------------------
  8137. +# Figure out "hidden" library dependencies from verbose
  8138. +# compiler output when linking a shared library.
  8139. +# Parse the compiler output and extract the necessary
  8140. +# objects, libraries and library flags.
  8141. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  8142. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  8143. +# Dependencies to place before and after the object being linked:
  8144. +_LT_TAGVAR(predep_objects, $1)=
  8145. +_LT_TAGVAR(postdep_objects, $1)=
  8146. +_LT_TAGVAR(predeps, $1)=
  8147. +_LT_TAGVAR(postdeps, $1)=
  8148. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  8149. +
  8150. +dnl we can't use the lt_simple_compile_test_code here,
  8151. +dnl because it contains code intended for an executable,
  8152. +dnl not a library. It's possible we should let each
  8153. +dnl tag define a new lt_????_link_test_code variable,
  8154. +dnl but it's only used here...
  8155. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  8156. +int a;
  8157. +void foo (void) { a = 0; }
  8158. +_LT_EOF
  8159. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  8160. +class Foo
  8161. +{
  8162. +public:
  8163. + Foo (void) { a = 0; }
  8164. +private:
  8165. + int a;
  8166. +};
  8167. +_LT_EOF
  8168. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  8169. + subroutine foo
  8170. + implicit none
  8171. + integer*4 a
  8172. + a=0
  8173. + return
  8174. + end
  8175. +_LT_EOF
  8176. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  8177. + subroutine foo
  8178. + implicit none
  8179. + integer a
  8180. + a=0
  8181. + return
  8182. + end
  8183. +_LT_EOF
  8184. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  8185. +public class foo {
  8186. + private int a;
  8187. + public void bar (void) {
  8188. + a = 0;
  8189. + }
  8190. +};
  8191. +_LT_EOF
  8192. ])
  8193. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8194. - lt_cv_sys_global_symbol_to_cdecl=
  8195. -fi
  8196. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8197. - AC_MSG_RESULT(failed)
  8198. +dnl Parse the compiler output and extract the necessary
  8199. +dnl objects, libraries and library flags.
  8200. +if AC_TRY_EVAL(ac_compile); then
  8201. + # Parse the compiler output and extract the necessary
  8202. + # objects, libraries and library flags.
  8203. +
  8204. + # Sentinel used to keep track of whether or not we are before
  8205. + # the conftest object file.
  8206. + pre_test_object_deps_done=no
  8207. +
  8208. + for p in `eval "$output_verbose_link_cmd"`; do
  8209. + case $p in
  8210. +
  8211. + -L* | -R* | -l*)
  8212. + # Some compilers place space between "-{L,R}" and the path.
  8213. + # Remove the space.
  8214. + if test $p = "-L" ||
  8215. + test $p = "-R"; then
  8216. + prev=$p
  8217. + continue
  8218. + else
  8219. + prev=
  8220. + fi
  8221. +
  8222. + if test "$pre_test_object_deps_done" = no; then
  8223. + case $p in
  8224. + -L* | -R*)
  8225. + # Internal compiler library paths should come after those
  8226. + # provided the user. The postdeps already come after the
  8227. + # user supplied libs so there is no need to process them.
  8228. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  8229. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  8230. + else
  8231. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  8232. + fi
  8233. + ;;
  8234. + # The "-l" case would never come before the object being
  8235. + # linked, so don't bother handling this case.
  8236. + esac
  8237. + else
  8238. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  8239. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  8240. + else
  8241. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  8242. + fi
  8243. + fi
  8244. + ;;
  8245. +
  8246. + *.$objext)
  8247. + # This assumes that the test object file only shows up
  8248. + # once in the compiler output.
  8249. + if test "$p" = "conftest.$objext"; then
  8250. + pre_test_object_deps_done=yes
  8251. + continue
  8252. + fi
  8253. +
  8254. + if test "$pre_test_object_deps_done" = no; then
  8255. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  8256. + _LT_TAGVAR(predep_objects, $1)="$p"
  8257. + else
  8258. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  8259. + fi
  8260. + else
  8261. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  8262. + _LT_TAGVAR(postdep_objects, $1)="$p"
  8263. + else
  8264. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  8265. + fi
  8266. + fi
  8267. + ;;
  8268. +
  8269. + *) ;; # Ignore the rest.
  8270. +
  8271. + esac
  8272. + done
  8273. +
  8274. + # Clean up.
  8275. + rm -f a.out a.exe
  8276. else
  8277. - AC_MSG_RESULT(ok)
  8278. + echo "libtool.m4: error: problem compiling $1 test program"
  8279. fi
  8280. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  8281. +$RM -f confest.$objext
  8282. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  8283. -# ---------------------------------------
  8284. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  8285. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  8286. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8287. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  8288. +# PORTME: override above test on systems where it is broken
  8289. +m4_if([$1], [CXX],
  8290. +[case $host_os in
  8291. +interix[[3-9]]*)
  8292. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  8293. + # hack all around it, let's just trust "g++" to DTRT.
  8294. + _LT_TAGVAR(predep_objects,$1)=
  8295. + _LT_TAGVAR(postdep_objects,$1)=
  8296. + _LT_TAGVAR(postdeps,$1)=
  8297. + ;;
  8298. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  8299. - ifelse([$1],[CXX],[
  8300. - # C++ specific cases for pic, static, wl, etc.
  8301. - if test "$GXX" = yes; then
  8302. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8303. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8304. +linux*)
  8305. + case `$CC -V 2>&1 | sed 5q` in
  8306. + *Sun\ C*)
  8307. + # Sun C++ 5.9
  8308. - case $host_os in
  8309. - aix*)
  8310. - # All AIX code is PIC.
  8311. - if test "$host_cpu" = ia64; then
  8312. - # AIX 5 now supports IA64 processor
  8313. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8314. - fi
  8315. - ;;
  8316. - amigaos*)
  8317. - # FIXME: we need at least 68020 code to build shared libraries, but
  8318. - # adding the `-m68020' flag to GCC prevents building anything better,
  8319. - # like `-m68040'.
  8320. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  8321. - ;;
  8322. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8323. - # PIC is the default for these OSes.
  8324. - ;;
  8325. - mingw* | cygwin* | os2* | pw32*)
  8326. - # This hack is so that the source file can tell whether it is being
  8327. - # built for inclusion in a dll (and should export symbols for example).
  8328. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8329. - # (--disable-auto-import) libraries
  8330. - m4_if([$1], [GCJ], [],
  8331. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  8332. - ;;
  8333. - darwin* | rhapsody*)
  8334. - # PIC is the default on this platform
  8335. - # Common symbols not allowed in MH_DYLIB files
  8336. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  8337. - ;;
  8338. - *djgpp*)
  8339. - # DJGPP does not support shared libraries at all
  8340. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8341. - ;;
  8342. - interix[[3-9]]*)
  8343. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8344. - # Instead, we relocate shared libraries at runtime.
  8345. - ;;
  8346. - sysv4*MP*)
  8347. - if test -d /usr/nec; then
  8348. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  8349. - fi
  8350. - ;;
  8351. - hpux*)
  8352. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8353. - # not for PA HP-UX.
  8354. - case $host_cpu in
  8355. - hppa*64*|ia64*)
  8356. - ;;
  8357. - *)
  8358. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8359. - ;;
  8360. - esac
  8361. + # The more standards-conforming stlport4 library is
  8362. + # incompatible with the Cstd library. Avoid specifying
  8363. + # it if it's in CXXFLAGS. Ignore libCrun as
  8364. + # -library=stlport4 depends on it.
  8365. + case " $CXX $CXXFLAGS " in
  8366. + *" -library=stlport4 "*)
  8367. + solaris_use_stlport4=yes
  8368. ;;
  8369. - *)
  8370. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8371. + esac
  8372. +
  8373. + if test "$solaris_use_stlport4" != yes; then
  8374. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  8375. + fi
  8376. + ;;
  8377. + esac
  8378. + ;;
  8379. +
  8380. +solaris*)
  8381. + case $cc_basename in
  8382. + CC*)
  8383. + # The more standards-conforming stlport4 library is
  8384. + # incompatible with the Cstd library. Avoid specifying
  8385. + # it if it's in CXXFLAGS. Ignore libCrun as
  8386. + # -library=stlport4 depends on it.
  8387. + case " $CXX $CXXFLAGS " in
  8388. + *" -library=stlport4 "*)
  8389. + solaris_use_stlport4=yes
  8390. ;;
  8391. esac
  8392. - else
  8393. +
  8394. + # Adding this requires a known-good setup of shared libraries for
  8395. + # Sun compiler versions before 5.6, else PIC objects from an old
  8396. + # archive will be linked into the output, leading to subtle bugs.
  8397. + if test "$solaris_use_stlport4" != yes; then
  8398. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  8399. + fi
  8400. + ;;
  8401. + esac
  8402. + ;;
  8403. +esac
  8404. +])
  8405. +
  8406. +case " $_LT_TAGVAR(postdeps, $1) " in
  8407. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  8408. +esac
  8409. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  8410. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  8411. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  8412. +fi
  8413. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  8414. + [The directories searched by this compiler when creating a shared library])
  8415. +_LT_TAGDECL([], [predep_objects], [1],
  8416. + [Dependencies to place before and after the objects being linked to
  8417. + create a shared library])
  8418. +_LT_TAGDECL([], [postdep_objects], [1])
  8419. +_LT_TAGDECL([], [predeps], [1])
  8420. +_LT_TAGDECL([], [postdeps], [1])
  8421. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  8422. + [The library search path used internally by the compiler when linking
  8423. + a shared library])
  8424. +])# _LT_SYS_HIDDEN_LIBDEPS
  8425. +
  8426. +
  8427. +# _LT_PROG_F77
  8428. +# ------------
  8429. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  8430. +# if there is no fortran compiler, we have our own version here.
  8431. +m4_defun([_LT_PROG_F77],
  8432. +[
  8433. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  8434. +AC_PROG_F77
  8435. +if test -z "$F77" || test "X$F77" = "Xno"; then
  8436. + _lt_disable_F77=yes
  8437. +fi
  8438. +popdef([AC_MSG_ERROR])
  8439. +])# _LT_PROG_F77
  8440. +
  8441. +dnl aclocal-1.4 backwards compatibility:
  8442. +dnl AC_DEFUN([_LT_PROG_F77], [])
  8443. +
  8444. +
  8445. +# _LT_LANG_F77_CONFIG([TAG])
  8446. +# --------------------------
  8447. +# Ensure that the configuration variables for a Fortran 77 compiler are
  8448. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  8449. +# to write the compiler configuration to `libtool'.
  8450. +m4_defun([_LT_LANG_F77_CONFIG],
  8451. +[AC_REQUIRE([_LT_PROG_F77])dnl
  8452. +AC_LANG_PUSH(Fortran 77)
  8453. +
  8454. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8455. +_LT_TAGVAR(allow_undefined_flag, $1)=
  8456. +_LT_TAGVAR(always_export_symbols, $1)=no
  8457. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  8458. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8459. +_LT_TAGVAR(hardcode_direct, $1)=no
  8460. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  8461. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8462. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8463. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  8464. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  8465. +_LT_TAGVAR(hardcode_automatic, $1)=no
  8466. +_LT_TAGVAR(inherit_rpath, $1)=no
  8467. +_LT_TAGVAR(module_cmds, $1)=
  8468. +_LT_TAGVAR(module_expsym_cmds, $1)=
  8469. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  8470. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8471. +_LT_TAGVAR(no_undefined_flag, $1)=
  8472. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  8473. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8474. +
  8475. +# Source file extension for f77 test sources.
  8476. +ac_ext=f
  8477. +
  8478. +# Object file extension for compiled f77 test sources.
  8479. +objext=o
  8480. +_LT_TAGVAR(objext, $1)=$objext
  8481. +
  8482. +# No sense in running all these tests if we already determined that
  8483. +# the F77 compiler isn't working. Some variables (like enable_shared)
  8484. +# are currently assumed to apply to all compilers on this platform,
  8485. +# and will be corrupted by setting them based on a non-working compiler.
  8486. +if test "$_lt_disable_F77" != yes; then
  8487. + # Code to be used in simple compile tests
  8488. + lt_simple_compile_test_code="\
  8489. + subroutine t
  8490. + return
  8491. + end
  8492. +"
  8493. +
  8494. + # Code to be used in simple link tests
  8495. + lt_simple_link_test_code="\
  8496. + program t
  8497. + end
  8498. +"
  8499. +
  8500. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8501. + _LT_TAG_COMPILER
  8502. +
  8503. + # save warnings/boilerplate of simple test code
  8504. + _LT_COMPILER_BOILERPLATE
  8505. + _LT_LINKER_BOILERPLATE
  8506. +
  8507. + # Allow CC to be a program name with arguments.
  8508. + lt_save_CC="$CC"
  8509. + lt_save_GCC=$GCC
  8510. + CC=${F77-"f77"}
  8511. + compiler=$CC
  8512. + _LT_TAGVAR(compiler, $1)=$CC
  8513. + _LT_CC_BASENAME([$compiler])
  8514. + GCC=$G77
  8515. + if test -n "$compiler"; then
  8516. + AC_MSG_CHECKING([if libtool supports shared libraries])
  8517. + AC_MSG_RESULT([$can_build_shared])
  8518. +
  8519. + AC_MSG_CHECKING([whether to build shared libraries])
  8520. + test "$can_build_shared" = "no" && enable_shared=no
  8521. +
  8522. + # On AIX, shared libraries and static libraries use the same namespace, and
  8523. + # are all built from PIC.
  8524. case $host_os in
  8525. + aix3*)
  8526. + test "$enable_shared" = yes && enable_static=no
  8527. + if test -n "$RANLIB"; then
  8528. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8529. + postinstall_cmds='$RANLIB $lib'
  8530. + fi
  8531. + ;;
  8532. aix[[4-9]]*)
  8533. - # All AIX code is PIC.
  8534. - if test "$host_cpu" = ia64; then
  8535. - # AIX 5 now supports IA64 processor
  8536. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8537. - else
  8538. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  8539. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8540. + test "$enable_shared" = yes && enable_static=no
  8541. fi
  8542. - ;;
  8543. - chorus*)
  8544. - case $cc_basename in
  8545. - cxch68*)
  8546. - # Green Hills C++ Compiler
  8547. - # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  8548. - ;;
  8549. - esac
  8550. - ;;
  8551. - darwin*)
  8552. - # PIC is the default on this platform
  8553. - # Common symbols not allowed in MH_DYLIB files
  8554. - case $cc_basename in
  8555. - xlc*)
  8556. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  8557. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8558. - ;;
  8559. - esac
  8560. - ;;
  8561. - dgux*)
  8562. - case $cc_basename in
  8563. - ec++*)
  8564. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8565. - ;;
  8566. - ghcx*)
  8567. - # Green Hills C++ Compiler
  8568. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8569. - ;;
  8570. - *)
  8571. - ;;
  8572. - esac
  8573. - ;;
  8574. - freebsd* | dragonfly*)
  8575. - # FreeBSD uses GNU C++
  8576. - ;;
  8577. - hpux9* | hpux10* | hpux11*)
  8578. - case $cc_basename in
  8579. - CC*)
  8580. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8581. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  8582. - if test "$host_cpu" != ia64; then
  8583. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  8584. - fi
  8585. - ;;
  8586. - aCC*)
  8587. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8588. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  8589. - case $host_cpu in
  8590. - hppa*64*|ia64*)
  8591. - # +Z the default
  8592. - ;;
  8593. - *)
  8594. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  8595. - ;;
  8596. - esac
  8597. - ;;
  8598. - *)
  8599. - ;;
  8600. - esac
  8601. - ;;
  8602. - interix*)
  8603. - # This is c89, which is MS Visual C++ (no shared libs)
  8604. - # Anyone wants to do a port?
  8605. - ;;
  8606. - irix5* | irix6* | nonstopux*)
  8607. - case $cc_basename in
  8608. - CC*)
  8609. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8610. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8611. - # CC pic flag -KPIC is the default.
  8612. - ;;
  8613. - *)
  8614. - ;;
  8615. - esac
  8616. - ;;
  8617. - linux* | k*bsd*-gnu)
  8618. - case $cc_basename in
  8619. - KCC*)
  8620. - # KAI C++ Compiler
  8621. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  8622. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8623. - ;;
  8624. - icpc* | ecpc*)
  8625. - # Intel C++
  8626. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8627. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8628. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8629. - ;;
  8630. - pgCC* | pgcpp*)
  8631. - # Portland Group C++ compiler.
  8632. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8633. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  8634. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8635. - ;;
  8636. - cxx*)
  8637. - # Compaq C++
  8638. - # Make sure the PIC flag is empty. It appears that all Alpha
  8639. - # Linux and Compaq Tru64 Unix objects are PIC.
  8640. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8641. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8642. - ;;
  8643. - *)
  8644. - case `$CC -V 2>&1 | sed 5q` in
  8645. - *Sun\ C*)
  8646. - # Sun C++ 5.9
  8647. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8648. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8649. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  8650. - ;;
  8651. - esac
  8652. - ;;
  8653. - esac
  8654. - ;;
  8655. - lynxos*)
  8656. - ;;
  8657. - m88k*)
  8658. - ;;
  8659. - mvs*)
  8660. - case $cc_basename in
  8661. - cxx*)
  8662. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  8663. - ;;
  8664. - *)
  8665. - ;;
  8666. - esac
  8667. - ;;
  8668. - netbsd*)
  8669. - ;;
  8670. - osf3* | osf4* | osf5*)
  8671. - case $cc_basename in
  8672. - KCC*)
  8673. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  8674. - ;;
  8675. - RCC*)
  8676. - # Rational C++ 2.4.1
  8677. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8678. - ;;
  8679. - cxx*)
  8680. - # Digital/Compaq C++
  8681. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8682. - # Make sure the PIC flag is empty. It appears that all Alpha
  8683. - # Linux and Compaq Tru64 Unix objects are PIC.
  8684. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8685. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8686. - ;;
  8687. - *)
  8688. - ;;
  8689. - esac
  8690. - ;;
  8691. - psos*)
  8692. - ;;
  8693. - solaris*)
  8694. - case $cc_basename in
  8695. - CC*)
  8696. - # Sun C++ 4.2, 5.x and Centerline C++
  8697. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8698. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8699. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  8700. - ;;
  8701. - gcx*)
  8702. - # Green Hills C++ Compiler
  8703. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  8704. - ;;
  8705. - *)
  8706. - ;;
  8707. - esac
  8708. - ;;
  8709. - sunos4*)
  8710. - case $cc_basename in
  8711. - CC*)
  8712. - # Sun C++ 4.x
  8713. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8714. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8715. - ;;
  8716. - lcc*)
  8717. - # Lucid
  8718. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8719. - ;;
  8720. - *)
  8721. - ;;
  8722. - esac
  8723. - ;;
  8724. - tandem*)
  8725. - case $cc_basename in
  8726. - NCC*)
  8727. - # NonStop-UX NCC 3.20
  8728. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8729. - ;;
  8730. - *)
  8731. - ;;
  8732. - esac
  8733. - ;;
  8734. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8735. - case $cc_basename in
  8736. - CC*)
  8737. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8738. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8739. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8740. - ;;
  8741. - esac
  8742. - ;;
  8743. - vxworks*)
  8744. - ;;
  8745. - *)
  8746. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  8747. - ;;
  8748. + ;;
  8749. esac
  8750. - fi
  8751. -],
  8752. + AC_MSG_RESULT([$enable_shared])
  8753. +
  8754. + AC_MSG_CHECKING([whether to build static libraries])
  8755. + # Make sure either enable_shared or enable_static is yes.
  8756. + test "$enable_shared" = yes || enable_static=yes
  8757. + AC_MSG_RESULT([$enable_static])
  8758. +
  8759. + _LT_TAGVAR(GCC, $1)="$G77"
  8760. + _LT_TAGVAR(LD, $1)="$LD"
  8761. +
  8762. + ## CAVEAT EMPTOR:
  8763. + ## There is no encapsulation within the following macros, do not change
  8764. + ## the running order or otherwise move them around unless you know exactly
  8765. + ## what you are doing...
  8766. + _LT_COMPILER_PIC($1)
  8767. + _LT_COMPILER_C_O($1)
  8768. + _LT_COMPILER_FILE_LOCKS($1)
  8769. + _LT_LINKER_SHLIBS($1)
  8770. + _LT_SYS_DYNAMIC_LINKER($1)
  8771. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8772. +
  8773. + _LT_CONFIG($1)
  8774. + fi # test -n "$compiler"
  8775. +
  8776. + GCC=$lt_save_GCC
  8777. + CC="$lt_save_CC"
  8778. +fi # test "$_lt_disable_F77" != yes
  8779. +
  8780. +AC_LANG_POP
  8781. +])# _LT_LANG_F77_CONFIG
  8782. +
  8783. +
  8784. +# _LT_PROG_FC
  8785. +# -----------
  8786. +# Since AC_PROG_FC is broken, in that it returns the empty string
  8787. +# if there is no fortran compiler, we have our own version here.
  8788. +m4_defun([_LT_PROG_FC],
  8789. [
  8790. - if test "$GCC" = yes; then
  8791. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8792. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8793. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  8794. +AC_PROG_FC
  8795. +if test -z "$FC" || test "X$FC" = "Xno"; then
  8796. + _lt_disable_FC=yes
  8797. +fi
  8798. +popdef([AC_MSG_ERROR])
  8799. +])# _LT_PROG_FC
  8800. +
  8801. +dnl aclocal-1.4 backwards compatibility:
  8802. +dnl AC_DEFUN([_LT_PROG_FC], [])
  8803. +
  8804. +
  8805. +# _LT_LANG_FC_CONFIG([TAG])
  8806. +# -------------------------
  8807. +# Ensure that the configuration variables for a Fortran compiler are
  8808. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  8809. +# to write the compiler configuration to `libtool'.
  8810. +m4_defun([_LT_LANG_FC_CONFIG],
  8811. +[AC_REQUIRE([_LT_PROG_FC])dnl
  8812. +AC_LANG_PUSH(Fortran)
  8813. +
  8814. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8815. +_LT_TAGVAR(allow_undefined_flag, $1)=
  8816. +_LT_TAGVAR(always_export_symbols, $1)=no
  8817. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  8818. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8819. +_LT_TAGVAR(hardcode_direct, $1)=no
  8820. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  8821. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8822. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8823. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  8824. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  8825. +_LT_TAGVAR(hardcode_automatic, $1)=no
  8826. +_LT_TAGVAR(inherit_rpath, $1)=no
  8827. +_LT_TAGVAR(module_cmds, $1)=
  8828. +_LT_TAGVAR(module_expsym_cmds, $1)=
  8829. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  8830. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8831. +_LT_TAGVAR(no_undefined_flag, $1)=
  8832. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  8833. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8834. +
  8835. +# Source file extension for fc test sources.
  8836. +ac_ext=${ac_fc_srcext-f}
  8837. +
  8838. +# Object file extension for compiled fc test sources.
  8839. +objext=o
  8840. +_LT_TAGVAR(objext, $1)=$objext
  8841. +
  8842. +# No sense in running all these tests if we already determined that
  8843. +# the FC compiler isn't working. Some variables (like enable_shared)
  8844. +# are currently assumed to apply to all compilers on this platform,
  8845. +# and will be corrupted by setting them based on a non-working compiler.
  8846. +if test "$_lt_disable_FC" != yes; then
  8847. + # Code to be used in simple compile tests
  8848. + lt_simple_compile_test_code="\
  8849. + subroutine t
  8850. + return
  8851. + end
  8852. +"
  8853. +
  8854. + # Code to be used in simple link tests
  8855. + lt_simple_link_test_code="\
  8856. + program t
  8857. + end
  8858. +"
  8859. +
  8860. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8861. + _LT_TAG_COMPILER
  8862. +
  8863. + # save warnings/boilerplate of simple test code
  8864. + _LT_COMPILER_BOILERPLATE
  8865. + _LT_LINKER_BOILERPLATE
  8866. +
  8867. + # Allow CC to be a program name with arguments.
  8868. + lt_save_CC="$CC"
  8869. + lt_save_GCC=$GCC
  8870. + CC=${FC-"f95"}
  8871. + compiler=$CC
  8872. + GCC=$ac_cv_fc_compiler_gnu
  8873. +
  8874. + _LT_TAGVAR(compiler, $1)=$CC
  8875. + _LT_CC_BASENAME([$compiler])
  8876. +
  8877. + if test -n "$compiler"; then
  8878. + AC_MSG_CHECKING([if libtool supports shared libraries])
  8879. + AC_MSG_RESULT([$can_build_shared])
  8880. +
  8881. + AC_MSG_CHECKING([whether to build shared libraries])
  8882. + test "$can_build_shared" = "no" && enable_shared=no
  8883. +
  8884. + # On AIX, shared libraries and static libraries use the same namespace, and
  8885. + # are all built from PIC.
  8886. + case $host_os in
  8887. + aix3*)
  8888. + test "$enable_shared" = yes && enable_static=no
  8889. + if test -n "$RANLIB"; then
  8890. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8891. + postinstall_cmds='$RANLIB $lib'
  8892. + fi
  8893. + ;;
  8894. + aix[[4-9]]*)
  8895. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8896. + test "$enable_shared" = yes && enable_static=no
  8897. + fi
  8898. + ;;
  8899. + esac
  8900. + AC_MSG_RESULT([$enable_shared])
  8901. +
  8902. + AC_MSG_CHECKING([whether to build static libraries])
  8903. + # Make sure either enable_shared or enable_static is yes.
  8904. + test "$enable_shared" = yes || enable_static=yes
  8905. + AC_MSG_RESULT([$enable_static])
  8906. +
  8907. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  8908. + _LT_TAGVAR(LD, $1)="$LD"
  8909. +
  8910. + ## CAVEAT EMPTOR:
  8911. + ## There is no encapsulation within the following macros, do not change
  8912. + ## the running order or otherwise move them around unless you know exactly
  8913. + ## what you are doing...
  8914. + _LT_SYS_HIDDEN_LIBDEPS($1)
  8915. + _LT_COMPILER_PIC($1)
  8916. + _LT_COMPILER_C_O($1)
  8917. + _LT_COMPILER_FILE_LOCKS($1)
  8918. + _LT_LINKER_SHLIBS($1)
  8919. + _LT_SYS_DYNAMIC_LINKER($1)
  8920. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8921. +
  8922. + _LT_CONFIG($1)
  8923. + fi # test -n "$compiler"
  8924. +
  8925. + GCC=$lt_save_GCC
  8926. + CC="$lt_save_CC"
  8927. +fi # test "$_lt_disable_FC" != yes
  8928. +
  8929. +AC_LANG_POP
  8930. +])# _LT_LANG_FC_CONFIG
  8931. +
  8932. +
  8933. +# _LT_LANG_GCJ_CONFIG([TAG])
  8934. +# --------------------------
  8935. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  8936. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  8937. +# to write the compiler configuration to `libtool'.
  8938. +m4_defun([_LT_LANG_GCJ_CONFIG],
  8939. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  8940. +AC_LANG_SAVE
  8941. +
  8942. +# Source file extension for Java test sources.
  8943. +ac_ext=java
  8944. +
  8945. +# Object file extension for compiled Java test sources.
  8946. +objext=o
  8947. +_LT_TAGVAR(objext, $1)=$objext
  8948. +
  8949. +# Code to be used in simple compile tests
  8950. +lt_simple_compile_test_code="class foo {}"
  8951. +
  8952. +# Code to be used in simple link tests
  8953. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  8954. +
  8955. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8956. +_LT_TAG_COMPILER
  8957. +
  8958. +# save warnings/boilerplate of simple test code
  8959. +_LT_COMPILER_BOILERPLATE
  8960. +_LT_LINKER_BOILERPLATE
  8961. +
  8962. +# Allow CC to be a program name with arguments.
  8963. +lt_save_CC="$CC"
  8964. +lt_save_GCC=$GCC
  8965. +GCC=yes
  8966. +CC=${GCJ-"gcj"}
  8967. +compiler=$CC
  8968. +_LT_TAGVAR(compiler, $1)=$CC
  8969. +_LT_TAGVAR(LD, $1)="$LD"
  8970. +_LT_CC_BASENAME([$compiler])
  8971. - case $host_os in
  8972. - aix*)
  8973. - # All AIX code is PIC.
  8974. - if test "$host_cpu" = ia64; then
  8975. - # AIX 5 now supports IA64 processor
  8976. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8977. - fi
  8978. - ;;
  8979. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  8980. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8981. - amigaos*)
  8982. - # FIXME: we need at least 68020 code to build shared libraries, but
  8983. - # adding the `-m68020' flag to GCC prevents building anything better,
  8984. - # like `-m68040'.
  8985. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  8986. - ;;
  8987. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8988. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8989. - # PIC is the default for these OSes.
  8990. - ;;
  8991. +if test -n "$compiler"; then
  8992. + _LT_COMPILER_NO_RTTI($1)
  8993. + _LT_COMPILER_PIC($1)
  8994. + _LT_COMPILER_C_O($1)
  8995. + _LT_COMPILER_FILE_LOCKS($1)
  8996. + _LT_LINKER_SHLIBS($1)
  8997. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8998. - mingw* | cygwin* | pw32* | os2*)
  8999. - # This hack is so that the source file can tell whether it is being
  9000. - # built for inclusion in a dll (and should export symbols for example).
  9001. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  9002. - # (--disable-auto-import) libraries
  9003. - m4_if([$1], [GCJ], [],
  9004. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  9005. - ;;
  9006. + _LT_CONFIG($1)
  9007. +fi
  9008. - darwin* | rhapsody*)
  9009. - # PIC is the default on this platform
  9010. - # Common symbols not allowed in MH_DYLIB files
  9011. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  9012. - ;;
  9013. +AC_LANG_RESTORE
  9014. - interix[[3-9]]*)
  9015. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9016. - # Instead, we relocate shared libraries at runtime.
  9017. - ;;
  9018. +GCC=$lt_save_GCC
  9019. +CC="$lt_save_CC"
  9020. +])# _LT_LANG_GCJ_CONFIG
  9021. - msdosdjgpp*)
  9022. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  9023. - # on systems that don't support them.
  9024. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  9025. - enable_shared=no
  9026. - ;;
  9027. - sysv4*MP*)
  9028. - if test -d /usr/nec; then
  9029. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  9030. - fi
  9031. - ;;
  9032. +# _LT_LANG_RC_CONFIG([TAG])
  9033. +# -------------------------
  9034. +# Ensure that the configuration variables for the Windows resource compiler
  9035. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  9036. +# to write the compiler configuration to `libtool'.
  9037. +m4_defun([_LT_LANG_RC_CONFIG],
  9038. +[AC_REQUIRE([LT_PROG_RC])dnl
  9039. +AC_LANG_SAVE
  9040. - hpux*)
  9041. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9042. - # not for PA HP-UX.
  9043. - case $host_cpu in
  9044. - hppa*64*|ia64*)
  9045. - # +Z the default
  9046. - ;;
  9047. - *)
  9048. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9049. - ;;
  9050. - esac
  9051. - ;;
  9052. +# Source file extension for RC test sources.
  9053. +ac_ext=rc
  9054. - *)
  9055. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9056. - ;;
  9057. - esac
  9058. - else
  9059. - # PORTME Check for flag to pass linker flags through the system compiler.
  9060. - case $host_os in
  9061. - aix*)
  9062. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9063. - if test "$host_cpu" = ia64; then
  9064. - # AIX 5 now supports IA64 processor
  9065. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9066. - else
  9067. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  9068. - fi
  9069. - ;;
  9070. - darwin*)
  9071. - # PIC is the default on this platform
  9072. - # Common symbols not allowed in MH_DYLIB files
  9073. - case $cc_basename in
  9074. - xlc*)
  9075. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  9076. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9077. - ;;
  9078. - esac
  9079. - ;;
  9080. +# Object file extension for compiled RC test sources.
  9081. +objext=o
  9082. +_LT_TAGVAR(objext, $1)=$objext
  9083. - mingw* | cygwin* | pw32* | os2*)
  9084. - # This hack is so that the source file can tell whether it is being
  9085. - # built for inclusion in a dll (and should export symbols for example).
  9086. - m4_if([$1], [GCJ], [],
  9087. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  9088. - ;;
  9089. +# Code to be used in simple compile tests
  9090. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  9091. - hpux9* | hpux10* | hpux11*)
  9092. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9093. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9094. - # not for PA HP-UX.
  9095. - case $host_cpu in
  9096. - hppa*64*|ia64*)
  9097. - # +Z the default
  9098. - ;;
  9099. - *)
  9100. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  9101. - ;;
  9102. - esac
  9103. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9104. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  9105. - ;;
  9106. +# Code to be used in simple link tests
  9107. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  9108. - irix5* | irix6* | nonstopux*)
  9109. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9110. - # PIC (with -KPIC) is the default.
  9111. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9112. - ;;
  9113. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9114. +_LT_TAG_COMPILER
  9115. - newsos6)
  9116. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9117. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9118. - ;;
  9119. +# save warnings/boilerplate of simple test code
  9120. +_LT_COMPILER_BOILERPLATE
  9121. +_LT_LINKER_BOILERPLATE
  9122. - linux* | k*bsd*-gnu)
  9123. - case $cc_basename in
  9124. - icc* | ecc*)
  9125. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9126. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9127. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  9128. - ;;
  9129. - pgcc* | pgf77* | pgf90* | pgf95*)
  9130. - # Portland Group compilers (*not* the Pentium gcc compiler,
  9131. - # which looks to be a dead project)
  9132. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9133. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  9134. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9135. - ;;
  9136. - ccc*)
  9137. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9138. - # All Alpha code is PIC.
  9139. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9140. - ;;
  9141. - *)
  9142. - case `$CC -V 2>&1 | sed 5q` in
  9143. - *Sun\ C*)
  9144. - # Sun C 5.9
  9145. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9146. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9147. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9148. - ;;
  9149. - *Sun\ F*)
  9150. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9151. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9152. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9153. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
  9154. - ;;
  9155. - esac
  9156. - ;;
  9157. - esac
  9158. - ;;
  9159. +# Allow CC to be a program name with arguments.
  9160. +lt_save_CC="$CC"
  9161. +lt_save_GCC=$GCC
  9162. +GCC=
  9163. +CC=${RC-"windres"}
  9164. +compiler=$CC
  9165. +_LT_TAGVAR(compiler, $1)=$CC
  9166. +_LT_CC_BASENAME([$compiler])
  9167. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  9168. - osf3* | osf4* | osf5*)
  9169. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9170. - # All OSF/1 code is PIC.
  9171. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9172. - ;;
  9173. +if test -n "$compiler"; then
  9174. + :
  9175. + _LT_CONFIG($1)
  9176. +fi
  9177. - rdos*)
  9178. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9179. - ;;
  9180. +GCC=$lt_save_GCC
  9181. +AC_LANG_RESTORE
  9182. +CC="$lt_save_CC"
  9183. +])# _LT_LANG_RC_CONFIG
  9184. - solaris*)
  9185. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9186. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9187. - case $cc_basename in
  9188. - f77* | f90* | f95*)
  9189. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  9190. - *)
  9191. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  9192. - esac
  9193. - ;;
  9194. - sunos4*)
  9195. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  9196. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  9197. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9198. - ;;
  9199. +# LT_PROG_GCJ
  9200. +# -----------
  9201. +AC_DEFUN([LT_PROG_GCJ],
  9202. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  9203. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  9204. + [AC_CHECK_TOOL(GCJ, gcj,)
  9205. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  9206. + AC_SUBST(GCJFLAGS)])])[]dnl
  9207. +])
  9208. - sysv4 | sysv4.2uw2* | sysv4.3*)
  9209. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9210. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9211. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9212. - ;;
  9213. +# Old name:
  9214. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  9215. +dnl aclocal-1.4 backwards compatibility:
  9216. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  9217. - sysv4*MP*)
  9218. - if test -d /usr/nec ;then
  9219. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  9220. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9221. - fi
  9222. - ;;
  9223. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9224. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9225. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9226. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9227. - ;;
  9228. +# LT_PROG_RC
  9229. +# ----------
  9230. +AC_DEFUN([LT_PROG_RC],
  9231. +[AC_CHECK_TOOL(RC, windres,)
  9232. +])
  9233. - unicos*)
  9234. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9235. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  9236. - ;;
  9237. +# Old name:
  9238. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  9239. +dnl aclocal-1.4 backwards compatibility:
  9240. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  9241. - uts4*)
  9242. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  9243. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9244. - ;;
  9245. - *)
  9246. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  9247. - ;;
  9248. - esac
  9249. - fi
  9250. +# _LT_DECL_EGREP
  9251. +# --------------
  9252. +# If we don't have a new enough Autoconf to choose the best grep
  9253. +# available, choose the one first in the user's PATH.
  9254. +m4_defun([_LT_DECL_EGREP],
  9255. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  9256. +AC_REQUIRE([AC_PROG_FGREP])dnl
  9257. +test -z "$GREP" && GREP=grep
  9258. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  9259. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  9260. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  9261. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  9262. +AC_SUBST([GREP])
  9263. ])
  9264. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  9265. -#
  9266. -# Check to make sure the PIC flag actually works.
  9267. -#
  9268. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  9269. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  9270. - _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
  9271. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  9272. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  9273. - "" | " "*) ;;
  9274. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  9275. - esac],
  9276. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9277. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  9278. -fi
  9279. -case $host_os in
  9280. - # For platforms which do not support PIC, -DPIC is meaningless:
  9281. - *djgpp*)
  9282. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9283. - ;;
  9284. - *)
  9285. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  9286. - ;;
  9287. -esac
  9288. -#
  9289. -# Check to make sure the static flag actually works.
  9290. -#
  9291. -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  9292. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  9293. - _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  9294. - $lt_tmp_static_flag,
  9295. - [],
  9296. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  9297. +# _LT_DECL_OBJDUMP
  9298. +# --------------
  9299. +# If we don't have a new enough Autoconf to choose the best objdump
  9300. +# available, choose the one first in the user's PATH.
  9301. +m4_defun([_LT_DECL_OBJDUMP],
  9302. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  9303. +test -z "$OBJDUMP" && OBJDUMP=objdump
  9304. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  9305. +AC_SUBST([OBJDUMP])
  9306. +])
  9307. +
  9308. +
  9309. +# _LT_DECL_SED
  9310. +# ------------
  9311. +# Check for a fully-functional sed program, that truncates
  9312. +# as few characters as possible. Prefer GNU sed if found.
  9313. +m4_defun([_LT_DECL_SED],
  9314. +[AC_PROG_SED
  9315. +test -z "$SED" && SED=sed
  9316. +Xsed="$SED -e 1s/^X//"
  9317. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  9318. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  9319. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  9320. +])# _LT_DECL_SED
  9321. +
  9322. +m4_ifndef([AC_PROG_SED], [
  9323. +# NOTE: This macro has been submitted for inclusion into #
  9324. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  9325. +# a released version of Autoconf we should remove this #
  9326. +# macro and use it instead. #
  9327. +
  9328. +m4_defun([AC_PROG_SED],
  9329. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  9330. +AC_CACHE_VAL(lt_cv_path_SED,
  9331. +[# Loop through the user's path and test for sed and gsed.
  9332. +# Then use that list of sed's as ones to test for truncation.
  9333. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9334. +for as_dir in $PATH
  9335. +do
  9336. + IFS=$as_save_IFS
  9337. + test -z "$as_dir" && as_dir=.
  9338. + for lt_ac_prog in sed gsed; do
  9339. + for ac_exec_ext in '' $ac_executable_extensions; do
  9340. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  9341. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  9342. + fi
  9343. + done
  9344. + done
  9345. +done
  9346. +IFS=$as_save_IFS
  9347. +lt_ac_max=0
  9348. +lt_ac_count=0
  9349. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  9350. +# along with /bin/sed that truncates output.
  9351. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  9352. + test ! -f $lt_ac_sed && continue
  9353. + cat /dev/null > conftest.in
  9354. + lt_ac_count=0
  9355. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  9356. + # Check for GNU sed and select it if it is found.
  9357. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  9358. + lt_cv_path_SED=$lt_ac_sed
  9359. + break
  9360. + fi
  9361. + while true; do
  9362. + cat conftest.in conftest.in >conftest.tmp
  9363. + mv conftest.tmp conftest.in
  9364. + cp conftest.in conftest.nl
  9365. + echo >>conftest.nl
  9366. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  9367. + cmp -s conftest.out conftest.nl || break
  9368. + # 10000 chars as input seems more than enough
  9369. + test $lt_ac_count -gt 10 && break
  9370. + lt_ac_count=`expr $lt_ac_count + 1`
  9371. + if test $lt_ac_count -gt $lt_ac_max; then
  9372. + lt_ac_max=$lt_ac_count
  9373. + lt_cv_path_SED=$lt_ac_sed
  9374. + fi
  9375. + done
  9376. +done
  9377. ])
  9378. +SED=$lt_cv_path_SED
  9379. +AC_SUBST([SED])
  9380. +AC_MSG_RESULT([$SED])
  9381. +])#AC_PROG_SED
  9382. +])#m4_ifndef
  9383. +
  9384. +# Old name:
  9385. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  9386. +dnl aclocal-1.4 backwards compatibility:
  9387. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  9388. +
  9389. +# _LT_CHECK_SHELL_FEATURES
  9390. +# ------------------------
  9391. +# Find out whether the shell is Bourne or XSI compatible,
  9392. +# or has some other useful features.
  9393. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  9394. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  9395. +# Try some XSI features
  9396. +xsi_shell=no
  9397. +( _lt_dummy="a/b/c"
  9398. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  9399. + = c,a/b,, \
  9400. + && eval 'test $(( 1 + 1 )) -eq 2 \
  9401. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  9402. + && xsi_shell=yes
  9403. +AC_MSG_RESULT([$xsi_shell])
  9404. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  9405. +
  9406. +AC_MSG_CHECKING([whether the shell understands "+="])
  9407. +lt_shell_append=no
  9408. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  9409. + >/dev/null 2>&1 \
  9410. + && lt_shell_append=yes
  9411. +AC_MSG_RESULT([$lt_shell_append])
  9412. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  9413. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  9414. -# ------------------------------------
  9415. -# See if the linker supports building shared libraries.
  9416. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  9417. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  9418. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  9419. -ifelse([$1],[CXX],[
  9420. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9421. - case $host_os in
  9422. - aix[[4-9]]*)
  9423. - # If we're using GNU nm, then we don't want the "-C" option.
  9424. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9425. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  9426. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  9427. - else
  9428. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  9429. - fi
  9430. - ;;
  9431. - pw32*)
  9432. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  9433. - ;;
  9434. - cygwin* | mingw*)
  9435. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  9436. - ;;
  9437. - *)
  9438. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9439. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9440. + lt_unset=unset
  9441. +else
  9442. + lt_unset=false
  9443. +fi
  9444. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  9445. +
  9446. +# test EBCDIC or ASCII
  9447. +case `echo X|tr X '\101'` in
  9448. + A) # ASCII based system
  9449. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  9450. + lt_SP2NL='tr \040 \012'
  9451. + lt_NL2SP='tr \015\012 \040\040'
  9452. + ;;
  9453. + *) # EBCDIC based system
  9454. + lt_SP2NL='tr \100 \n'
  9455. + lt_NL2SP='tr \r\n \100\100'
  9456. ;;
  9457. +esac
  9458. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  9459. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  9460. +])# _LT_CHECK_SHELL_FEATURES
  9461. +
  9462. +
  9463. +# _LT_PROG_XSI_SHELLFNS
  9464. +# ---------------------
  9465. +# Bourne and XSI compatible variants of some useful shell functions.
  9466. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  9467. +[case $xsi_shell in
  9468. + yes)
  9469. + cat << \_LT_EOF >> "$cfgfile"
  9470. +
  9471. +# func_dirname file append nondir_replacement
  9472. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  9473. +# otherwise set result to NONDIR_REPLACEMENT.
  9474. +func_dirname ()
  9475. +{
  9476. + case ${1} in
  9477. + */*) func_dirname_result="${1%/*}${2}" ;;
  9478. + * ) func_dirname_result="${3}" ;;
  9479. esac
  9480. - _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  9481. -],[
  9482. - runpath_var=
  9483. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  9484. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9485. - _LT_AC_TAGVAR(archive_cmds, $1)=
  9486. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  9487. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  9488. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  9489. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  9490. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  9491. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  9492. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9493. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9494. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  9495. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  9496. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  9497. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  9498. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  9499. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  9500. - _LT_AC_TAGVAR(module_cmds, $1)=
  9501. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  9502. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  9503. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9504. - # include_expsyms should be a list of space-separated symbols to be *always*
  9505. - # included in the symbol list
  9506. - _LT_AC_TAGVAR(include_expsyms, $1)=
  9507. - # exclude_expsyms can be an extended regexp of symbols to exclude
  9508. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  9509. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  9510. - # as well as any symbol that contains `d'.
  9511. - _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  9512. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9513. - # platforms (ab)use it in PIC code, but their linkers get confused if
  9514. - # the symbol is explicitly referenced. Since portable code cannot
  9515. - # rely on this symbol name, it's probably fine to never include it in
  9516. - # preloaded symbol tables.
  9517. - # Exclude shared library initialization/finalization symbols.
  9518. -dnl Note also adjust exclude_expsyms for C++ above.
  9519. - extract_expsyms_cmds=
  9520. - # Just being paranoid about ensuring that cc_basename is set.
  9521. - _LT_CC_BASENAME([$compiler])
  9522. - case $host_os in
  9523. - cygwin* | mingw* | pw32*)
  9524. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9525. - # When not using gcc, we currently assume that we are using
  9526. - # Microsoft Visual C++.
  9527. - if test "$GCC" != yes; then
  9528. - with_gnu_ld=no
  9529. - fi
  9530. - ;;
  9531. - interix*)
  9532. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  9533. - with_gnu_ld=yes
  9534. - ;;
  9535. - openbsd*)
  9536. - with_gnu_ld=no
  9537. - ;;
  9538. +}
  9539. +
  9540. +# func_basename file
  9541. +func_basename ()
  9542. +{
  9543. + func_basename_result="${1##*/}"
  9544. +}
  9545. +
  9546. +# func_dirname_and_basename file append nondir_replacement
  9547. +# perform func_basename and func_dirname in a single function
  9548. +# call:
  9549. +# dirname: Compute the dirname of FILE. If nonempty,
  9550. +# add APPEND to the result, otherwise set result
  9551. +# to NONDIR_REPLACEMENT.
  9552. +# value returned in "$func_dirname_result"
  9553. +# basename: Compute filename of FILE.
  9554. +# value retuned in "$func_basename_result"
  9555. +# Implementation must be kept synchronized with func_dirname
  9556. +# and func_basename. For efficiency, we do not delegate to
  9557. +# those functions but instead duplicate the functionality here.
  9558. +func_dirname_and_basename ()
  9559. +{
  9560. + case ${1} in
  9561. + */*) func_dirname_result="${1%/*}${2}" ;;
  9562. + * ) func_dirname_result="${3}" ;;
  9563. esac
  9564. + func_basename_result="${1##*/}"
  9565. +}
  9566. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  9567. - if test "$with_gnu_ld" = yes; then
  9568. - # If archive_cmds runs LD, not CC, wlarc should be empty
  9569. - wlarc='${wl}'
  9570. +# func_stripname prefix suffix name
  9571. +# strip PREFIX and SUFFIX off of NAME.
  9572. +# PREFIX and SUFFIX must not contain globbing or regex special
  9573. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  9574. +# dot (in which case that matches only a dot).
  9575. +func_stripname ()
  9576. +{
  9577. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  9578. + # positional parameters, so assign one to ordinary parameter first.
  9579. + func_stripname_result=${3}
  9580. + func_stripname_result=${func_stripname_result#"${1}"}
  9581. + func_stripname_result=${func_stripname_result%"${2}"}
  9582. +}
  9583. - # Set some defaults for GNU ld with shared library support. These
  9584. - # are reset later if shared libraries are not supported. Putting them
  9585. - # here allows them to be overridden if necessary.
  9586. - runpath_var=LD_RUN_PATH
  9587. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  9588. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9589. - # ancient GNU ld didn't support --whole-archive et. al.
  9590. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  9591. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9592. - else
  9593. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  9594. - fi
  9595. - supports_anon_versioning=no
  9596. - case `$LD -v 2>/dev/null` in
  9597. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  9598. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9599. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9600. - *\ 2.11.*) ;; # other 2.11 versions
  9601. - *) supports_anon_versioning=yes ;;
  9602. - esac
  9603. +# func_opt_split
  9604. +func_opt_split ()
  9605. +{
  9606. + func_opt_split_opt=${1%%=*}
  9607. + func_opt_split_arg=${1#*=}
  9608. +}
  9609. - # See if GNU ld supports shared libraries.
  9610. - case $host_os in
  9611. - aix[[3-9]]*)
  9612. - # On AIX/PPC, the GNU linker is very broken
  9613. - if test "$host_cpu" != ia64; then
  9614. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9615. - cat <<EOF 1>&2
  9616. +# func_lo2o object
  9617. +func_lo2o ()
  9618. +{
  9619. + case ${1} in
  9620. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  9621. + *) func_lo2o_result=${1} ;;
  9622. + esac
  9623. +}
  9624. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  9625. -*** to be unable to reliably create shared libraries on AIX.
  9626. -*** Therefore, libtool is disabling shared libraries support. If you
  9627. -*** really care for shared libraries, you may want to modify your PATH
  9628. -*** so that a non-GNU linker is found, and then restart.
  9629. +# func_xform libobj-or-source
  9630. +func_xform ()
  9631. +{
  9632. + func_xform_result=${1%.*}.lo
  9633. +}
  9634. -EOF
  9635. - fi
  9636. - ;;
  9637. +# func_arith arithmetic-term...
  9638. +func_arith ()
  9639. +{
  9640. + func_arith_result=$(( $[*] ))
  9641. +}
  9642. - amigaos*)
  9643. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  9644. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9645. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  9646. -
  9647. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  9648. - # that the semantics of dynamic libraries on AmigaOS, at least up
  9649. - # to version 4, is to share data among multiple programs linked
  9650. - # with the same dynamic library. Since this doesn't match the
  9651. - # behavior of shared libraries on other platforms, we can't use
  9652. - # them.
  9653. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9654. - ;;
  9655. +# func_len string
  9656. +# STRING may not start with a hyphen.
  9657. +func_len ()
  9658. +{
  9659. + func_len_result=${#1}
  9660. +}
  9661. - beos*)
  9662. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9663. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  9664. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9665. - # support --undefined. This deserves some investigation. FIXME
  9666. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9667. - else
  9668. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9669. - fi
  9670. - ;;
  9671. +_LT_EOF
  9672. + ;;
  9673. + *) # Bourne compatible functions.
  9674. + cat << \_LT_EOF >> "$cfgfile"
  9675. - cygwin* | mingw* | pw32*)
  9676. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  9677. - # as there is no search path for DLLs.
  9678. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9679. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  9680. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  9681. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  9682. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  9683. +# func_dirname file append nondir_replacement
  9684. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  9685. +# otherwise set result to NONDIR_REPLACEMENT.
  9686. +func_dirname ()
  9687. +{
  9688. + # Extract subdirectory from the argument.
  9689. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  9690. + if test "X$func_dirname_result" = "X${1}"; then
  9691. + func_dirname_result="${3}"
  9692. + else
  9693. + func_dirname_result="$func_dirname_result${2}"
  9694. + fi
  9695. +}
  9696. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9697. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9698. - # If the export-symbols file already is a .def file (1st line
  9699. - # is EXPORTS), use it as is; otherwise, prepend...
  9700. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9701. - cp $export_symbols $output_objdir/$soname.def;
  9702. - else
  9703. - echo EXPORTS > $output_objdir/$soname.def;
  9704. - cat $export_symbols >> $output_objdir/$soname.def;
  9705. - fi~
  9706. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9707. - else
  9708. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9709. - fi
  9710. - ;;
  9711. +# func_basename file
  9712. +func_basename ()
  9713. +{
  9714. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  9715. +}
  9716. - interix[[3-9]]*)
  9717. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  9718. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  9719. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9720. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9721. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9722. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  9723. - # default) and relocated if they conflict, which is a slow very memory
  9724. - # consuming and fragmenting process. To avoid this, we pick a random,
  9725. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9726. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9727. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9728. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9729. - ;;
  9730. +dnl func_dirname_and_basename
  9731. +dnl A portable version of this function is already defined in general.m4sh
  9732. +dnl so there is no need for it here.
  9733. +
  9734. +# func_stripname prefix suffix name
  9735. +# strip PREFIX and SUFFIX off of NAME.
  9736. +# PREFIX and SUFFIX must not contain globbing or regex special
  9737. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  9738. +# dot (in which case that matches only a dot).
  9739. +# func_strip_suffix prefix name
  9740. +func_stripname ()
  9741. +{
  9742. + case ${2} in
  9743. + .*) func_stripname_result=`$ECHO "X${3}" \
  9744. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  9745. + *) func_stripname_result=`$ECHO "X${3}" \
  9746. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  9747. + esac
  9748. +}
  9749. - gnu* | linux* | k*bsd*-gnu)
  9750. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9751. - tmp_addflag=
  9752. - case $cc_basename,$host_cpu in
  9753. - pgcc*) # Portland Group C compiler
  9754. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  9755. - tmp_addflag=' $pic_flag'
  9756. - ;;
  9757. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  9758. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  9759. - tmp_addflag=' $pic_flag -Mnomain' ;;
  9760. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9761. - tmp_addflag=' -i_dynamic' ;;
  9762. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9763. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  9764. - ifc* | ifort*) # Intel Fortran compiler
  9765. - tmp_addflag=' -nofor_main' ;;
  9766. - esac
  9767. - case `$CC -V 2>&1 | sed 5q` in
  9768. - *Sun\ C*) # Sun C 5.9
  9769. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  9770. - tmp_sharedflag='-G' ;;
  9771. - *Sun\ F*) # Sun Fortran 8.3
  9772. - tmp_sharedflag='-G' ;;
  9773. - *)
  9774. - tmp_sharedflag='-shared' ;;
  9775. - esac
  9776. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9777. +# sed scripts:
  9778. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  9779. +my_sed_long_arg='1s/^-[[^=]]*=//'
  9780. - if test $supports_anon_versioning = yes; then
  9781. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  9782. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9783. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  9784. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9785. - fi
  9786. - else
  9787. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9788. - fi
  9789. - ;;
  9790. +# func_opt_split
  9791. +func_opt_split ()
  9792. +{
  9793. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  9794. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  9795. +}
  9796. - netbsd*)
  9797. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9798. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9799. - wlarc=
  9800. - else
  9801. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9802. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9803. - fi
  9804. - ;;
  9805. +# func_lo2o object
  9806. +func_lo2o ()
  9807. +{
  9808. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  9809. +}
  9810. - solaris*)
  9811. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  9812. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9813. - cat <<EOF 1>&2
  9814. +# func_xform libobj-or-source
  9815. +func_xform ()
  9816. +{
  9817. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  9818. +}
  9819. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9820. -*** create shared libraries on Solaris systems. Therefore, libtool
  9821. -*** is disabling shared libraries support. We urge you to upgrade GNU
  9822. -*** binutils to release 2.9.1 or newer. Another option is to modify
  9823. -*** your PATH or compiler configuration so that the native linker is
  9824. -*** used, and then restart.
  9825. +# func_arith arithmetic-term...
  9826. +func_arith ()
  9827. +{
  9828. + func_arith_result=`expr "$[@]"`
  9829. +}
  9830. -EOF
  9831. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9832. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9833. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9834. - else
  9835. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9836. - fi
  9837. - ;;
  9838. +# func_len string
  9839. +# STRING may not start with a hyphen.
  9840. +func_len ()
  9841. +{
  9842. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  9843. +}
  9844. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9845. - case `$LD -v 2>&1` in
  9846. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  9847. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9848. - cat <<_LT_EOF 1>&2
  9849. +_LT_EOF
  9850. +esac
  9851. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  9852. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  9853. -*** is disabling shared libraries support. We urge you to upgrade GNU
  9854. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9855. -*** your PATH or compiler configuration so that the native linker is
  9856. -*** used, and then restart.
  9857. +case $lt_shell_append in
  9858. + yes)
  9859. + cat << \_LT_EOF >> "$cfgfile"
  9860. +
  9861. +# func_append var value
  9862. +# Append VALUE to the end of shell variable VAR.
  9863. +func_append ()
  9864. +{
  9865. + eval "$[1]+=\$[2]"
  9866. +}
  9867. +_LT_EOF
  9868. + ;;
  9869. + *)
  9870. + cat << \_LT_EOF >> "$cfgfile"
  9871. +
  9872. +# func_append var value
  9873. +# Append VALUE to the end of shell variable VAR.
  9874. +func_append ()
  9875. +{
  9876. + eval "$[1]=\$$[1]\$[2]"
  9877. +}
  9878. _LT_EOF
  9879. - ;;
  9880. - *)
  9881. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9882. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  9883. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  9884. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  9885. - else
  9886. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9887. - fi
  9888. - ;;
  9889. - esac
  9890. - ;;
  9891. + ;;
  9892. + esac
  9893. +])
  9894. - sunos4*)
  9895. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9896. - wlarc=
  9897. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  9898. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  9899. - ;;
  9900. +# Helper functions for option handling. -*- Autoconf -*-
  9901. +#
  9902. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  9903. +# Written by Gary V. Vaughan, 2004
  9904. +#
  9905. +# This file is free software; the Free Software Foundation gives
  9906. +# unlimited permission to copy and/or distribute it, with or without
  9907. +# modifications, as long as this notice is preserved.
  9908. - *)
  9909. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9910. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9911. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9912. - else
  9913. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9914. - fi
  9915. - ;;
  9916. - esac
  9917. +# serial 6 ltoptions.m4
  9918. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  9919. - runpath_var=
  9920. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9921. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  9922. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  9923. - fi
  9924. - else
  9925. - # PORTME fill in a description of your system's linker (not GNU ld)
  9926. - case $host_os in
  9927. - aix3*)
  9928. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  9929. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  9930. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  9931. - # Note: this linker hardcodes the directories in LIBPATH if there
  9932. - # are no directories specified by -L.
  9933. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  9934. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  9935. - # Neither direct hardcoding nor static linking is supported with a
  9936. - # broken collect2.
  9937. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  9938. - fi
  9939. - ;;
  9940. +# This is to help aclocal find these macros, as it can't see m4_define.
  9941. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  9942. - aix[[4-9]]*)
  9943. - if test "$host_cpu" = ia64; then
  9944. - # On IA64, the linker does run time linking by default, so we don't
  9945. - # have to do anything special.
  9946. - aix_use_runtimelinking=no
  9947. - exp_sym_flag='-Bexport'
  9948. - no_entry_flag=""
  9949. - else
  9950. - # If we're using GNU nm, then we don't want the "-C" option.
  9951. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9952. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  9953. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  9954. - else
  9955. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  9956. - fi
  9957. - aix_use_runtimelinking=no
  9958. - # Test if we are trying to use run time linking or normal
  9959. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9960. - # need to do runtime linking.
  9961. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  9962. - for ld_flag in $LDFLAGS; do
  9963. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9964. - aix_use_runtimelinking=yes
  9965. - break
  9966. - fi
  9967. - done
  9968. - ;;
  9969. - esac
  9970. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  9971. +# ------------------------------------------
  9972. +m4_define([_LT_MANGLE_OPTION],
  9973. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  9974. +
  9975. - exp_sym_flag='-bexport'
  9976. - no_entry_flag='-bnoentry'
  9977. - fi
  9978. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  9979. +# ---------------------------------------
  9980. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  9981. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  9982. +# saved as a flag.
  9983. +m4_define([_LT_SET_OPTION],
  9984. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  9985. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  9986. + _LT_MANGLE_DEFUN([$1], [$2]),
  9987. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  9988. +])
  9989. - # When large executables or shared objects are built, AIX ld can
  9990. - # have problems creating the table of contents. If linking a library
  9991. - # or program results in "error TOC overflow" add -mminimal-toc to
  9992. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9993. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9994. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  9995. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  9996. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  9997. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  9998. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  9999. +# ------------------------------------------------------------
  10000. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  10001. +m4_define([_LT_IF_OPTION],
  10002. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  10003. - if test "$GCC" = yes; then
  10004. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  10005. - # We only want to do this on AIX 4.2 and lower, the check
  10006. - # below for broken collect2 doesn't work under 4.3+
  10007. - collect2name=`${CC} -print-prog-name=collect2`
  10008. - if test -f "$collect2name" && \
  10009. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  10010. - then
  10011. - # We have reworked collect2
  10012. - :
  10013. - else
  10014. - # We have old collect2
  10015. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  10016. - # It fails to find uninstalled libraries when the uninstalled
  10017. - # path is not listed in the libpath. Setting hardcode_minus_L
  10018. - # to unsupported forces relinking
  10019. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10020. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10021. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  10022. - fi
  10023. - ;;
  10024. - esac
  10025. - shared_flag='-shared'
  10026. - if test "$aix_use_runtimelinking" = yes; then
  10027. - shared_flag="$shared_flag "'${wl}-G'
  10028. - fi
  10029. - else
  10030. - # not using gcc
  10031. - if test "$host_cpu" = ia64; then
  10032. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10033. - # chokes on -Wl,-G. The following line is correct:
  10034. - shared_flag='-G'
  10035. - else
  10036. - if test "$aix_use_runtimelinking" = yes; then
  10037. - shared_flag='${wl}-G'
  10038. - else
  10039. - shared_flag='${wl}-bM:SRE'
  10040. - fi
  10041. - fi
  10042. - fi
  10043. - # It seems that -bexpall does not export symbols beginning with
  10044. - # underscore (_), so it is better to generate a list of symbols to export.
  10045. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  10046. - if test "$aix_use_runtimelinking" = yes; then
  10047. - # Warning - without using the other runtime loading flags (-brtl),
  10048. - # -berok will link without error, but may produce a broken library.
  10049. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  10050. - # Determine the default libpath from the value encoded in an empty executable.
  10051. - _LT_AC_SYS_LIBPATH_AIX
  10052. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  10053. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10054. - else
  10055. - if test "$host_cpu" = ia64; then
  10056. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  10057. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  10058. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  10059. - else
  10060. - # Determine the default libpath from the value encoded in an empty executable.
  10061. - _LT_AC_SYS_LIBPATH_AIX
  10062. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  10063. - # Warning - without using the other run time loading flags,
  10064. - # -berok will link without error, but may produce a broken library.
  10065. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  10066. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  10067. - # Exported symbols can be pulled into shared objects from archives
  10068. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  10069. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  10070. - # This is similar to how AIX traditionally builds its shared libraries.
  10071. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  10072. - fi
  10073. - fi
  10074. - ;;
  10075. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  10076. +# -------------------------------------------------------
  10077. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  10078. +# are set.
  10079. +m4_define([_LT_UNLESS_OPTIONS],
  10080. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  10081. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  10082. + [m4_define([$0_found])])])[]dnl
  10083. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  10084. +])[]dnl
  10085. +])
  10086. - amigaos*)
  10087. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  10088. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10089. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10090. - # see comment about different semantics on the GNU ld section
  10091. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10092. - ;;
  10093. - bsdi[[45]]*)
  10094. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  10095. - ;;
  10096. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  10097. +# ----------------------------------------
  10098. +# OPTION-LIST is a space-separated list of Libtool options associated
  10099. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  10100. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  10101. +# the unknown option and exit.
  10102. +m4_defun([_LT_SET_OPTIONS],
  10103. +[# Set options
  10104. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  10105. + [_LT_SET_OPTION([$1], _LT_Option)])
  10106. +
  10107. +m4_if([$1],[LT_INIT],[
  10108. + dnl
  10109. + dnl Simply set some default values (i.e off) if boolean options were not
  10110. + dnl specified:
  10111. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  10112. + ])
  10113. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  10114. + ])
  10115. + dnl
  10116. + dnl If no reference was made to various pairs of opposing options, then
  10117. + dnl we run the default mode handler for the pair. For example, if neither
  10118. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  10119. + dnl archives by default:
  10120. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  10121. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  10122. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  10123. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  10124. + [_LT_ENABLE_FAST_INSTALL])
  10125. + ])
  10126. +])# _LT_SET_OPTIONS
  10127. - cygwin* | mingw* | pw32*)
  10128. - # When not using gcc, we currently assume that we are using
  10129. - # Microsoft Visual C++.
  10130. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  10131. - # no search path for DLLs.
  10132. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  10133. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  10134. - # Tell ltmain to make .lib files, not .a files.
  10135. - libext=lib
  10136. - # Tell ltmain to make .dll files, not .so files.
  10137. - shrext_cmds=".dll"
  10138. - # FIXME: Setting linknames here is a bad hack.
  10139. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  10140. - # The linker will automatically build a .lib file if we build a DLL.
  10141. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  10142. - # FIXME: Should let the user specify the lib program.
  10143. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10144. - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  10145. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  10146. - ;;
  10147. - darwin* | rhapsody*)
  10148. - case $host_os in
  10149. - rhapsody* | darwin1.[[012]])
  10150. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  10151. - ;;
  10152. - *) # Darwin 1.3 on
  10153. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10154. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10155. - else
  10156. - case ${MACOSX_DEPLOYMENT_TARGET} in
  10157. - 10.[[012]])
  10158. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10159. - ;;
  10160. - 10.*)
  10161. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  10162. - ;;
  10163. - esac
  10164. - fi
  10165. - ;;
  10166. - esac
  10167. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10168. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10169. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  10170. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  10171. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  10172. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10173. - if test "$GCC" = yes ; then
  10174. - output_verbose_link_cmd='echo'
  10175. - _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  10176. - _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10177. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  10178. - _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  10179. - else
  10180. - case $cc_basename in
  10181. - xlc*)
  10182. - output_verbose_link_cmd='echo'
  10183. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  10184. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10185. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10186. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10187. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10188. - ;;
  10189. - *)
  10190. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10191. - ;;
  10192. - esac
  10193. - fi
  10194. - ;;
  10195. - dgux*)
  10196. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10197. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10198. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10199. - ;;
  10200. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  10201. +# -----------------------------------------
  10202. +m4_define([_LT_MANGLE_DEFUN],
  10203. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  10204. - freebsd1*)
  10205. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10206. - ;;
  10207. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10208. - # support. Future versions do this automatically, but an explicit c++rt0.o
  10209. - # does not break anything, and helps significantly (at the cost of a little
  10210. - # extra space).
  10211. - freebsd2.2*)
  10212. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10213. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10214. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10215. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10216. - ;;
  10217. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  10218. +# -----------------------------------------------
  10219. +m4_define([LT_OPTION_DEFINE],
  10220. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  10221. +])# LT_OPTION_DEFINE
  10222. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10223. - freebsd2*)
  10224. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10225. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10226. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10227. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10228. - ;;
  10229. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10230. - freebsd* | dragonfly*)
  10231. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  10232. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10233. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10234. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10235. - ;;
  10236. +# dlopen
  10237. +# ------
  10238. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  10239. +])
  10240. - hpux9*)
  10241. - if test "$GCC" = yes; then
  10242. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10243. - else
  10244. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10245. - fi
  10246. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10247. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10248. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10249. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  10250. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  10251. +AC_DIAGNOSE([obsolete],
  10252. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10253. +put the `dlopen' option into LT_INIT's first parameter.])
  10254. +])
  10255. - # hardcode_minus_L: Not really in the search PATH,
  10256. - # but as the default location of the library.
  10257. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10258. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10259. - ;;
  10260. +dnl aclocal-1.4 backwards compatibility:
  10261. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  10262. - hpux10*)
  10263. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  10264. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10265. - else
  10266. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10267. - fi
  10268. - if test "$with_gnu_ld" = no; then
  10269. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10270. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10271. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10272. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10273. +# win32-dll
  10274. +# ---------
  10275. +# Declare package support for building win32 dll's.
  10276. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  10277. +[enable_win32_dll=yes
  10278. - # hardcode_minus_L: Not really in the search PATH,
  10279. - # but as the default location of the library.
  10280. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10281. - fi
  10282. - ;;
  10283. +case $host in
  10284. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  10285. + AC_CHECK_TOOL(AS, as, false)
  10286. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  10287. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  10288. + ;;
  10289. +esac
  10290. - hpux11*)
  10291. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  10292. - case $host_cpu in
  10293. - hppa*64*)
  10294. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10295. - ;;
  10296. - ia64*)
  10297. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10298. - ;;
  10299. - *)
  10300. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10301. - ;;
  10302. - esac
  10303. - else
  10304. - case $host_cpu in
  10305. - hppa*64*)
  10306. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10307. - ;;
  10308. - ia64*)
  10309. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10310. - ;;
  10311. - *)
  10312. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10313. - ;;
  10314. - esac
  10315. - fi
  10316. - if test "$with_gnu_ld" = no; then
  10317. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10318. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10319. +test -z "$AS" && AS=as
  10320. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  10321. - case $host_cpu in
  10322. - hppa*64*|ia64*)
  10323. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  10324. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10325. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10326. - ;;
  10327. - *)
  10328. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10329. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10330. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  10331. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  10332. - # hardcode_minus_L: Not really in the search PATH,
  10333. - # but as the default location of the library.
  10334. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10335. - ;;
  10336. - esac
  10337. - fi
  10338. - ;;
  10339. +test -z "$OBJDUMP" && OBJDUMP=objdump
  10340. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  10341. +])# win32-dll
  10342. - irix5* | irix6* | nonstopux*)
  10343. - if test "$GCC" = yes; then
  10344. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10345. - else
  10346. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10347. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  10348. - fi
  10349. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10350. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10351. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10352. - ;;
  10353. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  10354. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  10355. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  10356. +AC_DIAGNOSE([obsolete],
  10357. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10358. +put the `win32-dll' option into LT_INIT's first parameter.])
  10359. +])
  10360. - netbsd*)
  10361. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10362. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10363. - else
  10364. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10365. - fi
  10366. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10367. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10368. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10369. - ;;
  10370. +dnl aclocal-1.4 backwards compatibility:
  10371. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  10372. - newsos6)
  10373. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10374. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10375. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10376. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10377. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10378. - ;;
  10379. - openbsd*)
  10380. - if test -f /usr/libexec/ld.so; then
  10381. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10382. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10383. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10384. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10385. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  10386. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10387. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10388. - else
  10389. - case $host_os in
  10390. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  10391. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10392. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10393. - ;;
  10394. - *)
  10395. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10396. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10397. - ;;
  10398. - esac
  10399. - fi
  10400. - else
  10401. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10402. - fi
  10403. +# _LT_ENABLE_SHARED([DEFAULT])
  10404. +# ----------------------------
  10405. +# implement the --enable-shared flag, and supports the `shared' and
  10406. +# `disable-shared' LT_INIT options.
  10407. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10408. +m4_define([_LT_ENABLE_SHARED],
  10409. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10410. +AC_ARG_ENABLE([shared],
  10411. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  10412. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  10413. + [p=${PACKAGE-default}
  10414. + case $enableval in
  10415. + yes) enable_shared=yes ;;
  10416. + no) enable_shared=no ;;
  10417. + *)
  10418. + enable_shared=no
  10419. + # Look at the argument we got. We use all the common list separators.
  10420. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10421. + for pkg in $enableval; do
  10422. + IFS="$lt_save_ifs"
  10423. + if test "X$pkg" = "X$p"; then
  10424. + enable_shared=yes
  10425. + fi
  10426. + done
  10427. + IFS="$lt_save_ifs"
  10428. ;;
  10429. + esac],
  10430. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  10431. - os2*)
  10432. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10433. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10434. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  10435. - _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  10436. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  10437. - ;;
  10438. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  10439. + [Whether or not to build shared libraries])
  10440. +])# _LT_ENABLE_SHARED
  10441. - osf3*)
  10442. - if test "$GCC" = yes; then
  10443. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10444. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10445. - else
  10446. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10447. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10448. - fi
  10449. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10450. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10451. - ;;
  10452. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  10453. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  10454. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  10455. - if test "$GCC" = yes; then
  10456. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10457. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10458. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10459. - else
  10460. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10461. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10462. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  10463. - $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'
  10464. +# Old names:
  10465. +AC_DEFUN([AC_ENABLE_SHARED],
  10466. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  10467. +])
  10468. - # Both c and cxx compiler support -rpath directly
  10469. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10470. - fi
  10471. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10472. - ;;
  10473. +AC_DEFUN([AC_DISABLE_SHARED],
  10474. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  10475. +])
  10476. - solaris*)
  10477. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  10478. - if test "$GCC" = yes; then
  10479. - wlarc='${wl}'
  10480. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10481. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10482. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  10483. - else
  10484. - wlarc=''
  10485. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10486. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10487. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  10488. - fi
  10489. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10490. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10491. - case $host_os in
  10492. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10493. - *)
  10494. - # The compiler driver will combine and reorder linker options,
  10495. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  10496. - # but is careful enough not to reorder.
  10497. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  10498. - if test "$GCC" = yes; then
  10499. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10500. - else
  10501. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  10502. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  10503. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  10504. +
  10505. +dnl aclocal-1.4 backwards compatibility:
  10506. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  10507. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  10508. +
  10509. +
  10510. +
  10511. +# _LT_ENABLE_STATIC([DEFAULT])
  10512. +# ----------------------------
  10513. +# implement the --enable-static flag, and support the `static' and
  10514. +# `disable-static' LT_INIT options.
  10515. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10516. +m4_define([_LT_ENABLE_STATIC],
  10517. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10518. +AC_ARG_ENABLE([static],
  10519. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  10520. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  10521. + [p=${PACKAGE-default}
  10522. + case $enableval in
  10523. + yes) enable_static=yes ;;
  10524. + no) enable_static=no ;;
  10525. + *)
  10526. + enable_static=no
  10527. + # Look at the argument we got. We use all the common list separators.
  10528. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10529. + for pkg in $enableval; do
  10530. + IFS="$lt_save_ifs"
  10531. + if test "X$pkg" = "X$p"; then
  10532. + enable_static=yes
  10533. fi
  10534. - ;;
  10535. - esac
  10536. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10537. - ;;
  10538. -
  10539. - sunos4*)
  10540. - if test "x$host_vendor" = xsequent; then
  10541. - # Use $CC to link under sequent, because it throws in some extra .o
  10542. - # files that make .init and .fini sections work.
  10543. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10544. - else
  10545. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10546. - fi
  10547. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10548. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10549. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10550. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10551. + done
  10552. + IFS="$lt_save_ifs"
  10553. ;;
  10554. + esac],
  10555. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  10556. - sysv4)
  10557. - case $host_vendor in
  10558. - sni)
  10559. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10560. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  10561. - ;;
  10562. - siemens)
  10563. - ## LD is ld it makes a PLAMLIB
  10564. - ## CC just makes a GrossModule.
  10565. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10566. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  10567. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10568. - ;;
  10569. - motorola)
  10570. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10571. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  10572. - ;;
  10573. - esac
  10574. - runpath_var='LD_RUN_PATH'
  10575. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10576. - ;;
  10577. + _LT_DECL([build_old_libs], [enable_static], [0],
  10578. + [Whether or not to build static libraries])
  10579. +])# _LT_ENABLE_STATIC
  10580. - sysv4.3*)
  10581. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10582. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10583. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  10584. - ;;
  10585. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  10586. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  10587. - sysv4*MP*)
  10588. - if test -d /usr/nec; then
  10589. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10590. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10591. - runpath_var=LD_RUN_PATH
  10592. - hardcode_runpath_var=yes
  10593. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  10594. - fi
  10595. - ;;
  10596. +# Old names:
  10597. +AC_DEFUN([AC_ENABLE_STATIC],
  10598. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  10599. +])
  10600. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  10601. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10602. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10603. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10604. - runpath_var='LD_RUN_PATH'
  10605. +AC_DEFUN([AC_DISABLE_STATIC],
  10606. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  10607. +])
  10608. - if test "$GCC" = yes; then
  10609. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10610. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10611. - else
  10612. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10613. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10614. - fi
  10615. - ;;
  10616. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  10617. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  10618. - sysv5* | sco3.2v5* | sco5v6*)
  10619. - # Note: We can NOT use -z defs as we might desire, because we do not
  10620. - # link with -lc, and that would cause any symbols used from libc to
  10621. - # always be unresolved, which means just about no library would
  10622. - # ever link correctly. If we're not using GNU ld we use -z text
  10623. - # though, which does catch some bad symbols but isn't as heavy-handed
  10624. - # as -z defs.
  10625. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10626. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  10627. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10628. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10629. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10630. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  10631. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10632. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  10633. - runpath_var='LD_RUN_PATH'
  10634. +dnl aclocal-1.4 backwards compatibility:
  10635. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  10636. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  10637. - if test "$GCC" = yes; then
  10638. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10639. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10640. - else
  10641. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10642. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10643. - fi
  10644. - ;;
  10645. - uts4*)
  10646. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10647. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10648. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10649. - ;;
  10650. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  10651. +# ----------------------------------
  10652. +# implement the --enable-fast-install flag, and support the `fast-install'
  10653. +# and `disable-fast-install' LT_INIT options.
  10654. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10655. +m4_define([_LT_ENABLE_FAST_INSTALL],
  10656. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10657. +AC_ARG_ENABLE([fast-install],
  10658. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  10659. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  10660. + [p=${PACKAGE-default}
  10661. + case $enableval in
  10662. + yes) enable_fast_install=yes ;;
  10663. + no) enable_fast_install=no ;;
  10664. *)
  10665. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10666. + enable_fast_install=no
  10667. + # Look at the argument we got. We use all the common list separators.
  10668. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10669. + for pkg in $enableval; do
  10670. + IFS="$lt_save_ifs"
  10671. + if test "X$pkg" = "X$p"; then
  10672. + enable_fast_install=yes
  10673. + fi
  10674. + done
  10675. + IFS="$lt_save_ifs"
  10676. ;;
  10677. - esac
  10678. - fi
  10679. + esac],
  10680. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  10681. +
  10682. +_LT_DECL([fast_install], [enable_fast_install], [0],
  10683. + [Whether or not to optimize for fast installation])dnl
  10684. +])# _LT_ENABLE_FAST_INSTALL
  10685. +
  10686. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  10687. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  10688. +
  10689. +# Old names:
  10690. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  10691. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  10692. +AC_DIAGNOSE([obsolete],
  10693. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  10694. +the `fast-install' option into LT_INIT's first parameter.])
  10695. ])
  10696. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  10697. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  10698. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  10699. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  10700. +AC_DIAGNOSE([obsolete],
  10701. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  10702. +the `disable-fast-install' option into LT_INIT's first parameter.])
  10703. +])
  10704. +
  10705. +dnl aclocal-1.4 backwards compatibility:
  10706. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  10707. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  10708. +
  10709. +
  10710. +# _LT_WITH_PIC([MODE])
  10711. +# --------------------
  10712. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  10713. +# LT_INIT options.
  10714. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  10715. +m4_define([_LT_WITH_PIC],
  10716. +[AC_ARG_WITH([pic],
  10717. + [AS_HELP_STRING([--with-pic],
  10718. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  10719. + [pic_mode="$withval"],
  10720. + [pic_mode=default])
  10721. +
  10722. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  10723. +
  10724. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  10725. +])# _LT_WITH_PIC
  10726. +
  10727. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  10728. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  10729. +
  10730. +# Old name:
  10731. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  10732. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  10733. +AC_DIAGNOSE([obsolete],
  10734. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10735. +put the `pic-only' option into LT_INIT's first parameter.])
  10736. +])
  10737. +
  10738. +dnl aclocal-1.4 backwards compatibility:
  10739. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  10740. +
  10741. +
  10742. +m4_define([_LTDL_MODE], [])
  10743. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  10744. + [m4_define([_LTDL_MODE], [nonrecursive])])
  10745. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  10746. + [m4_define([_LTDL_MODE], [recursive])])
  10747. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  10748. + [m4_define([_LTDL_MODE], [subproject])])
  10749. +
  10750. +m4_define([_LTDL_TYPE], [])
  10751. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  10752. + [m4_define([_LTDL_TYPE], [installable])])
  10753. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  10754. + [m4_define([_LTDL_TYPE], [convenience])])
  10755. +
  10756. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  10757. #
  10758. -# Do we need to explicitly link libc?
  10759. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  10760. +# Written by Gary V. Vaughan, 2004
  10761. #
  10762. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  10763. -x|xyes)
  10764. - # Assume -lc should be added
  10765. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  10766. +# This file is free software; the Free Software Foundation gives
  10767. +# unlimited permission to copy and/or distribute it, with or without
  10768. +# modifications, as long as this notice is preserved.
  10769. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  10770. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  10771. - *'~'*)
  10772. - # FIXME: we may have to deal with multi-command sequences.
  10773. - ;;
  10774. - '$CC '*)
  10775. - # Test whether the compiler implicitly links with -lc since on some
  10776. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10777. - # to ld, don't add -lc before -lgcc.
  10778. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  10779. - $rm conftest*
  10780. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10781. +# serial 6 ltsugar.m4
  10782. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  10783. - soname=conftest
  10784. - lib=conftest
  10785. - libobjs=conftest.$ac_objext
  10786. - deplibs=
  10787. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  10788. - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  10789. - compiler_flags=-v
  10790. - linker_flags=-v
  10791. - verstring=
  10792. - output_objdir=.
  10793. - libname=conftest
  10794. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  10795. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  10796. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  10797. - then
  10798. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10799. - else
  10800. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  10801. - fi
  10802. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  10803. - else
  10804. - cat conftest.err 1>&5
  10805. - fi
  10806. - $rm conftest*
  10807. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  10808. - ;;
  10809. - esac
  10810. - fi
  10811. - ;;
  10812. -esac
  10813. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  10814. +# This is to help aclocal find these macros, as it can't see m4_define.
  10815. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  10816. -# _LT_AC_FILE_LTDLL_C
  10817. -# -------------------
  10818. -# Be careful that the start marker always follows a newline.
  10819. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  10820. -# /* ltdll.c starts here */
  10821. -# #define WIN32_LEAN_AND_MEAN
  10822. -# #include <windows.h>
  10823. -# #undef WIN32_LEAN_AND_MEAN
  10824. -# #include <stdio.h>
  10825. -#
  10826. -# #ifndef __CYGWIN__
  10827. -# # ifdef __CYGWIN32__
  10828. -# # define __CYGWIN__ __CYGWIN32__
  10829. -# # endif
  10830. -# #endif
  10831. -#
  10832. -# #ifdef __cplusplus
  10833. -# extern "C" {
  10834. -# #endif
  10835. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  10836. -# #ifdef __cplusplus
  10837. -# }
  10838. -# #endif
  10839. -#
  10840. -# #ifdef __CYGWIN__
  10841. -# #include <cygwin/cygwin_dll.h>
  10842. -# DECLARE_CYGWIN_DLL( DllMain );
  10843. -# #endif
  10844. -# HINSTANCE __hDllInstance_base;
  10845. -#
  10846. -# BOOL APIENTRY
  10847. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  10848. -# {
  10849. -# __hDllInstance_base = hInst;
  10850. -# return TRUE;
  10851. -# }
  10852. -# /* ltdll.c ends here */
  10853. -])# _LT_AC_FILE_LTDLL_C
  10854. +# lt_join(SEP, ARG1, [ARG2...])
  10855. +# -----------------------------
  10856. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  10857. +# associated separator.
  10858. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  10859. +# versions in m4sugar had bugs.
  10860. +m4_define([lt_join],
  10861. +[m4_if([$#], [1], [],
  10862. + [$#], [2], [[$2]],
  10863. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  10864. +m4_define([_lt_join],
  10865. +[m4_if([$#$2], [2], [],
  10866. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  10867. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  10868. -# ---------------------------------
  10869. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  10870. +# lt_car(LIST)
  10871. +# lt_cdr(LIST)
  10872. +# ------------
  10873. +# Manipulate m4 lists.
  10874. +# These macros are necessary as long as will still need to support
  10875. +# Autoconf-2.59 which quotes differently.
  10876. +m4_define([lt_car], [[$1]])
  10877. +m4_define([lt_cdr],
  10878. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  10879. + [$#], 1, [],
  10880. + [m4_dquote(m4_shift($@))])])
  10881. +m4_define([lt_unquote], $1)
  10882. +
  10883. +
  10884. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  10885. +# ------------------------------------------
  10886. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  10887. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  10888. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  10889. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  10890. +# than defined and empty).
  10891. +#
  10892. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  10893. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  10894. +m4_define([lt_append],
  10895. +[m4_define([$1],
  10896. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  10897. -# old names
  10898. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  10899. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  10900. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  10901. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  10902. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  10903. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  10904. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  10905. -# This is just to silence aclocal about the macro not being used
  10906. -ifelse([AC_DISABLE_FAST_INSTALL])
  10907. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  10908. +# ----------------------------------------------------------
  10909. +# Produce a SEP delimited list of all paired combinations of elements of
  10910. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  10911. +# has the form PREFIXmINFIXSUFFIXn.
  10912. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  10913. +m4_define([lt_combine],
  10914. +[m4_if(m4_eval([$# > 3]), [1],
  10915. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  10916. +[[m4_foreach([_Lt_prefix], [$2],
  10917. + [m4_foreach([_Lt_suffix],
  10918. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  10919. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  10920. +
  10921. +
  10922. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  10923. +# -----------------------------------------------------------------------
  10924. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  10925. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  10926. +m4_define([lt_if_append_uniq],
  10927. +[m4_ifdef([$1],
  10928. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  10929. + [lt_append([$1], [$2], [$3])$4],
  10930. + [$5])],
  10931. + [lt_append([$1], [$2], [$3])$4])])
  10932. -AC_DEFUN([LT_AC_PROG_GCJ],
  10933. -[AC_CHECK_TOOL(GCJ, gcj, no)
  10934. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  10935. - AC_SUBST(GCJFLAGS)
  10936. -])
  10937. -AC_DEFUN([LT_AC_PROG_RC],
  10938. -[AC_CHECK_TOOL(RC, windres, no)
  10939. +# lt_dict_add(DICT, KEY, VALUE)
  10940. +# -----------------------------
  10941. +m4_define([lt_dict_add],
  10942. +[m4_define([$1($2)], [$3])])
  10943. +
  10944. +
  10945. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  10946. +# --------------------------------------------
  10947. +m4_define([lt_dict_add_subkey],
  10948. +[m4_define([$1($2:$3)], [$4])])
  10949. +
  10950. +
  10951. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  10952. +# ----------------------------------
  10953. +m4_define([lt_dict_fetch],
  10954. +[m4_ifval([$3],
  10955. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  10956. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  10957. +
  10958. +
  10959. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  10960. +# -----------------------------------------------------------------
  10961. +m4_define([lt_if_dict_fetch],
  10962. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  10963. + [$5],
  10964. + [$6])])
  10965. +
  10966. +
  10967. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  10968. +# --------------------------------------------------------------
  10969. +m4_define([lt_dict_filter],
  10970. +[m4_if([$5], [], [],
  10971. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  10972. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  10973. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  10974. ])
  10975. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  10976. +#
  10977. +# Copyright (C) 2004 Free Software Foundation, Inc.
  10978. +# Written by Scott James Remnant, 2004
  10979. +#
  10980. +# This file is free software; the Free Software Foundation gives
  10981. +# unlimited permission to copy and/or distribute it, with or without
  10982. +# modifications, as long as this notice is preserved.
  10983. -# Cheap backport of AS_EXECUTABLE_P and required macros
  10984. -# from Autoconf 2.59; we should not use $as_executable_p directly.
  10985. +# Generated from ltversion.in.
  10986. -# _AS_TEST_PREPARE
  10987. -# ----------------
  10988. -m4_ifndef([_AS_TEST_PREPARE],
  10989. -[m4_defun([_AS_TEST_PREPARE],
  10990. -[if test -x / >/dev/null 2>&1; then
  10991. - as_executable_p='test -x'
  10992. -else
  10993. - as_executable_p='test -f'
  10994. -fi
  10995. -])])# _AS_TEST_PREPARE
  10996. +# serial 3017 ltversion.m4
  10997. +# This file is part of GNU Libtool
  10998. -# AS_EXECUTABLE_P
  10999. -# ---------------
  11000. -# Check whether a file is executable.
  11001. -m4_ifndef([AS_EXECUTABLE_P],
  11002. -[m4_defun([AS_EXECUTABLE_P],
  11003. -[AS_REQUIRE([_AS_TEST_PREPARE])dnl
  11004. -$as_executable_p $1[]dnl
  11005. -])])# AS_EXECUTABLE_P
  11006. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  11007. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  11008. -# NOTE: This macro has been submitted for inclusion into #
  11009. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  11010. -# a released version of Autoconf we should remove this #
  11011. -# macro and use it instead. #
  11012. -# LT_AC_PROG_SED
  11013. -# --------------
  11014. -# Check for a fully-functional sed program, that truncates
  11015. -# as few characters as possible. Prefer GNU sed if found.
  11016. -AC_DEFUN([LT_AC_PROG_SED],
  11017. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  11018. -AC_CACHE_VAL(lt_cv_path_SED,
  11019. -[# Loop through the user's path and test for sed and gsed.
  11020. -# Then use that list of sed's as ones to test for truncation.
  11021. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11022. -for as_dir in $PATH
  11023. -do
  11024. - IFS=$as_save_IFS
  11025. - test -z "$as_dir" && as_dir=.
  11026. - for lt_ac_prog in sed gsed; do
  11027. - for ac_exec_ext in '' $ac_executable_extensions; do
  11028. - if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
  11029. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  11030. - fi
  11031. - done
  11032. - done
  11033. -done
  11034. -IFS=$as_save_IFS
  11035. -lt_ac_max=0
  11036. -lt_ac_count=0
  11037. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  11038. -# along with /bin/sed that truncates output.
  11039. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  11040. - test ! -f $lt_ac_sed && continue
  11041. - cat /dev/null > conftest.in
  11042. - lt_ac_count=0
  11043. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  11044. - # Check for GNU sed and select it if it is found.
  11045. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  11046. - lt_cv_path_SED=$lt_ac_sed
  11047. - break
  11048. - fi
  11049. - while true; do
  11050. - cat conftest.in conftest.in >conftest.tmp
  11051. - mv conftest.tmp conftest.in
  11052. - cp conftest.in conftest.nl
  11053. - echo >>conftest.nl
  11054. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  11055. - cmp -s conftest.out conftest.nl || break
  11056. - # 10000 chars as input seems more than enough
  11057. - test $lt_ac_count -gt 10 && break
  11058. - lt_ac_count=`expr $lt_ac_count + 1`
  11059. - if test $lt_ac_count -gt $lt_ac_max; then
  11060. - lt_ac_max=$lt_ac_count
  11061. - lt_cv_path_SED=$lt_ac_sed
  11062. - fi
  11063. - done
  11064. -done
  11065. -])
  11066. -SED=$lt_cv_path_SED
  11067. -AC_SUBST([SED])
  11068. -AC_MSG_RESULT([$SED])
  11069. +AC_DEFUN([LTVERSION_VERSION],
  11070. +[macro_version='2.2.6b'
  11071. +macro_revision='1.3017'
  11072. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  11073. +_LT_DECL(, macro_revision, 0)
  11074. ])
  11075. -# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
  11076. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  11077. +#
  11078. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  11079. +# Written by Scott James Remnant, 2004.
  11080. +#
  11081. +# This file is free software; the Free Software Foundation gives
  11082. +# unlimited permission to copy and/or distribute it, with or without
  11083. +# modifications, as long as this notice is preserved.
  11084. +
  11085. +# serial 4 lt~obsolete.m4
  11086. +
  11087. +# These exist entirely to fool aclocal when bootstrapping libtool.
  11088. +#
  11089. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  11090. +# which have later been changed to m4_define as they aren't part of the
  11091. +# exported API, or moved to Autoconf or Automake where they belong.
  11092. +#
  11093. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  11094. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  11095. +# using a macro with the same name in our local m4/libtool.m4 it'll
  11096. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  11097. +# and doesn't know about Autoconf macros at all.)
  11098. +#
  11099. +# So we provide this file, which has a silly filename so it's always
  11100. +# included after everything else. This provides aclocal with the
  11101. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  11102. +# because those macros already exist, or will be overwritten later.
  11103. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  11104. +#
  11105. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  11106. +# Yes, that means every name once taken will need to remain here until
  11107. +# we give up compatibility with versions before 1.7, at which point
  11108. +# we need to keep only those names which we still refer to.
  11109. +
  11110. +# This is to help aclocal find these macros, as it can't see m4_define.
  11111. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  11112. +
  11113. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  11114. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  11115. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  11116. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  11117. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  11118. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  11119. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  11120. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  11121. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  11122. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  11123. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  11124. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  11125. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  11126. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  11127. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  11128. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  11129. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  11130. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  11131. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  11132. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  11133. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  11134. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  11135. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  11136. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  11137. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  11138. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  11139. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  11140. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  11141. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  11142. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  11143. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  11144. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  11145. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  11146. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  11147. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  11148. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  11149. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  11150. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  11151. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  11152. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  11153. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  11154. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  11155. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  11156. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  11157. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  11158. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  11159. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  11160. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  11161. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  11162. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  11163. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  11164. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  11165. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  11166. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  11167. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  11168. +
  11169. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  11170. #
  11171. # This file is free software; the Free Software Foundation
  11172. # gives unlimited permission to copy and/or distribute it,
  11173. @@ -6670,10 +7997,10 @@
  11174. # generated from the m4 files accompanying Automake X.Y.
  11175. # (This private macro should not be called outside this file.)
  11176. AC_DEFUN([AM_AUTOMAKE_VERSION],
  11177. -[am__api_version='1.10'
  11178. +[am__api_version='1.11'
  11179. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  11180. dnl require some minimum version. Point them to the right macro.
  11181. -m4_if([$1], [1.10.1], [],
  11182. +m4_if([$1], [1.11.1], [],
  11183. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  11184. ])
  11185. @@ -6687,12 +8014,12 @@
  11186. # AM_SET_CURRENT_AUTOMAKE_VERSION
  11187. # -------------------------------
  11188. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  11189. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  11190. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  11191. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  11192. -[AM_AUTOMAKE_VERSION([1.10.1])dnl
  11193. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  11194. m4_ifndef([AC_AUTOCONF_VERSION],
  11195. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  11196. -_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
  11197. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  11198. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  11199. @@ -6749,14 +8076,14 @@
  11200. # AM_CONDITIONAL -*- Autoconf -*-
  11201. -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
  11202. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  11203. # Free Software Foundation, Inc.
  11204. #
  11205. # This file is free software; the Free Software Foundation
  11206. # gives unlimited permission to copy and/or distribute it,
  11207. # with or without modifications, as long as this notice is preserved.
  11208. -# serial 8
  11209. +# serial 9
  11210. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  11211. # -------------------------------------
  11212. @@ -6769,6 +8096,7 @@
  11213. AC_SUBST([$1_FALSE])dnl
  11214. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  11215. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  11216. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  11217. if $2; then
  11218. $1_TRUE=
  11219. $1_FALSE='#'
  11220. @@ -6782,14 +8110,14 @@
  11221. Usually this means the macro was only invoked conditionally.]])
  11222. fi])])
  11223. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
  11224. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  11225. # Free Software Foundation, Inc.
  11226. #
  11227. # This file is free software; the Free Software Foundation
  11228. # gives unlimited permission to copy and/or distribute it,
  11229. # with or without modifications, as long as this notice is preserved.
  11230. -# serial 9
  11231. +# serial 10
  11232. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  11233. # written in clear, in which case automake, when reading aclocal.m4,
  11234. @@ -6846,6 +8174,16 @@
  11235. if test "$am_compiler_list" = ""; then
  11236. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  11237. fi
  11238. + am__universal=false
  11239. + m4_case([$1], [CC],
  11240. + [case " $depcc " in #(
  11241. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11242. + esac],
  11243. + [CXX],
  11244. + [case " $depcc " in #(
  11245. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11246. + esac])
  11247. +
  11248. for depmode in $am_compiler_list; do
  11249. # Setup a source with many dependencies, because some compilers
  11250. # like to wrap large dependency lists on column 80 (with \), and
  11251. @@ -6863,7 +8201,17 @@
  11252. done
  11253. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11254. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  11255. + # mode. It turns out that the SunPro C++ compiler does not properly
  11256. + # handle `-M -o', and we need to detect this. Also, some Intel
  11257. + # versions had trouble with output in subdirs
  11258. + am__obj=sub/conftest.${OBJEXT-o}
  11259. + am__minus_obj="-o $am__obj"
  11260. case $depmode in
  11261. + gcc)
  11262. + # This depmode causes a compiler race in universal mode.
  11263. + test "$am__universal" = false || continue
  11264. + ;;
  11265. nosideeffect)
  11266. # after this tag, mechanisms are not by side-effect, so they'll
  11267. # only be used when explicitly requested
  11268. @@ -6873,19 +8221,23 @@
  11269. break
  11270. fi
  11271. ;;
  11272. + msvisualcpp | msvcmsys)
  11273. + # This compiler won't grok `-c -o', but also, the minuso test has
  11274. + # not run yet. These depmodes are late enough in the game, and
  11275. + # so weak that their functioning should not be impacted.
  11276. + am__obj=conftest.${OBJEXT-o}
  11277. + am__minus_obj=
  11278. + ;;
  11279. none) break ;;
  11280. esac
  11281. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  11282. - # mode. It turns out that the SunPro C++ compiler does not properly
  11283. - # handle `-M -o', and we need to detect this.
  11284. if depmode=$depmode \
  11285. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  11286. + source=sub/conftest.c object=$am__obj \
  11287. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11288. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  11289. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11290. >/dev/null 2>conftest.err &&
  11291. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11292. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11293. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  11294. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11295. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11296. # icc doesn't choke on unknown options, it will just issue warnings
  11297. # or remarks (even with -Werror). So we grep stderr for any message
  11298. @@ -6942,57 +8294,68 @@
  11299. # Generate code to set up dependency tracking. -*- Autoconf -*-
  11300. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  11301. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  11302. # Free Software Foundation, Inc.
  11303. #
  11304. # This file is free software; the Free Software Foundation
  11305. # gives unlimited permission to copy and/or distribute it,
  11306. # with or without modifications, as long as this notice is preserved.
  11307. -#serial 3
  11308. +#serial 5
  11309. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  11310. # ------------------------------
  11311. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  11312. -[for mf in $CONFIG_FILES; do
  11313. - # Strip MF so we end up with the name of the file.
  11314. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  11315. - # Check whether this is an Automake generated Makefile or not.
  11316. - # We used to match only the files named `Makefile.in', but
  11317. - # some people rename them; so instead we look at the file content.
  11318. - # Grep'ing the first line is not enough: some people post-process
  11319. - # each Makefile.in and add a new line on top of each file to say so.
  11320. - # Grep'ing the whole file is not good either: AIX grep has a line
  11321. - # limit of 2048, but all sed's we know have understand at least 4000.
  11322. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11323. - dirpart=`AS_DIRNAME("$mf")`
  11324. - else
  11325. - continue
  11326. - fi
  11327. - # Extract the definition of DEPDIR, am__include, and am__quote
  11328. - # from the Makefile without running `make'.
  11329. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11330. - test -z "$DEPDIR" && continue
  11331. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11332. - test -z "am__include" && continue
  11333. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11334. - # When using ansi2knr, U may be empty or an underscore; expand it
  11335. - U=`sed -n 's/^U = //p' < "$mf"`
  11336. - # Find all dependency output files, they are included files with
  11337. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  11338. - # simplest approach to changing $(DEPDIR) to its actual value in the
  11339. - # expansion.
  11340. - for file in `sed -n "
  11341. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11342. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11343. - # Make sure the directory exists.
  11344. - test -f "$dirpart/$file" && continue
  11345. - fdir=`AS_DIRNAME(["$file"])`
  11346. - AS_MKDIR_P([$dirpart/$fdir])
  11347. - # echo "creating $dirpart/$file"
  11348. - echo '# dummy' > "$dirpart/$file"
  11349. +[{
  11350. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  11351. + # are listed without --file. Let's play safe and only enable the eval
  11352. + # if we detect the quoting.
  11353. + case $CONFIG_FILES in
  11354. + *\'*) eval set x "$CONFIG_FILES" ;;
  11355. + *) set x $CONFIG_FILES ;;
  11356. + esac
  11357. + shift
  11358. + for mf
  11359. + do
  11360. + # Strip MF so we end up with the name of the file.
  11361. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  11362. + # Check whether this is an Automake generated Makefile or not.
  11363. + # We used to match only the files named `Makefile.in', but
  11364. + # some people rename them; so instead we look at the file content.
  11365. + # Grep'ing the first line is not enough: some people post-process
  11366. + # each Makefile.in and add a new line on top of each file to say so.
  11367. + # Grep'ing the whole file is not good either: AIX grep has a line
  11368. + # limit of 2048, but all sed's we know have understand at least 4000.
  11369. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11370. + dirpart=`AS_DIRNAME("$mf")`
  11371. + else
  11372. + continue
  11373. + fi
  11374. + # Extract the definition of DEPDIR, am__include, and am__quote
  11375. + # from the Makefile without running `make'.
  11376. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11377. + test -z "$DEPDIR" && continue
  11378. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11379. + test -z "am__include" && continue
  11380. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11381. + # When using ansi2knr, U may be empty or an underscore; expand it
  11382. + U=`sed -n 's/^U = //p' < "$mf"`
  11383. + # Find all dependency output files, they are included files with
  11384. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  11385. + # simplest approach to changing $(DEPDIR) to its actual value in the
  11386. + # expansion.
  11387. + for file in `sed -n "
  11388. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11389. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11390. + # Make sure the directory exists.
  11391. + test -f "$dirpart/$file" && continue
  11392. + fdir=`AS_DIRNAME(["$file"])`
  11393. + AS_MKDIR_P([$dirpart/$fdir])
  11394. + # echo "creating $dirpart/$file"
  11395. + echo '# dummy' > "$dirpart/$file"
  11396. + done
  11397. done
  11398. -done
  11399. +}
  11400. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  11401. @@ -7012,13 +8375,13 @@
  11402. # Do all the work for Automake. -*- Autoconf -*-
  11403. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  11404. -# 2005, 2006, 2008 Free Software Foundation, Inc.
  11405. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  11406. #
  11407. # This file is free software; the Free Software Foundation
  11408. # gives unlimited permission to copy and/or distribute it,
  11409. # with or without modifications, as long as this notice is preserved.
  11410. -# serial 13
  11411. +# serial 16
  11412. # This macro actually does too much. Some checks are only needed if
  11413. # your package does certain things. But this isn't really a big deal.
  11414. @@ -7035,7 +8398,7 @@
  11415. # arguments mandatory, and then we can depend on a new Autoconf
  11416. # release and drop the old call support.
  11417. AC_DEFUN([AM_INIT_AUTOMAKE],
  11418. -[AC_PREREQ([2.60])dnl
  11419. +[AC_PREREQ([2.62])dnl
  11420. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  11421. dnl the ones we care about.
  11422. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  11423. @@ -7086,8 +8449,8 @@
  11424. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  11425. AM_MISSING_PROG(AUTOHEADER, autoheader)
  11426. AM_MISSING_PROG(MAKEINFO, makeinfo)
  11427. -AM_PROG_INSTALL_SH
  11428. -AM_PROG_INSTALL_STRIP
  11429. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  11430. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  11431. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  11432. # We need awk for the "check" target. The system "awk" is bad on
  11433. # some platforms.
  11434. @@ -7095,24 +8458,37 @@
  11435. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  11436. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  11437. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  11438. - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  11439. - [_AM_PROG_TAR([v7])])])
  11440. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  11441. + [_AM_PROG_TAR([v7])])])
  11442. _AM_IF_OPTION([no-dependencies],,
  11443. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  11444. - [_AM_DEPENDENCIES(CC)],
  11445. - [define([AC_PROG_CC],
  11446. - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  11447. + [_AM_DEPENDENCIES(CC)],
  11448. + [define([AC_PROG_CC],
  11449. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  11450. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  11451. - [_AM_DEPENDENCIES(CXX)],
  11452. - [define([AC_PROG_CXX],
  11453. - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  11454. + [_AM_DEPENDENCIES(CXX)],
  11455. + [define([AC_PROG_CXX],
  11456. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  11457. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  11458. - [_AM_DEPENDENCIES(OBJC)],
  11459. - [define([AC_PROG_OBJC],
  11460. - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  11461. + [_AM_DEPENDENCIES(OBJC)],
  11462. + [define([AC_PROG_OBJC],
  11463. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  11464. ])
  11465. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  11466. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  11467. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  11468. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  11469. +AC_CONFIG_COMMANDS_PRE(dnl
  11470. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  11471. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  11472. ])
  11473. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  11474. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  11475. +dnl mangled by Autoconf and run in a shell conditional statement.
  11476. +m4_define([_AC_COMPILER_EXEEXT],
  11477. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  11478. +
  11479. # When config.status generates a header, we must update the stamp-h file.
  11480. # This file resides in the same directory as the config header
  11481. @@ -7135,7 +8511,7 @@
  11482. done
  11483. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  11484. -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  11485. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  11486. #
  11487. # This file is free software; the Free Software Foundation
  11488. # gives unlimited permission to copy and/or distribute it,
  11489. @@ -7146,7 +8522,14 @@
  11490. # Define $install_sh.
  11491. AC_DEFUN([AM_PROG_INSTALL_SH],
  11492. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  11493. -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  11494. +if test x"${install_sh}" != xset; then
  11495. + case $am_aux_dir in
  11496. + *\ * | *\ *)
  11497. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  11498. + *)
  11499. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  11500. + esac
  11501. +fi
  11502. AC_SUBST(install_sh)])
  11503. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  11504. @@ -7172,13 +8555,13 @@
  11505. # Check to see how 'make' treats includes. -*- Autoconf -*-
  11506. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  11507. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  11508. #
  11509. # This file is free software; the Free Software Foundation
  11510. # gives unlimited permission to copy and/or distribute it,
  11511. # with or without modifications, as long as this notice is preserved.
  11512. -# serial 3
  11513. +# serial 4
  11514. # AM_MAKE_INCLUDE()
  11515. # -----------------
  11516. @@ -7187,7 +8570,7 @@
  11517. [am_make=${MAKE-make}
  11518. cat > confinc << 'END'
  11519. am__doit:
  11520. - @echo done
  11521. + @echo this is the am__doit target
  11522. .PHONY: am__doit
  11523. END
  11524. # If we don't find an include directive, just comment out the code.
  11525. @@ -7197,24 +8580,24 @@
  11526. _am_result=none
  11527. # First try GNU make style include.
  11528. echo "include confinc" > confmf
  11529. -# We grep out `Entering directory' and `Leaving directory'
  11530. -# messages which can occur if `w' ends up in MAKEFLAGS.
  11531. -# In particular we don't look at `^make:' because GNU make might
  11532. -# be invoked under some other name (usually "gmake"), in which
  11533. -# case it prints its new name instead of `make'.
  11534. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  11535. - am__include=include
  11536. - am__quote=
  11537. - _am_result=GNU
  11538. -fi
  11539. +# Ignore all kinds of additional output from `make'.
  11540. +case `$am_make -s -f confmf 2> /dev/null` in #(
  11541. +*the\ am__doit\ target*)
  11542. + am__include=include
  11543. + am__quote=
  11544. + _am_result=GNU
  11545. + ;;
  11546. +esac
  11547. # Now try BSD make style include.
  11548. if test "$am__include" = "#"; then
  11549. echo '.include "confinc"' > confmf
  11550. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  11551. - am__include=.include
  11552. - am__quote="\""
  11553. - _am_result=BSD
  11554. - fi
  11555. + case `$am_make -s -f confmf 2> /dev/null` in #(
  11556. + *the\ am__doit\ target*)
  11557. + am__include=.include
  11558. + am__quote="\""
  11559. + _am_result=BSD
  11560. + ;;
  11561. + esac
  11562. fi
  11563. AC_SUBST([am__include])
  11564. AC_SUBST([am__quote])
  11565. @@ -7224,14 +8607,14 @@
  11566. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  11567. -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
  11568. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  11569. # Free Software Foundation, Inc.
  11570. #
  11571. # This file is free software; the Free Software Foundation
  11572. # gives unlimited permission to copy and/or distribute it,
  11573. # with or without modifications, as long as this notice is preserved.
  11574. -# serial 5
  11575. +# serial 6
  11576. # AM_MISSING_PROG(NAME, PROGRAM)
  11577. # ------------------------------
  11578. @@ -7248,7 +8631,14 @@
  11579. AC_DEFUN([AM_MISSING_HAS_RUN],
  11580. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  11581. AC_REQUIRE_AUX_FILE([missing])dnl
  11582. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  11583. +if test x"${MISSING+set}" != xset; then
  11584. + case $am_aux_dir in
  11585. + *\ * | *\ *)
  11586. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  11587. + *)
  11588. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  11589. + esac
  11590. +fi
  11591. # Use eval to expand $SHELL
  11592. if eval "$MISSING --run true"; then
  11593. am_missing_run="$MISSING --run "
  11594. @@ -7286,13 +8676,13 @@
  11595. # Helper functions for option handling. -*- Autoconf -*-
  11596. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  11597. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  11598. #
  11599. # This file is free software; the Free Software Foundation
  11600. # gives unlimited permission to copy and/or distribute it,
  11601. # with or without modifications, as long as this notice is preserved.
  11602. -# serial 3
  11603. +# serial 4
  11604. # _AM_MANGLE_OPTION(NAME)
  11605. # -----------------------
  11606. @@ -7309,7 +8699,7 @@
  11607. # ----------------------------------
  11608. # OPTIONS is a space-separated list of Automake options.
  11609. AC_DEFUN([_AM_SET_OPTIONS],
  11610. -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  11611. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  11612. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  11613. # -------------------------------------------
  11614. @@ -7319,14 +8709,14 @@
  11615. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  11616. -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  11617. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  11618. # Free Software Foundation, Inc.
  11619. #
  11620. # This file is free software; the Free Software Foundation
  11621. # gives unlimited permission to copy and/or distribute it,
  11622. # with or without modifications, as long as this notice is preserved.
  11623. -# serial 4
  11624. +# serial 5
  11625. # AM_SANITY_CHECK
  11626. # ---------------
  11627. @@ -7335,16 +8725,29 @@
  11628. # Just in case
  11629. sleep 1
  11630. echo timestamp > conftest.file
  11631. +# Reject unsafe characters in $srcdir or the absolute working directory
  11632. +# name. Accept space and tab only in the latter.
  11633. +am_lf='
  11634. +'
  11635. +case `pwd` in
  11636. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  11637. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  11638. +esac
  11639. +case $srcdir in
  11640. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  11641. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  11642. +esac
  11643. +
  11644. # Do `set' in a subshell so we don't clobber the current shell's
  11645. # arguments. Must try -L first in case configure is actually a
  11646. # symlink; some systems play weird games with the mod time of symlinks
  11647. # (eg FreeBSD returns the mod time of the symlink's containing
  11648. # directory).
  11649. if (
  11650. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  11651. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  11652. if test "$[*]" = "X"; then
  11653. # -L didn't work.
  11654. - set X `ls -t $srcdir/configure conftest.file`
  11655. + set X `ls -t "$srcdir/configure" conftest.file`
  11656. fi
  11657. rm -f conftest.file
  11658. if test "$[*]" != "X $srcdir/configure conftest.file" \
  11659. @@ -7397,18 +8800,25 @@
  11660. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  11661. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  11662. -# Copyright (C) 2006 Free Software Foundation, Inc.
  11663. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  11664. #
  11665. # This file is free software; the Free Software Foundation
  11666. # gives unlimited permission to copy and/or distribute it,
  11667. # with or without modifications, as long as this notice is preserved.
  11668. +# serial 2
  11669. +
  11670. # _AM_SUBST_NOTMAKE(VARIABLE)
  11671. # ---------------------------
  11672. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  11673. # This macro is traced by Automake.
  11674. AC_DEFUN([_AM_SUBST_NOTMAKE])
  11675. +# AM_SUBST_NOTMAKE(VARIABLE)
  11676. +# ---------------------------
  11677. +# Public sister of _AM_SUBST_NOTMAKE.
  11678. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  11679. +
  11680. # Check how to create a tarball. -*- Autoconf -*-
  11681. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  11682. diff -Nur libdaemon-0.13.orig/config.guess libdaemon-0.13/config.guess
  11683. --- libdaemon-0.13.orig/config.guess 2008-06-09 21:51:04.000000000 +0200
  11684. +++ libdaemon-0.13/config.guess 2011-02-20 22:17:59.616053503 +0100
  11685. @@ -1,10 +1,10 @@
  11686. #! /bin/sh
  11687. # Attempt to guess a canonical system name.
  11688. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  11689. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  11690. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  11691. # Free Software Foundation, Inc.
  11692. -timestamp='2008-01-23'
  11693. +timestamp='2009-06-10'
  11694. # This file is free software; you can redistribute it and/or modify it
  11695. # under the terms of the GNU General Public License as published by
  11696. @@ -170,7 +170,7 @@
  11697. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  11698. eval $set_cc_for_build
  11699. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  11700. - | grep __ELF__ >/dev/null
  11701. + | grep -q __ELF__
  11702. then
  11703. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  11704. # Return netbsd for either. FIX?
  11705. @@ -324,6 +324,9 @@
  11706. case `/usr/bin/uname -p` in
  11707. sparc) echo sparc-icl-nx7; exit ;;
  11708. esac ;;
  11709. + s390x:SunOS:*:*)
  11710. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11711. + exit ;;
  11712. sun4H:SunOS:5.*:*)
  11713. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11714. exit ;;
  11715. @@ -331,7 +334,20 @@
  11716. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11717. exit ;;
  11718. i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  11719. - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11720. + eval $set_cc_for_build
  11721. + SUN_ARCH="i386"
  11722. + # If there is a compiler, see if it is configured for 64-bit objects.
  11723. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  11724. + # This test works for both compilers.
  11725. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  11726. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  11727. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  11728. + grep IS_64BIT_ARCH >/dev/null
  11729. + then
  11730. + SUN_ARCH="x86_64"
  11731. + fi
  11732. + fi
  11733. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11734. exit ;;
  11735. sun4*:SunOS:6*:*)
  11736. # According to config.sub, this is the proper way to canonicalize
  11737. @@ -640,7 +656,7 @@
  11738. # => hppa64-hp-hpux11.23
  11739. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  11740. - grep __LP64__ >/dev/null
  11741. + grep -q __LP64__
  11742. then
  11743. HP_ARCH="hppa2.0w"
  11744. else
  11745. @@ -796,7 +812,7 @@
  11746. x86)
  11747. echo i586-pc-interix${UNAME_RELEASE}
  11748. exit ;;
  11749. - EM64T | authenticamd)
  11750. + EM64T | authenticamd | genuineintel)
  11751. echo x86_64-unknown-interix${UNAME_RELEASE}
  11752. exit ;;
  11753. IA64)
  11754. @@ -806,6 +822,9 @@
  11755. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  11756. echo i${UNAME_MACHINE}-pc-mks
  11757. exit ;;
  11758. + 8664:Windows_NT:*)
  11759. + echo x86_64-pc-mks
  11760. + exit ;;
  11761. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  11762. # How do we know it's Interix rather than the generic POSIX subsystem?
  11763. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  11764. @@ -866,40 +885,17 @@
  11765. m68*:Linux:*:*)
  11766. echo ${UNAME_MACHINE}-unknown-linux-gnu
  11767. exit ;;
  11768. - mips:Linux:*:*)
  11769. + mips:Linux:*:* | mips64:Linux:*:*)
  11770. eval $set_cc_for_build
  11771. sed 's/^ //' << EOF >$dummy.c
  11772. #undef CPU
  11773. - #undef mips
  11774. - #undef mipsel
  11775. + #undef ${UNAME_MACHINE}
  11776. + #undef ${UNAME_MACHINE}el
  11777. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  11778. - CPU=mipsel
  11779. + CPU=${UNAME_MACHINE}el
  11780. #else
  11781. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  11782. - CPU=mips
  11783. - #else
  11784. - CPU=
  11785. - #endif
  11786. - #endif
  11787. -EOF
  11788. - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  11789. - /^CPU/{
  11790. - s: ::g
  11791. - p
  11792. - }'`"
  11793. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  11794. - ;;
  11795. - mips64:Linux:*:*)
  11796. - eval $set_cc_for_build
  11797. - sed 's/^ //' << EOF >$dummy.c
  11798. - #undef CPU
  11799. - #undef mips64
  11800. - #undef mips64el
  11801. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  11802. - CPU=mips64el
  11803. - #else
  11804. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  11805. - CPU=mips64
  11806. + CPU=${UNAME_MACHINE}
  11807. #else
  11808. CPU=
  11809. #endif
  11810. @@ -931,10 +927,13 @@
  11811. EV67) UNAME_MACHINE=alphaev67 ;;
  11812. EV68*) UNAME_MACHINE=alphaev68 ;;
  11813. esac
  11814. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  11815. + objdump --private-headers /bin/sh | grep -q ld.so.1
  11816. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  11817. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  11818. exit ;;
  11819. + padre:Linux:*:*)
  11820. + echo sparc-unknown-linux-gnu
  11821. + exit ;;
  11822. parisc:Linux:*:* | hppa:Linux:*:*)
  11823. # Look for CPU level
  11824. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  11825. @@ -982,17 +981,6 @@
  11826. elf32-i386)
  11827. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  11828. ;;
  11829. - a.out-i386-linux)
  11830. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  11831. - exit ;;
  11832. - coff-i386)
  11833. - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  11834. - exit ;;
  11835. - "")
  11836. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  11837. - # one that does not give us useful --help.
  11838. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  11839. - exit ;;
  11840. esac
  11841. # Determine whether the default compiler is a.out or elf
  11842. eval $set_cc_for_build
  11843. @@ -1058,7 +1046,7 @@
  11844. i*86:syllable:*:*)
  11845. echo ${UNAME_MACHINE}-pc-syllable
  11846. exit ;;
  11847. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  11848. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  11849. echo i386-unknown-lynxos${UNAME_RELEASE}
  11850. exit ;;
  11851. i*86:*DOS:*:*)
  11852. @@ -1102,8 +1090,11 @@
  11853. pc:*:*:*)
  11854. # Left here for compatibility:
  11855. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  11856. - # the processor, so we play safe by assuming i386.
  11857. - echo i386-pc-msdosdjgpp
  11858. + # the processor, so we play safe by assuming i586.
  11859. + # Note: whatever this is, it MUST be the same as what config.sub
  11860. + # prints for the "djgpp" host, or else GDB configury will decide that
  11861. + # this is a cross-build.
  11862. + echo i586-pc-msdosdjgpp
  11863. exit ;;
  11864. Intel:Mach:3*:*)
  11865. echo i386-pc-mach3
  11866. @@ -1141,6 +1132,16 @@
  11867. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  11868. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  11869. && { echo i486-ncr-sysv4; exit; } ;;
  11870. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  11871. + OS_REL='.3'
  11872. + test -r /etc/.relid \
  11873. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  11874. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  11875. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  11876. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  11877. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  11878. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  11879. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  11880. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  11881. echo m68k-unknown-lynxos${UNAME_RELEASE}
  11882. exit ;;
  11883. @@ -1153,7 +1154,7 @@
  11884. rs6000:LynxOS:2.*:*)
  11885. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  11886. exit ;;
  11887. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  11888. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  11889. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  11890. exit ;;
  11891. SM[BE]S:UNIX_SV:*:*)
  11892. @@ -1216,6 +1217,9 @@
  11893. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  11894. echo i586-pc-beos
  11895. exit ;;
  11896. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  11897. + echo i586-pc-haiku
  11898. + exit ;;
  11899. SX-4:SUPER-UX:*:*)
  11900. echo sx4-nec-superux${UNAME_RELEASE}
  11901. exit ;;
  11902. @@ -1324,6 +1328,9 @@
  11903. i*86:rdos:*:*)
  11904. echo ${UNAME_MACHINE}-pc-rdos
  11905. exit ;;
  11906. + i*86:AROS:*:*)
  11907. + echo ${UNAME_MACHINE}-pc-aros
  11908. + exit ;;
  11909. esac
  11910. #echo '(No uname command or uname output not recognized.)' 1>&2
  11911. diff -Nur libdaemon-0.13.orig/config.h.in libdaemon-0.13/config.h.in
  11912. --- libdaemon-0.13.orig/config.h.in 2008-07-29 00:37:15.000000000 +0200
  11913. +++ libdaemon-0.13/config.h.in 2011-02-20 22:17:59.000000000 +0100
  11914. @@ -93,6 +93,10 @@
  11915. /* Define to 1 if `vfork' works. */
  11916. #undef HAVE_WORKING_VFORK
  11917. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  11918. + */
  11919. +#undef LT_OBJDIR
  11920. +
  11921. /* Name of package */
  11922. #undef PACKAGE
  11923. @@ -108,6 +112,9 @@
  11924. /* Define to the one symbol short name of this package. */
  11925. #undef PACKAGE_TARNAME
  11926. +/* Define to the home page for this package. */
  11927. +#undef PACKAGE_URL
  11928. +
  11929. /* Define to the version of this package. */
  11930. #undef PACKAGE_VERSION
  11931. @@ -132,25 +139,6 @@
  11932. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  11933. #undef TIME_WITH_SYS_TIME
  11934. -/* Version number of package */
  11935. -#undef VERSION
  11936. -
  11937. -/* Number of bits in a file offset, on hosts where this is settable. */
  11938. -#undef _FILE_OFFSET_BITS
  11939. -
  11940. -/* Define for large files, on AIX-style hosts. */
  11941. -#undef _LARGE_FILES
  11942. -
  11943. -/* Define to 1 if on MINIX. */
  11944. -#undef _MINIX
  11945. -
  11946. -/* Define to 2 if the system does not provide POSIX.1 features except with
  11947. - this defined. */
  11948. -#undef _POSIX_1_SOURCE
  11949. -
  11950. -/* Define to 1 if you need to in order for `stat' and other things to work. */
  11951. -#undef _POSIX_SOURCE
  11952. -
  11953. /* Enable extensions on AIX 3, Interix. */
  11954. #ifndef _ALL_SOURCE
  11955. # undef _ALL_SOURCE
  11956. @@ -173,6 +161,25 @@
  11957. #endif
  11958. +/* Version number of package */
  11959. +#undef VERSION
  11960. +
  11961. +/* Number of bits in a file offset, on hosts where this is settable. */
  11962. +#undef _FILE_OFFSET_BITS
  11963. +
  11964. +/* Define for large files, on AIX-style hosts. */
  11965. +#undef _LARGE_FILES
  11966. +
  11967. +/* Define to 1 if on MINIX. */
  11968. +#undef _MINIX
  11969. +
  11970. +/* Define to 2 if the system does not provide POSIX.1 features except with
  11971. + this defined. */
  11972. +#undef _POSIX_1_SOURCE
  11973. +
  11974. +/* Define to 1 if you need to in order for `stat' and other things to work. */
  11975. +#undef _POSIX_SOURCE
  11976. +
  11977. /* Define to empty if `const' does not conform to ANSI C. */
  11978. #undef const
  11979. diff -Nur libdaemon-0.13.orig/config.h.in~ libdaemon-0.13/config.h.in~
  11980. --- libdaemon-0.13.orig/config.h.in~ 1970-01-01 01:00:00.000000000 +0100
  11981. +++ libdaemon-0.13/config.h.in~ 2008-07-29 00:37:15.000000000 +0200
  11982. @@ -0,0 +1,193 @@
  11983. +/* config.h.in. Generated from configure.ac by autoheader. */
  11984. +
  11985. +/* Define to 1 if you have the `asprintf' function. */
  11986. +#undef HAVE_ASPRINTF
  11987. +
  11988. +/* Define to 1 if you have the <dlfcn.h> header file. */
  11989. +#undef HAVE_DLFCN_H
  11990. +
  11991. +/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
  11992. +#undef HAVE_DOPRNT
  11993. +
  11994. +/* Define to 1 if you have the `dup2' function. */
  11995. +#undef HAVE_DUP2
  11996. +
  11997. +/* Define to 1 if you have the <fcntl.h> header file. */
  11998. +#undef HAVE_FCNTL_H
  11999. +
  12000. +/* Define to 1 if you have the `fork' function. */
  12001. +#undef HAVE_FORK
  12002. +
  12003. +/* Define to 1 if you have the <inttypes.h> header file. */
  12004. +#undef HAVE_INTTYPES_H
  12005. +
  12006. +/* Define to 1 if you have the <limits.h> header file. */
  12007. +#undef HAVE_LIMITS_H
  12008. +
  12009. +/* Define to 1 if you have the <memory.h> header file. */
  12010. +#undef HAVE_MEMORY_H
  12011. +
  12012. +/* Define to 1 if you have the `memset' function. */
  12013. +#undef HAVE_MEMSET
  12014. +
  12015. +/* Define to 1 if you have the `select' function. */
  12016. +#undef HAVE_SELECT
  12017. +
  12018. +/* Define to 1 if you have the <stdint.h> header file. */
  12019. +#undef HAVE_STDINT_H
  12020. +
  12021. +/* Define to 1 if you have the <stdlib.h> header file. */
  12022. +#undef HAVE_STDLIB_H
  12023. +
  12024. +/* Define to 1 if you have the `strerror' function. */
  12025. +#undef HAVE_STRERROR
  12026. +
  12027. +/* Define to 1 if you have the <strings.h> header file. */
  12028. +#undef HAVE_STRINGS_H
  12029. +
  12030. +/* Define to 1 if you have the <string.h> header file. */
  12031. +#undef HAVE_STRING_H
  12032. +
  12033. +/* Define to 1 if you have the `strrchr' function. */
  12034. +#undef HAVE_STRRCHR
  12035. +
  12036. +/* Define to 1 if you have the <syslog.h> header file. */
  12037. +#undef HAVE_SYSLOG_H
  12038. +
  12039. +/* Define to 1 if you have the <sys/ioctl.h> header file. */
  12040. +#undef HAVE_SYS_IOCTL_H
  12041. +
  12042. +/* Define to 1 if you have the <sys/select.h> header file. */
  12043. +#undef HAVE_SYS_SELECT_H
  12044. +
  12045. +/* Define to 1 if you have the <sys/socket.h> header file. */
  12046. +#undef HAVE_SYS_SOCKET_H
  12047. +
  12048. +/* Define to 1 if you have the <sys/stat.h> header file. */
  12049. +#undef HAVE_SYS_STAT_H
  12050. +
  12051. +/* Define to 1 if you have the <sys/time.h> header file. */
  12052. +#undef HAVE_SYS_TIME_H
  12053. +
  12054. +/* Define to 1 if you have the <sys/types.h> header file. */
  12055. +#undef HAVE_SYS_TYPES_H
  12056. +
  12057. +/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  12058. +#undef HAVE_SYS_WAIT_H
  12059. +
  12060. +/* Define to 1 if you have the <unistd.h> header file. */
  12061. +#undef HAVE_UNISTD_H
  12062. +
  12063. +/* Define to 1 if you have the `vfork' function. */
  12064. +#undef HAVE_VFORK
  12065. +
  12066. +/* Define to 1 if you have the <vfork.h> header file. */
  12067. +#undef HAVE_VFORK_H
  12068. +
  12069. +/* Define to 1 if you have the `vprintf' function. */
  12070. +#undef HAVE_VPRINTF
  12071. +
  12072. +/* Define to 1 if `fork' works. */
  12073. +#undef HAVE_WORKING_FORK
  12074. +
  12075. +/* Define to 1 if `vfork' works. */
  12076. +#undef HAVE_WORKING_VFORK
  12077. +
  12078. +/* Name of package */
  12079. +#undef PACKAGE
  12080. +
  12081. +/* Define to the address where bug reports for this package should be sent. */
  12082. +#undef PACKAGE_BUGREPORT
  12083. +
  12084. +/* Define to the full name of this package. */
  12085. +#undef PACKAGE_NAME
  12086. +
  12087. +/* Define to the full name and version of this package. */
  12088. +#undef PACKAGE_STRING
  12089. +
  12090. +/* Define to the one symbol short name of this package. */
  12091. +#undef PACKAGE_TARNAME
  12092. +
  12093. +/* Define to the version of this package. */
  12094. +#undef PACKAGE_VERSION
  12095. +
  12096. +/* Define as the return type of signal handlers (`int' or `void'). */
  12097. +#undef RETSIGTYPE
  12098. +
  12099. +/* Define to the type of arg 1 for `select'. */
  12100. +#undef SELECT_TYPE_ARG1
  12101. +
  12102. +/* Define to the type of args 2, 3 and 4 for `select'. */
  12103. +#undef SELECT_TYPE_ARG234
  12104. +
  12105. +/* Define to the type of arg 5 for `select'. */
  12106. +#undef SELECT_TYPE_ARG5
  12107. +
  12108. +/* Define to 1 if the `setpgrp' function takes no argument. */
  12109. +#undef SETPGRP_VOID
  12110. +
  12111. +/* Define to 1 if you have the ANSI C header files. */
  12112. +#undef STDC_HEADERS
  12113. +
  12114. +/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  12115. +#undef TIME_WITH_SYS_TIME
  12116. +
  12117. +/* Version number of package */
  12118. +#undef VERSION
  12119. +
  12120. +/* Number of bits in a file offset, on hosts where this is settable. */
  12121. +#undef _FILE_OFFSET_BITS
  12122. +
  12123. +/* Define for large files, on AIX-style hosts. */
  12124. +#undef _LARGE_FILES
  12125. +
  12126. +/* Define to 1 if on MINIX. */
  12127. +#undef _MINIX
  12128. +
  12129. +/* Define to 2 if the system does not provide POSIX.1 features except with
  12130. + this defined. */
  12131. +#undef _POSIX_1_SOURCE
  12132. +
  12133. +/* Define to 1 if you need to in order for `stat' and other things to work. */
  12134. +#undef _POSIX_SOURCE
  12135. +
  12136. +/* Enable extensions on AIX 3, Interix. */
  12137. +#ifndef _ALL_SOURCE
  12138. +# undef _ALL_SOURCE
  12139. +#endif
  12140. +/* Enable GNU extensions on systems that have them. */
  12141. +#ifndef _GNU_SOURCE
  12142. +# undef _GNU_SOURCE
  12143. +#endif
  12144. +/* Enable threading extensions on Solaris. */
  12145. +#ifndef _POSIX_PTHREAD_SEMANTICS
  12146. +# undef _POSIX_PTHREAD_SEMANTICS
  12147. +#endif
  12148. +/* Enable extensions on HP NonStop. */
  12149. +#ifndef _TANDEM_SOURCE
  12150. +# undef _TANDEM_SOURCE
  12151. +#endif
  12152. +/* Enable general extensions on Solaris. */
  12153. +#ifndef __EXTENSIONS__
  12154. +# undef __EXTENSIONS__
  12155. +#endif
  12156. +
  12157. +
  12158. +/* Define to empty if `const' does not conform to ANSI C. */
  12159. +#undef const
  12160. +
  12161. +/* Define to `int' if <sys/types.h> does not define. */
  12162. +#undef mode_t
  12163. +
  12164. +/* Define to `int' if <sys/types.h> does not define. */
  12165. +#undef pid_t
  12166. +
  12167. +/* Define to `unsigned int' if <sys/types.h> does not define. */
  12168. +#undef size_t
  12169. +
  12170. +/* Define as `fork' if `vfork' does not work. */
  12171. +#undef vfork
  12172. +
  12173. +/* Define to empty if the keyword `volatile' does not work. Warning: valid
  12174. + code using `volatile' can become incorrect without. Disable with care. */
  12175. +#undef volatile
  12176. diff -Nur libdaemon-0.13.orig/config.sub libdaemon-0.13/config.sub
  12177. --- libdaemon-0.13.orig/config.sub 2008-06-09 21:51:04.000000000 +0200
  12178. +++ libdaemon-0.13/config.sub 2011-02-20 22:17:59.626052619 +0100
  12179. @@ -1,10 +1,10 @@
  12180. #! /bin/sh
  12181. # Configuration validation subroutine script.
  12182. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  12183. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  12184. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  12185. # Free Software Foundation, Inc.
  12186. -timestamp='2008-01-16'
  12187. +timestamp='2009-06-11'
  12188. # This file is (in principle) common to ALL GNU software.
  12189. # The presence of a machine in this file suggests that SOME GNU software
  12190. @@ -122,6 +122,7 @@
  12191. case $maybe_os in
  12192. nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  12193. uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  12194. + kopensolaris*-gnu* | \
  12195. storm-chaos* | os2-emx* | rtmk-nova*)
  12196. os=-$maybe_os
  12197. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  12198. @@ -152,6 +153,9 @@
  12199. os=
  12200. basic_machine=$1
  12201. ;;
  12202. + -bluegene*)
  12203. + os=-cnk
  12204. + ;;
  12205. -sim | -cisco | -oki | -wec | -winbond)
  12206. os=
  12207. basic_machine=$1
  12208. @@ -249,13 +253,16 @@
  12209. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  12210. | i370 | i860 | i960 | ia64 \
  12211. | ip2k | iq2000 \
  12212. + | lm32 \
  12213. | m32c | m32r | m32rle | m68000 | m68k | m88k \
  12214. - | maxq | mb | microblaze | mcore | mep \
  12215. + | maxq | mb | microblaze | mcore | mep | metag \
  12216. | mips | mipsbe | mipseb | mipsel | mipsle \
  12217. | mips16 \
  12218. | mips64 | mips64el \
  12219. - | mips64vr | mips64vrel \
  12220. + | mips64octeon | mips64octeonel \
  12221. | mips64orion | mips64orionel \
  12222. + | mips64r5900 | mips64r5900el \
  12223. + | mips64vr | mips64vrel \
  12224. | mips64vr4100 | mips64vr4100el \
  12225. | mips64vr4300 | mips64vr4300el \
  12226. | mips64vr5000 | mips64vr5000el \
  12227. @@ -268,6 +275,7 @@
  12228. | mipsisa64sr71k | mipsisa64sr71kel \
  12229. | mipstx39 | mipstx39el \
  12230. | mn10200 | mn10300 \
  12231. + | moxie \
  12232. | mt \
  12233. | msp430 \
  12234. | nios | nios2 \
  12235. @@ -277,7 +285,7 @@
  12236. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  12237. | pyramid \
  12238. | score \
  12239. - | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  12240. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  12241. | sh64 | sh64le \
  12242. | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  12243. | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  12244. @@ -286,7 +294,7 @@
  12245. | v850 | v850e \
  12246. | we32k \
  12247. | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  12248. - | z8k)
  12249. + | z8k | z80)
  12250. basic_machine=$basic_machine-unknown
  12251. ;;
  12252. m6811 | m68hc11 | m6812 | m68hc12)
  12253. @@ -329,14 +337,17 @@
  12254. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  12255. | i*86-* | i860-* | i960-* | ia64-* \
  12256. | ip2k-* | iq2000-* \
  12257. + | lm32-* \
  12258. | m32c-* | m32r-* | m32rle-* \
  12259. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  12260. - | m88110-* | m88k-* | maxq-* | mcore-* \
  12261. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  12262. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  12263. | mips16-* \
  12264. | mips64-* | mips64el-* \
  12265. - | mips64vr-* | mips64vrel-* \
  12266. + | mips64octeon-* | mips64octeonel-* \
  12267. | mips64orion-* | mips64orionel-* \
  12268. + | mips64r5900-* | mips64r5900el-* \
  12269. + | mips64vr-* | mips64vrel-* \
  12270. | mips64vr4100-* | mips64vr4100el-* \
  12271. | mips64vr4300-* | mips64vr4300el-* \
  12272. | mips64vr5000-* | mips64vr5000el-* \
  12273. @@ -358,20 +369,20 @@
  12274. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  12275. | pyramid-* \
  12276. | romp-* | rs6000-* \
  12277. - | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  12278. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  12279. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  12280. | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  12281. | sparclite-* \
  12282. | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  12283. | tahoe-* | thumb-* \
  12284. - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  12285. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  12286. | tron-* \
  12287. | v850-* | v850e-* | vax-* \
  12288. | we32k-* \
  12289. | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  12290. | xstormy16-* | xtensa*-* \
  12291. | ymp-* \
  12292. - | z8k-*)
  12293. + | z8k-* | z80-*)
  12294. ;;
  12295. # Recognize the basic CPU types without company name, with glob match.
  12296. xtensa*)
  12297. @@ -439,6 +450,10 @@
  12298. basic_machine=m68k-apollo
  12299. os=-bsd
  12300. ;;
  12301. + aros)
  12302. + basic_machine=i386-pc
  12303. + os=-aros
  12304. + ;;
  12305. aux)
  12306. basic_machine=m68k-apple
  12307. os=-aux
  12308. @@ -455,10 +470,18 @@
  12309. basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  12310. os=-linux
  12311. ;;
  12312. + bluegene*)
  12313. + basic_machine=powerpc-ibm
  12314. + os=-cnk
  12315. + ;;
  12316. c90)
  12317. basic_machine=c90-cray
  12318. os=-unicos
  12319. ;;
  12320. + cegcc)
  12321. + basic_machine=arm-unknown
  12322. + os=-cegcc
  12323. + ;;
  12324. convex-c1)
  12325. basic_machine=c1-convex
  12326. os=-bsd
  12327. @@ -526,6 +549,10 @@
  12328. basic_machine=m88k-motorola
  12329. os=-sysv3
  12330. ;;
  12331. + dicos)
  12332. + basic_machine=i686-pc
  12333. + os=-dicos
  12334. + ;;
  12335. djgpp)
  12336. basic_machine=i586-pc
  12337. os=-msdosdjgpp
  12338. @@ -1128,6 +1155,10 @@
  12339. basic_machine=z8k-unknown
  12340. os=-sim
  12341. ;;
  12342. + z80-*-coff)
  12343. + basic_machine=z80-unknown
  12344. + os=-sim
  12345. + ;;
  12346. none)
  12347. basic_machine=none-none
  12348. os=-none
  12349. @@ -1166,7 +1197,7 @@
  12350. we32k)
  12351. basic_machine=we32k-att
  12352. ;;
  12353. - sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
  12354. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  12355. basic_machine=sh-unknown
  12356. ;;
  12357. sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  12358. @@ -1236,10 +1267,11 @@
  12359. # Each alternative MUST END IN A *, to match a version number.
  12360. # -sysv* is not here because it comes later, after sysvr4.
  12361. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  12362. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  12363. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  12364. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  12365. + | -kopensolaris* \
  12366. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  12367. - | -aos* \
  12368. + | -aos* | -aros* \
  12369. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  12370. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  12371. | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  12372. @@ -1248,7 +1280,7 @@
  12373. | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  12374. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  12375. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  12376. - | -chorusos* | -chorusrdb* \
  12377. + | -chorusos* | -chorusrdb* | -cegcc* \
  12378. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  12379. | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  12380. | -uxpv* | -beos* | -mpeix* | -udk* \
  12381. @@ -1388,6 +1420,9 @@
  12382. -zvmoe)
  12383. os=-zvmoe
  12384. ;;
  12385. + -dicos*)
  12386. + os=-dicos
  12387. + ;;
  12388. -none)
  12389. ;;
  12390. *)
  12391. @@ -1585,7 +1620,7 @@
  12392. -sunos*)
  12393. vendor=sun
  12394. ;;
  12395. - -aix*)
  12396. + -cnk*|-aix*)
  12397. vendor=ibm
  12398. ;;
  12399. -beos*)
  12400. diff -Nur libdaemon-0.13.orig/configure libdaemon-0.13/configure
  12401. --- libdaemon-0.13.orig/configure 2008-07-29 00:35:33.000000000 +0200
  12402. +++ libdaemon-0.13/configure 2011-02-20 22:17:58.526061967 +0100
  12403. @@ -1,20 +1,24 @@
  12404. #! /bin/sh
  12405. # Guess values for system-dependent variables and create Makefiles.
  12406. -# Generated by GNU Autoconf 2.62 for libdaemon 0.13.
  12407. +# Generated by GNU Autoconf 2.65 for libdaemon 0.13.
  12408. #
  12409. # Report bugs to <mzqnrzba (at) 0pointer (dot) de>.
  12410. #
  12411. +#
  12412. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  12413. -# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  12414. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  12415. +# Inc.
  12416. +#
  12417. +#
  12418. # This configure script is free software; the Free Software Foundation
  12419. # gives unlimited permission to copy, distribute and modify it.
  12420. -## --------------------- ##
  12421. -## M4sh Initialization. ##
  12422. -## --------------------- ##
  12423. +## -------------------- ##
  12424. +## M4sh Initialization. ##
  12425. +## -------------------- ##
  12426. # Be more Bourne compatible
  12427. DUALCASE=1; export DUALCASE # for MKS sh
  12428. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12429. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12430. emulate sh
  12431. NULLCMD=:
  12432. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12433. @@ -22,23 +26,15 @@
  12434. alias -g '${1+"$@"}'='"$@"'
  12435. setopt NO_GLOB_SUBST
  12436. else
  12437. - case `(set -o) 2>/dev/null` in
  12438. - *posix*) set -o posix ;;
  12439. + case `(set -o) 2>/dev/null` in #(
  12440. + *posix*) :
  12441. + set -o posix ;; #(
  12442. + *) :
  12443. + ;;
  12444. esac
  12445. -
  12446. fi
  12447. -
  12448. -
  12449. -# PATH needs CR
  12450. -# Avoid depending upon Character Ranges.
  12451. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12452. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12453. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12454. -as_cr_digits='0123456789'
  12455. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  12456. -
  12457. as_nl='
  12458. '
  12459. export as_nl
  12460. @@ -46,7 +42,13 @@
  12461. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12462. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12463. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12464. -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12465. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  12466. +# but without wasting forks for bash or zsh.
  12467. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  12468. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12469. + as_echo='print -r --'
  12470. + as_echo_n='print -rn --'
  12471. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12472. as_echo='printf %s\n'
  12473. as_echo_n='printf %s'
  12474. else
  12475. @@ -57,7 +59,7 @@
  12476. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12477. as_echo_n_body='eval
  12478. arg=$1;
  12479. - case $arg in
  12480. + case $arg in #(
  12481. *"$as_nl"*)
  12482. expr "X$arg" : "X\\(.*\\)$as_nl";
  12483. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12484. @@ -80,13 +82,6 @@
  12485. }
  12486. fi
  12487. -# Support unset when possible.
  12488. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12489. - as_unset=unset
  12490. -else
  12491. - as_unset=false
  12492. -fi
  12493. -
  12494. # IFS
  12495. # We need space, tab and new line, in precisely that order. Quoting is
  12496. @@ -96,15 +91,15 @@
  12497. IFS=" "" $as_nl"
  12498. # Find who we are. Look in the path if we contain no directory separator.
  12499. -case $0 in
  12500. +case $0 in #((
  12501. *[\\/]* ) as_myself=$0 ;;
  12502. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12503. for as_dir in $PATH
  12504. do
  12505. IFS=$as_save_IFS
  12506. test -z "$as_dir" && as_dir=.
  12507. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12508. -done
  12509. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12510. + done
  12511. IFS=$as_save_IFS
  12512. ;;
  12513. @@ -116,12 +111,16 @@
  12514. fi
  12515. if test ! -f "$as_myself"; then
  12516. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12517. - { (exit 1); exit 1; }
  12518. + exit 1
  12519. fi
  12520. -# Work around bugs in pre-3.0 UWIN ksh.
  12521. -for as_var in ENV MAIL MAILPATH
  12522. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12523. +# Unset variables that we do not need and which cause bugs (e.g. in
  12524. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12525. +# suppresses any "Segmentation fault" message there. '((' could
  12526. +# trigger a bug in pdksh 5.2.14.
  12527. +for as_var in BASH_ENV ENV MAIL MAILPATH
  12528. +do eval test x\${$as_var+set} = xset \
  12529. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12530. done
  12531. PS1='$ '
  12532. PS2='> '
  12533. @@ -133,7 +132,249 @@
  12534. LANGUAGE=C
  12535. export LANGUAGE
  12536. -# Required to use basename.
  12537. +# CDPATH.
  12538. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12539. +
  12540. +if test "x$CONFIG_SHELL" = x; then
  12541. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  12542. + emulate sh
  12543. + NULLCMD=:
  12544. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  12545. + # is contrary to our usage. Disable this feature.
  12546. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  12547. + setopt NO_GLOB_SUBST
  12548. +else
  12549. + case \`(set -o) 2>/dev/null\` in #(
  12550. + *posix*) :
  12551. + set -o posix ;; #(
  12552. + *) :
  12553. + ;;
  12554. +esac
  12555. +fi
  12556. +"
  12557. + as_required="as_fn_return () { (exit \$1); }
  12558. +as_fn_success () { as_fn_return 0; }
  12559. +as_fn_failure () { as_fn_return 1; }
  12560. +as_fn_ret_success () { return 0; }
  12561. +as_fn_ret_failure () { return 1; }
  12562. +
  12563. +exitcode=0
  12564. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  12565. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  12566. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  12567. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  12568. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  12569. +
  12570. +else
  12571. + exitcode=1; echo positional parameters were not saved.
  12572. +fi
  12573. +test x\$exitcode = x0 || exit 1"
  12574. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  12575. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  12576. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  12577. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  12578. +test \$(( 1 + 1 )) = 2 || exit 1"
  12579. + if (eval "$as_required") 2>/dev/null; then :
  12580. + as_have_required=yes
  12581. +else
  12582. + as_have_required=no
  12583. +fi
  12584. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  12585. +
  12586. +else
  12587. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12588. +as_found=false
  12589. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  12590. +do
  12591. + IFS=$as_save_IFS
  12592. + test -z "$as_dir" && as_dir=.
  12593. + as_found=:
  12594. + case $as_dir in #(
  12595. + /*)
  12596. + for as_base in sh bash ksh sh5; do
  12597. + # Try only shells that exist, to save several forks.
  12598. + as_shell=$as_dir/$as_base
  12599. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  12600. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  12601. + CONFIG_SHELL=$as_shell as_have_required=yes
  12602. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  12603. + break 2
  12604. +fi
  12605. +fi
  12606. + done;;
  12607. + esac
  12608. + as_found=false
  12609. +done
  12610. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  12611. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  12612. + CONFIG_SHELL=$SHELL as_have_required=yes
  12613. +fi; }
  12614. +IFS=$as_save_IFS
  12615. +
  12616. +
  12617. + if test "x$CONFIG_SHELL" != x; then :
  12618. + # We cannot yet assume a decent shell, so we have to provide a
  12619. + # neutralization value for shells without unset; and this also
  12620. + # works around shells that cannot unset nonexistent variables.
  12621. + BASH_ENV=/dev/null
  12622. + ENV=/dev/null
  12623. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  12624. + export CONFIG_SHELL
  12625. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  12626. +fi
  12627. +
  12628. + if test x$as_have_required = xno; then :
  12629. + $as_echo "$0: This script requires a shell more modern than all"
  12630. + $as_echo "$0: the shells that I found on your system."
  12631. + if test x${ZSH_VERSION+set} = xset ; then
  12632. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  12633. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  12634. + else
  12635. + $as_echo "$0: Please tell bug-autoconf@gnu.org and mzqnrzba (at)
  12636. +$0: 0pointer (dot) de about your system, including any
  12637. +$0: error possibly output before this message. Then install
  12638. +$0: a modern shell, or manually run the script under such a
  12639. +$0: shell if you do have one."
  12640. + fi
  12641. + exit 1
  12642. +fi
  12643. +fi
  12644. +fi
  12645. +SHELL=${CONFIG_SHELL-/bin/sh}
  12646. +export SHELL
  12647. +# Unset more variables known to interfere with behavior of common tools.
  12648. +CLICOLOR_FORCE= GREP_OPTIONS=
  12649. +unset CLICOLOR_FORCE GREP_OPTIONS
  12650. +
  12651. +## --------------------- ##
  12652. +## M4sh Shell Functions. ##
  12653. +## --------------------- ##
  12654. +# as_fn_unset VAR
  12655. +# ---------------
  12656. +# Portably unset VAR.
  12657. +as_fn_unset ()
  12658. +{
  12659. + { eval $1=; unset $1;}
  12660. +}
  12661. +as_unset=as_fn_unset
  12662. +
  12663. +# as_fn_set_status STATUS
  12664. +# -----------------------
  12665. +# Set $? to STATUS, without forking.
  12666. +as_fn_set_status ()
  12667. +{
  12668. + return $1
  12669. +} # as_fn_set_status
  12670. +
  12671. +# as_fn_exit STATUS
  12672. +# -----------------
  12673. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12674. +as_fn_exit ()
  12675. +{
  12676. + set +e
  12677. + as_fn_set_status $1
  12678. + exit $1
  12679. +} # as_fn_exit
  12680. +
  12681. +# as_fn_mkdir_p
  12682. +# -------------
  12683. +# Create "$as_dir" as a directory, including parents if necessary.
  12684. +as_fn_mkdir_p ()
  12685. +{
  12686. +
  12687. + case $as_dir in #(
  12688. + -*) as_dir=./$as_dir;;
  12689. + esac
  12690. + test -d "$as_dir" || eval $as_mkdir_p || {
  12691. + as_dirs=
  12692. + while :; do
  12693. + case $as_dir in #(
  12694. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12695. + *) as_qdir=$as_dir;;
  12696. + esac
  12697. + as_dirs="'$as_qdir' $as_dirs"
  12698. + as_dir=`$as_dirname -- "$as_dir" ||
  12699. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12700. + X"$as_dir" : 'X\(//\)[^/]' \| \
  12701. + X"$as_dir" : 'X\(//\)$' \| \
  12702. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12703. +$as_echo X"$as_dir" |
  12704. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12705. + s//\1/
  12706. + q
  12707. + }
  12708. + /^X\(\/\/\)[^/].*/{
  12709. + s//\1/
  12710. + q
  12711. + }
  12712. + /^X\(\/\/\)$/{
  12713. + s//\1/
  12714. + q
  12715. + }
  12716. + /^X\(\/\).*/{
  12717. + s//\1/
  12718. + q
  12719. + }
  12720. + s/.*/./; q'`
  12721. + test -d "$as_dir" && break
  12722. + done
  12723. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  12724. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  12725. +
  12726. +
  12727. +} # as_fn_mkdir_p
  12728. +# as_fn_append VAR VALUE
  12729. +# ----------------------
  12730. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  12731. +# advantage of any shell optimizations that allow amortized linear growth over
  12732. +# repeated appends, instead of the typical quadratic growth present in naive
  12733. +# implementations.
  12734. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12735. + eval 'as_fn_append ()
  12736. + {
  12737. + eval $1+=\$2
  12738. + }'
  12739. +else
  12740. + as_fn_append ()
  12741. + {
  12742. + eval $1=\$$1\$2
  12743. + }
  12744. +fi # as_fn_append
  12745. +
  12746. +# as_fn_arith ARG...
  12747. +# ------------------
  12748. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  12749. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  12750. +# must be portable across $(()) and expr.
  12751. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12752. + eval 'as_fn_arith ()
  12753. + {
  12754. + as_val=$(( $* ))
  12755. + }'
  12756. +else
  12757. + as_fn_arith ()
  12758. + {
  12759. + as_val=`expr "$@" || test $? -eq 1`
  12760. + }
  12761. +fi # as_fn_arith
  12762. +
  12763. +
  12764. +# as_fn_error ERROR [LINENO LOG_FD]
  12765. +# ---------------------------------
  12766. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12767. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12768. +# script with status $?, using 1 if that was 0.
  12769. +as_fn_error ()
  12770. +{
  12771. + as_status=$?; test $as_status -eq 0 && as_status=1
  12772. + if test "$3"; then
  12773. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12774. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  12775. + fi
  12776. + $as_echo "$as_me: error: $1" >&2
  12777. + as_fn_exit $as_status
  12778. +} # as_fn_error
  12779. +
  12780. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12781. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12782. as_expr=expr
  12783. @@ -147,8 +388,12 @@
  12784. as_basename=false
  12785. fi
  12786. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12787. + as_dirname=dirname
  12788. +else
  12789. + as_dirname=false
  12790. +fi
  12791. -# Name of the executable.
  12792. as_me=`$as_basename -- "$0" ||
  12793. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12794. X"$0" : 'X\(//\)$' \| \
  12795. @@ -168,431 +413,142 @@
  12796. }
  12797. s/.*/./; q'`
  12798. -# CDPATH.
  12799. -$as_unset CDPATH
  12800. +# Avoid depending upon Character Ranges.
  12801. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12802. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12803. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12804. +as_cr_digits='0123456789'
  12805. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  12806. -if test "x$CONFIG_SHELL" = x; then
  12807. - if (eval ":") 2>/dev/null; then
  12808. - as_have_required=yes
  12809. -else
  12810. - as_have_required=no
  12811. -fi
  12812. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  12813. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  12814. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  12815. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  12816. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  12817. + sed -n '
  12818. + p
  12819. + /[$]LINENO/=
  12820. + ' <$as_myself |
  12821. + sed '
  12822. + s/[$]LINENO.*/&-/
  12823. + t lineno
  12824. + b
  12825. + :lineno
  12826. + N
  12827. + :loop
  12828. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12829. + t loop
  12830. + s/-\n.*//
  12831. + ' >$as_me.lineno &&
  12832. + chmod +x "$as_me.lineno" ||
  12833. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  12834. - if test $as_have_required = yes && (eval ":
  12835. -(as_func_return () {
  12836. - (exit \$1)
  12837. -}
  12838. -as_func_success () {
  12839. - as_func_return 0
  12840. -}
  12841. -as_func_failure () {
  12842. - as_func_return 1
  12843. -}
  12844. -as_func_ret_success () {
  12845. - return 0
  12846. -}
  12847. -as_func_ret_failure () {
  12848. - return 1
  12849. + # Don't try to exec as it changes $[0], causing all sort of problems
  12850. + # (the dirname of $[0] is not the place where we might find the
  12851. + # original and so on. Autoconf is especially sensitive to this).
  12852. + . "./$as_me.lineno"
  12853. + # Exit status is that of the last command.
  12854. + exit
  12855. }
  12856. -exitcode=0
  12857. -if as_func_success; then
  12858. - :
  12859. -else
  12860. - exitcode=1
  12861. - echo as_func_success failed.
  12862. -fi
  12863. +ECHO_C= ECHO_N= ECHO_T=
  12864. +case `echo -n x` in #(((((
  12865. +-n*)
  12866. + case `echo 'xy\c'` in
  12867. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12868. + xy) ECHO_C='\c';;
  12869. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12870. + ECHO_T=' ';;
  12871. + esac;;
  12872. +*)
  12873. + ECHO_N='-n';;
  12874. +esac
  12875. -if as_func_failure; then
  12876. - exitcode=1
  12877. - echo as_func_failure succeeded.
  12878. +rm -f conf$$ conf$$.exe conf$$.file
  12879. +if test -d conf$$.dir; then
  12880. + rm -f conf$$.dir/conf$$.file
  12881. +else
  12882. + rm -f conf$$.dir
  12883. + mkdir conf$$.dir 2>/dev/null
  12884. fi
  12885. -
  12886. -if as_func_ret_success; then
  12887. - :
  12888. +if (echo >conf$$.file) 2>/dev/null; then
  12889. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  12890. + as_ln_s='ln -s'
  12891. + # ... but there are two gotchas:
  12892. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12893. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12894. + # In both cases, we have to default to `cp -p'.
  12895. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12896. + as_ln_s='cp -p'
  12897. + elif ln conf$$.file conf$$ 2>/dev/null; then
  12898. + as_ln_s=ln
  12899. + else
  12900. + as_ln_s='cp -p'
  12901. + fi
  12902. else
  12903. - exitcode=1
  12904. - echo as_func_ret_success failed.
  12905. + as_ln_s='cp -p'
  12906. fi
  12907. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12908. +rmdir conf$$.dir 2>/dev/null
  12909. -if as_func_ret_failure; then
  12910. - exitcode=1
  12911. - echo as_func_ret_failure succeeded.
  12912. +if mkdir -p . 2>/dev/null; then
  12913. + as_mkdir_p='mkdir -p "$as_dir"'
  12914. +else
  12915. + test -d ./-p && rmdir ./-p
  12916. + as_mkdir_p=false
  12917. fi
  12918. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  12919. - :
  12920. +if test -x / >/dev/null 2>&1; then
  12921. + as_test_x='test -x'
  12922. else
  12923. - exitcode=1
  12924. - echo positional parameters were not saved.
  12925. + if ls -dL / >/dev/null 2>&1; then
  12926. + as_ls_L_option=L
  12927. + else
  12928. + as_ls_L_option=
  12929. + fi
  12930. + as_test_x='
  12931. + eval sh -c '\''
  12932. + if test -d "$1"; then
  12933. + test -d "$1/.";
  12934. + else
  12935. + case $1 in #(
  12936. + -*)set "./$1";;
  12937. + esac;
  12938. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  12939. + ???[sx]*):;;*)false;;esac;fi
  12940. + '\'' sh
  12941. + '
  12942. fi
  12943. +as_executable_p=$as_test_x
  12944. -test \$exitcode = 0) || { (exit 1); exit 1; }
  12945. -
  12946. -(
  12947. - as_lineno_1=\$LINENO
  12948. - as_lineno_2=\$LINENO
  12949. - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  12950. - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  12951. -") 2> /dev/null; then
  12952. - :
  12953. -else
  12954. - as_candidate_shells=
  12955. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12956. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  12957. -do
  12958. - IFS=$as_save_IFS
  12959. - test -z "$as_dir" && as_dir=.
  12960. - case $as_dir in
  12961. - /*)
  12962. - for as_base in sh bash ksh sh5; do
  12963. - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  12964. - done;;
  12965. - esac
  12966. -done
  12967. -IFS=$as_save_IFS
  12968. -
  12969. -
  12970. - for as_shell in $as_candidate_shells $SHELL; do
  12971. - # Try only shells that exist, to save several forks.
  12972. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  12973. - { ("$as_shell") 2> /dev/null <<\_ASEOF
  12974. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12975. - emulate sh
  12976. - NULLCMD=:
  12977. - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12978. - # is contrary to our usage. Disable this feature.
  12979. - alias -g '${1+"$@"}'='"$@"'
  12980. - setopt NO_GLOB_SUBST
  12981. -else
  12982. - case `(set -o) 2>/dev/null` in
  12983. - *posix*) set -o posix ;;
  12984. -esac
  12985. -
  12986. -fi
  12987. -
  12988. -
  12989. -:
  12990. -_ASEOF
  12991. -}; then
  12992. - CONFIG_SHELL=$as_shell
  12993. - as_have_required=yes
  12994. - if { "$as_shell" 2> /dev/null <<\_ASEOF
  12995. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12996. - emulate sh
  12997. - NULLCMD=:
  12998. - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12999. - # is contrary to our usage. Disable this feature.
  13000. - alias -g '${1+"$@"}'='"$@"'
  13001. - setopt NO_GLOB_SUBST
  13002. -else
  13003. - case `(set -o) 2>/dev/null` in
  13004. - *posix*) set -o posix ;;
  13005. -esac
  13006. -
  13007. -fi
  13008. -
  13009. -
  13010. -:
  13011. -(as_func_return () {
  13012. - (exit $1)
  13013. -}
  13014. -as_func_success () {
  13015. - as_func_return 0
  13016. -}
  13017. -as_func_failure () {
  13018. - as_func_return 1
  13019. -}
  13020. -as_func_ret_success () {
  13021. - return 0
  13022. -}
  13023. -as_func_ret_failure () {
  13024. - return 1
  13025. -}
  13026. -
  13027. -exitcode=0
  13028. -if as_func_success; then
  13029. - :
  13030. -else
  13031. - exitcode=1
  13032. - echo as_func_success failed.
  13033. -fi
  13034. -
  13035. -if as_func_failure; then
  13036. - exitcode=1
  13037. - echo as_func_failure succeeded.
  13038. -fi
  13039. -
  13040. -if as_func_ret_success; then
  13041. - :
  13042. -else
  13043. - exitcode=1
  13044. - echo as_func_ret_success failed.
  13045. -fi
  13046. -
  13047. -if as_func_ret_failure; then
  13048. - exitcode=1
  13049. - echo as_func_ret_failure succeeded.
  13050. -fi
  13051. -
  13052. -if ( set x; as_func_ret_success y && test x = "$1" ); then
  13053. - :
  13054. -else
  13055. - exitcode=1
  13056. - echo positional parameters were not saved.
  13057. -fi
  13058. -
  13059. -test $exitcode = 0) || { (exit 1); exit 1; }
  13060. -
  13061. -(
  13062. - as_lineno_1=$LINENO
  13063. - as_lineno_2=$LINENO
  13064. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  13065. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  13066. -
  13067. -_ASEOF
  13068. -}; then
  13069. - break
  13070. -fi
  13071. -
  13072. -fi
  13073. -
  13074. - done
  13075. -
  13076. - if test "x$CONFIG_SHELL" != x; then
  13077. - for as_var in BASH_ENV ENV
  13078. - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  13079. - done
  13080. - export CONFIG_SHELL
  13081. - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  13082. -fi
  13083. -
  13084. -
  13085. - if test $as_have_required = no; then
  13086. - echo This script requires a shell more modern than all the
  13087. - echo shells that I found on your system. Please install a
  13088. - echo modern shell, or manually run the script under such a
  13089. - echo shell if you do have one.
  13090. - { (exit 1); exit 1; }
  13091. -fi
  13092. -
  13093. -
  13094. -fi
  13095. -
  13096. -fi
  13097. -
  13098. -
  13099. -
  13100. -(eval "as_func_return () {
  13101. - (exit \$1)
  13102. -}
  13103. -as_func_success () {
  13104. - as_func_return 0
  13105. -}
  13106. -as_func_failure () {
  13107. - as_func_return 1
  13108. -}
  13109. -as_func_ret_success () {
  13110. - return 0
  13111. -}
  13112. -as_func_ret_failure () {
  13113. - return 1
  13114. -}
  13115. -
  13116. -exitcode=0
  13117. -if as_func_success; then
  13118. - :
  13119. -else
  13120. - exitcode=1
  13121. - echo as_func_success failed.
  13122. -fi
  13123. -
  13124. -if as_func_failure; then
  13125. - exitcode=1
  13126. - echo as_func_failure succeeded.
  13127. -fi
  13128. -
  13129. -if as_func_ret_success; then
  13130. - :
  13131. -else
  13132. - exitcode=1
  13133. - echo as_func_ret_success failed.
  13134. -fi
  13135. -
  13136. -if as_func_ret_failure; then
  13137. - exitcode=1
  13138. - echo as_func_ret_failure succeeded.
  13139. -fi
  13140. -
  13141. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  13142. - :
  13143. -else
  13144. - exitcode=1
  13145. - echo positional parameters were not saved.
  13146. -fi
  13147. -
  13148. -test \$exitcode = 0") || {
  13149. - echo No shell found that supports shell functions.
  13150. - echo Please tell bug-autoconf@gnu.org about your system,
  13151. - echo including any error possibly output before this message.
  13152. - echo This can help us improve future autoconf versions.
  13153. - echo Configuration will now proceed without shell functions.
  13154. -}
  13155. -
  13156. -
  13157. -
  13158. - as_lineno_1=$LINENO
  13159. - as_lineno_2=$LINENO
  13160. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  13161. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  13162. -
  13163. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  13164. - # uniformly replaced by the line number. The first 'sed' inserts a
  13165. - # line-number line after each line using $LINENO; the second 'sed'
  13166. - # does the real work. The second script uses 'N' to pair each
  13167. - # line-number line with the line containing $LINENO, and appends
  13168. - # trailing '-' during substitution so that $LINENO is not a special
  13169. - # case at line end.
  13170. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  13171. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  13172. - # E. McMahon (1931-1989) for sed's syntax. :-)
  13173. - sed -n '
  13174. - p
  13175. - /[$]LINENO/=
  13176. - ' <$as_myself |
  13177. - sed '
  13178. - s/[$]LINENO.*/&-/
  13179. - t lineno
  13180. - b
  13181. - :lineno
  13182. - N
  13183. - :loop
  13184. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  13185. - t loop
  13186. - s/-\n.*//
  13187. - ' >$as_me.lineno &&
  13188. - chmod +x "$as_me.lineno" ||
  13189. - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  13190. - { (exit 1); exit 1; }; }
  13191. -
  13192. - # Don't try to exec as it changes $[0], causing all sort of problems
  13193. - # (the dirname of $[0] is not the place where we might find the
  13194. - # original and so on. Autoconf is especially sensitive to this).
  13195. - . "./$as_me.lineno"
  13196. - # Exit status is that of the last command.
  13197. - exit
  13198. -}
  13199. -
  13200. -
  13201. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13202. - as_dirname=dirname
  13203. -else
  13204. - as_dirname=false
  13205. -fi
  13206. -
  13207. -ECHO_C= ECHO_N= ECHO_T=
  13208. -case `echo -n x` in
  13209. --n*)
  13210. - case `echo 'x\c'` in
  13211. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13212. - *) ECHO_C='\c';;
  13213. - esac;;
  13214. -*)
  13215. - ECHO_N='-n';;
  13216. -esac
  13217. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  13218. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13219. - as_expr=expr
  13220. -else
  13221. - as_expr=false
  13222. -fi
  13223. -
  13224. -rm -f conf$$ conf$$.exe conf$$.file
  13225. -if test -d conf$$.dir; then
  13226. - rm -f conf$$.dir/conf$$.file
  13227. -else
  13228. - rm -f conf$$.dir
  13229. - mkdir conf$$.dir 2>/dev/null
  13230. -fi
  13231. -if (echo >conf$$.file) 2>/dev/null; then
  13232. - if ln -s conf$$.file conf$$ 2>/dev/null; then
  13233. - as_ln_s='ln -s'
  13234. - # ... but there are two gotchas:
  13235. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13236. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13237. - # In both cases, we have to default to `cp -p'.
  13238. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13239. - as_ln_s='cp -p'
  13240. - elif ln conf$$.file conf$$ 2>/dev/null; then
  13241. - as_ln_s=ln
  13242. - else
  13243. - as_ln_s='cp -p'
  13244. - fi
  13245. -else
  13246. - as_ln_s='cp -p'
  13247. -fi
  13248. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13249. -rmdir conf$$.dir 2>/dev/null
  13250. -
  13251. -if mkdir -p . 2>/dev/null; then
  13252. - as_mkdir_p=:
  13253. -else
  13254. - test -d ./-p && rmdir ./-p
  13255. - as_mkdir_p=false
  13256. -fi
  13257. -
  13258. -if test -x / >/dev/null 2>&1; then
  13259. - as_test_x='test -x'
  13260. -else
  13261. - if ls -dL / >/dev/null 2>&1; then
  13262. - as_ls_L_option=L
  13263. - else
  13264. - as_ls_L_option=
  13265. - fi
  13266. - as_test_x='
  13267. - eval sh -c '\''
  13268. - if test -d "$1"; then
  13269. - test -d "$1/.";
  13270. - else
  13271. - case $1 in
  13272. - -*)set "./$1";;
  13273. - esac;
  13274. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  13275. - ???[sx]*):;;*)false;;esac;fi
  13276. - '\'' sh
  13277. - '
  13278. -fi
  13279. -as_executable_p=$as_test_x
  13280. -
  13281. -# Sed expression to map a string onto a valid CPP name.
  13282. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13283. -
  13284. -# Sed expression to map a string onto a valid variable name.
  13285. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13286. +# Sed expression to map a string onto a valid CPP name.
  13287. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13288. +# Sed expression to map a string onto a valid variable name.
  13289. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13290. # Check that we are running under the correct shell.
  13291. SHELL=${CONFIG_SHELL-/bin/sh}
  13292. -case X$ECHO in
  13293. +case X$lt_ECHO in
  13294. X*--fallback-echo)
  13295. # Remove one level of quotation (which was required for Make).
  13296. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  13297. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  13298. ;;
  13299. esac
  13300. -echo=${ECHO-echo}
  13301. +ECHO=${lt_ECHO-echo}
  13302. if test "X$1" = X--no-reexec; then
  13303. # Discard the --no-reexec flag, and continue.
  13304. shift
  13305. elif test "X$1" = X--fallback-echo; then
  13306. # Avoid inline document here, it may be left over
  13307. :
  13308. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  13309. - # Yippee, $echo works!
  13310. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  13311. + # Yippee, $ECHO works!
  13312. :
  13313. else
  13314. # Restart under the correct shell.
  13315. @@ -602,9 +558,9 @@
  13316. if test "X$1" = X--fallback-echo; then
  13317. # used as fallback echo
  13318. shift
  13319. - cat <<EOF
  13320. + cat <<_LT_EOF
  13321. $*
  13322. -EOF
  13323. +_LT_EOF
  13324. exit 0
  13325. fi
  13326. @@ -612,122 +568,118 @@
  13327. # if CDPATH is set.
  13328. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13329. -if test -z "$ECHO"; then
  13330. -if test "X${echo_test_string+set}" != Xset; then
  13331. -# find a string as large as possible, as long as the shell can cope with it
  13332. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  13333. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  13334. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  13335. - echo_test_string=`eval $cmd` &&
  13336. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  13337. - then
  13338. - break
  13339. - fi
  13340. - done
  13341. -fi
  13342. +if test -z "$lt_ECHO"; then
  13343. + if test "X${echo_test_string+set}" != Xset; then
  13344. + # find a string as large as possible, as long as the shell can cope with it
  13345. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  13346. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  13347. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  13348. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  13349. + then
  13350. + break
  13351. + fi
  13352. + done
  13353. + fi
  13354. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  13355. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  13356. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13357. - :
  13358. -else
  13359. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  13360. - # backslashes. This makes it impossible to quote backslashes using
  13361. - # echo "$something" | sed 's/\\/\\\\/g'
  13362. - #
  13363. - # So, first we look for a working echo in the user's PATH.
  13364. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  13365. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  13366. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13367. + :
  13368. + else
  13369. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  13370. + # backslashes. This makes it impossible to quote backslashes using
  13371. + # echo "$something" | sed 's/\\/\\\\/g'
  13372. + #
  13373. + # So, first we look for a working echo in the user's PATH.
  13374. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13375. - for dir in $PATH /usr/ucb; do
  13376. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13377. + for dir in $PATH /usr/ucb; do
  13378. + IFS="$lt_save_ifs"
  13379. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  13380. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  13381. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  13382. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13383. + ECHO="$dir/echo"
  13384. + break
  13385. + fi
  13386. + done
  13387. IFS="$lt_save_ifs"
  13388. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  13389. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  13390. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  13391. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13392. - echo="$dir/echo"
  13393. - break
  13394. - fi
  13395. - done
  13396. - IFS="$lt_save_ifs"
  13397. - if test "X$echo" = Xecho; then
  13398. - # We didn't find a better echo, so look for alternatives.
  13399. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  13400. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  13401. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13402. - # This shell has a builtin print -r that does the trick.
  13403. - echo='print -r'
  13404. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  13405. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  13406. - # If we have ksh, try running configure again with it.
  13407. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  13408. - export ORIGINAL_CONFIG_SHELL
  13409. - CONFIG_SHELL=/bin/ksh
  13410. - export CONFIG_SHELL
  13411. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  13412. - else
  13413. - # Try using printf.
  13414. - echo='printf %s\n'
  13415. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  13416. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  13417. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13418. - # Cool, printf works
  13419. - :
  13420. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  13421. - test "X$echo_testing_string" = 'X\t' &&
  13422. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  13423. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13424. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  13425. - export CONFIG_SHELL
  13426. - SHELL="$CONFIG_SHELL"
  13427. - export SHELL
  13428. - echo="$CONFIG_SHELL $0 --fallback-echo"
  13429. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  13430. - test "X$echo_testing_string" = 'X\t' &&
  13431. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  13432. + if test "X$ECHO" = Xecho; then
  13433. + # We didn't find a better echo, so look for alternatives.
  13434. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  13435. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  13436. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13437. + # This shell has a builtin print -r that does the trick.
  13438. + ECHO='print -r'
  13439. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  13440. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  13441. + # If we have ksh, try running configure again with it.
  13442. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  13443. + export ORIGINAL_CONFIG_SHELL
  13444. + CONFIG_SHELL=/bin/ksh
  13445. + export CONFIG_SHELL
  13446. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  13447. + else
  13448. + # Try using printf.
  13449. + ECHO='printf %s\n'
  13450. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  13451. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  13452. test "X$echo_testing_string" = "X$echo_test_string"; then
  13453. - echo="$CONFIG_SHELL $0 --fallback-echo"
  13454. - else
  13455. - # maybe with a smaller string...
  13456. - prev=:
  13457. + # Cool, printf works
  13458. + :
  13459. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  13460. + test "X$echo_testing_string" = 'X\t' &&
  13461. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  13462. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13463. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  13464. + export CONFIG_SHELL
  13465. + SHELL="$CONFIG_SHELL"
  13466. + export SHELL
  13467. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  13468. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  13469. + test "X$echo_testing_string" = 'X\t' &&
  13470. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  13471. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13472. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  13473. + else
  13474. + # maybe with a smaller string...
  13475. + prev=:
  13476. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  13477. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  13478. - then
  13479. - break
  13480. - fi
  13481. - prev="$cmd"
  13482. - done
  13483. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  13484. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  13485. + then
  13486. + break
  13487. + fi
  13488. + prev="$cmd"
  13489. + done
  13490. - if test "$prev" != 'sed 50q "$0"'; then
  13491. - echo_test_string=`eval $prev`
  13492. - export echo_test_string
  13493. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  13494. - else
  13495. - # Oops. We lost completely, so just stick with echo.
  13496. - echo=echo
  13497. - fi
  13498. + if test "$prev" != 'sed 50q "$0"'; then
  13499. + echo_test_string=`eval $prev`
  13500. + export echo_test_string
  13501. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  13502. + else
  13503. + # Oops. We lost completely, so just stick with echo.
  13504. + ECHO=echo
  13505. + fi
  13506. + fi
  13507. fi
  13508. fi
  13509. fi
  13510. fi
  13511. -fi
  13512. # Copy echo and quote the copy suitably for passing to libtool from
  13513. # the Makefile, instead of quoting the original, which is used later.
  13514. -ECHO=$echo
  13515. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  13516. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  13517. +lt_ECHO=$ECHO
  13518. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  13519. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  13520. fi
  13521. -tagnames=${tagnames+${tagnames},}CXX
  13522. -
  13523. -tagnames=${tagnames+${tagnames},}F77
  13524. -
  13525. -exec 7<&0 </dev/null 6>&1
  13526. +test -n "$DJDIR" || exec 7<&0 </dev/null
  13527. +exec 6>&1
  13528. # Name of the host.
  13529. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  13530. @@ -745,7 +697,6 @@
  13531. subdirs=
  13532. MFLAGS=
  13533. MAKEFLAGS=
  13534. -SHELL=${CONFIG_SHELL-/bin/sh}
  13535. # Identity of this package.
  13536. PACKAGE_NAME='libdaemon'
  13537. @@ -753,6 +704,7 @@
  13538. PACKAGE_VERSION='0.13'
  13539. PACKAGE_STRING='libdaemon 0.13'
  13540. PACKAGE_BUGREPORT='mzqnrzba (at) 0pointer (dot) de'
  13541. +PACKAGE_URL=''
  13542. ac_unique_file="libdaemon/dfork.c"
  13543. # Factoring default headers for most tests.
  13544. @@ -791,129 +743,136 @@
  13545. # include <unistd.h>
  13546. #endif"
  13547. -ac_subst_vars='SHELL
  13548. -PATH_SEPARATOR
  13549. -PACKAGE_NAME
  13550. -PACKAGE_TARNAME
  13551. -PACKAGE_VERSION
  13552. -PACKAGE_STRING
  13553. -PACKAGE_BUGREPORT
  13554. -exec_prefix
  13555. -prefix
  13556. -program_transform_name
  13557. -bindir
  13558. -sbindir
  13559. -libexecdir
  13560. -datarootdir
  13561. -datadir
  13562. -sysconfdir
  13563. -sharedstatedir
  13564. -localstatedir
  13565. -includedir
  13566. -oldincludedir
  13567. -docdir
  13568. -infodir
  13569. -htmldir
  13570. -dvidir
  13571. -pdfdir
  13572. -psdir
  13573. -libdir
  13574. -localedir
  13575. -mandir
  13576. -DEFS
  13577. -ECHO_C
  13578. -ECHO_N
  13579. -ECHO_T
  13580. -LIBS
  13581. -build_alias
  13582. -host_alias
  13583. -target_alias
  13584. -INSTALL_PROGRAM
  13585. -INSTALL_SCRIPT
  13586. -INSTALL_DATA
  13587. -am__isrc
  13588. -CYGPATH_W
  13589. -PACKAGE
  13590. -VERSION
  13591. -ACLOCAL
  13592. -AUTOCONF
  13593. -AUTOMAKE
  13594. -AUTOHEADER
  13595. -MAKEINFO
  13596. -install_sh
  13597. -STRIP
  13598. -INSTALL_STRIP_PROGRAM
  13599. -MKDIR_P
  13600. -mkdir_p
  13601. -AWK
  13602. -SET_MAKE
  13603. -am__leading_dot
  13604. -AMTAR
  13605. -am__tar
  13606. -am__untar
  13607. -PACKAGE_URL
  13608. -LIBDAEMON_VERSION_INFO
  13609. -CC
  13610. -CFLAGS
  13611. -LDFLAGS
  13612. -CPPFLAGS
  13613. -ac_ct_CC
  13614. -EXEEXT
  13615. -OBJEXT
  13616. -DEPDIR
  13617. -am__include
  13618. -am__quote
  13619. -AMDEP_TRUE
  13620. -AMDEP_FALSE
  13621. -AMDEPBACKSLASH
  13622. -CCDEPMODE
  13623. -am__fastdepCC_TRUE
  13624. -am__fastdepCC_FALSE
  13625. -CPP
  13626. -GREP
  13627. -EGREP
  13628. -CXX
  13629. -CXXFLAGS
  13630. -ac_ct_CXX
  13631. -CXXDEPMODE
  13632. -am__fastdepCXX_TRUE
  13633. -am__fastdepCXX_FALSE
  13634. -build
  13635. -build_cpu
  13636. -build_vendor
  13637. -build_os
  13638. -host
  13639. -host_cpu
  13640. -host_vendor
  13641. -host_os
  13642. -SED
  13643. -LN_S
  13644. -ECHO
  13645. -AR
  13646. -RANLIB
  13647. -DSYMUTIL
  13648. -NMEDIT
  13649. +ac_subst_vars='am__EXEEXT_FALSE
  13650. +am__EXEEXT_TRUE
  13651. +LTLIBOBJS
  13652. +LIBOBJS
  13653. +USE_LYNX_FALSE
  13654. +USE_LYNX_TRUE
  13655. +have_lynx
  13656. CXXCPP
  13657. -F77
  13658. -FFLAGS
  13659. -ac_ct_F77
  13660. +OTOOL64
  13661. +OTOOL
  13662. +LIPO
  13663. +NMEDIT
  13664. +DSYMUTIL
  13665. +lt_ECHO
  13666. +RANLIB
  13667. +AR
  13668. +OBJDUMP
  13669. +LN_S
  13670. +NM
  13671. +ac_ct_DUMPBIN
  13672. +DUMPBIN
  13673. +LD
  13674. +FGREP
  13675. +SED
  13676. +host_os
  13677. +host_vendor
  13678. +host_cpu
  13679. +host
  13680. +build_os
  13681. +build_vendor
  13682. +build_cpu
  13683. +build
  13684. LIBTOOL
  13685. -have_lynx
  13686. -USE_LYNX_TRUE
  13687. -USE_LYNX_FALSE
  13688. -LIBOBJS
  13689. -LTLIBOBJS'
  13690. +am__fastdepCXX_FALSE
  13691. +am__fastdepCXX_TRUE
  13692. +CXXDEPMODE
  13693. +ac_ct_CXX
  13694. +CXXFLAGS
  13695. +CXX
  13696. +EGREP
  13697. +GREP
  13698. +CPP
  13699. +am__fastdepCC_FALSE
  13700. +am__fastdepCC_TRUE
  13701. +CCDEPMODE
  13702. +AMDEPBACKSLASH
  13703. +AMDEP_FALSE
  13704. +AMDEP_TRUE
  13705. +am__quote
  13706. +am__include
  13707. +DEPDIR
  13708. +OBJEXT
  13709. +EXEEXT
  13710. +ac_ct_CC
  13711. +CPPFLAGS
  13712. +LDFLAGS
  13713. +CFLAGS
  13714. +CC
  13715. +LIBDAEMON_VERSION_INFO
  13716. +am__untar
  13717. +am__tar
  13718. +AMTAR
  13719. +am__leading_dot
  13720. +SET_MAKE
  13721. +AWK
  13722. +mkdir_p
  13723. +MKDIR_P
  13724. +INSTALL_STRIP_PROGRAM
  13725. +STRIP
  13726. +install_sh
  13727. +MAKEINFO
  13728. +AUTOHEADER
  13729. +AUTOMAKE
  13730. +AUTOCONF
  13731. +ACLOCAL
  13732. +VERSION
  13733. +PACKAGE
  13734. +CYGPATH_W
  13735. +am__isrc
  13736. +INSTALL_DATA
  13737. +INSTALL_SCRIPT
  13738. +INSTALL_PROGRAM
  13739. +target_alias
  13740. +host_alias
  13741. +build_alias
  13742. +LIBS
  13743. +ECHO_T
  13744. +ECHO_N
  13745. +ECHO_C
  13746. +DEFS
  13747. +mandir
  13748. +localedir
  13749. +libdir
  13750. +psdir
  13751. +pdfdir
  13752. +dvidir
  13753. +htmldir
  13754. +infodir
  13755. +docdir
  13756. +oldincludedir
  13757. +includedir
  13758. +localstatedir
  13759. +sharedstatedir
  13760. +sysconfdir
  13761. +datadir
  13762. +datarootdir
  13763. +libexecdir
  13764. +sbindir
  13765. +bindir
  13766. +program_transform_name
  13767. +prefix
  13768. +exec_prefix
  13769. +PACKAGE_URL
  13770. +PACKAGE_BUGREPORT
  13771. +PACKAGE_STRING
  13772. +PACKAGE_VERSION
  13773. +PACKAGE_TARNAME
  13774. +PACKAGE_NAME
  13775. +PATH_SEPARATOR
  13776. +SHELL'
  13777. ac_subst_files=''
  13778. ac_user_opts='
  13779. enable_option_checking
  13780. enable_dependency_tracking
  13781. enable_shared
  13782. enable_static
  13783. +with_pic
  13784. enable_fast_install
  13785. with_gnu_ld
  13786. enable_libtool_lock
  13787. -with_pic
  13788. -with_tags
  13789. enable_largefile
  13790. enable_lynx
  13791. '
  13792. @@ -929,9 +888,7 @@
  13793. CXX
  13794. CXXFLAGS
  13795. CCC
  13796. -CXXCPP
  13797. -F77
  13798. -FFLAGS'
  13799. +CXXCPP'
  13800. # Initialize some variables set by options.
  13801. @@ -1040,8 +997,7 @@
  13802. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  13803. # Reject names that are not valid shell variable names.
  13804. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  13805. - { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  13806. - { (exit 1); exit 1; }; }
  13807. + as_fn_error "invalid feature name: $ac_useropt"
  13808. ac_useropt_orig=$ac_useropt
  13809. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  13810. case $ac_user_opts in
  13811. @@ -1067,8 +1023,7 @@
  13812. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  13813. # Reject names that are not valid shell variable names.
  13814. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  13815. - { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  13816. - { (exit 1); exit 1; }; }
  13817. + as_fn_error "invalid feature name: $ac_useropt"
  13818. ac_useropt_orig=$ac_useropt
  13819. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  13820. case $ac_user_opts in
  13821. @@ -1272,8 +1227,7 @@
  13822. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  13823. # Reject names that are not valid shell variable names.
  13824. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  13825. - { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  13826. - { (exit 1); exit 1; }; }
  13827. + as_fn_error "invalid package name: $ac_useropt"
  13828. ac_useropt_orig=$ac_useropt
  13829. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  13830. case $ac_user_opts in
  13831. @@ -1289,8 +1243,7 @@
  13832. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  13833. # Reject names that are not valid shell variable names.
  13834. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  13835. - { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  13836. - { (exit 1); exit 1; }; }
  13837. + as_fn_error "invalid package name: $ac_useropt"
  13838. ac_useropt_orig=$ac_useropt
  13839. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  13840. case $ac_user_opts in
  13841. @@ -1320,17 +1273,17 @@
  13842. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  13843. x_libraries=$ac_optarg ;;
  13844. - -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  13845. -Try \`$0 --help' for more information." >&2
  13846. - { (exit 1); exit 1; }; }
  13847. + -*) as_fn_error "unrecognized option: \`$ac_option'
  13848. +Try \`$0 --help' for more information."
  13849. ;;
  13850. *=*)
  13851. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  13852. # Reject names that are not valid shell variable names.
  13853. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  13854. - { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  13855. - { (exit 1); exit 1; }; }
  13856. + case $ac_envvar in #(
  13857. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  13858. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  13859. + esac
  13860. eval $ac_envvar=\$ac_optarg
  13861. export $ac_envvar ;;
  13862. @@ -1347,16 +1300,14 @@
  13863. if test -n "$ac_prev"; then
  13864. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  13865. - { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  13866. - { (exit 1); exit 1; }; }
  13867. + as_fn_error "missing argument to $ac_option"
  13868. fi
  13869. if test -n "$ac_unrecognized_opts"; then
  13870. case $enable_option_checking in
  13871. no) ;;
  13872. - fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
  13873. - { (exit 1); exit 1; }; } ;;
  13874. - *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
  13875. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  13876. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  13877. esac
  13878. fi
  13879. @@ -1378,8 +1329,7 @@
  13880. [\\/$]* | ?:[\\/]* ) continue;;
  13881. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  13882. esac
  13883. - { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  13884. - { (exit 1); exit 1; }; }
  13885. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  13886. done
  13887. # There might be people who depend on the old broken behavior: `$host'
  13888. @@ -1409,11 +1359,9 @@
  13889. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  13890. ac_ls_di=`ls -di .` &&
  13891. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  13892. - { $as_echo "$as_me: error: Working directory cannot be determined" >&2
  13893. - { (exit 1); exit 1; }; }
  13894. + as_fn_error "working directory cannot be determined"
  13895. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  13896. - { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  13897. - { (exit 1); exit 1; }; }
  13898. + as_fn_error "pwd does not report name of working directory"
  13899. # Find the source files, if location was not specified.
  13900. @@ -1452,13 +1400,11 @@
  13901. fi
  13902. if test ! -r "$srcdir/$ac_unique_file"; then
  13903. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  13904. - { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  13905. - { (exit 1); exit 1; }; }
  13906. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  13907. fi
  13908. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  13909. ac_abs_confdir=`(
  13910. - cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  13911. - { (exit 1); exit 1; }; }
  13912. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  13913. pwd)`
  13914. # When building in place, set srcdir=.
  13915. if test "$ac_abs_confdir" = "$ac_pwd"; then
  13916. @@ -1575,10 +1521,9 @@
  13917. Optional Packages:
  13918. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  13919. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  13920. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  13921. --with-pic try to use only PIC/non-PIC objects [default=use
  13922. both]
  13923. - --with-tags[=TAGS] include additional configurations [automatic]
  13924. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  13925. Some influential environment variables:
  13926. CC C compiler command
  13927. @@ -1586,14 +1531,12 @@
  13928. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  13929. nonstandard directory <lib dir>
  13930. LIBS libraries to pass to the linker, e.g. -l<library>
  13931. - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  13932. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  13933. you have headers in a nonstandard directory <include dir>
  13934. CPP C preprocessor
  13935. CXX C++ compiler command
  13936. CXXFLAGS C++ compiler flags
  13937. CXXCPP C++ preprocessor
  13938. - F77 Fortran 77 compiler command
  13939. - FFLAGS Fortran 77 compiler flags
  13940. Use these variables to override the choices made by `configure' or to help
  13941. it to find libraries and programs with nonstandard names/locations.
  13942. @@ -1662,44 +1605,576 @@
  13943. if $ac_init_version; then
  13944. cat <<\_ACEOF
  13945. libdaemon configure 0.13
  13946. -generated by GNU Autoconf 2.62
  13947. +generated by GNU Autoconf 2.65
  13948. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  13949. -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  13950. +Copyright (C) 2009 Free Software Foundation, Inc.
  13951. This configure script is free software; the Free Software Foundation
  13952. gives unlimited permission to copy, distribute and modify it.
  13953. _ACEOF
  13954. exit
  13955. fi
  13956. -cat >config.log <<_ACEOF
  13957. -This file contains any messages produced by compilers while
  13958. -running configure, to aid debugging if configure makes a mistake.
  13959. -It was created by libdaemon $as_me 0.13, which was
  13960. -generated by GNU Autoconf 2.62. Invocation command line was
  13961. +## ------------------------ ##
  13962. +## Autoconf initialization. ##
  13963. +## ------------------------ ##
  13964. +
  13965. +# ac_fn_c_try_compile LINENO
  13966. +# --------------------------
  13967. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  13968. +ac_fn_c_try_compile ()
  13969. +{
  13970. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13971. + rm -f conftest.$ac_objext
  13972. + if { { ac_try="$ac_compile"
  13973. +case "(($ac_try" in
  13974. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13975. + *) ac_try_echo=$ac_try;;
  13976. +esac
  13977. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13978. +$as_echo "$ac_try_echo"; } >&5
  13979. + (eval "$ac_compile") 2>conftest.err
  13980. + ac_status=$?
  13981. + if test -s conftest.err; then
  13982. + grep -v '^ *+' conftest.err >conftest.er1
  13983. + cat conftest.er1 >&5
  13984. + mv -f conftest.er1 conftest.err
  13985. + fi
  13986. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13987. + test $ac_status = 0; } && {
  13988. + test -z "$ac_c_werror_flag" ||
  13989. + test ! -s conftest.err
  13990. + } && test -s conftest.$ac_objext; then :
  13991. + ac_retval=0
  13992. +else
  13993. + $as_echo "$as_me: failed program was:" >&5
  13994. +sed 's/^/| /' conftest.$ac_ext >&5
  13995. - $ $0 $@
  13996. + ac_retval=1
  13997. +fi
  13998. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  13999. + as_fn_set_status $ac_retval
  14000. -_ACEOF
  14001. -exec 5>>config.log
  14002. +} # ac_fn_c_try_compile
  14003. +
  14004. +# ac_fn_c_try_cpp LINENO
  14005. +# ----------------------
  14006. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  14007. +ac_fn_c_try_cpp ()
  14008. {
  14009. -cat <<_ASUNAME
  14010. -## --------- ##
  14011. -## Platform. ##
  14012. -## --------- ##
  14013. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14014. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  14015. +case "(($ac_try" in
  14016. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14017. + *) ac_try_echo=$ac_try;;
  14018. +esac
  14019. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14020. +$as_echo "$ac_try_echo"; } >&5
  14021. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  14022. + ac_status=$?
  14023. + if test -s conftest.err; then
  14024. + grep -v '^ *+' conftest.err >conftest.er1
  14025. + cat conftest.er1 >&5
  14026. + mv -f conftest.er1 conftest.err
  14027. + fi
  14028. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14029. + test $ac_status = 0; } >/dev/null && {
  14030. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14031. + test ! -s conftest.err
  14032. + }; then :
  14033. + ac_retval=0
  14034. +else
  14035. + $as_echo "$as_me: failed program was:" >&5
  14036. +sed 's/^/| /' conftest.$ac_ext >&5
  14037. -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  14038. -uname -m = `(uname -m) 2>/dev/null || echo unknown`
  14039. -uname -r = `(uname -r) 2>/dev/null || echo unknown`
  14040. -uname -s = `(uname -s) 2>/dev/null || echo unknown`
  14041. -uname -v = `(uname -v) 2>/dev/null || echo unknown`
  14042. + ac_retval=1
  14043. +fi
  14044. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14045. + as_fn_set_status $ac_retval
  14046. -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  14047. -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  14048. +} # ac_fn_c_try_cpp
  14049. -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  14050. -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  14051. -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  14052. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  14053. +# -------------------------------------------------------
  14054. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  14055. +# the include files in INCLUDES and setting the cache variable VAR
  14056. +# accordingly.
  14057. +ac_fn_c_check_header_mongrel ()
  14058. +{
  14059. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14060. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  14061. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  14062. +$as_echo_n "checking for $2... " >&6; }
  14063. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  14064. + $as_echo_n "(cached) " >&6
  14065. +fi
  14066. +eval ac_res=\$$3
  14067. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14068. +$as_echo "$ac_res" >&6; }
  14069. +else
  14070. + # Is the header compilable?
  14071. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  14072. +$as_echo_n "checking $2 usability... " >&6; }
  14073. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14074. +/* end confdefs.h. */
  14075. +$4
  14076. +#include <$2>
  14077. +_ACEOF
  14078. +if ac_fn_c_try_compile "$LINENO"; then :
  14079. + ac_header_compiler=yes
  14080. +else
  14081. + ac_header_compiler=no
  14082. +fi
  14083. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14084. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  14085. +$as_echo "$ac_header_compiler" >&6; }
  14086. +
  14087. +# Is the header present?
  14088. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  14089. +$as_echo_n "checking $2 presence... " >&6; }
  14090. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14091. +/* end confdefs.h. */
  14092. +#include <$2>
  14093. +_ACEOF
  14094. +if ac_fn_c_try_cpp "$LINENO"; then :
  14095. + ac_header_preproc=yes
  14096. +else
  14097. + ac_header_preproc=no
  14098. +fi
  14099. +rm -f conftest.err conftest.$ac_ext
  14100. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  14101. +$as_echo "$ac_header_preproc" >&6; }
  14102. +
  14103. +# So? What about this header?
  14104. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  14105. + yes:no: )
  14106. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  14107. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14108. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  14109. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  14110. + ;;
  14111. + no:yes:* )
  14112. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  14113. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  14114. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  14115. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  14116. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  14117. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  14118. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  14119. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  14120. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  14121. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  14122. +( cat <<\_ASBOX
  14123. +## ---------------------------------------------- ##
  14124. +## Report this to mzqnrzba (at) 0pointer (dot) de ##
  14125. +## ---------------------------------------------- ##
  14126. +_ASBOX
  14127. + ) | sed "s/^/$as_me: WARNING: /" >&2
  14128. + ;;
  14129. +esac
  14130. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  14131. +$as_echo_n "checking for $2... " >&6; }
  14132. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  14133. + $as_echo_n "(cached) " >&6
  14134. +else
  14135. + eval "$3=\$ac_header_compiler"
  14136. +fi
  14137. +eval ac_res=\$$3
  14138. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14139. +$as_echo "$ac_res" >&6; }
  14140. +fi
  14141. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14142. +
  14143. +} # ac_fn_c_check_header_mongrel
  14144. +
  14145. +# ac_fn_c_try_run LINENO
  14146. +# ----------------------
  14147. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  14148. +# that executables *can* be run.
  14149. +ac_fn_c_try_run ()
  14150. +{
  14151. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14152. + if { { ac_try="$ac_link"
  14153. +case "(($ac_try" in
  14154. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14155. + *) ac_try_echo=$ac_try;;
  14156. +esac
  14157. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14158. +$as_echo "$ac_try_echo"; } >&5
  14159. + (eval "$ac_link") 2>&5
  14160. + ac_status=$?
  14161. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14162. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  14163. + { { case "(($ac_try" in
  14164. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14165. + *) ac_try_echo=$ac_try;;
  14166. +esac
  14167. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14168. +$as_echo "$ac_try_echo"; } >&5
  14169. + (eval "$ac_try") 2>&5
  14170. + ac_status=$?
  14171. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14172. + test $ac_status = 0; }; }; then :
  14173. + ac_retval=0
  14174. +else
  14175. + $as_echo "$as_me: program exited with status $ac_status" >&5
  14176. + $as_echo "$as_me: failed program was:" >&5
  14177. +sed 's/^/| /' conftest.$ac_ext >&5
  14178. +
  14179. + ac_retval=$ac_status
  14180. +fi
  14181. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  14182. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14183. + as_fn_set_status $ac_retval
  14184. +
  14185. +} # ac_fn_c_try_run
  14186. +
  14187. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  14188. +# -------------------------------------------------------
  14189. +# Tests whether HEADER exists and can be compiled using the include files in
  14190. +# INCLUDES, setting the cache variable VAR accordingly.
  14191. +ac_fn_c_check_header_compile ()
  14192. +{
  14193. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14194. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  14195. +$as_echo_n "checking for $2... " >&6; }
  14196. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  14197. + $as_echo_n "(cached) " >&6
  14198. +else
  14199. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14200. +/* end confdefs.h. */
  14201. +$4
  14202. +#include <$2>
  14203. +_ACEOF
  14204. +if ac_fn_c_try_compile "$LINENO"; then :
  14205. + eval "$3=yes"
  14206. +else
  14207. + eval "$3=no"
  14208. +fi
  14209. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14210. +fi
  14211. +eval ac_res=\$$3
  14212. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14213. +$as_echo "$ac_res" >&6; }
  14214. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14215. +
  14216. +} # ac_fn_c_check_header_compile
  14217. +
  14218. +# ac_fn_cxx_try_compile LINENO
  14219. +# ----------------------------
  14220. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  14221. +ac_fn_cxx_try_compile ()
  14222. +{
  14223. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14224. + rm -f conftest.$ac_objext
  14225. + if { { ac_try="$ac_compile"
  14226. +case "(($ac_try" in
  14227. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14228. + *) ac_try_echo=$ac_try;;
  14229. +esac
  14230. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14231. +$as_echo "$ac_try_echo"; } >&5
  14232. + (eval "$ac_compile") 2>conftest.err
  14233. + ac_status=$?
  14234. + if test -s conftest.err; then
  14235. + grep -v '^ *+' conftest.err >conftest.er1
  14236. + cat conftest.er1 >&5
  14237. + mv -f conftest.er1 conftest.err
  14238. + fi
  14239. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14240. + test $ac_status = 0; } && {
  14241. + test -z "$ac_cxx_werror_flag" ||
  14242. + test ! -s conftest.err
  14243. + } && test -s conftest.$ac_objext; then :
  14244. + ac_retval=0
  14245. +else
  14246. + $as_echo "$as_me: failed program was:" >&5
  14247. +sed 's/^/| /' conftest.$ac_ext >&5
  14248. +
  14249. + ac_retval=1
  14250. +fi
  14251. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14252. + as_fn_set_status $ac_retval
  14253. +
  14254. +} # ac_fn_cxx_try_compile
  14255. +
  14256. +# ac_fn_c_try_link LINENO
  14257. +# -----------------------
  14258. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  14259. +ac_fn_c_try_link ()
  14260. +{
  14261. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14262. + rm -f conftest.$ac_objext conftest$ac_exeext
  14263. + if { { ac_try="$ac_link"
  14264. +case "(($ac_try" in
  14265. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14266. + *) ac_try_echo=$ac_try;;
  14267. +esac
  14268. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14269. +$as_echo "$ac_try_echo"; } >&5
  14270. + (eval "$ac_link") 2>conftest.err
  14271. + ac_status=$?
  14272. + if test -s conftest.err; then
  14273. + grep -v '^ *+' conftest.err >conftest.er1
  14274. + cat conftest.er1 >&5
  14275. + mv -f conftest.er1 conftest.err
  14276. + fi
  14277. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14278. + test $ac_status = 0; } && {
  14279. + test -z "$ac_c_werror_flag" ||
  14280. + test ! -s conftest.err
  14281. + } && test -s conftest$ac_exeext && {
  14282. + test "$cross_compiling" = yes ||
  14283. + $as_test_x conftest$ac_exeext
  14284. + }; then :
  14285. + ac_retval=0
  14286. +else
  14287. + $as_echo "$as_me: failed program was:" >&5
  14288. +sed 's/^/| /' conftest.$ac_ext >&5
  14289. +
  14290. + ac_retval=1
  14291. +fi
  14292. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  14293. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  14294. + # interfere with the next link command; also delete a directory that is
  14295. + # left behind by Apple's compiler. We do this before executing the actions.
  14296. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  14297. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14298. + as_fn_set_status $ac_retval
  14299. +
  14300. +} # ac_fn_c_try_link
  14301. +
  14302. +# ac_fn_c_check_func LINENO FUNC VAR
  14303. +# ----------------------------------
  14304. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  14305. +ac_fn_c_check_func ()
  14306. +{
  14307. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14308. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  14309. +$as_echo_n "checking for $2... " >&6; }
  14310. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  14311. + $as_echo_n "(cached) " >&6
  14312. +else
  14313. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14314. +/* end confdefs.h. */
  14315. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  14316. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14317. +#define $2 innocuous_$2
  14318. +
  14319. +/* System header to define __stub macros and hopefully few prototypes,
  14320. + which can conflict with char $2 (); below.
  14321. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14322. + <limits.h> exists even on freestanding compilers. */
  14323. +
  14324. +#ifdef __STDC__
  14325. +# include <limits.h>
  14326. +#else
  14327. +# include <assert.h>
  14328. +#endif
  14329. +
  14330. +#undef $2
  14331. +
  14332. +/* Override any GCC internal prototype to avoid an error.
  14333. + Use char because int might match the return type of a GCC
  14334. + builtin and then its argument prototype would still apply. */
  14335. +#ifdef __cplusplus
  14336. +extern "C"
  14337. +#endif
  14338. +char $2 ();
  14339. +/* The GNU C library defines this for functions which it implements
  14340. + to always fail with ENOSYS. Some functions are actually named
  14341. + something starting with __ and the normal name is an alias. */
  14342. +#if defined __stub_$2 || defined __stub___$2
  14343. +choke me
  14344. +#endif
  14345. +
  14346. +int
  14347. +main ()
  14348. +{
  14349. +return $2 ();
  14350. + ;
  14351. + return 0;
  14352. +}
  14353. +_ACEOF
  14354. +if ac_fn_c_try_link "$LINENO"; then :
  14355. + eval "$3=yes"
  14356. +else
  14357. + eval "$3=no"
  14358. +fi
  14359. +rm -f core conftest.err conftest.$ac_objext \
  14360. + conftest$ac_exeext conftest.$ac_ext
  14361. +fi
  14362. +eval ac_res=\$$3
  14363. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14364. +$as_echo "$ac_res" >&6; }
  14365. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14366. +
  14367. +} # ac_fn_c_check_func
  14368. +
  14369. +# ac_fn_cxx_try_cpp LINENO
  14370. +# ------------------------
  14371. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  14372. +ac_fn_cxx_try_cpp ()
  14373. +{
  14374. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14375. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  14376. +case "(($ac_try" in
  14377. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14378. + *) ac_try_echo=$ac_try;;
  14379. +esac
  14380. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14381. +$as_echo "$ac_try_echo"; } >&5
  14382. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  14383. + ac_status=$?
  14384. + if test -s conftest.err; then
  14385. + grep -v '^ *+' conftest.err >conftest.er1
  14386. + cat conftest.er1 >&5
  14387. + mv -f conftest.er1 conftest.err
  14388. + fi
  14389. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14390. + test $ac_status = 0; } >/dev/null && {
  14391. + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14392. + test ! -s conftest.err
  14393. + }; then :
  14394. + ac_retval=0
  14395. +else
  14396. + $as_echo "$as_me: failed program was:" >&5
  14397. +sed 's/^/| /' conftest.$ac_ext >&5
  14398. +
  14399. + ac_retval=1
  14400. +fi
  14401. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14402. + as_fn_set_status $ac_retval
  14403. +
  14404. +} # ac_fn_cxx_try_cpp
  14405. +
  14406. +# ac_fn_cxx_try_link LINENO
  14407. +# -------------------------
  14408. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  14409. +ac_fn_cxx_try_link ()
  14410. +{
  14411. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14412. + rm -f conftest.$ac_objext conftest$ac_exeext
  14413. + if { { ac_try="$ac_link"
  14414. +case "(($ac_try" in
  14415. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14416. + *) ac_try_echo=$ac_try;;
  14417. +esac
  14418. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14419. +$as_echo "$ac_try_echo"; } >&5
  14420. + (eval "$ac_link") 2>conftest.err
  14421. + ac_status=$?
  14422. + if test -s conftest.err; then
  14423. + grep -v '^ *+' conftest.err >conftest.er1
  14424. + cat conftest.er1 >&5
  14425. + mv -f conftest.er1 conftest.err
  14426. + fi
  14427. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14428. + test $ac_status = 0; } && {
  14429. + test -z "$ac_cxx_werror_flag" ||
  14430. + test ! -s conftest.err
  14431. + } && test -s conftest$ac_exeext && {
  14432. + test "$cross_compiling" = yes ||
  14433. + $as_test_x conftest$ac_exeext
  14434. + }; then :
  14435. + ac_retval=0
  14436. +else
  14437. + $as_echo "$as_me: failed program was:" >&5
  14438. +sed 's/^/| /' conftest.$ac_ext >&5
  14439. +
  14440. + ac_retval=1
  14441. +fi
  14442. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  14443. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  14444. + # interfere with the next link command; also delete a directory that is
  14445. + # left behind by Apple's compiler. We do this before executing the actions.
  14446. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  14447. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14448. + as_fn_set_status $ac_retval
  14449. +
  14450. +} # ac_fn_cxx_try_link
  14451. +
  14452. +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  14453. +# -------------------------------------------
  14454. +# Tests whether TYPE exists after having included INCLUDES, setting cache
  14455. +# variable VAR accordingly.
  14456. +ac_fn_c_check_type ()
  14457. +{
  14458. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14459. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  14460. +$as_echo_n "checking for $2... " >&6; }
  14461. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  14462. + $as_echo_n "(cached) " >&6
  14463. +else
  14464. + eval "$3=no"
  14465. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14466. +/* end confdefs.h. */
  14467. +$4
  14468. +int
  14469. +main ()
  14470. +{
  14471. +if (sizeof ($2))
  14472. + return 0;
  14473. + ;
  14474. + return 0;
  14475. +}
  14476. +_ACEOF
  14477. +if ac_fn_c_try_compile "$LINENO"; then :
  14478. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14479. +/* end confdefs.h. */
  14480. +$4
  14481. +int
  14482. +main ()
  14483. +{
  14484. +if (sizeof (($2)))
  14485. + return 0;
  14486. + ;
  14487. + return 0;
  14488. +}
  14489. +_ACEOF
  14490. +if ac_fn_c_try_compile "$LINENO"; then :
  14491. +
  14492. +else
  14493. + eval "$3=yes"
  14494. +fi
  14495. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14496. +fi
  14497. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14498. +fi
  14499. +eval ac_res=\$$3
  14500. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14501. +$as_echo "$ac_res" >&6; }
  14502. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14503. +
  14504. +} # ac_fn_c_check_type
  14505. +cat >config.log <<_ACEOF
  14506. +This file contains any messages produced by compilers while
  14507. +running configure, to aid debugging if configure makes a mistake.
  14508. +
  14509. +It was created by libdaemon $as_me 0.13, which was
  14510. +generated by GNU Autoconf 2.65. Invocation command line was
  14511. +
  14512. + $ $0 $@
  14513. +
  14514. +_ACEOF
  14515. +exec 5>>config.log
  14516. +{
  14517. +cat <<_ASUNAME
  14518. +## --------- ##
  14519. +## Platform. ##
  14520. +## --------- ##
  14521. +
  14522. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  14523. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  14524. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  14525. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  14526. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  14527. +
  14528. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  14529. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  14530. +
  14531. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  14532. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  14533. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  14534. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  14535. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  14536. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  14537. @@ -1712,8 +2187,8 @@
  14538. do
  14539. IFS=$as_save_IFS
  14540. test -z "$as_dir" && as_dir=.
  14541. - $as_echo "PATH: $as_dir"
  14542. -done
  14543. + $as_echo "PATH: $as_dir"
  14544. + done
  14545. IFS=$as_save_IFS
  14546. } >&5
  14547. @@ -1750,9 +2225,9 @@
  14548. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14549. esac
  14550. case $ac_pass in
  14551. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  14552. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  14553. 2)
  14554. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  14555. + as_fn_append ac_configure_args1 " '$ac_arg'"
  14556. if test $ac_must_keep_next = true; then
  14557. ac_must_keep_next=false # Got value, back to normal.
  14558. else
  14559. @@ -1768,13 +2243,13 @@
  14560. -* ) ac_must_keep_next=true ;;
  14561. esac
  14562. fi
  14563. - ac_configure_args="$ac_configure_args '$ac_arg'"
  14564. + as_fn_append ac_configure_args " '$ac_arg'"
  14565. ;;
  14566. esac
  14567. done
  14568. done
  14569. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  14570. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  14571. +{ ac_configure_args0=; unset ac_configure_args0;}
  14572. +{ ac_configure_args1=; unset ac_configure_args1;}
  14573. # When interrupted or exit'd, cleanup temporary files, and complete
  14574. # config.log. We remove comments because anyway the quotes in there
  14575. @@ -1799,13 +2274,13 @@
  14576. case $ac_val in #(
  14577. *${as_nl}*)
  14578. case $ac_var in #(
  14579. - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  14580. -$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  14581. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14582. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14583. esac
  14584. case $ac_var in #(
  14585. _ | IFS | as_nl) ;; #(
  14586. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14587. - *) $as_unset $ac_var ;;
  14588. + *) { eval $ac_var=; unset $ac_var;} ;;
  14589. esac ;;
  14590. esac
  14591. done
  14592. @@ -1877,39 +2352,41 @@
  14593. exit $exit_status
  14594. ' 0
  14595. for ac_signal in 1 2 13 15; do
  14596. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  14597. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  14598. done
  14599. ac_signal=0
  14600. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  14601. rm -f -r conftest* confdefs.h
  14602. +$as_echo "/* confdefs.h */" > confdefs.h
  14603. +
  14604. # Predefined preprocessor variables.
  14605. cat >>confdefs.h <<_ACEOF
  14606. #define PACKAGE_NAME "$PACKAGE_NAME"
  14607. _ACEOF
  14608. -
  14609. cat >>confdefs.h <<_ACEOF
  14610. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  14611. _ACEOF
  14612. -
  14613. cat >>confdefs.h <<_ACEOF
  14614. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  14615. _ACEOF
  14616. -
  14617. cat >>confdefs.h <<_ACEOF
  14618. #define PACKAGE_STRING "$PACKAGE_STRING"
  14619. _ACEOF
  14620. -
  14621. cat >>confdefs.h <<_ACEOF
  14622. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  14623. _ACEOF
  14624. +cat >>confdefs.h <<_ACEOF
  14625. +#define PACKAGE_URL "$PACKAGE_URL"
  14626. +_ACEOF
  14627. +
  14628. # Let the site file select an alternate cache file if it wants to.
  14629. # Prefer an explicitly selected file to automatically selected ones.
  14630. @@ -1927,8 +2404,8 @@
  14631. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  14632. do
  14633. test "x$ac_site_file" = xNONE && continue
  14634. - if test -r "$ac_site_file"; then
  14635. - { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  14636. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  14637. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  14638. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  14639. sed 's/^/| /' "$ac_site_file" >&5
  14640. . "$ac_site_file"
  14641. @@ -1936,10 +2413,10 @@
  14642. done
  14643. if test -r "$cache_file"; then
  14644. - # Some versions of bash will fail to source /dev/null (special
  14645. - # files actually), so we avoid doing that.
  14646. - if test -f "$cache_file"; then
  14647. - { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  14648. + # Some versions of bash will fail to source /dev/null (special files
  14649. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  14650. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  14651. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  14652. $as_echo "$as_me: loading cache $cache_file" >&6;}
  14653. case $cache_file in
  14654. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  14655. @@ -1947,7 +2424,7 @@
  14656. esac
  14657. fi
  14658. else
  14659. - { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  14660. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  14661. $as_echo "$as_me: creating cache $cache_file" >&6;}
  14662. >$cache_file
  14663. fi
  14664. @@ -1962,11 +2439,11 @@
  14665. eval ac_new_val=\$ac_env_${ac_var}_value
  14666. case $ac_old_set,$ac_new_set in
  14667. set,)
  14668. - { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  14669. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  14670. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  14671. ac_cache_corrupted=: ;;
  14672. ,set)
  14673. - { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  14674. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  14675. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  14676. ac_cache_corrupted=: ;;
  14677. ,);;
  14678. @@ -1976,17 +2453,17 @@
  14679. ac_old_val_w=`echo x $ac_old_val`
  14680. ac_new_val_w=`echo x $ac_new_val`
  14681. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  14682. - { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  14683. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  14684. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  14685. ac_cache_corrupted=:
  14686. else
  14687. - { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  14688. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  14689. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  14690. eval $ac_var=\$ac_old_val
  14691. fi
  14692. - { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  14693. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  14694. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  14695. - { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  14696. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  14697. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  14698. fi;;
  14699. esac
  14700. @@ -1998,75 +2475,46 @@
  14701. esac
  14702. case " $ac_configure_args " in
  14703. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  14704. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  14705. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  14706. esac
  14707. fi
  14708. done
  14709. if $ac_cache_corrupted; then
  14710. - { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  14711. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14712. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14713. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  14714. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  14715. - { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  14716. -$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  14717. - { (exit 1); exit 1; }; }
  14718. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  14719. fi
  14720. +## -------------------- ##
  14721. +## Main body of script. ##
  14722. +## -------------------- ##
  14723. +ac_ext=c
  14724. +ac_cpp='$CPP $CPPFLAGS'
  14725. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14726. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14727. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14728. +ac_config_headers="$ac_config_headers config.h"
  14729. -
  14730. -
  14731. -
  14732. -
  14733. -
  14734. -
  14735. -
  14736. -
  14737. -
  14738. -
  14739. -
  14740. -
  14741. -
  14742. -
  14743. -
  14744. -
  14745. -
  14746. -
  14747. -
  14748. -ac_ext=c
  14749. -ac_cpp='$CPP $CPPFLAGS'
  14750. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14751. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14752. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14753. -
  14754. -
  14755. -
  14756. -ac_config_headers="$ac_config_headers config.h"
  14757. -
  14758. -
  14759. -am__api_version='1.10'
  14760. +am__api_version='1.11'
  14761. ac_aux_dir=
  14762. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  14763. - if test -f "$ac_dir/install-sh"; then
  14764. - ac_aux_dir=$ac_dir
  14765. - ac_install_sh="$ac_aux_dir/install-sh -c"
  14766. - break
  14767. - elif test -f "$ac_dir/install.sh"; then
  14768. - ac_aux_dir=$ac_dir
  14769. - ac_install_sh="$ac_aux_dir/install.sh -c"
  14770. - break
  14771. - elif test -f "$ac_dir/shtool"; then
  14772. - ac_aux_dir=$ac_dir
  14773. - ac_install_sh="$ac_aux_dir/shtool install -c"
  14774. - break
  14775. - fi
  14776. + for ac_t in install-sh install.sh shtool; do
  14777. + if test -f "$ac_dir/$ac_t"; then
  14778. + ac_aux_dir=$ac_dir
  14779. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  14780. + break 2
  14781. + fi
  14782. + done
  14783. done
  14784. if test -z "$ac_aux_dir"; then
  14785. - { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  14786. -$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  14787. - { (exit 1); exit 1; }; }
  14788. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  14789. fi
  14790. # These three variables are undocumented and unsupported,
  14791. @@ -2092,10 +2540,10 @@
  14792. # OS/2's system install, which has a completely different semantic
  14793. # ./install, which can be erroneously created by make from ./install.sh.
  14794. # Reject install programs that cannot install multiple files.
  14795. -{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  14796. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  14797. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  14798. if test -z "$INSTALL"; then
  14799. -if test "${ac_cv_path_install+set}" = set; then
  14800. +if test "${ac_cv_path_install+set}" = set; then :
  14801. $as_echo_n "(cached) " >&6
  14802. else
  14803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14804. @@ -2103,11 +2551,11 @@
  14805. do
  14806. IFS=$as_save_IFS
  14807. test -z "$as_dir" && as_dir=.
  14808. - # Account for people who put trailing slashes in PATH elements.
  14809. -case $as_dir/ in
  14810. - ./ | .// | /cC/* | \
  14811. + # Account for people who put trailing slashes in PATH elements.
  14812. +case $as_dir/ in #((
  14813. + ./ | .// | /[cC]/* | \
  14814. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  14815. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  14816. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  14817. /usr/ucb/* ) ;;
  14818. *)
  14819. # OSF1 and SCO ODT 3.0 have their own names for install.
  14820. @@ -2144,7 +2592,7 @@
  14821. ;;
  14822. esac
  14823. -done
  14824. + done
  14825. IFS=$as_save_IFS
  14826. rm -rf conftest.one conftest.two conftest.dir
  14827. @@ -2160,7 +2608,7 @@
  14828. INSTALL=$ac_install_sh
  14829. fi
  14830. fi
  14831. -{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  14832. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  14833. $as_echo "$INSTALL" >&6; }
  14834. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  14835. @@ -2171,21 +2619,34 @@
  14836. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  14837. -{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  14838. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  14839. $as_echo_n "checking whether build environment is sane... " >&6; }
  14840. # Just in case
  14841. sleep 1
  14842. echo timestamp > conftest.file
  14843. +# Reject unsafe characters in $srcdir or the absolute working directory
  14844. +# name. Accept space and tab only in the latter.
  14845. +am_lf='
  14846. +'
  14847. +case `pwd` in
  14848. + *[\\\"\#\$\&\'\`$am_lf]*)
  14849. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  14850. +esac
  14851. +case $srcdir in
  14852. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  14853. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  14854. +esac
  14855. +
  14856. # Do `set' in a subshell so we don't clobber the current shell's
  14857. # arguments. Must try -L first in case configure is actually a
  14858. # symlink; some systems play weird games with the mod time of symlinks
  14859. # (eg FreeBSD returns the mod time of the symlink's containing
  14860. # directory).
  14861. if (
  14862. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  14863. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  14864. if test "$*" = "X"; then
  14865. # -L didn't work.
  14866. - set X `ls -t $srcdir/configure conftest.file`
  14867. + set X `ls -t "$srcdir/configure" conftest.file`
  14868. fi
  14869. rm -f conftest.file
  14870. if test "$*" != "X $srcdir/configure conftest.file" \
  14871. @@ -2195,11 +2656,8 @@
  14872. # if, for instance, CONFIG_SHELL is bash and it inherits a
  14873. # broken ls alias from the environment. This has actually
  14874. # happened. Such a system could not be considered "sane".
  14875. - { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  14876. -alias in your environment" >&5
  14877. -$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  14878. -alias in your environment" >&2;}
  14879. - { (exit 1); exit 1; }; }
  14880. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  14881. +alias in your environment" "$LINENO" 5
  14882. fi
  14883. test "$2" = conftest.file
  14884. @@ -2208,13 +2666,10 @@
  14885. # Ok.
  14886. :
  14887. else
  14888. - { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  14889. -Check your system clock" >&5
  14890. -$as_echo "$as_me: error: newly created file is older than distributed files!
  14891. -Check your system clock" >&2;}
  14892. - { (exit 1); exit 1; }; }
  14893. + as_fn_error "newly created file is older than distributed files!
  14894. +Check your system clock" "$LINENO" 5
  14895. fi
  14896. -{ $as_echo "$as_me:$LINENO: result: yes" >&5
  14897. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14898. $as_echo "yes" >&6; }
  14899. test "$program_prefix" != NONE &&
  14900. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  14901. @@ -2229,20 +2684,136 @@
  14902. # expand $ac_aux_dir to an absolute path
  14903. am_aux_dir=`cd $ac_aux_dir && pwd`
  14904. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  14905. +if test x"${MISSING+set}" != xset; then
  14906. + case $am_aux_dir in
  14907. + *\ * | *\ *)
  14908. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  14909. + *)
  14910. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  14911. + esac
  14912. +fi
  14913. # Use eval to expand $SHELL
  14914. if eval "$MISSING --run true"; then
  14915. am_missing_run="$MISSING --run "
  14916. else
  14917. am_missing_run=
  14918. - { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  14919. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  14920. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  14921. fi
  14922. -{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  14923. +if test x"${install_sh}" != xset; then
  14924. + case $am_aux_dir in
  14925. + *\ * | *\ *)
  14926. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  14927. + *)
  14928. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  14929. + esac
  14930. +fi
  14931. +
  14932. +# Installed binaries are usually stripped using `strip' when the user
  14933. +# run `make install-strip'. However `strip' might not be the right
  14934. +# tool to use in cross-compilation environments, therefore Automake
  14935. +# will honor the `STRIP' environment variable to overrule this program.
  14936. +if test "$cross_compiling" != no; then
  14937. + if test -n "$ac_tool_prefix"; then
  14938. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  14939. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  14940. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14941. +$as_echo_n "checking for $ac_word... " >&6; }
  14942. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  14943. + $as_echo_n "(cached) " >&6
  14944. +else
  14945. + if test -n "$STRIP"; then
  14946. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  14947. +else
  14948. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14949. +for as_dir in $PATH
  14950. +do
  14951. + IFS=$as_save_IFS
  14952. + test -z "$as_dir" && as_dir=.
  14953. + for ac_exec_ext in '' $ac_executable_extensions; do
  14954. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14955. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  14956. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14957. + break 2
  14958. + fi
  14959. +done
  14960. + done
  14961. +IFS=$as_save_IFS
  14962. +
  14963. +fi
  14964. +fi
  14965. +STRIP=$ac_cv_prog_STRIP
  14966. +if test -n "$STRIP"; then
  14967. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  14968. +$as_echo "$STRIP" >&6; }
  14969. +else
  14970. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14971. +$as_echo "no" >&6; }
  14972. +fi
  14973. +
  14974. +
  14975. +fi
  14976. +if test -z "$ac_cv_prog_STRIP"; then
  14977. + ac_ct_STRIP=$STRIP
  14978. + # Extract the first word of "strip", so it can be a program name with args.
  14979. +set dummy strip; ac_word=$2
  14980. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14981. +$as_echo_n "checking for $ac_word... " >&6; }
  14982. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  14983. + $as_echo_n "(cached) " >&6
  14984. +else
  14985. + if test -n "$ac_ct_STRIP"; then
  14986. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  14987. +else
  14988. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14989. +for as_dir in $PATH
  14990. +do
  14991. + IFS=$as_save_IFS
  14992. + test -z "$as_dir" && as_dir=.
  14993. + for ac_exec_ext in '' $ac_executable_extensions; do
  14994. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14995. + ac_cv_prog_ac_ct_STRIP="strip"
  14996. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14997. + break 2
  14998. + fi
  14999. +done
  15000. + done
  15001. +IFS=$as_save_IFS
  15002. +
  15003. +fi
  15004. +fi
  15005. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  15006. +if test -n "$ac_ct_STRIP"; then
  15007. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  15008. +$as_echo "$ac_ct_STRIP" >&6; }
  15009. +else
  15010. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15011. +$as_echo "no" >&6; }
  15012. +fi
  15013. +
  15014. + if test "x$ac_ct_STRIP" = x; then
  15015. + STRIP=":"
  15016. + else
  15017. + case $cross_compiling:$ac_tool_warned in
  15018. +yes:)
  15019. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15020. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15021. +ac_tool_warned=yes ;;
  15022. +esac
  15023. + STRIP=$ac_ct_STRIP
  15024. + fi
  15025. +else
  15026. + STRIP="$ac_cv_prog_STRIP"
  15027. +fi
  15028. +
  15029. +fi
  15030. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  15031. +
  15032. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  15033. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  15034. if test -z "$MKDIR_P"; then
  15035. - if test "${ac_cv_path_mkdir+set}" = set; then
  15036. + if test "${ac_cv_path_mkdir+set}" = set; then :
  15037. $as_echo_n "(cached) " >&6
  15038. else
  15039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15040. @@ -2250,7 +2821,7 @@
  15041. do
  15042. IFS=$as_save_IFS
  15043. test -z "$as_dir" && as_dir=.
  15044. - for ac_prog in mkdir gmkdir; do
  15045. + for ac_prog in mkdir gmkdir; do
  15046. for ac_exec_ext in '' $ac_executable_extensions; do
  15047. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  15048. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  15049. @@ -2262,11 +2833,12 @@
  15050. esac
  15051. done
  15052. done
  15053. -done
  15054. + done
  15055. IFS=$as_save_IFS
  15056. fi
  15057. + test -d ./--version && rmdir ./--version
  15058. if test "${ac_cv_path_mkdir+set}" = set; then
  15059. MKDIR_P="$ac_cv_path_mkdir -p"
  15060. else
  15061. @@ -2274,11 +2846,10 @@
  15062. # value for MKDIR_P within a source directory, because that will
  15063. # break other packages using the cache if that directory is
  15064. # removed, or if the value is a relative name.
  15065. - test -d ./--version && rmdir ./--version
  15066. MKDIR_P="$ac_install_sh -d"
  15067. fi
  15068. fi
  15069. -{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  15070. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  15071. $as_echo "$MKDIR_P" >&6; }
  15072. mkdir_p="$MKDIR_P"
  15073. @@ -2291,9 +2862,9 @@
  15074. do
  15075. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15076. set dummy $ac_prog; ac_word=$2
  15077. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  15078. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15079. $as_echo_n "checking for $ac_word... " >&6; }
  15080. -if test "${ac_cv_prog_AWK+set}" = set; then
  15081. +if test "${ac_cv_prog_AWK+set}" = set; then :
  15082. $as_echo_n "(cached) " >&6
  15083. else
  15084. if test -n "$AWK"; then
  15085. @@ -2304,24 +2875,24 @@
  15086. do
  15087. IFS=$as_save_IFS
  15088. test -z "$as_dir" && as_dir=.
  15089. - for ac_exec_ext in '' $ac_executable_extensions; do
  15090. + for ac_exec_ext in '' $ac_executable_extensions; do
  15091. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15092. ac_cv_prog_AWK="$ac_prog"
  15093. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15094. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15095. break 2
  15096. fi
  15097. done
  15098. -done
  15099. + done
  15100. IFS=$as_save_IFS
  15101. fi
  15102. fi
  15103. AWK=$ac_cv_prog_AWK
  15104. if test -n "$AWK"; then
  15105. - { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  15106. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  15107. $as_echo "$AWK" >&6; }
  15108. else
  15109. - { $as_echo "$as_me:$LINENO: result: no" >&5
  15110. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15111. $as_echo "no" >&6; }
  15112. fi
  15113. @@ -2329,11 +2900,11 @@
  15114. test -n "$AWK" && break
  15115. done
  15116. -{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15117. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15118. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15119. set x ${MAKE-make}
  15120. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15121. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  15122. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  15123. $as_echo_n "(cached) " >&6
  15124. else
  15125. cat >conftest.make <<\_ACEOF
  15126. @@ -2351,11 +2922,11 @@
  15127. rm -f conftest.make
  15128. fi
  15129. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15130. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  15131. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15132. $as_echo "yes" >&6; }
  15133. SET_MAKE=
  15134. else
  15135. - { $as_echo "$as_me:$LINENO: result: no" >&5
  15136. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15137. $as_echo "no" >&6; }
  15138. SET_MAKE="MAKE=${MAKE-make}"
  15139. fi
  15140. @@ -2375,9 +2946,7 @@
  15141. am__isrc=' -I$(srcdir)'
  15142. # test to see if srcdir already configured
  15143. if test -f $srcdir/config.status; then
  15144. - { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  15145. -$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  15146. - { (exit 1); exit 1; }; }
  15147. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  15148. fi
  15149. fi
  15150. @@ -2421,112 +2990,6 @@
  15151. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  15152. -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  15153. -
  15154. -# Installed binaries are usually stripped using `strip' when the user
  15155. -# run `make install-strip'. However `strip' might not be the right
  15156. -# tool to use in cross-compilation environments, therefore Automake
  15157. -# will honor the `STRIP' environment variable to overrule this program.
  15158. -if test "$cross_compiling" != no; then
  15159. - if test -n "$ac_tool_prefix"; then
  15160. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  15161. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  15162. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  15163. -$as_echo_n "checking for $ac_word... " >&6; }
  15164. -if test "${ac_cv_prog_STRIP+set}" = set; then
  15165. - $as_echo_n "(cached) " >&6
  15166. -else
  15167. - if test -n "$STRIP"; then
  15168. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  15169. -else
  15170. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15171. -for as_dir in $PATH
  15172. -do
  15173. - IFS=$as_save_IFS
  15174. - test -z "$as_dir" && as_dir=.
  15175. - for ac_exec_ext in '' $ac_executable_extensions; do
  15176. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15177. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  15178. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15179. - break 2
  15180. - fi
  15181. -done
  15182. -done
  15183. -IFS=$as_save_IFS
  15184. -
  15185. -fi
  15186. -fi
  15187. -STRIP=$ac_cv_prog_STRIP
  15188. -if test -n "$STRIP"; then
  15189. - { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  15190. -$as_echo "$STRIP" >&6; }
  15191. -else
  15192. - { $as_echo "$as_me:$LINENO: result: no" >&5
  15193. -$as_echo "no" >&6; }
  15194. -fi
  15195. -
  15196. -
  15197. -fi
  15198. -if test -z "$ac_cv_prog_STRIP"; then
  15199. - ac_ct_STRIP=$STRIP
  15200. - # Extract the first word of "strip", so it can be a program name with args.
  15201. -set dummy strip; ac_word=$2
  15202. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  15203. -$as_echo_n "checking for $ac_word... " >&6; }
  15204. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  15205. - $as_echo_n "(cached) " >&6
  15206. -else
  15207. - if test -n "$ac_ct_STRIP"; then
  15208. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  15209. -else
  15210. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15211. -for as_dir in $PATH
  15212. -do
  15213. - IFS=$as_save_IFS
  15214. - test -z "$as_dir" && as_dir=.
  15215. - for ac_exec_ext in '' $ac_executable_extensions; do
  15216. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15217. - ac_cv_prog_ac_ct_STRIP="strip"
  15218. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15219. - break 2
  15220. - fi
  15221. -done
  15222. -done
  15223. -IFS=$as_save_IFS
  15224. -
  15225. -fi
  15226. -fi
  15227. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  15228. -if test -n "$ac_ct_STRIP"; then
  15229. - { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  15230. -$as_echo "$ac_ct_STRIP" >&6; }
  15231. -else
  15232. - { $as_echo "$as_me:$LINENO: result: no" >&5
  15233. -$as_echo "no" >&6; }
  15234. -fi
  15235. -
  15236. - if test "x$ac_ct_STRIP" = x; then
  15237. - STRIP=":"
  15238. - else
  15239. - case $cross_compiling:$ac_tool_warned in
  15240. -yes:)
  15241. -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15242. -whose name does not start with the host triplet. If you think this
  15243. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  15244. -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15245. -whose name does not start with the host triplet. If you think this
  15246. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15247. -ac_tool_warned=yes ;;
  15248. -esac
  15249. - STRIP=$ac_ct_STRIP
  15250. - fi
  15251. -else
  15252. - STRIP="$ac_cv_prog_STRIP"
  15253. -fi
  15254. -
  15255. -fi
  15256. -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  15257. -
  15258. # We need awk for the "check" target. The system "awk" is bad on
  15259. # some platforms.
  15260. # Always define AMTAR for backward compatibility.
  15261. @@ -2547,7 +3010,7 @@
  15262. if type -p stow > /dev/null && test -d /usr/local/stow ; then
  15263. - { $as_echo "$as_me:$LINENO: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&5
  15264. + { $as_echo "$as_me:${as_lineno-$LINENO}: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&5
  15265. $as_echo "$as_me: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&6;}
  15266. ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
  15267. fi
  15268. @@ -2561,9 +3024,9 @@
  15269. if test -n "$ac_tool_prefix"; then
  15270. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  15271. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  15272. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  15273. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15274. $as_echo_n "checking for $ac_word... " >&6; }
  15275. -if test "${ac_cv_prog_CC+set}" = set; then
  15276. +if test "${ac_cv_prog_CC+set}" = set; then :
  15277. $as_echo_n "(cached) " >&6
  15278. else
  15279. if test -n "$CC"; then
  15280. @@ -2574,24 +3037,24 @@
  15281. do
  15282. IFS=$as_save_IFS
  15283. test -z "$as_dir" && as_dir=.
  15284. - for ac_exec_ext in '' $ac_executable_extensions; do
  15285. + for ac_exec_ext in '' $ac_executable_extensions; do
  15286. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15287. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  15288. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15289. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15290. break 2
  15291. fi
  15292. done
  15293. -done
  15294. + done
  15295. IFS=$as_save_IFS
  15296. fi
  15297. fi
  15298. CC=$ac_cv_prog_CC
  15299. if test -n "$CC"; then
  15300. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  15301. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  15302. $as_echo "$CC" >&6; }
  15303. else
  15304. - { $as_echo "$as_me:$LINENO: result: no" >&5
  15305. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15306. $as_echo "no" >&6; }
  15307. fi
  15308. @@ -2601,9 +3064,9 @@
  15309. ac_ct_CC=$CC
  15310. # Extract the first word of "gcc", so it can be a program name with args.
  15311. set dummy gcc; ac_word=$2
  15312. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  15313. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15314. $as_echo_n "checking for $ac_word... " >&6; }
  15315. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  15316. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  15317. $as_echo_n "(cached) " >&6
  15318. else
  15319. if test -n "$ac_ct_CC"; then
  15320. @@ -2614,24 +3077,24 @@
  15321. do
  15322. IFS=$as_save_IFS
  15323. test -z "$as_dir" && as_dir=.
  15324. - for ac_exec_ext in '' $ac_executable_extensions; do
  15325. + for ac_exec_ext in '' $ac_executable_extensions; do
  15326. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15327. ac_cv_prog_ac_ct_CC="gcc"
  15328. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15329. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15330. break 2
  15331. fi
  15332. done
  15333. -done
  15334. + done
  15335. IFS=$as_save_IFS
  15336. fi
  15337. fi
  15338. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  15339. if test -n "$ac_ct_CC"; then
  15340. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  15341. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  15342. $as_echo "$ac_ct_CC" >&6; }
  15343. else
  15344. - { $as_echo "$as_me:$LINENO: result: no" >&5
  15345. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15346. $as_echo "no" >&6; }
  15347. fi
  15348. @@ -2640,12 +3103,8 @@
  15349. else
  15350. case $cross_compiling:$ac_tool_warned in
  15351. yes:)
  15352. -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15353. -whose name does not start with the host triplet. If you think this
  15354. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  15355. -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15356. -whose name does not start with the host triplet. If you think this
  15357. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15358. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15359. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15360. ac_tool_warned=yes ;;
  15361. esac
  15362. CC=$ac_ct_CC
  15363. @@ -2658,9 +3117,9 @@
  15364. if test -n "$ac_tool_prefix"; then
  15365. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  15366. set dummy ${ac_tool_prefix}cc; ac_word=$2
  15367. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  15368. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15369. $as_echo_n "checking for $ac_word... " >&6; }
  15370. -if test "${ac_cv_prog_CC+set}" = set; then
  15371. +if test "${ac_cv_prog_CC+set}" = set; then :
  15372. $as_echo_n "(cached) " >&6
  15373. else
  15374. if test -n "$CC"; then
  15375. @@ -2671,24 +3130,24 @@
  15376. do
  15377. IFS=$as_save_IFS
  15378. test -z "$as_dir" && as_dir=.
  15379. - for ac_exec_ext in '' $ac_executable_extensions; do
  15380. + for ac_exec_ext in '' $ac_executable_extensions; do
  15381. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15382. ac_cv_prog_CC="${ac_tool_prefix}cc"
  15383. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15384. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15385. break 2
  15386. fi
  15387. done
  15388. -done
  15389. + done
  15390. IFS=$as_save_IFS
  15391. fi
  15392. fi
  15393. CC=$ac_cv_prog_CC
  15394. if test -n "$CC"; then
  15395. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  15396. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  15397. $as_echo "$CC" >&6; }
  15398. else
  15399. - { $as_echo "$as_me:$LINENO: result: no" >&5
  15400. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15401. $as_echo "no" >&6; }
  15402. fi
  15403. @@ -2698,9 +3157,9 @@
  15404. if test -z "$CC"; then
  15405. # Extract the first word of "cc", so it can be a program name with args.
  15406. set dummy cc; ac_word=$2
  15407. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  15408. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15409. $as_echo_n "checking for $ac_word... " >&6; }
  15410. -if test "${ac_cv_prog_CC+set}" = set; then
  15411. +if test "${ac_cv_prog_CC+set}" = set; then :
  15412. $as_echo_n "(cached) " >&6
  15413. else
  15414. if test -n "$CC"; then
  15415. @@ -2712,18 +3171,18 @@
  15416. do
  15417. IFS=$as_save_IFS
  15418. test -z "$as_dir" && as_dir=.
  15419. - for ac_exec_ext in '' $ac_executable_extensions; do
  15420. + for ac_exec_ext in '' $ac_executable_extensions; do
  15421. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15422. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  15423. ac_prog_rejected=yes
  15424. continue
  15425. fi
  15426. ac_cv_prog_CC="cc"
  15427. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15428. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15429. break 2
  15430. fi
  15431. done
  15432. -done
  15433. + done
  15434. IFS=$as_save_IFS
  15435. if test $ac_prog_rejected = yes; then
  15436. @@ -2742,10 +3201,10 @@
  15437. fi
  15438. CC=$ac_cv_prog_CC
  15439. if test -n "$CC"; then
  15440. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  15441. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  15442. $as_echo "$CC" >&6; }
  15443. else
  15444. - { $as_echo "$as_me:$LINENO: result: no" >&5
  15445. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15446. $as_echo "no" >&6; }
  15447. fi
  15448. @@ -2757,9 +3216,9 @@
  15449. do
  15450. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  15451. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  15452. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  15453. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15454. $as_echo_n "checking for $ac_word... " >&6; }
  15455. -if test "${ac_cv_prog_CC+set}" = set; then
  15456. +if test "${ac_cv_prog_CC+set}" = set; then :
  15457. $as_echo_n "(cached) " >&6
  15458. else
  15459. if test -n "$CC"; then
  15460. @@ -2770,24 +3229,24 @@
  15461. do
  15462. IFS=$as_save_IFS
  15463. test -z "$as_dir" && as_dir=.
  15464. - for ac_exec_ext in '' $ac_executable_extensions; do
  15465. + for ac_exec_ext in '' $ac_executable_extensions; do
  15466. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15467. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  15468. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15469. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15470. break 2
  15471. fi
  15472. done
  15473. -done
  15474. + done
  15475. IFS=$as_save_IFS
  15476. fi
  15477. fi
  15478. CC=$ac_cv_prog_CC
  15479. if test -n "$CC"; then
  15480. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  15481. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  15482. $as_echo "$CC" >&6; }
  15483. else
  15484. - { $as_echo "$as_me:$LINENO: result: no" >&5
  15485. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15486. $as_echo "no" >&6; }
  15487. fi
  15488. @@ -2801,9 +3260,9 @@
  15489. do
  15490. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15491. set dummy $ac_prog; ac_word=$2
  15492. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  15493. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15494. $as_echo_n "checking for $ac_word... " >&6; }
  15495. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  15496. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  15497. $as_echo_n "(cached) " >&6
  15498. else
  15499. if test -n "$ac_ct_CC"; then
  15500. @@ -2814,24 +3273,24 @@
  15501. do
  15502. IFS=$as_save_IFS
  15503. test -z "$as_dir" && as_dir=.
  15504. - for ac_exec_ext in '' $ac_executable_extensions; do
  15505. + for ac_exec_ext in '' $ac_executable_extensions; do
  15506. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15507. ac_cv_prog_ac_ct_CC="$ac_prog"
  15508. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15509. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15510. break 2
  15511. fi
  15512. done
  15513. -done
  15514. + done
  15515. IFS=$as_save_IFS
  15516. fi
  15517. fi
  15518. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  15519. if test -n "$ac_ct_CC"; then
  15520. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  15521. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  15522. $as_echo "$ac_ct_CC" >&6; }
  15523. else
  15524. - { $as_echo "$as_me:$LINENO: result: no" >&5
  15525. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15526. $as_echo "no" >&6; }
  15527. fi
  15528. @@ -2844,12 +3303,8 @@
  15529. else
  15530. case $cross_compiling:$ac_tool_warned in
  15531. yes:)
  15532. -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15533. -whose name does not start with the host triplet. If you think this
  15534. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  15535. -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15536. -whose name does not start with the host triplet. If you think this
  15537. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15538. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15539. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15540. ac_tool_warned=yes ;;
  15541. esac
  15542. CC=$ac_ct_CC
  15543. @@ -2859,55 +3314,37 @@
  15544. fi
  15545. -test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  15546. -See \`config.log' for more details." >&5
  15547. -$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  15548. -See \`config.log' for more details." >&2;}
  15549. - { (exit 1); exit 1; }; }
  15550. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15551. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15552. +as_fn_error "no acceptable C compiler found in \$PATH
  15553. +See \`config.log' for more details." "$LINENO" 5; }
  15554. # Provide some information about the compiler.
  15555. -$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  15556. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  15557. set X $ac_compile
  15558. ac_compiler=$2
  15559. -{ (ac_try="$ac_compiler --version >&5"
  15560. -case "(($ac_try" in
  15561. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15562. - *) ac_try_echo=$ac_try;;
  15563. -esac
  15564. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15565. -$as_echo "$ac_try_echo") >&5
  15566. - (eval "$ac_compiler --version >&5") 2>&5
  15567. - ac_status=$?
  15568. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15569. - (exit $ac_status); }
  15570. -{ (ac_try="$ac_compiler -v >&5"
  15571. -case "(($ac_try" in
  15572. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15573. - *) ac_try_echo=$ac_try;;
  15574. -esac
  15575. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15576. -$as_echo "$ac_try_echo") >&5
  15577. - (eval "$ac_compiler -v >&5") 2>&5
  15578. - ac_status=$?
  15579. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15580. - (exit $ac_status); }
  15581. -{ (ac_try="$ac_compiler -V >&5"
  15582. +for ac_option in --version -v -V -qversion; do
  15583. + { { ac_try="$ac_compiler $ac_option >&5"
  15584. case "(($ac_try" in
  15585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15586. *) ac_try_echo=$ac_try;;
  15587. esac
  15588. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15589. -$as_echo "$ac_try_echo") >&5
  15590. - (eval "$ac_compiler -V >&5") 2>&5
  15591. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15592. +$as_echo "$ac_try_echo"; } >&5
  15593. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  15594. ac_status=$?
  15595. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15596. - (exit $ac_status); }
  15597. -
  15598. -cat >conftest.$ac_ext <<_ACEOF
  15599. -/* confdefs.h. */
  15600. -_ACEOF
  15601. -cat confdefs.h >>conftest.$ac_ext
  15602. -cat >>conftest.$ac_ext <<_ACEOF
  15603. + if test -s conftest.err; then
  15604. + sed '10a\
  15605. +... rest of stderr output deleted ...
  15606. + 10q' conftest.err >conftest.er1
  15607. + cat conftest.er1 >&5
  15608. + fi
  15609. + rm -f conftest.er1 conftest.err
  15610. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15611. + test $ac_status = 0; }
  15612. +done
  15613. +
  15614. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15615. /* end confdefs.h. */
  15616. int
  15617. @@ -2923,8 +3360,8 @@
  15618. # Try to create an executable without -o first, disregard a.out.
  15619. # It will help us diagnose broken compilers, and finding out an intuition
  15620. # of exeext.
  15621. -{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  15622. -$as_echo_n "checking for C compiler default output file name... " >&6; }
  15623. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  15624. +$as_echo_n "checking whether the C compiler works... " >&6; }
  15625. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  15626. # The possible output files:
  15627. @@ -2940,17 +3377,17 @@
  15628. done
  15629. rm -f $ac_rmfiles
  15630. -if { (ac_try="$ac_link_default"
  15631. +if { { ac_try="$ac_link_default"
  15632. case "(($ac_try" in
  15633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15634. *) ac_try_echo=$ac_try;;
  15635. esac
  15636. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15637. -$as_echo "$ac_try_echo") >&5
  15638. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15639. +$as_echo "$ac_try_echo"; } >&5
  15640. (eval "$ac_link_default") 2>&5
  15641. ac_status=$?
  15642. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15643. - (exit $ac_status); }; then
  15644. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15645. + test $ac_status = 0; }; then :
  15646. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  15647. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  15648. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  15649. @@ -2967,7 +3404,7 @@
  15650. # certainly right.
  15651. break;;
  15652. *.* )
  15653. - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  15654. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  15655. then :; else
  15656. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  15657. fi
  15658. @@ -2986,80 +3423,42 @@
  15659. else
  15660. ac_file=''
  15661. fi
  15662. -
  15663. -{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  15664. -$as_echo "$ac_file" >&6; }
  15665. -if test -z "$ac_file"; then
  15666. - $as_echo "$as_me: failed program was:" >&5
  15667. +if test -z "$ac_file"; then :
  15668. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15669. +$as_echo "no" >&6; }
  15670. +$as_echo "$as_me: failed program was:" >&5
  15671. sed 's/^/| /' conftest.$ac_ext >&5
  15672. -{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  15673. -See \`config.log' for more details." >&5
  15674. -$as_echo "$as_me: error: C compiler cannot create executables
  15675. -See \`config.log' for more details." >&2;}
  15676. - { (exit 77); exit 77; }; }
  15677. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15678. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15679. +{ as_fn_set_status 77
  15680. +as_fn_error "C compiler cannot create executables
  15681. +See \`config.log' for more details." "$LINENO" 5; }; }
  15682. +else
  15683. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15684. +$as_echo "yes" >&6; }
  15685. fi
  15686. -
  15687. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  15688. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  15689. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  15690. +$as_echo "$ac_file" >&6; }
  15691. ac_exeext=$ac_cv_exeext
  15692. -# Check that the compiler produces executables we can run. If not, either
  15693. -# the compiler is broken, or we cross compile.
  15694. -{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  15695. -$as_echo_n "checking whether the C compiler works... " >&6; }
  15696. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  15697. -# If not cross compiling, check that we can run a simple program.
  15698. -if test "$cross_compiling" != yes; then
  15699. - if { ac_try='./$ac_file'
  15700. - { (case "(($ac_try" in
  15701. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15702. - *) ac_try_echo=$ac_try;;
  15703. -esac
  15704. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15705. -$as_echo "$ac_try_echo") >&5
  15706. - (eval "$ac_try") 2>&5
  15707. - ac_status=$?
  15708. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15709. - (exit $ac_status); }; }; then
  15710. - cross_compiling=no
  15711. - else
  15712. - if test "$cross_compiling" = maybe; then
  15713. - cross_compiling=yes
  15714. - else
  15715. - { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  15716. -If you meant to cross compile, use \`--host'.
  15717. -See \`config.log' for more details." >&5
  15718. -$as_echo "$as_me: error: cannot run C compiled programs.
  15719. -If you meant to cross compile, use \`--host'.
  15720. -See \`config.log' for more details." >&2;}
  15721. - { (exit 1); exit 1; }; }
  15722. - fi
  15723. - fi
  15724. -fi
  15725. -{ $as_echo "$as_me:$LINENO: result: yes" >&5
  15726. -$as_echo "yes" >&6; }
  15727. -
  15728. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  15729. ac_clean_files=$ac_clean_files_save
  15730. -# Check that the compiler produces executables we can run. If not, either
  15731. -# the compiler is broken, or we cross compile.
  15732. -{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  15733. -$as_echo_n "checking whether we are cross compiling... " >&6; }
  15734. -{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  15735. -$as_echo "$cross_compiling" >&6; }
  15736. -
  15737. -{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  15738. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  15739. $as_echo_n "checking for suffix of executables... " >&6; }
  15740. -if { (ac_try="$ac_link"
  15741. +if { { ac_try="$ac_link"
  15742. case "(($ac_try" in
  15743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15744. *) ac_try_echo=$ac_try;;
  15745. esac
  15746. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15747. -$as_echo "$ac_try_echo") >&5
  15748. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15749. +$as_echo "$ac_try_echo"; } >&5
  15750. (eval "$ac_link") 2>&5
  15751. ac_status=$?
  15752. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15753. - (exit $ac_status); }; then
  15754. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15755. + test $ac_status = 0; }; then :
  15756. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  15757. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  15758. # work properly (i.e., refer to `conftest.exe'), while it won't with
  15759. @@ -3074,30 +3473,83 @@
  15760. esac
  15761. done
  15762. else
  15763. - { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  15764. -See \`config.log' for more details." >&5
  15765. -$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  15766. -See \`config.log' for more details." >&2;}
  15767. - { (exit 1); exit 1; }; }
  15768. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15769. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15770. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  15771. +See \`config.log' for more details." "$LINENO" 5; }
  15772. fi
  15773. -
  15774. -rm -f conftest$ac_cv_exeext
  15775. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  15776. +rm -f conftest conftest$ac_cv_exeext
  15777. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  15778. $as_echo "$ac_cv_exeext" >&6; }
  15779. rm -f conftest.$ac_ext
  15780. EXEEXT=$ac_cv_exeext
  15781. ac_exeext=$EXEEXT
  15782. -{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  15783. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15784. +/* end confdefs.h. */
  15785. +#include <stdio.h>
  15786. +int
  15787. +main ()
  15788. +{
  15789. +FILE *f = fopen ("conftest.out", "w");
  15790. + return ferror (f) || fclose (f) != 0;
  15791. +
  15792. + ;
  15793. + return 0;
  15794. +}
  15795. +_ACEOF
  15796. +ac_clean_files="$ac_clean_files conftest.out"
  15797. +# Check that the compiler produces executables we can run. If not, either
  15798. +# the compiler is broken, or we cross compile.
  15799. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  15800. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  15801. +if test "$cross_compiling" != yes; then
  15802. + { { ac_try="$ac_link"
  15803. +case "(($ac_try" in
  15804. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15805. + *) ac_try_echo=$ac_try;;
  15806. +esac
  15807. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15808. +$as_echo "$ac_try_echo"; } >&5
  15809. + (eval "$ac_link") 2>&5
  15810. + ac_status=$?
  15811. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15812. + test $ac_status = 0; }
  15813. + if { ac_try='./conftest$ac_cv_exeext'
  15814. + { { case "(($ac_try" in
  15815. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15816. + *) ac_try_echo=$ac_try;;
  15817. +esac
  15818. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15819. +$as_echo "$ac_try_echo"; } >&5
  15820. + (eval "$ac_try") 2>&5
  15821. + ac_status=$?
  15822. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15823. + test $ac_status = 0; }; }; then
  15824. + cross_compiling=no
  15825. + else
  15826. + if test "$cross_compiling" = maybe; then
  15827. + cross_compiling=yes
  15828. + else
  15829. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15830. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15831. +as_fn_error "cannot run C compiled programs.
  15832. +If you meant to cross compile, use \`--host'.
  15833. +See \`config.log' for more details." "$LINENO" 5; }
  15834. + fi
  15835. + fi
  15836. +fi
  15837. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  15838. +$as_echo "$cross_compiling" >&6; }
  15839. +
  15840. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  15841. +ac_clean_files=$ac_clean_files_save
  15842. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  15843. $as_echo_n "checking for suffix of object files... " >&6; }
  15844. -if test "${ac_cv_objext+set}" = set; then
  15845. +if test "${ac_cv_objext+set}" = set; then :
  15846. $as_echo_n "(cached) " >&6
  15847. else
  15848. - cat >conftest.$ac_ext <<_ACEOF
  15849. -/* confdefs.h. */
  15850. -_ACEOF
  15851. -cat confdefs.h >>conftest.$ac_ext
  15852. -cat >>conftest.$ac_ext <<_ACEOF
  15853. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15854. /* end confdefs.h. */
  15855. int
  15856. @@ -3109,17 +3561,17 @@
  15857. }
  15858. _ACEOF
  15859. rm -f conftest.o conftest.obj
  15860. -if { (ac_try="$ac_compile"
  15861. +if { { ac_try="$ac_compile"
  15862. case "(($ac_try" in
  15863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15864. *) ac_try_echo=$ac_try;;
  15865. esac
  15866. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15867. -$as_echo "$ac_try_echo") >&5
  15868. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15869. +$as_echo "$ac_try_echo"; } >&5
  15870. (eval "$ac_compile") 2>&5
  15871. ac_status=$?
  15872. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15873. - (exit $ac_status); }; then
  15874. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15875. + test $ac_status = 0; }; then :
  15876. for ac_file in conftest.o conftest.obj conftest.*; do
  15877. test -f "$ac_file" || continue;
  15878. case $ac_file in
  15879. @@ -3132,29 +3584,23 @@
  15880. $as_echo "$as_me: failed program was:" >&5
  15881. sed 's/^/| /' conftest.$ac_ext >&5
  15882. -{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  15883. -See \`config.log' for more details." >&5
  15884. -$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  15885. -See \`config.log' for more details." >&2;}
  15886. - { (exit 1); exit 1; }; }
  15887. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15888. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15889. +as_fn_error "cannot compute suffix of object files: cannot compile
  15890. +See \`config.log' for more details." "$LINENO" 5; }
  15891. fi
  15892. -
  15893. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  15894. fi
  15895. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  15896. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  15897. $as_echo "$ac_cv_objext" >&6; }
  15898. OBJEXT=$ac_cv_objext
  15899. ac_objext=$OBJEXT
  15900. -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  15901. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  15902. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  15903. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  15904. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  15905. $as_echo_n "(cached) " >&6
  15906. else
  15907. - cat >conftest.$ac_ext <<_ACEOF
  15908. -/* confdefs.h. */
  15909. -_ACEOF
  15910. -cat confdefs.h >>conftest.$ac_ext
  15911. -cat >>conftest.$ac_ext <<_ACEOF
  15912. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15913. /* end confdefs.h. */
  15914. int
  15915. @@ -3168,37 +3614,16 @@
  15916. return 0;
  15917. }
  15918. _ACEOF
  15919. -rm -f conftest.$ac_objext
  15920. -if { (ac_try="$ac_compile"
  15921. -case "(($ac_try" in
  15922. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15923. - *) ac_try_echo=$ac_try;;
  15924. -esac
  15925. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15926. -$as_echo "$ac_try_echo") >&5
  15927. - (eval "$ac_compile") 2>conftest.er1
  15928. - ac_status=$?
  15929. - grep -v '^ *+' conftest.er1 >conftest.err
  15930. - rm -f conftest.er1
  15931. - cat conftest.err >&5
  15932. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15933. - (exit $ac_status); } && {
  15934. - test -z "$ac_c_werror_flag" ||
  15935. - test ! -s conftest.err
  15936. - } && test -s conftest.$ac_objext; then
  15937. +if ac_fn_c_try_compile "$LINENO"; then :
  15938. ac_compiler_gnu=yes
  15939. else
  15940. - $as_echo "$as_me: failed program was:" >&5
  15941. -sed 's/^/| /' conftest.$ac_ext >&5
  15942. -
  15943. - ac_compiler_gnu=no
  15944. + ac_compiler_gnu=no
  15945. fi
  15946. -
  15947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15948. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  15949. fi
  15950. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  15951. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  15952. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  15953. if test $ac_compiler_gnu = yes; then
  15954. GCC=yes
  15955. @@ -3207,20 +3632,16 @@
  15956. fi
  15957. ac_test_CFLAGS=${CFLAGS+set}
  15958. ac_save_CFLAGS=$CFLAGS
  15959. -{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  15960. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  15961. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  15962. -if test "${ac_cv_prog_cc_g+set}" = set; then
  15963. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  15964. $as_echo_n "(cached) " >&6
  15965. else
  15966. ac_save_c_werror_flag=$ac_c_werror_flag
  15967. ac_c_werror_flag=yes
  15968. ac_cv_prog_cc_g=no
  15969. CFLAGS="-g"
  15970. - cat >conftest.$ac_ext <<_ACEOF
  15971. -/* confdefs.h. */
  15972. -_ACEOF
  15973. -cat confdefs.h >>conftest.$ac_ext
  15974. -cat >>conftest.$ac_ext <<_ACEOF
  15975. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15976. /* end confdefs.h. */
  15977. int
  15978. @@ -3231,35 +3652,11 @@
  15979. return 0;
  15980. }
  15981. _ACEOF
  15982. -rm -f conftest.$ac_objext
  15983. -if { (ac_try="$ac_compile"
  15984. -case "(($ac_try" in
  15985. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15986. - *) ac_try_echo=$ac_try;;
  15987. -esac
  15988. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15989. -$as_echo "$ac_try_echo") >&5
  15990. - (eval "$ac_compile") 2>conftest.er1
  15991. - ac_status=$?
  15992. - grep -v '^ *+' conftest.er1 >conftest.err
  15993. - rm -f conftest.er1
  15994. - cat conftest.err >&5
  15995. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15996. - (exit $ac_status); } && {
  15997. - test -z "$ac_c_werror_flag" ||
  15998. - test ! -s conftest.err
  15999. - } && test -s conftest.$ac_objext; then
  16000. +if ac_fn_c_try_compile "$LINENO"; then :
  16001. ac_cv_prog_cc_g=yes
  16002. else
  16003. - $as_echo "$as_me: failed program was:" >&5
  16004. -sed 's/^/| /' conftest.$ac_ext >&5
  16005. -
  16006. - CFLAGS=""
  16007. - cat >conftest.$ac_ext <<_ACEOF
  16008. -/* confdefs.h. */
  16009. -_ACEOF
  16010. -cat confdefs.h >>conftest.$ac_ext
  16011. -cat >>conftest.$ac_ext <<_ACEOF
  16012. + CFLAGS=""
  16013. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16014. /* end confdefs.h. */
  16015. int
  16016. @@ -3270,36 +3667,12 @@
  16017. return 0;
  16018. }
  16019. _ACEOF
  16020. -rm -f conftest.$ac_objext
  16021. -if { (ac_try="$ac_compile"
  16022. -case "(($ac_try" in
  16023. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16024. - *) ac_try_echo=$ac_try;;
  16025. -esac
  16026. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16027. -$as_echo "$ac_try_echo") >&5
  16028. - (eval "$ac_compile") 2>conftest.er1
  16029. - ac_status=$?
  16030. - grep -v '^ *+' conftest.er1 >conftest.err
  16031. - rm -f conftest.er1
  16032. - cat conftest.err >&5
  16033. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16034. - (exit $ac_status); } && {
  16035. - test -z "$ac_c_werror_flag" ||
  16036. - test ! -s conftest.err
  16037. - } && test -s conftest.$ac_objext; then
  16038. - :
  16039. -else
  16040. - $as_echo "$as_me: failed program was:" >&5
  16041. -sed 's/^/| /' conftest.$ac_ext >&5
  16042. +if ac_fn_c_try_compile "$LINENO"; then :
  16043. - ac_c_werror_flag=$ac_save_c_werror_flag
  16044. +else
  16045. + ac_c_werror_flag=$ac_save_c_werror_flag
  16046. CFLAGS="-g"
  16047. - cat >conftest.$ac_ext <<_ACEOF
  16048. -/* confdefs.h. */
  16049. -_ACEOF
  16050. -cat confdefs.h >>conftest.$ac_ext
  16051. -cat >>conftest.$ac_ext <<_ACEOF
  16052. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16053. /* end confdefs.h. */
  16054. int
  16055. @@ -3310,42 +3683,17 @@
  16056. return 0;
  16057. }
  16058. _ACEOF
  16059. -rm -f conftest.$ac_objext
  16060. -if { (ac_try="$ac_compile"
  16061. -case "(($ac_try" in
  16062. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16063. - *) ac_try_echo=$ac_try;;
  16064. -esac
  16065. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16066. -$as_echo "$ac_try_echo") >&5
  16067. - (eval "$ac_compile") 2>conftest.er1
  16068. - ac_status=$?
  16069. - grep -v '^ *+' conftest.er1 >conftest.err
  16070. - rm -f conftest.er1
  16071. - cat conftest.err >&5
  16072. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16073. - (exit $ac_status); } && {
  16074. - test -z "$ac_c_werror_flag" ||
  16075. - test ! -s conftest.err
  16076. - } && test -s conftest.$ac_objext; then
  16077. +if ac_fn_c_try_compile "$LINENO"; then :
  16078. ac_cv_prog_cc_g=yes
  16079. -else
  16080. - $as_echo "$as_me: failed program was:" >&5
  16081. -sed 's/^/| /' conftest.$ac_ext >&5
  16082. -
  16083. -
  16084. fi
  16085. -
  16086. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16087. fi
  16088. -
  16089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16090. fi
  16091. -
  16092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16093. ac_c_werror_flag=$ac_save_c_werror_flag
  16094. fi
  16095. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  16096. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  16097. $as_echo "$ac_cv_prog_cc_g" >&6; }
  16098. if test "$ac_test_CFLAGS" = set; then
  16099. CFLAGS=$ac_save_CFLAGS
  16100. @@ -3362,18 +3710,14 @@
  16101. CFLAGS=
  16102. fi
  16103. fi
  16104. -{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  16105. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  16106. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  16107. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  16108. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  16109. $as_echo_n "(cached) " >&6
  16110. else
  16111. ac_cv_prog_cc_c89=no
  16112. ac_save_CC=$CC
  16113. -cat >conftest.$ac_ext <<_ACEOF
  16114. -/* confdefs.h. */
  16115. -_ACEOF
  16116. -cat confdefs.h >>conftest.$ac_ext
  16117. -cat >>conftest.$ac_ext <<_ACEOF
  16118. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16119. /* end confdefs.h. */
  16120. #include <stdarg.h>
  16121. #include <stdio.h>
  16122. @@ -3430,32 +3774,9 @@
  16123. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  16124. do
  16125. CC="$ac_save_CC $ac_arg"
  16126. - rm -f conftest.$ac_objext
  16127. -if { (ac_try="$ac_compile"
  16128. -case "(($ac_try" in
  16129. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16130. - *) ac_try_echo=$ac_try;;
  16131. -esac
  16132. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16133. -$as_echo "$ac_try_echo") >&5
  16134. - (eval "$ac_compile") 2>conftest.er1
  16135. - ac_status=$?
  16136. - grep -v '^ *+' conftest.er1 >conftest.err
  16137. - rm -f conftest.er1
  16138. - cat conftest.err >&5
  16139. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16140. - (exit $ac_status); } && {
  16141. - test -z "$ac_c_werror_flag" ||
  16142. - test ! -s conftest.err
  16143. - } && test -s conftest.$ac_objext; then
  16144. + if ac_fn_c_try_compile "$LINENO"; then :
  16145. ac_cv_prog_cc_c89=$ac_arg
  16146. -else
  16147. - $as_echo "$as_me: failed program was:" >&5
  16148. -sed 's/^/| /' conftest.$ac_ext >&5
  16149. -
  16150. -
  16151. fi
  16152. -
  16153. rm -f core conftest.err conftest.$ac_objext
  16154. test "x$ac_cv_prog_cc_c89" != "xno" && break
  16155. done
  16156. @@ -3466,17 +3787,19 @@
  16157. # AC_CACHE_VAL
  16158. case "x$ac_cv_prog_cc_c89" in
  16159. x)
  16160. - { $as_echo "$as_me:$LINENO: result: none needed" >&5
  16161. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  16162. $as_echo "none needed" >&6; } ;;
  16163. xno)
  16164. - { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  16165. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  16166. $as_echo "unsupported" >&6; } ;;
  16167. *)
  16168. CC="$CC $ac_cv_prog_cc_c89"
  16169. - { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  16170. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  16171. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  16172. esac
  16173. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  16174. +fi
  16175. ac_ext=c
  16176. ac_cpp='$CPP $CPPFLAGS'
  16177. @@ -3491,44 +3814,44 @@
  16178. am_make=${MAKE-make}
  16179. cat > confinc << 'END'
  16180. am__doit:
  16181. - @echo done
  16182. + @echo this is the am__doit target
  16183. .PHONY: am__doit
  16184. END
  16185. # If we don't find an include directive, just comment out the code.
  16186. -{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  16187. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  16188. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  16189. am__include="#"
  16190. am__quote=
  16191. _am_result=none
  16192. # First try GNU make style include.
  16193. echo "include confinc" > confmf
  16194. -# We grep out `Entering directory' and `Leaving directory'
  16195. -# messages which can occur if `w' ends up in MAKEFLAGS.
  16196. -# In particular we don't look at `^make:' because GNU make might
  16197. -# be invoked under some other name (usually "gmake"), in which
  16198. -# case it prints its new name instead of `make'.
  16199. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  16200. - am__include=include
  16201. - am__quote=
  16202. - _am_result=GNU
  16203. -fi
  16204. +# Ignore all kinds of additional output from `make'.
  16205. +case `$am_make -s -f confmf 2> /dev/null` in #(
  16206. +*the\ am__doit\ target*)
  16207. + am__include=include
  16208. + am__quote=
  16209. + _am_result=GNU
  16210. + ;;
  16211. +esac
  16212. # Now try BSD make style include.
  16213. if test "$am__include" = "#"; then
  16214. echo '.include "confinc"' > confmf
  16215. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  16216. - am__include=.include
  16217. - am__quote="\""
  16218. - _am_result=BSD
  16219. - fi
  16220. + case `$am_make -s -f confmf 2> /dev/null` in #(
  16221. + *the\ am__doit\ target*)
  16222. + am__include=.include
  16223. + am__quote="\""
  16224. + _am_result=BSD
  16225. + ;;
  16226. + esac
  16227. fi
  16228. -{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  16229. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  16230. $as_echo "$_am_result" >&6; }
  16231. rm -f confinc confmf
  16232. # Check whether --enable-dependency-tracking was given.
  16233. -if test "${enable_dependency_tracking+set}" = set; then
  16234. +if test "${enable_dependency_tracking+set}" = set; then :
  16235. enableval=$enable_dependency_tracking;
  16236. fi
  16237. @@ -3548,9 +3871,9 @@
  16238. depcc="$CC" am_compiler_list=
  16239. -{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  16240. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  16241. $as_echo_n "checking dependency style of $depcc... " >&6; }
  16242. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  16243. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  16244. $as_echo_n "(cached) " >&6
  16245. else
  16246. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  16247. @@ -3576,6 +3899,11 @@
  16248. if test "$am_compiler_list" = ""; then
  16249. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  16250. fi
  16251. + am__universal=false
  16252. + case " $depcc " in #(
  16253. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  16254. + esac
  16255. +
  16256. for depmode in $am_compiler_list; do
  16257. # Setup a source with many dependencies, because some compilers
  16258. # like to wrap large dependency lists on column 80 (with \), and
  16259. @@ -3593,7 +3921,17 @@
  16260. done
  16261. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  16262. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  16263. + # mode. It turns out that the SunPro C++ compiler does not properly
  16264. + # handle `-M -o', and we need to detect this. Also, some Intel
  16265. + # versions had trouble with output in subdirs
  16266. + am__obj=sub/conftest.${OBJEXT-o}
  16267. + am__minus_obj="-o $am__obj"
  16268. case $depmode in
  16269. + gcc)
  16270. + # This depmode causes a compiler race in universal mode.
  16271. + test "$am__universal" = false || continue
  16272. + ;;
  16273. nosideeffect)
  16274. # after this tag, mechanisms are not by side-effect, so they'll
  16275. # only be used when explicitly requested
  16276. @@ -3603,19 +3941,23 @@
  16277. break
  16278. fi
  16279. ;;
  16280. + msvisualcpp | msvcmsys)
  16281. + # This compiler won't grok `-c -o', but also, the minuso test has
  16282. + # not run yet. These depmodes are late enough in the game, and
  16283. + # so weak that their functioning should not be impacted.
  16284. + am__obj=conftest.${OBJEXT-o}
  16285. + am__minus_obj=
  16286. + ;;
  16287. none) break ;;
  16288. esac
  16289. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  16290. - # mode. It turns out that the SunPro C++ compiler does not properly
  16291. - # handle `-M -o', and we need to detect this.
  16292. if depmode=$depmode \
  16293. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  16294. + source=sub/conftest.c object=$am__obj \
  16295. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  16296. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  16297. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  16298. >/dev/null 2>conftest.err &&
  16299. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  16300. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  16301. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  16302. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  16303. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  16304. # icc doesn't choke on unknown options, it will just issue warnings
  16305. # or remarks (even with -Werror). So we grep stderr for any message
  16306. @@ -3639,7 +3981,7 @@
  16307. fi
  16308. fi
  16309. -{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  16310. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  16311. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  16312. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  16313. @@ -3660,14 +4002,14 @@
  16314. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16315. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16316. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16317. -{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  16318. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16319. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  16320. # On Suns, sometimes $CPP names a directory.
  16321. if test -n "$CPP" && test -d "$CPP"; then
  16322. CPP=
  16323. fi
  16324. if test -z "$CPP"; then
  16325. - if test "${ac_cv_prog_CPP+set}" = set; then
  16326. + if test "${ac_cv_prog_CPP+set}" = set; then :
  16327. $as_echo_n "(cached) " >&6
  16328. else
  16329. # Double quotes because CPP needs to be expanded
  16330. @@ -3682,11 +4024,7 @@
  16331. # <limits.h> exists even on freestanding compilers.
  16332. # On the NeXT, cc -E runs the code through the compiler's parser,
  16333. # not just through cpp. "Syntax error" is here to catch this case.
  16334. - cat >conftest.$ac_ext <<_ACEOF
  16335. -/* confdefs.h. */
  16336. -_ACEOF
  16337. -cat confdefs.h >>conftest.$ac_ext
  16338. -cat >>conftest.$ac_ext <<_ACEOF
  16339. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16340. /* end confdefs.h. */
  16341. #ifdef __STDC__
  16342. # include <limits.h>
  16343. @@ -3695,78 +4033,34 @@
  16344. #endif
  16345. Syntax error
  16346. _ACEOF
  16347. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  16348. -case "(($ac_try" in
  16349. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16350. - *) ac_try_echo=$ac_try;;
  16351. -esac
  16352. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16353. -$as_echo "$ac_try_echo") >&5
  16354. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16355. - ac_status=$?
  16356. - grep -v '^ *+' conftest.er1 >conftest.err
  16357. - rm -f conftest.er1
  16358. - cat conftest.err >&5
  16359. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16360. - (exit $ac_status); } >/dev/null && {
  16361. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16362. - test ! -s conftest.err
  16363. - }; then
  16364. - :
  16365. -else
  16366. - $as_echo "$as_me: failed program was:" >&5
  16367. -sed 's/^/| /' conftest.$ac_ext >&5
  16368. +if ac_fn_c_try_cpp "$LINENO"; then :
  16369. +else
  16370. # Broken: fails on valid input.
  16371. continue
  16372. fi
  16373. -
  16374. rm -f conftest.err conftest.$ac_ext
  16375. # OK, works on sane cases. Now check whether nonexistent headers
  16376. # can be detected and how.
  16377. - cat >conftest.$ac_ext <<_ACEOF
  16378. -/* confdefs.h. */
  16379. -_ACEOF
  16380. -cat confdefs.h >>conftest.$ac_ext
  16381. -cat >>conftest.$ac_ext <<_ACEOF
  16382. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16383. /* end confdefs.h. */
  16384. #include <ac_nonexistent.h>
  16385. _ACEOF
  16386. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  16387. -case "(($ac_try" in
  16388. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16389. - *) ac_try_echo=$ac_try;;
  16390. -esac
  16391. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16392. -$as_echo "$ac_try_echo") >&5
  16393. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16394. - ac_status=$?
  16395. - grep -v '^ *+' conftest.er1 >conftest.err
  16396. - rm -f conftest.er1
  16397. - cat conftest.err >&5
  16398. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16399. - (exit $ac_status); } >/dev/null && {
  16400. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16401. - test ! -s conftest.err
  16402. - }; then
  16403. +if ac_fn_c_try_cpp "$LINENO"; then :
  16404. # Broken: success on invalid input.
  16405. continue
  16406. else
  16407. - $as_echo "$as_me: failed program was:" >&5
  16408. -sed 's/^/| /' conftest.$ac_ext >&5
  16409. -
  16410. # Passes both tests.
  16411. ac_preproc_ok=:
  16412. break
  16413. fi
  16414. -
  16415. rm -f conftest.err conftest.$ac_ext
  16416. done
  16417. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16418. rm -f conftest.err conftest.$ac_ext
  16419. -if $ac_preproc_ok; then
  16420. +if $ac_preproc_ok; then :
  16421. break
  16422. fi
  16423. @@ -3778,7 +4072,7 @@
  16424. else
  16425. ac_cv_prog_CPP=$CPP
  16426. fi
  16427. -{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
  16428. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16429. $as_echo "$CPP" >&6; }
  16430. ac_preproc_ok=false
  16431. for ac_c_preproc_warn_flag in '' yes
  16432. @@ -3789,11 +4083,7 @@
  16433. # <limits.h> exists even on freestanding compilers.
  16434. # On the NeXT, cc -E runs the code through the compiler's parser,
  16435. # not just through cpp. "Syntax error" is here to catch this case.
  16436. - cat >conftest.$ac_ext <<_ACEOF
  16437. -/* confdefs.h. */
  16438. -_ACEOF
  16439. -cat confdefs.h >>conftest.$ac_ext
  16440. -cat >>conftest.$ac_ext <<_ACEOF
  16441. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16442. /* end confdefs.h. */
  16443. #ifdef __STDC__
  16444. # include <limits.h>
  16445. @@ -3802,85 +4092,40 @@
  16446. #endif
  16447. Syntax error
  16448. _ACEOF
  16449. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  16450. -case "(($ac_try" in
  16451. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16452. - *) ac_try_echo=$ac_try;;
  16453. -esac
  16454. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16455. -$as_echo "$ac_try_echo") >&5
  16456. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16457. - ac_status=$?
  16458. - grep -v '^ *+' conftest.er1 >conftest.err
  16459. - rm -f conftest.er1
  16460. - cat conftest.err >&5
  16461. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16462. - (exit $ac_status); } >/dev/null && {
  16463. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16464. - test ! -s conftest.err
  16465. - }; then
  16466. - :
  16467. -else
  16468. - $as_echo "$as_me: failed program was:" >&5
  16469. -sed 's/^/| /' conftest.$ac_ext >&5
  16470. +if ac_fn_c_try_cpp "$LINENO"; then :
  16471. +else
  16472. # Broken: fails on valid input.
  16473. continue
  16474. fi
  16475. -
  16476. rm -f conftest.err conftest.$ac_ext
  16477. # OK, works on sane cases. Now check whether nonexistent headers
  16478. # can be detected and how.
  16479. - cat >conftest.$ac_ext <<_ACEOF
  16480. -/* confdefs.h. */
  16481. -_ACEOF
  16482. -cat confdefs.h >>conftest.$ac_ext
  16483. -cat >>conftest.$ac_ext <<_ACEOF
  16484. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16485. /* end confdefs.h. */
  16486. #include <ac_nonexistent.h>
  16487. _ACEOF
  16488. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  16489. -case "(($ac_try" in
  16490. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16491. - *) ac_try_echo=$ac_try;;
  16492. -esac
  16493. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16494. -$as_echo "$ac_try_echo") >&5
  16495. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16496. - ac_status=$?
  16497. - grep -v '^ *+' conftest.er1 >conftest.err
  16498. - rm -f conftest.er1
  16499. - cat conftest.err >&5
  16500. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16501. - (exit $ac_status); } >/dev/null && {
  16502. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16503. - test ! -s conftest.err
  16504. - }; then
  16505. +if ac_fn_c_try_cpp "$LINENO"; then :
  16506. # Broken: success on invalid input.
  16507. continue
  16508. else
  16509. - $as_echo "$as_me: failed program was:" >&5
  16510. -sed 's/^/| /' conftest.$ac_ext >&5
  16511. -
  16512. # Passes both tests.
  16513. ac_preproc_ok=:
  16514. break
  16515. fi
  16516. -
  16517. rm -f conftest.err conftest.$ac_ext
  16518. done
  16519. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16520. rm -f conftest.err conftest.$ac_ext
  16521. -if $ac_preproc_ok; then
  16522. - :
  16523. +if $ac_preproc_ok; then :
  16524. +
  16525. else
  16526. - { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  16527. -See \`config.log' for more details." >&5
  16528. -$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  16529. -See \`config.log' for more details." >&2;}
  16530. - { (exit 1); exit 1; }; }
  16531. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16532. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16533. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  16534. +See \`config.log' for more details." "$LINENO" 5; }
  16535. fi
  16536. ac_ext=c
  16537. @@ -3890,9 +4135,9 @@
  16538. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16539. -{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  16540. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  16541. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  16542. -if test "${ac_cv_path_GREP+set}" = set; then
  16543. +if test "${ac_cv_path_GREP+set}" = set; then :
  16544. $as_echo_n "(cached) " >&6
  16545. else
  16546. if test -z "$GREP"; then
  16547. @@ -3903,7 +4148,7 @@
  16548. do
  16549. IFS=$as_save_IFS
  16550. test -z "$as_dir" && as_dir=.
  16551. - for ac_prog in grep ggrep; do
  16552. + for ac_prog in grep ggrep; do
  16553. for ac_exec_ext in '' $ac_executable_extensions; do
  16554. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  16555. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  16556. @@ -3923,7 +4168,7 @@
  16557. $as_echo 'GREP' >> "conftest.nl"
  16558. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  16559. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  16560. - ac_count=`expr $ac_count + 1`
  16561. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  16562. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  16563. # Best one so far, save it but keep looking for a better one
  16564. ac_cv_path_GREP="$ac_path_GREP"
  16565. @@ -3938,26 +4183,24 @@
  16566. $ac_path_GREP_found && break 3
  16567. done
  16568. done
  16569. -done
  16570. + done
  16571. IFS=$as_save_IFS
  16572. if test -z "$ac_cv_path_GREP"; then
  16573. - { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  16574. -$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  16575. - { (exit 1); exit 1; }; }
  16576. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  16577. fi
  16578. else
  16579. ac_cv_path_GREP=$GREP
  16580. fi
  16581. fi
  16582. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  16583. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  16584. $as_echo "$ac_cv_path_GREP" >&6; }
  16585. GREP="$ac_cv_path_GREP"
  16586. -{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
  16587. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  16588. $as_echo_n "checking for egrep... " >&6; }
  16589. -if test "${ac_cv_path_EGREP+set}" = set; then
  16590. +if test "${ac_cv_path_EGREP+set}" = set; then :
  16591. $as_echo_n "(cached) " >&6
  16592. else
  16593. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  16594. @@ -3971,7 +4214,7 @@
  16595. do
  16596. IFS=$as_save_IFS
  16597. test -z "$as_dir" && as_dir=.
  16598. - for ac_prog in egrep; do
  16599. + for ac_prog in egrep; do
  16600. for ac_exec_ext in '' $ac_executable_extensions; do
  16601. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  16602. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  16603. @@ -3991,7 +4234,7 @@
  16604. $as_echo 'EGREP' >> "conftest.nl"
  16605. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  16606. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  16607. - ac_count=`expr $ac_count + 1`
  16608. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  16609. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  16610. # Best one so far, save it but keep looking for a better one
  16611. ac_cv_path_EGREP="$ac_path_EGREP"
  16612. @@ -4006,12 +4249,10 @@
  16613. $ac_path_EGREP_found && break 3
  16614. done
  16615. done
  16616. -done
  16617. + done
  16618. IFS=$as_save_IFS
  16619. if test -z "$ac_cv_path_EGREP"; then
  16620. - { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  16621. -$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  16622. - { (exit 1); exit 1; }; }
  16623. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  16624. fi
  16625. else
  16626. ac_cv_path_EGREP=$EGREP
  16627. @@ -4019,21 +4260,17 @@
  16628. fi
  16629. fi
  16630. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  16631. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  16632. $as_echo "$ac_cv_path_EGREP" >&6; }
  16633. EGREP="$ac_cv_path_EGREP"
  16634. -{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  16635. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  16636. $as_echo_n "checking for ANSI C header files... " >&6; }
  16637. -if test "${ac_cv_header_stdc+set}" = set; then
  16638. +if test "${ac_cv_header_stdc+set}" = set; then :
  16639. $as_echo_n "(cached) " >&6
  16640. else
  16641. - cat >conftest.$ac_ext <<_ACEOF
  16642. -/* confdefs.h. */
  16643. -_ACEOF
  16644. -cat confdefs.h >>conftest.$ac_ext
  16645. -cat >>conftest.$ac_ext <<_ACEOF
  16646. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16647. /* end confdefs.h. */
  16648. #include <stdlib.h>
  16649. #include <stdarg.h>
  16650. @@ -4048,48 +4285,23 @@
  16651. return 0;
  16652. }
  16653. _ACEOF
  16654. -rm -f conftest.$ac_objext
  16655. -if { (ac_try="$ac_compile"
  16656. -case "(($ac_try" in
  16657. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16658. - *) ac_try_echo=$ac_try;;
  16659. -esac
  16660. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16661. -$as_echo "$ac_try_echo") >&5
  16662. - (eval "$ac_compile") 2>conftest.er1
  16663. - ac_status=$?
  16664. - grep -v '^ *+' conftest.er1 >conftest.err
  16665. - rm -f conftest.er1
  16666. - cat conftest.err >&5
  16667. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16668. - (exit $ac_status); } && {
  16669. - test -z "$ac_c_werror_flag" ||
  16670. - test ! -s conftest.err
  16671. - } && test -s conftest.$ac_objext; then
  16672. +if ac_fn_c_try_compile "$LINENO"; then :
  16673. ac_cv_header_stdc=yes
  16674. else
  16675. - $as_echo "$as_me: failed program was:" >&5
  16676. -sed 's/^/| /' conftest.$ac_ext >&5
  16677. -
  16678. - ac_cv_header_stdc=no
  16679. + ac_cv_header_stdc=no
  16680. fi
  16681. -
  16682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16683. if test $ac_cv_header_stdc = yes; then
  16684. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  16685. - cat >conftest.$ac_ext <<_ACEOF
  16686. -/* confdefs.h. */
  16687. -_ACEOF
  16688. -cat confdefs.h >>conftest.$ac_ext
  16689. -cat >>conftest.$ac_ext <<_ACEOF
  16690. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16691. /* end confdefs.h. */
  16692. #include <string.h>
  16693. _ACEOF
  16694. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16695. - $EGREP "memchr" >/dev/null 2>&1; then
  16696. - :
  16697. + $EGREP "memchr" >/dev/null 2>&1; then :
  16698. +
  16699. else
  16700. ac_cv_header_stdc=no
  16701. fi
  16702. @@ -4099,18 +4311,14 @@
  16703. if test $ac_cv_header_stdc = yes; then
  16704. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  16705. - cat >conftest.$ac_ext <<_ACEOF
  16706. -/* confdefs.h. */
  16707. -_ACEOF
  16708. -cat confdefs.h >>conftest.$ac_ext
  16709. -cat >>conftest.$ac_ext <<_ACEOF
  16710. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16711. /* end confdefs.h. */
  16712. #include <stdlib.h>
  16713. _ACEOF
  16714. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16715. - $EGREP "free" >/dev/null 2>&1; then
  16716. - :
  16717. + $EGREP "free" >/dev/null 2>&1; then :
  16718. +
  16719. else
  16720. ac_cv_header_stdc=no
  16721. fi
  16722. @@ -4120,14 +4328,10 @@
  16723. if test $ac_cv_header_stdc = yes; then
  16724. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  16725. - if test "$cross_compiling" = yes; then
  16726. + if test "$cross_compiling" = yes; then :
  16727. :
  16728. else
  16729. - cat >conftest.$ac_ext <<_ACEOF
  16730. -/* confdefs.h. */
  16731. -_ACEOF
  16732. -cat confdefs.h >>conftest.$ac_ext
  16733. -cat >>conftest.$ac_ext <<_ACEOF
  16734. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16735. /* end confdefs.h. */
  16736. #include <ctype.h>
  16737. #include <stdlib.h>
  16738. @@ -4154,117 +4358,34 @@
  16739. return 0;
  16740. }
  16741. _ACEOF
  16742. -rm -f conftest$ac_exeext
  16743. -if { (ac_try="$ac_link"
  16744. -case "(($ac_try" in
  16745. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16746. - *) ac_try_echo=$ac_try;;
  16747. -esac
  16748. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16749. -$as_echo "$ac_try_echo") >&5
  16750. - (eval "$ac_link") 2>&5
  16751. - ac_status=$?
  16752. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16753. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16754. - { (case "(($ac_try" in
  16755. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16756. - *) ac_try_echo=$ac_try;;
  16757. -esac
  16758. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16759. -$as_echo "$ac_try_echo") >&5
  16760. - (eval "$ac_try") 2>&5
  16761. - ac_status=$?
  16762. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16763. - (exit $ac_status); }; }; then
  16764. - :
  16765. -else
  16766. - $as_echo "$as_me: program exited with status $ac_status" >&5
  16767. -$as_echo "$as_me: failed program was:" >&5
  16768. -sed 's/^/| /' conftest.$ac_ext >&5
  16769. +if ac_fn_c_try_run "$LINENO"; then :
  16770. -( exit $ac_status )
  16771. -ac_cv_header_stdc=no
  16772. +else
  16773. + ac_cv_header_stdc=no
  16774. fi
  16775. -rm -rf conftest.dSYM
  16776. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16777. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16778. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  16779. fi
  16780. -
  16781. fi
  16782. fi
  16783. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  16784. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  16785. $as_echo "$ac_cv_header_stdc" >&6; }
  16786. if test $ac_cv_header_stdc = yes; then
  16787. -cat >>confdefs.h <<\_ACEOF
  16788. -#define STDC_HEADERS 1
  16789. -_ACEOF
  16790. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  16791. fi
  16792. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  16793. -
  16794. -
  16795. -
  16796. -
  16797. -
  16798. -
  16799. -
  16800. -
  16801. -
  16802. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  16803. inttypes.h stdint.h unistd.h
  16804. -do
  16805. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16806. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16807. -$as_echo_n "checking for $ac_header... " >&6; }
  16808. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16809. - $as_echo_n "(cached) " >&6
  16810. -else
  16811. - cat >conftest.$ac_ext <<_ACEOF
  16812. -/* confdefs.h. */
  16813. -_ACEOF
  16814. -cat confdefs.h >>conftest.$ac_ext
  16815. -cat >>conftest.$ac_ext <<_ACEOF
  16816. -/* end confdefs.h. */
  16817. -$ac_includes_default
  16818. -
  16819. -#include <$ac_header>
  16820. -_ACEOF
  16821. -rm -f conftest.$ac_objext
  16822. -if { (ac_try="$ac_compile"
  16823. -case "(($ac_try" in
  16824. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16825. - *) ac_try_echo=$ac_try;;
  16826. -esac
  16827. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16828. -$as_echo "$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. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16835. - (exit $ac_status); } && {
  16836. - test -z "$ac_c_werror_flag" ||
  16837. - test ! -s conftest.err
  16838. - } && test -s conftest.$ac_objext; then
  16839. - eval "$as_ac_Header=yes"
  16840. -else
  16841. - $as_echo "$as_me: failed program was:" >&5
  16842. -sed 's/^/| /' conftest.$ac_ext >&5
  16843. -
  16844. - eval "$as_ac_Header=no"
  16845. -fi
  16846. -
  16847. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16848. -fi
  16849. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  16850. - $as_echo "$as_val"'`
  16851. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16852. -$as_echo "$ac_res" >&6; }
  16853. -if test `eval 'as_val=${'$as_ac_Header'}
  16854. - $as_echo "$as_val"'` = yes; then
  16855. +do :
  16856. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16857. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  16858. +"
  16859. +eval as_val=\$$as_ac_Header
  16860. + if test "x$as_val" = x""yes; then :
  16861. cat >>confdefs.h <<_ACEOF
  16862. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16863. _ACEOF
  16864. @@ -4275,139 +4396,8 @@
  16865. - if test "${ac_cv_header_minix_config_h+set}" = set; then
  16866. - { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  16867. -$as_echo_n "checking for minix/config.h... " >&6; }
  16868. -if test "${ac_cv_header_minix_config_h+set}" = set; then
  16869. - $as_echo_n "(cached) " >&6
  16870. -fi
  16871. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  16872. -$as_echo "$ac_cv_header_minix_config_h" >&6; }
  16873. -else
  16874. - # Is the header compilable?
  16875. -{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  16876. -$as_echo_n "checking minix/config.h usability... " >&6; }
  16877. -cat >conftest.$ac_ext <<_ACEOF
  16878. -/* confdefs.h. */
  16879. -_ACEOF
  16880. -cat confdefs.h >>conftest.$ac_ext
  16881. -cat >>conftest.$ac_ext <<_ACEOF
  16882. -/* end confdefs.h. */
  16883. -$ac_includes_default
  16884. -#include <minix/config.h>
  16885. -_ACEOF
  16886. -rm -f conftest.$ac_objext
  16887. -if { (ac_try="$ac_compile"
  16888. -case "(($ac_try" in
  16889. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16890. - *) ac_try_echo=$ac_try;;
  16891. -esac
  16892. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16893. -$as_echo "$ac_try_echo") >&5
  16894. - (eval "$ac_compile") 2>conftest.er1
  16895. - ac_status=$?
  16896. - grep -v '^ *+' conftest.er1 >conftest.err
  16897. - rm -f conftest.er1
  16898. - cat conftest.err >&5
  16899. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16900. - (exit $ac_status); } && {
  16901. - test -z "$ac_c_werror_flag" ||
  16902. - test ! -s conftest.err
  16903. - } && test -s conftest.$ac_objext; then
  16904. - ac_header_compiler=yes
  16905. -else
  16906. - $as_echo "$as_me: failed program was:" >&5
  16907. -sed 's/^/| /' conftest.$ac_ext >&5
  16908. -
  16909. - ac_header_compiler=no
  16910. -fi
  16911. -
  16912. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16913. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16914. -$as_echo "$ac_header_compiler" >&6; }
  16915. -
  16916. -# Is the header present?
  16917. -{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  16918. -$as_echo_n "checking minix/config.h presence... " >&6; }
  16919. -cat >conftest.$ac_ext <<_ACEOF
  16920. -/* confdefs.h. */
  16921. -_ACEOF
  16922. -cat confdefs.h >>conftest.$ac_ext
  16923. -cat >>conftest.$ac_ext <<_ACEOF
  16924. -/* end confdefs.h. */
  16925. -#include <minix/config.h>
  16926. -_ACEOF
  16927. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  16928. -case "(($ac_try" in
  16929. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16930. - *) ac_try_echo=$ac_try;;
  16931. -esac
  16932. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16933. -$as_echo "$ac_try_echo") >&5
  16934. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16935. - ac_status=$?
  16936. - grep -v '^ *+' conftest.er1 >conftest.err
  16937. - rm -f conftest.er1
  16938. - cat conftest.err >&5
  16939. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16940. - (exit $ac_status); } >/dev/null && {
  16941. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16942. - test ! -s conftest.err
  16943. - }; then
  16944. - ac_header_preproc=yes
  16945. -else
  16946. - $as_echo "$as_me: failed program was:" >&5
  16947. -sed 's/^/| /' conftest.$ac_ext >&5
  16948. -
  16949. - ac_header_preproc=no
  16950. -fi
  16951. -
  16952. -rm -f conftest.err conftest.$ac_ext
  16953. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16954. -$as_echo "$ac_header_preproc" >&6; }
  16955. -
  16956. -# So? What about this header?
  16957. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16958. - yes:no: )
  16959. - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  16960. -$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16961. - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  16962. -$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  16963. - ac_header_preproc=yes
  16964. - ;;
  16965. - no:yes:* )
  16966. - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  16967. -$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  16968. - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  16969. -$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  16970. - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  16971. -$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  16972. - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  16973. -$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  16974. - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  16975. -$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  16976. - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  16977. -$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  16978. - ( cat <<\_ASBOX
  16979. -## ---------------------------------------------- ##
  16980. -## Report this to mzqnrzba (at) 0pointer (dot) de ##
  16981. -## ---------------------------------------------- ##
  16982. -_ASBOX
  16983. - ) | sed "s/^/$as_me: WARNING: /" >&2
  16984. - ;;
  16985. -esac
  16986. -{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  16987. -$as_echo_n "checking for minix/config.h... " >&6; }
  16988. -if test "${ac_cv_header_minix_config_h+set}" = set; then
  16989. - $as_echo_n "(cached) " >&6
  16990. -else
  16991. - ac_cv_header_minix_config_h=$ac_header_preproc
  16992. -fi
  16993. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  16994. -$as_echo "$ac_cv_header_minix_config_h" >&6; }
  16995. -
  16996. -fi
  16997. -if test $ac_cv_header_minix_config_h = yes; then
  16998. + ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  16999. +if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  17000. MINIX=yes
  17001. else
  17002. MINIX=
  17003. @@ -4416,34 +4406,23 @@
  17004. if test "$MINIX" = yes; then
  17005. -cat >>confdefs.h <<\_ACEOF
  17006. -#define _POSIX_SOURCE 1
  17007. -_ACEOF
  17008. +$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  17009. -cat >>confdefs.h <<\_ACEOF
  17010. -#define _POSIX_1_SOURCE 2
  17011. -_ACEOF
  17012. +$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  17013. -cat >>confdefs.h <<\_ACEOF
  17014. -#define _MINIX 1
  17015. -_ACEOF
  17016. +$as_echo "#define _MINIX 1" >>confdefs.h
  17017. fi
  17018. -
  17019. - { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  17020. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  17021. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  17022. -if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  17023. +if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  17024. $as_echo_n "(cached) " >&6
  17025. else
  17026. - cat >conftest.$ac_ext <<_ACEOF
  17027. -/* confdefs.h. */
  17028. -_ACEOF
  17029. -cat confdefs.h >>conftest.$ac_ext
  17030. -cat >>conftest.$ac_ext <<_ACEOF
  17031. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17032. /* end confdefs.h. */
  17033. # define __EXTENSIONS__ 1
  17034. @@ -4456,56 +4435,26 @@
  17035. return 0;
  17036. }
  17037. _ACEOF
  17038. -rm -f conftest.$ac_objext
  17039. -if { (ac_try="$ac_compile"
  17040. -case "(($ac_try" in
  17041. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17042. - *) ac_try_echo=$ac_try;;
  17043. -esac
  17044. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17045. -$as_echo "$ac_try_echo") >&5
  17046. - (eval "$ac_compile") 2>conftest.er1
  17047. - ac_status=$?
  17048. - grep -v '^ *+' conftest.er1 >conftest.err
  17049. - rm -f conftest.er1
  17050. - cat conftest.err >&5
  17051. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17052. - (exit $ac_status); } && {
  17053. - test -z "$ac_c_werror_flag" ||
  17054. - test ! -s conftest.err
  17055. - } && test -s conftest.$ac_objext; then
  17056. +if ac_fn_c_try_compile "$LINENO"; then :
  17057. ac_cv_safe_to_define___extensions__=yes
  17058. else
  17059. - $as_echo "$as_me: failed program was:" >&5
  17060. -sed 's/^/| /' conftest.$ac_ext >&5
  17061. -
  17062. - ac_cv_safe_to_define___extensions__=no
  17063. + ac_cv_safe_to_define___extensions__=no
  17064. fi
  17065. -
  17066. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17067. fi
  17068. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  17069. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  17070. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  17071. test $ac_cv_safe_to_define___extensions__ = yes &&
  17072. - cat >>confdefs.h <<\_ACEOF
  17073. -#define __EXTENSIONS__ 1
  17074. -_ACEOF
  17075. + $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  17076. - cat >>confdefs.h <<\_ACEOF
  17077. -#define _ALL_SOURCE 1
  17078. -_ACEOF
  17079. + $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  17080. - cat >>confdefs.h <<\_ACEOF
  17081. -#define _GNU_SOURCE 1
  17082. -_ACEOF
  17083. + $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  17084. - cat >>confdefs.h <<\_ACEOF
  17085. -#define _POSIX_PTHREAD_SEMANTICS 1
  17086. -_ACEOF
  17087. + $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  17088. +
  17089. + $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  17090. - cat >>confdefs.h <<\_ACEOF
  17091. -#define _TANDEM_SOURCE 1
  17092. -_ACEOF
  17093. ac_ext=cpp
  17094. @@ -4522,9 +4471,9 @@
  17095. do
  17096. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  17097. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  17098. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  17099. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17100. $as_echo_n "checking for $ac_word... " >&6; }
  17101. -if test "${ac_cv_prog_CXX+set}" = set; then
  17102. +if test "${ac_cv_prog_CXX+set}" = set; then :
  17103. $as_echo_n "(cached) " >&6
  17104. else
  17105. if test -n "$CXX"; then
  17106. @@ -4535,24 +4484,24 @@
  17107. do
  17108. IFS=$as_save_IFS
  17109. test -z "$as_dir" && as_dir=.
  17110. - for ac_exec_ext in '' $ac_executable_extensions; do
  17111. + for ac_exec_ext in '' $ac_executable_extensions; do
  17112. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17113. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  17114. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17115. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17116. break 2
  17117. fi
  17118. done
  17119. -done
  17120. + done
  17121. IFS=$as_save_IFS
  17122. fi
  17123. fi
  17124. CXX=$ac_cv_prog_CXX
  17125. if test -n "$CXX"; then
  17126. - { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  17127. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  17128. $as_echo "$CXX" >&6; }
  17129. else
  17130. - { $as_echo "$as_me:$LINENO: result: no" >&5
  17131. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17132. $as_echo "no" >&6; }
  17133. fi
  17134. @@ -4566,9 +4515,9 @@
  17135. do
  17136. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17137. set dummy $ac_prog; ac_word=$2
  17138. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  17139. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17140. $as_echo_n "checking for $ac_word... " >&6; }
  17141. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  17142. +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  17143. $as_echo_n "(cached) " >&6
  17144. else
  17145. if test -n "$ac_ct_CXX"; then
  17146. @@ -4579,24 +4528,24 @@
  17147. do
  17148. IFS=$as_save_IFS
  17149. test -z "$as_dir" && as_dir=.
  17150. - for ac_exec_ext in '' $ac_executable_extensions; do
  17151. + for ac_exec_ext in '' $ac_executable_extensions; do
  17152. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17153. ac_cv_prog_ac_ct_CXX="$ac_prog"
  17154. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17155. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17156. break 2
  17157. fi
  17158. done
  17159. -done
  17160. + done
  17161. IFS=$as_save_IFS
  17162. fi
  17163. fi
  17164. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  17165. if test -n "$ac_ct_CXX"; then
  17166. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  17167. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  17168. $as_echo "$ac_ct_CXX" >&6; }
  17169. else
  17170. - { $as_echo "$as_me:$LINENO: result: no" >&5
  17171. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17172. $as_echo "no" >&6; }
  17173. fi
  17174. @@ -4609,12 +4558,8 @@
  17175. else
  17176. case $cross_compiling:$ac_tool_warned in
  17177. yes:)
  17178. -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17179. -whose name does not start with the host triplet. If you think this
  17180. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  17181. -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17182. -whose name does not start with the host triplet. If you think this
  17183. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17184. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17185. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17186. ac_tool_warned=yes ;;
  17187. esac
  17188. CXX=$ac_ct_CXX
  17189. @@ -4624,53 +4569,36 @@
  17190. fi
  17191. fi
  17192. # Provide some information about the compiler.
  17193. -$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  17194. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  17195. set X $ac_compile
  17196. ac_compiler=$2
  17197. -{ (ac_try="$ac_compiler --version >&5"
  17198. -case "(($ac_try" in
  17199. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17200. - *) ac_try_echo=$ac_try;;
  17201. -esac
  17202. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17203. -$as_echo "$ac_try_echo") >&5
  17204. - (eval "$ac_compiler --version >&5") 2>&5
  17205. - ac_status=$?
  17206. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17207. - (exit $ac_status); }
  17208. -{ (ac_try="$ac_compiler -v >&5"
  17209. -case "(($ac_try" in
  17210. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17211. - *) ac_try_echo=$ac_try;;
  17212. -esac
  17213. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17214. -$as_echo "$ac_try_echo") >&5
  17215. - (eval "$ac_compiler -v >&5") 2>&5
  17216. - ac_status=$?
  17217. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17218. - (exit $ac_status); }
  17219. -{ (ac_try="$ac_compiler -V >&5"
  17220. +for ac_option in --version -v -V -qversion; do
  17221. + { { ac_try="$ac_compiler $ac_option >&5"
  17222. case "(($ac_try" in
  17223. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17224. *) ac_try_echo=$ac_try;;
  17225. esac
  17226. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17227. -$as_echo "$ac_try_echo") >&5
  17228. - (eval "$ac_compiler -V >&5") 2>&5
  17229. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17230. +$as_echo "$ac_try_echo"; } >&5
  17231. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  17232. ac_status=$?
  17233. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17234. - (exit $ac_status); }
  17235. + if test -s conftest.err; then
  17236. + sed '10a\
  17237. +... rest of stderr output deleted ...
  17238. + 10q' conftest.err >conftest.er1
  17239. + cat conftest.er1 >&5
  17240. + fi
  17241. + rm -f conftest.er1 conftest.err
  17242. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17243. + test $ac_status = 0; }
  17244. +done
  17245. -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  17246. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  17247. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  17248. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  17249. +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  17250. $as_echo_n "(cached) " >&6
  17251. else
  17252. - cat >conftest.$ac_ext <<_ACEOF
  17253. -/* confdefs.h. */
  17254. -_ACEOF
  17255. -cat confdefs.h >>conftest.$ac_ext
  17256. -cat >>conftest.$ac_ext <<_ACEOF
  17257. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17258. /* end confdefs.h. */
  17259. int
  17260. @@ -4684,37 +4612,16 @@
  17261. return 0;
  17262. }
  17263. _ACEOF
  17264. -rm -f conftest.$ac_objext
  17265. -if { (ac_try="$ac_compile"
  17266. -case "(($ac_try" in
  17267. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17268. - *) ac_try_echo=$ac_try;;
  17269. -esac
  17270. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17271. -$as_echo "$ac_try_echo") >&5
  17272. - (eval "$ac_compile") 2>conftest.er1
  17273. - ac_status=$?
  17274. - grep -v '^ *+' conftest.er1 >conftest.err
  17275. - rm -f conftest.er1
  17276. - cat conftest.err >&5
  17277. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17278. - (exit $ac_status); } && {
  17279. - test -z "$ac_cxx_werror_flag" ||
  17280. - test ! -s conftest.err
  17281. - } && test -s conftest.$ac_objext; then
  17282. +if ac_fn_cxx_try_compile "$LINENO"; then :
  17283. ac_compiler_gnu=yes
  17284. else
  17285. - $as_echo "$as_me: failed program was:" >&5
  17286. -sed 's/^/| /' conftest.$ac_ext >&5
  17287. -
  17288. - ac_compiler_gnu=no
  17289. + ac_compiler_gnu=no
  17290. fi
  17291. -
  17292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17293. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  17294. fi
  17295. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  17296. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  17297. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  17298. if test $ac_compiler_gnu = yes; then
  17299. GXX=yes
  17300. @@ -4723,20 +4630,16 @@
  17301. fi
  17302. ac_test_CXXFLAGS=${CXXFLAGS+set}
  17303. ac_save_CXXFLAGS=$CXXFLAGS
  17304. -{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  17305. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  17306. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  17307. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  17308. +if test "${ac_cv_prog_cxx_g+set}" = set; then :
  17309. $as_echo_n "(cached) " >&6
  17310. else
  17311. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  17312. ac_cxx_werror_flag=yes
  17313. ac_cv_prog_cxx_g=no
  17314. CXXFLAGS="-g"
  17315. - cat >conftest.$ac_ext <<_ACEOF
  17316. -/* confdefs.h. */
  17317. -_ACEOF
  17318. -cat confdefs.h >>conftest.$ac_ext
  17319. -cat >>conftest.$ac_ext <<_ACEOF
  17320. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17321. /* end confdefs.h. */
  17322. int
  17323. @@ -4747,35 +4650,11 @@
  17324. return 0;
  17325. }
  17326. _ACEOF
  17327. -rm -f conftest.$ac_objext
  17328. -if { (ac_try="$ac_compile"
  17329. -case "(($ac_try" in
  17330. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17331. - *) ac_try_echo=$ac_try;;
  17332. -esac
  17333. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17334. -$as_echo "$ac_try_echo") >&5
  17335. - (eval "$ac_compile") 2>conftest.er1
  17336. - ac_status=$?
  17337. - grep -v '^ *+' conftest.er1 >conftest.err
  17338. - rm -f conftest.er1
  17339. - cat conftest.err >&5
  17340. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17341. - (exit $ac_status); } && {
  17342. - test -z "$ac_cxx_werror_flag" ||
  17343. - test ! -s conftest.err
  17344. - } && test -s conftest.$ac_objext; then
  17345. +if ac_fn_cxx_try_compile "$LINENO"; then :
  17346. ac_cv_prog_cxx_g=yes
  17347. else
  17348. - $as_echo "$as_me: failed program was:" >&5
  17349. -sed 's/^/| /' conftest.$ac_ext >&5
  17350. -
  17351. - CXXFLAGS=""
  17352. - cat >conftest.$ac_ext <<_ACEOF
  17353. -/* confdefs.h. */
  17354. -_ACEOF
  17355. -cat confdefs.h >>conftest.$ac_ext
  17356. -cat >>conftest.$ac_ext <<_ACEOF
  17357. + CXXFLAGS=""
  17358. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17359. /* end confdefs.h. */
  17360. int
  17361. @@ -4786,36 +4665,12 @@
  17362. return 0;
  17363. }
  17364. _ACEOF
  17365. -rm -f conftest.$ac_objext
  17366. -if { (ac_try="$ac_compile"
  17367. -case "(($ac_try" in
  17368. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17369. - *) ac_try_echo=$ac_try;;
  17370. -esac
  17371. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17372. -$as_echo "$ac_try_echo") >&5
  17373. - (eval "$ac_compile") 2>conftest.er1
  17374. - ac_status=$?
  17375. - grep -v '^ *+' conftest.er1 >conftest.err
  17376. - rm -f conftest.er1
  17377. - cat conftest.err >&5
  17378. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17379. - (exit $ac_status); } && {
  17380. - test -z "$ac_cxx_werror_flag" ||
  17381. - test ! -s conftest.err
  17382. - } && test -s conftest.$ac_objext; then
  17383. - :
  17384. -else
  17385. - $as_echo "$as_me: failed program was:" >&5
  17386. -sed 's/^/| /' conftest.$ac_ext >&5
  17387. +if ac_fn_cxx_try_compile "$LINENO"; then :
  17388. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  17389. +else
  17390. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  17391. CXXFLAGS="-g"
  17392. - cat >conftest.$ac_ext <<_ACEOF
  17393. -/* confdefs.h. */
  17394. -_ACEOF
  17395. -cat confdefs.h >>conftest.$ac_ext
  17396. -cat >>conftest.$ac_ext <<_ACEOF
  17397. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17398. /* end confdefs.h. */
  17399. int
  17400. @@ -4826,42 +4681,17 @@
  17401. return 0;
  17402. }
  17403. _ACEOF
  17404. -rm -f conftest.$ac_objext
  17405. -if { (ac_try="$ac_compile"
  17406. -case "(($ac_try" in
  17407. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17408. - *) ac_try_echo=$ac_try;;
  17409. -esac
  17410. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17411. -$as_echo "$ac_try_echo") >&5
  17412. - (eval "$ac_compile") 2>conftest.er1
  17413. - ac_status=$?
  17414. - grep -v '^ *+' conftest.er1 >conftest.err
  17415. - rm -f conftest.er1
  17416. - cat conftest.err >&5
  17417. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17418. - (exit $ac_status); } && {
  17419. - test -z "$ac_cxx_werror_flag" ||
  17420. - test ! -s conftest.err
  17421. - } && test -s conftest.$ac_objext; then
  17422. +if ac_fn_cxx_try_compile "$LINENO"; then :
  17423. ac_cv_prog_cxx_g=yes
  17424. -else
  17425. - $as_echo "$as_me: failed program was:" >&5
  17426. -sed 's/^/| /' conftest.$ac_ext >&5
  17427. -
  17428. -
  17429. fi
  17430. -
  17431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17432. fi
  17433. -
  17434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17435. fi
  17436. -
  17437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17438. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  17439. fi
  17440. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  17441. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  17442. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  17443. if test "$ac_test_CXXFLAGS" = set; then
  17444. CXXFLAGS=$ac_save_CXXFLAGS
  17445. @@ -4886,9 +4716,9 @@
  17446. depcc="$CXX" am_compiler_list=
  17447. -{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  17448. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  17449. $as_echo_n "checking dependency style of $depcc... " >&6; }
  17450. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  17451. +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  17452. $as_echo_n "(cached) " >&6
  17453. else
  17454. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  17455. @@ -4914,6 +4744,11 @@
  17456. if test "$am_compiler_list" = ""; then
  17457. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  17458. fi
  17459. + am__universal=false
  17460. + case " $depcc " in #(
  17461. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  17462. + esac
  17463. +
  17464. for depmode in $am_compiler_list; do
  17465. # Setup a source with many dependencies, because some compilers
  17466. # like to wrap large dependency lists on column 80 (with \), and
  17467. @@ -4931,7 +4766,17 @@
  17468. done
  17469. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  17470. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  17471. + # mode. It turns out that the SunPro C++ compiler does not properly
  17472. + # handle `-M -o', and we need to detect this. Also, some Intel
  17473. + # versions had trouble with output in subdirs
  17474. + am__obj=sub/conftest.${OBJEXT-o}
  17475. + am__minus_obj="-o $am__obj"
  17476. case $depmode in
  17477. + gcc)
  17478. + # This depmode causes a compiler race in universal mode.
  17479. + test "$am__universal" = false || continue
  17480. + ;;
  17481. nosideeffect)
  17482. # after this tag, mechanisms are not by side-effect, so they'll
  17483. # only be used when explicitly requested
  17484. @@ -4941,19 +4786,23 @@
  17485. break
  17486. fi
  17487. ;;
  17488. + msvisualcpp | msvcmsys)
  17489. + # This compiler won't grok `-c -o', but also, the minuso test has
  17490. + # not run yet. These depmodes are late enough in the game, and
  17491. + # so weak that their functioning should not be impacted.
  17492. + am__obj=conftest.${OBJEXT-o}
  17493. + am__minus_obj=
  17494. + ;;
  17495. none) break ;;
  17496. esac
  17497. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  17498. - # mode. It turns out that the SunPro C++ compiler does not properly
  17499. - # handle `-M -o', and we need to detect this.
  17500. if depmode=$depmode \
  17501. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  17502. + source=sub/conftest.c object=$am__obj \
  17503. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  17504. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  17505. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  17506. >/dev/null 2>conftest.err &&
  17507. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  17508. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  17509. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  17510. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  17511. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  17512. # icc doesn't choke on unknown options, it will just issue warnings
  17513. # or remarks (even with -Werror). So we grep stderr for any message
  17514. @@ -4977,7 +4826,7 @@
  17515. fi
  17516. fi
  17517. -{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  17518. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  17519. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  17520. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  17521. @@ -4992,11 +4841,11 @@
  17522. fi
  17523. -{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  17524. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  17525. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  17526. set x ${MAKE-make}
  17527. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  17528. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  17529. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  17530. $as_echo_n "(cached) " >&6
  17531. else
  17532. cat >conftest.make <<\_ACEOF
  17533. @@ -5014,118 +4863,63 @@
  17534. rm -f conftest.make
  17535. fi
  17536. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  17537. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  17538. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17539. $as_echo "yes" >&6; }
  17540. SET_MAKE=
  17541. else
  17542. - { $as_echo "$as_me:$LINENO: result: no" >&5
  17543. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17544. $as_echo "no" >&6; }
  17545. SET_MAKE="MAKE=${MAKE-make}"
  17546. fi
  17547. -# Check whether --enable-shared was given.
  17548. -if test "${enable_shared+set}" = set; then
  17549. - enableval=$enable_shared; p=${PACKAGE-default}
  17550. - case $enableval in
  17551. - yes) enable_shared=yes ;;
  17552. - no) enable_shared=no ;;
  17553. - *)
  17554. - enable_shared=no
  17555. - # Look at the argument we got. We use all the common list separators.
  17556. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  17557. - for pkg in $enableval; do
  17558. - IFS="$lt_save_ifs"
  17559. - if test "X$pkg" = "X$p"; then
  17560. - enable_shared=yes
  17561. - fi
  17562. - done
  17563. - IFS="$lt_save_ifs"
  17564. - ;;
  17565. - esac
  17566. -else
  17567. - enable_shared=yes
  17568. -fi
  17569. +case `pwd` in
  17570. + *\ * | *\ *)
  17571. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  17572. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  17573. +esac
  17574. +
  17575. +
  17576. +
  17577. +macro_version='2.2.6b'
  17578. +macro_revision='1.3017'
  17579. +
  17580. +
  17581. +
  17582. -# Check whether --enable-static was given.
  17583. -if test "${enable_static+set}" = set; then
  17584. - enableval=$enable_static; p=${PACKAGE-default}
  17585. - case $enableval in
  17586. - yes) enable_static=yes ;;
  17587. - no) enable_static=no ;;
  17588. - *)
  17589. - enable_static=no
  17590. - # Look at the argument we got. We use all the common list separators.
  17591. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  17592. - for pkg in $enableval; do
  17593. - IFS="$lt_save_ifs"
  17594. - if test "X$pkg" = "X$p"; then
  17595. - enable_static=yes
  17596. - fi
  17597. - done
  17598. - IFS="$lt_save_ifs"
  17599. - ;;
  17600. - esac
  17601. -else
  17602. - enable_static=yes
  17603. -fi
  17604. -# Check whether --enable-fast-install was given.
  17605. -if test "${enable_fast_install+set}" = set; then
  17606. - enableval=$enable_fast_install; p=${PACKAGE-default}
  17607. - case $enableval in
  17608. - yes) enable_fast_install=yes ;;
  17609. - no) enable_fast_install=no ;;
  17610. - *)
  17611. - enable_fast_install=no
  17612. - # Look at the argument we got. We use all the common list separators.
  17613. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  17614. - for pkg in $enableval; do
  17615. - IFS="$lt_save_ifs"
  17616. - if test "X$pkg" = "X$p"; then
  17617. - enable_fast_install=yes
  17618. - fi
  17619. - done
  17620. - IFS="$lt_save_ifs"
  17621. - ;;
  17622. - esac
  17623. -else
  17624. - enable_fast_install=yes
  17625. -fi
  17626. +
  17627. +
  17628. +
  17629. +
  17630. +ltmain="$ac_aux_dir/ltmain.sh"
  17631. +
  17632. # Make sure we can run config.sub.
  17633. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  17634. - { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  17635. -$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  17636. - { (exit 1); exit 1; }; }
  17637. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  17638. -{ $as_echo "$as_me:$LINENO: checking build system type" >&5
  17639. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  17640. $as_echo_n "checking build system type... " >&6; }
  17641. -if test "${ac_cv_build+set}" = set; then
  17642. +if test "${ac_cv_build+set}" = set; then :
  17643. $as_echo_n "(cached) " >&6
  17644. else
  17645. ac_build_alias=$build_alias
  17646. test "x$ac_build_alias" = x &&
  17647. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  17648. test "x$ac_build_alias" = x &&
  17649. - { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  17650. -$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  17651. - { (exit 1); exit 1; }; }
  17652. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  17653. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  17654. - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  17655. -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  17656. - { (exit 1); exit 1; }; }
  17657. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  17658. fi
  17659. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  17660. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  17661. $as_echo "$ac_cv_build" >&6; }
  17662. case $ac_cv_build in
  17663. *-*-*) ;;
  17664. -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  17665. -$as_echo "$as_me: error: invalid value of canonical build" >&2;}
  17666. - { (exit 1); exit 1; }; };;
  17667. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  17668. esac
  17669. build=$ac_cv_build
  17670. ac_save_IFS=$IFS; IFS='-'
  17671. @@ -5141,28 +4935,24 @@
  17672. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  17673. -{ $as_echo "$as_me:$LINENO: checking host system type" >&5
  17674. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  17675. $as_echo_n "checking host system type... " >&6; }
  17676. -if test "${ac_cv_host+set}" = set; then
  17677. +if test "${ac_cv_host+set}" = set; then :
  17678. $as_echo_n "(cached) " >&6
  17679. else
  17680. if test "x$host_alias" = x; then
  17681. ac_cv_host=$ac_cv_build
  17682. else
  17683. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  17684. - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  17685. -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  17686. - { (exit 1); exit 1; }; }
  17687. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  17688. fi
  17689. fi
  17690. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  17691. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  17692. $as_echo "$ac_cv_host" >&6; }
  17693. case $ac_cv_host in
  17694. *-*-*) ;;
  17695. -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  17696. -$as_echo "$as_me: error: invalid value of canonical host" >&2;}
  17697. - { (exit 1); exit 1; }; };;
  17698. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  17699. esac
  17700. host=$ac_cv_host
  17701. ac_save_IFS=$IFS; IFS='-'
  17702. @@ -5178,68 +4968,177 @@
  17703. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  17704. -{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  17705. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  17706. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  17707. -if test "${lt_cv_path_SED+set}" = set; then
  17708. +if test "${ac_cv_path_SED+set}" = set; then :
  17709. $as_echo_n "(cached) " >&6
  17710. else
  17711. - # Loop through the user's path and test for sed and gsed.
  17712. -# Then use that list of sed's as ones to test for truncation.
  17713. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17714. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  17715. + for ac_i in 1 2 3 4 5 6 7; do
  17716. + ac_script="$ac_script$as_nl$ac_script"
  17717. + done
  17718. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  17719. + { ac_script=; unset ac_script;}
  17720. + if test -z "$SED"; then
  17721. + ac_path_SED_found=false
  17722. + # Loop through the user's path and test for each of PROGNAME-LIST
  17723. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17724. for as_dir in $PATH
  17725. do
  17726. IFS=$as_save_IFS
  17727. test -z "$as_dir" && as_dir=.
  17728. - for lt_ac_prog in sed gsed; do
  17729. + for ac_prog in sed gsed; do
  17730. for ac_exec_ext in '' $ac_executable_extensions; do
  17731. - if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  17732. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  17733. - fi
  17734. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  17735. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  17736. +# Check for GNU ac_path_SED and select it if it is found.
  17737. + # Check for GNU $ac_path_SED
  17738. +case `"$ac_path_SED" --version 2>&1` in
  17739. +*GNU*)
  17740. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  17741. +*)
  17742. + ac_count=0
  17743. + $as_echo_n 0123456789 >"conftest.in"
  17744. + while :
  17745. + do
  17746. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  17747. + mv "conftest.tmp" "conftest.in"
  17748. + cp "conftest.in" "conftest.nl"
  17749. + $as_echo '' >> "conftest.nl"
  17750. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  17751. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  17752. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  17753. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  17754. + # Best one so far, save it but keep looking for a better one
  17755. + ac_cv_path_SED="$ac_path_SED"
  17756. + ac_path_SED_max=$ac_count
  17757. + fi
  17758. + # 10*(2^10) chars as input seems more than enough
  17759. + test $ac_count -gt 10 && break
  17760. + done
  17761. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  17762. +esac
  17763. +
  17764. + $ac_path_SED_found && break 3
  17765. done
  17766. done
  17767. -done
  17768. + done
  17769. IFS=$as_save_IFS
  17770. -lt_ac_max=0
  17771. -lt_ac_count=0
  17772. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  17773. -# along with /bin/sed that truncates output.
  17774. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  17775. - test ! -f $lt_ac_sed && continue
  17776. - cat /dev/null > conftest.in
  17777. - lt_ac_count=0
  17778. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  17779. - # Check for GNU sed and select it if it is found.
  17780. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  17781. - lt_cv_path_SED=$lt_ac_sed
  17782. - break
  17783. + if test -z "$ac_cv_path_SED"; then
  17784. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  17785. fi
  17786. - while true; do
  17787. - cat conftest.in conftest.in >conftest.tmp
  17788. - mv conftest.tmp conftest.in
  17789. - cp conftest.in conftest.nl
  17790. - echo >>conftest.nl
  17791. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  17792. - cmp -s conftest.out conftest.nl || break
  17793. - # 10000 chars as input seems more than enough
  17794. - test $lt_ac_count -gt 10 && break
  17795. - lt_ac_count=`expr $lt_ac_count + 1`
  17796. - if test $lt_ac_count -gt $lt_ac_max; then
  17797. - lt_ac_max=$lt_ac_count
  17798. - lt_cv_path_SED=$lt_ac_sed
  17799. +else
  17800. + ac_cv_path_SED=$SED
  17801. +fi
  17802. +
  17803. +fi
  17804. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  17805. +$as_echo "$ac_cv_path_SED" >&6; }
  17806. + SED="$ac_cv_path_SED"
  17807. + rm -f conftest.sed
  17808. +
  17809. +test -z "$SED" && SED=sed
  17810. +Xsed="$SED -e 1s/^X//"
  17811. +
  17812. +
  17813. +
  17814. +
  17815. +
  17816. +
  17817. +
  17818. +
  17819. +
  17820. +
  17821. +
  17822. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  17823. +$as_echo_n "checking for fgrep... " >&6; }
  17824. +if test "${ac_cv_path_FGREP+set}" = set; then :
  17825. + $as_echo_n "(cached) " >&6
  17826. +else
  17827. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  17828. + then ac_cv_path_FGREP="$GREP -F"
  17829. + else
  17830. + if test -z "$FGREP"; then
  17831. + ac_path_FGREP_found=false
  17832. + # Loop through the user's path and test for each of PROGNAME-LIST
  17833. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17834. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  17835. +do
  17836. + IFS=$as_save_IFS
  17837. + test -z "$as_dir" && as_dir=.
  17838. + for ac_prog in fgrep; do
  17839. + for ac_exec_ext in '' $ac_executable_extensions; do
  17840. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  17841. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  17842. +# Check for GNU ac_path_FGREP and select it if it is found.
  17843. + # Check for GNU $ac_path_FGREP
  17844. +case `"$ac_path_FGREP" --version 2>&1` in
  17845. +*GNU*)
  17846. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  17847. +*)
  17848. + ac_count=0
  17849. + $as_echo_n 0123456789 >"conftest.in"
  17850. + while :
  17851. + do
  17852. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  17853. + mv "conftest.tmp" "conftest.in"
  17854. + cp "conftest.in" "conftest.nl"
  17855. + $as_echo 'FGREP' >> "conftest.nl"
  17856. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  17857. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  17858. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  17859. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  17860. + # Best one so far, save it but keep looking for a better one
  17861. + ac_cv_path_FGREP="$ac_path_FGREP"
  17862. + ac_path_FGREP_max=$ac_count
  17863. fi
  17864. + # 10*(2^10) chars as input seems more than enough
  17865. + test $ac_count -gt 10 && break
  17866. done
  17867. -done
  17868. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  17869. +esac
  17870. +
  17871. + $ac_path_FGREP_found && break 3
  17872. + done
  17873. + done
  17874. + done
  17875. +IFS=$as_save_IFS
  17876. + if test -z "$ac_cv_path_FGREP"; then
  17877. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  17878. + fi
  17879. +else
  17880. + ac_cv_path_FGREP=$FGREP
  17881. +fi
  17882. + fi
  17883. fi
  17884. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  17885. +$as_echo "$ac_cv_path_FGREP" >&6; }
  17886. + FGREP="$ac_cv_path_FGREP"
  17887. +
  17888. +
  17889. +test -z "$GREP" && GREP=grep
  17890. +
  17891. +
  17892. +
  17893. +
  17894. +
  17895. +
  17896. +
  17897. +
  17898. +
  17899. +
  17900. +
  17901. +
  17902. +
  17903. +
  17904. +
  17905. -SED=$lt_cv_path_SED
  17906. -{ $as_echo "$as_me:$LINENO: result: $SED" >&5
  17907. -$as_echo "$SED" >&6; }
  17908. # Check whether --with-gnu-ld was given.
  17909. -if test "${with_gnu_ld+set}" = set; then
  17910. +if test "${with_gnu_ld+set}" = set; then :
  17911. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  17912. else
  17913. with_gnu_ld=no
  17914. @@ -5248,7 +5147,7 @@
  17915. ac_prog=ld
  17916. if test "$GCC" = yes; then
  17917. # Check if gcc -print-prog-name=ld gives a path.
  17918. - { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  17919. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  17920. $as_echo_n "checking for ld used by $CC... " >&6; }
  17921. case $host in
  17922. *-*-mingw*)
  17923. @@ -5262,9 +5161,9 @@
  17924. [\\/]* | ?:[\\/]*)
  17925. re_direlt='/[^/][^/]*/\.\./'
  17926. # Canonicalize the pathname of ld
  17927. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  17928. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  17929. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  17930. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  17931. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  17932. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  17933. done
  17934. test -z "$LD" && LD="$ac_prog"
  17935. ;;
  17936. @@ -5278,13 +5177,13 @@
  17937. ;;
  17938. esac
  17939. elif test "$with_gnu_ld" = yes; then
  17940. - { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  17941. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  17942. $as_echo_n "checking for GNU ld... " >&6; }
  17943. else
  17944. - { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  17945. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  17946. $as_echo_n "checking for non-GNU ld... " >&6; }
  17947. fi
  17948. -if test "${lt_cv_path_LD+set}" = set; then
  17949. +if test "${lt_cv_path_LD+set}" = set; then :
  17950. $as_echo_n "(cached) " >&6
  17951. else
  17952. if test -z "$LD"; then
  17953. @@ -5315,18 +5214,16 @@
  17954. LD="$lt_cv_path_LD"
  17955. if test -n "$LD"; then
  17956. - { $as_echo "$as_me:$LINENO: result: $LD" >&5
  17957. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  17958. $as_echo "$LD" >&6; }
  17959. else
  17960. - { $as_echo "$as_me:$LINENO: result: no" >&5
  17961. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17962. $as_echo "no" >&6; }
  17963. fi
  17964. -test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  17965. -$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  17966. - { (exit 1); exit 1; }; }
  17967. -{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  17968. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  17969. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  17970. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  17971. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  17972. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  17973. $as_echo_n "(cached) " >&6
  17974. else
  17975. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  17976. @@ -5339,39 +5236,21 @@
  17977. ;;
  17978. esac
  17979. fi
  17980. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  17981. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  17982. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  17983. with_gnu_ld=$lt_cv_prog_gnu_ld
  17984. -{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  17985. -$as_echo_n "checking for $LD option to reload object files... " >&6; }
  17986. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  17987. - $as_echo_n "(cached) " >&6
  17988. -else
  17989. - lt_cv_ld_reload_flag='-r'
  17990. -fi
  17991. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  17992. -$as_echo "$lt_cv_ld_reload_flag" >&6; }
  17993. -reload_flag=$lt_cv_ld_reload_flag
  17994. -case $reload_flag in
  17995. -"" | " "*) ;;
  17996. -*) reload_flag=" $reload_flag" ;;
  17997. -esac
  17998. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  17999. -case $host_os in
  18000. - darwin*)
  18001. - if test "$GCC" = yes; then
  18002. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  18003. - else
  18004. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  18005. - fi
  18006. - ;;
  18007. -esac
  18008. -{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  18009. -$as_echo_n "checking for BSD-compatible nm... " >&6; }
  18010. -if test "${lt_cv_path_NM+set}" = set; then
  18011. +
  18012. +
  18013. +
  18014. +
  18015. +
  18016. +
  18017. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  18018. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  18019. +if test "${lt_cv_path_NM+set}" = set; then :
  18020. $as_echo_n "(cached) " >&6
  18021. else
  18022. if test -n "$NM"; then
  18023. @@ -5415,1243 +5294,1069 @@
  18024. done
  18025. IFS="$lt_save_ifs"
  18026. done
  18027. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  18028. + : ${lt_cv_path_NM=no}
  18029. fi
  18030. fi
  18031. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  18032. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  18033. $as_echo "$lt_cv_path_NM" >&6; }
  18034. -NM="$lt_cv_path_NM"
  18035. +if test "$lt_cv_path_NM" != "no"; then
  18036. + NM="$lt_cv_path_NM"
  18037. +else
  18038. + # Didn't find any BSD compatible name lister, look for dumpbin.
  18039. + if test -n "$ac_tool_prefix"; then
  18040. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  18041. + do
  18042. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  18043. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  18044. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18045. +$as_echo_n "checking for $ac_word... " >&6; }
  18046. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  18047. + $as_echo_n "(cached) " >&6
  18048. +else
  18049. + if test -n "$DUMPBIN"; then
  18050. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  18051. +else
  18052. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18053. +for as_dir in $PATH
  18054. +do
  18055. + IFS=$as_save_IFS
  18056. + test -z "$as_dir" && as_dir=.
  18057. + for ac_exec_ext in '' $ac_executable_extensions; do
  18058. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18059. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  18060. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18061. + break 2
  18062. + fi
  18063. +done
  18064. + done
  18065. +IFS=$as_save_IFS
  18066. -{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  18067. -$as_echo_n "checking whether ln -s works... " >&6; }
  18068. -LN_S=$as_ln_s
  18069. -if test "$LN_S" = "ln -s"; then
  18070. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  18071. -$as_echo "yes" >&6; }
  18072. +fi
  18073. +fi
  18074. +DUMPBIN=$ac_cv_prog_DUMPBIN
  18075. +if test -n "$DUMPBIN"; then
  18076. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  18077. +$as_echo "$DUMPBIN" >&6; }
  18078. else
  18079. - { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  18080. -$as_echo "no, using $LN_S" >&6; }
  18081. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18082. +$as_echo "no" >&6; }
  18083. fi
  18084. -{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  18085. -$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  18086. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  18087. +
  18088. + test -n "$DUMPBIN" && break
  18089. + done
  18090. +fi
  18091. +if test -z "$DUMPBIN"; then
  18092. + ac_ct_DUMPBIN=$DUMPBIN
  18093. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  18094. +do
  18095. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  18096. +set dummy $ac_prog; ac_word=$2
  18097. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18098. +$as_echo_n "checking for $ac_word... " >&6; }
  18099. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  18100. $as_echo_n "(cached) " >&6
  18101. else
  18102. - lt_cv_file_magic_cmd='$MAGIC_CMD'
  18103. -lt_cv_file_magic_test_file=
  18104. -lt_cv_deplibs_check_method='unknown'
  18105. -# Need to set the preceding variable on all platforms that support
  18106. -# interlibrary dependencies.
  18107. -# 'none' -- dependencies not supported.
  18108. -# `unknown' -- same as none, but documents that we really don't know.
  18109. -# 'pass_all' -- all dependencies passed with no checks.
  18110. -# 'test_compile' -- check by making test program.
  18111. -# 'file_magic [[regex]]' -- check by looking for files in library path
  18112. -# which responds to the $file_magic_cmd with a given extended regex.
  18113. -# If you have `file' or equivalent on your system and you're not sure
  18114. -# whether `pass_all' will *always* work, you probably want this one.
  18115. -
  18116. -case $host_os in
  18117. -aix[4-9]*)
  18118. - lt_cv_deplibs_check_method=pass_all
  18119. - ;;
  18120. + if test -n "$ac_ct_DUMPBIN"; then
  18121. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  18122. +else
  18123. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18124. +for as_dir in $PATH
  18125. +do
  18126. + IFS=$as_save_IFS
  18127. + test -z "$as_dir" && as_dir=.
  18128. + for ac_exec_ext in '' $ac_executable_extensions; do
  18129. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18130. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  18131. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18132. + break 2
  18133. + fi
  18134. +done
  18135. + done
  18136. +IFS=$as_save_IFS
  18137. -beos*)
  18138. - lt_cv_deplibs_check_method=pass_all
  18139. - ;;
  18140. +fi
  18141. +fi
  18142. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  18143. +if test -n "$ac_ct_DUMPBIN"; then
  18144. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  18145. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  18146. +else
  18147. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18148. +$as_echo "no" >&6; }
  18149. +fi
  18150. -bsdi[45]*)
  18151. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  18152. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  18153. - lt_cv_file_magic_test_file=/shlib/libc.so
  18154. - ;;
  18155. -cygwin*)
  18156. - # func_win32_libid is a shell function defined in ltmain.sh
  18157. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  18158. - lt_cv_file_magic_cmd='func_win32_libid'
  18159. - ;;
  18160. + test -n "$ac_ct_DUMPBIN" && break
  18161. +done
  18162. -mingw* | pw32*)
  18163. - # Base MSYS/MinGW do not provide the 'file' command needed by
  18164. - # func_win32_libid shell function, so use a weaker test based on 'objdump',
  18165. - # unless we find 'file', for example because we are cross-compiling.
  18166. - if ( file / ) >/dev/null 2>&1; then
  18167. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  18168. - lt_cv_file_magic_cmd='func_win32_libid'
  18169. + if test "x$ac_ct_DUMPBIN" = x; then
  18170. + DUMPBIN=":"
  18171. else
  18172. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  18173. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  18174. + case $cross_compiling:$ac_tool_warned in
  18175. +yes:)
  18176. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18177. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18178. +ac_tool_warned=yes ;;
  18179. +esac
  18180. + DUMPBIN=$ac_ct_DUMPBIN
  18181. fi
  18182. - ;;
  18183. +fi
  18184. -darwin* | rhapsody*)
  18185. - lt_cv_deplibs_check_method=pass_all
  18186. - ;;
  18187. -freebsd* | dragonfly*)
  18188. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  18189. - case $host_cpu in
  18190. - i*86 )
  18191. - # Not sure whether the presence of OpenBSD here was a mistake.
  18192. - # Let's accept both of them until this is cleared up.
  18193. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  18194. - lt_cv_file_magic_cmd=/usr/bin/file
  18195. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  18196. - ;;
  18197. - esac
  18198. - else
  18199. - lt_cv_deplibs_check_method=pass_all
  18200. + if test "$DUMPBIN" != ":"; then
  18201. + NM="$DUMPBIN"
  18202. fi
  18203. - ;;
  18204. +fi
  18205. +test -z "$NM" && NM=nm
  18206. -gnu*)
  18207. - lt_cv_deplibs_check_method=pass_all
  18208. - ;;
  18209. -hpux10.20* | hpux11*)
  18210. - lt_cv_file_magic_cmd=/usr/bin/file
  18211. - case $host_cpu in
  18212. - ia64*)
  18213. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  18214. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  18215. - ;;
  18216. - hppa*64*)
  18217. - 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]'
  18218. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  18219. - ;;
  18220. - *)
  18221. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  18222. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  18223. - ;;
  18224. - esac
  18225. - ;;
  18226. -interix[3-9]*)
  18227. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  18228. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  18229. - ;;
  18230. -irix5* | irix6* | nonstopux*)
  18231. - case $LD in
  18232. - *-32|*"-32 ") libmagic=32-bit;;
  18233. - *-n32|*"-n32 ") libmagic=N32;;
  18234. - *-64|*"-64 ") libmagic=64-bit;;
  18235. - *) libmagic=never-match;;
  18236. - esac
  18237. - lt_cv_deplibs_check_method=pass_all
  18238. - ;;
  18239. -# This must be Linux ELF.
  18240. -linux* | k*bsd*-gnu)
  18241. - lt_cv_deplibs_check_method=pass_all
  18242. - ;;
  18243. -netbsd*)
  18244. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  18245. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  18246. - else
  18247. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  18248. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  18249. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  18250. +if test "${lt_cv_nm_interface+set}" = set; then :
  18251. + $as_echo_n "(cached) " >&6
  18252. +else
  18253. + lt_cv_nm_interface="BSD nm"
  18254. + echo "int some_variable = 0;" > conftest.$ac_ext
  18255. + (eval echo "\"\$as_me:5425: $ac_compile\"" >&5)
  18256. + (eval "$ac_compile" 2>conftest.err)
  18257. + cat conftest.err >&5
  18258. + (eval echo "\"\$as_me:5428: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  18259. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  18260. + cat conftest.err >&5
  18261. + (eval echo "\"\$as_me:5431: output\"" >&5)
  18262. + cat conftest.out >&5
  18263. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  18264. + lt_cv_nm_interface="MS dumpbin"
  18265. fi
  18266. - ;;
  18267. + rm -f conftest*
  18268. +fi
  18269. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  18270. +$as_echo "$lt_cv_nm_interface" >&6; }
  18271. -newos6*)
  18272. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  18273. - lt_cv_file_magic_cmd=/usr/bin/file
  18274. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  18275. - ;;
  18276. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  18277. +$as_echo_n "checking whether ln -s works... " >&6; }
  18278. +LN_S=$as_ln_s
  18279. +if test "$LN_S" = "ln -s"; then
  18280. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18281. +$as_echo "yes" >&6; }
  18282. +else
  18283. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  18284. +$as_echo "no, using $LN_S" >&6; }
  18285. +fi
  18286. -nto-qnx*)
  18287. - lt_cv_deplibs_check_method=unknown
  18288. - ;;
  18289. +# find the maximum length of command line arguments
  18290. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  18291. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  18292. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  18293. + $as_echo_n "(cached) " >&6
  18294. +else
  18295. + i=0
  18296. + teststring="ABCD"
  18297. -openbsd*)
  18298. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  18299. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  18300. - else
  18301. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  18302. - fi
  18303. - ;;
  18304. + case $build_os in
  18305. + msdosdjgpp*)
  18306. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  18307. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  18308. + # during glob expansion). Even if it were fixed, the result of this
  18309. + # check would be larger than it should be.
  18310. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  18311. + ;;
  18312. -osf3* | osf4* | osf5*)
  18313. - lt_cv_deplibs_check_method=pass_all
  18314. - ;;
  18315. + gnu*)
  18316. + # Under GNU Hurd, this test is not required because there is
  18317. + # no limit to the length of command line arguments.
  18318. + # Libtool will interpret -1 as no limit whatsoever
  18319. + lt_cv_sys_max_cmd_len=-1;
  18320. + ;;
  18321. -rdos*)
  18322. - lt_cv_deplibs_check_method=pass_all
  18323. - ;;
  18324. + cygwin* | mingw* | cegcc*)
  18325. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  18326. + # about 5 minutes as the teststring grows exponentially.
  18327. + # Worse, since 9x/ME are not pre-emptively multitasking,
  18328. + # you end up with a "frozen" computer, even though with patience
  18329. + # the test eventually succeeds (with a max line length of 256k).
  18330. + # Instead, let's just punt: use the minimum linelength reported by
  18331. + # all of the supported platforms: 8192 (on NT/2K/XP).
  18332. + lt_cv_sys_max_cmd_len=8192;
  18333. + ;;
  18334. -solaris*)
  18335. - lt_cv_deplibs_check_method=pass_all
  18336. - ;;
  18337. + amigaos*)
  18338. + # On AmigaOS with pdksh, this test takes hours, literally.
  18339. + # So we just punt and use a minimum line length of 8192.
  18340. + lt_cv_sys_max_cmd_len=8192;
  18341. + ;;
  18342. -sysv4 | sysv4.3*)
  18343. - case $host_vendor in
  18344. - motorola)
  18345. - 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]'
  18346. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  18347. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  18348. + # This has been around since 386BSD, at least. Likely further.
  18349. + if test -x /sbin/sysctl; then
  18350. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  18351. + elif test -x /usr/sbin/sysctl; then
  18352. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  18353. + else
  18354. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  18355. + fi
  18356. + # And add a safety zone
  18357. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  18358. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  18359. ;;
  18360. - ncr)
  18361. - lt_cv_deplibs_check_method=pass_all
  18362. +
  18363. + interix*)
  18364. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  18365. + lt_cv_sys_max_cmd_len=196608
  18366. ;;
  18367. - sequent)
  18368. - lt_cv_file_magic_cmd='/bin/file'
  18369. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  18370. +
  18371. + osf*)
  18372. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  18373. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  18374. + # nice to cause kernel panics so lets avoid the loop below.
  18375. + # First set a reasonable default.
  18376. + lt_cv_sys_max_cmd_len=16384
  18377. + #
  18378. + if test -x /sbin/sysconfig; then
  18379. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  18380. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  18381. + esac
  18382. + fi
  18383. ;;
  18384. - sni)
  18385. - lt_cv_file_magic_cmd='/bin/file'
  18386. - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  18387. - lt_cv_file_magic_test_file=/lib/libc.so
  18388. + sco3.2v5*)
  18389. + lt_cv_sys_max_cmd_len=102400
  18390. ;;
  18391. - siemens)
  18392. - lt_cv_deplibs_check_method=pass_all
  18393. + sysv5* | sco5v6* | sysv4.2uw2*)
  18394. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  18395. + if test -n "$kargmax"; then
  18396. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  18397. + else
  18398. + lt_cv_sys_max_cmd_len=32768
  18399. + fi
  18400. ;;
  18401. - pc)
  18402. - lt_cv_deplibs_check_method=pass_all
  18403. + *)
  18404. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  18405. + if test -n "$lt_cv_sys_max_cmd_len"; then
  18406. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  18407. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  18408. + else
  18409. + # Make teststring a little bigger before we do anything with it.
  18410. + # a 1K string should be a reasonable start.
  18411. + for i in 1 2 3 4 5 6 7 8 ; do
  18412. + teststring=$teststring$teststring
  18413. + done
  18414. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  18415. + # If test is not a shell built-in, we'll probably end up computing a
  18416. + # maximum length that is only half of the actual maximum length, but
  18417. + # we can't tell.
  18418. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  18419. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  18420. + test $i != 17 # 1/2 MB should be enough
  18421. + do
  18422. + i=`expr $i + 1`
  18423. + teststring=$teststring$teststring
  18424. + done
  18425. + # Only check the string length outside the loop.
  18426. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  18427. + teststring=
  18428. + # Add a significant safety factor because C++ compilers can tack on
  18429. + # massive amounts of additional arguments before passing them to the
  18430. + # linker. It appears as though 1/2 is a usable value.
  18431. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  18432. + fi
  18433. ;;
  18434. esac
  18435. - ;;
  18436. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  18437. - lt_cv_deplibs_check_method=pass_all
  18438. - ;;
  18439. -esac
  18440. +fi
  18441. +if test -n $lt_cv_sys_max_cmd_len ; then
  18442. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  18443. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  18444. +else
  18445. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  18446. +$as_echo "none" >&6; }
  18447. fi
  18448. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  18449. -$as_echo "$lt_cv_deplibs_check_method" >&6; }
  18450. -file_magic_cmd=$lt_cv_file_magic_cmd
  18451. -deplibs_check_method=$lt_cv_deplibs_check_method
  18452. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  18453. +max_cmd_len=$lt_cv_sys_max_cmd_len
  18454. -# If no C compiler was specified, use CC.
  18455. -LTCC=${LTCC-"$CC"}
  18456. -# If no C compiler flags were specified, use CFLAGS.
  18457. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  18458. -# Allow CC to be a program name with arguments.
  18459. -compiler=$CC
  18460. +: ${CP="cp -f"}
  18461. +: ${MV="mv -f"}
  18462. +: ${RM="rm -f"}
  18463. +
  18464. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  18465. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  18466. +# Try some XSI features
  18467. +xsi_shell=no
  18468. +( _lt_dummy="a/b/c"
  18469. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  18470. + = c,a/b,, \
  18471. + && eval 'test $(( 1 + 1 )) -eq 2 \
  18472. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  18473. + && xsi_shell=yes
  18474. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  18475. +$as_echo "$xsi_shell" >&6; }
  18476. +
  18477. +
  18478. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  18479. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  18480. +lt_shell_append=no
  18481. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  18482. + >/dev/null 2>&1 \
  18483. + && lt_shell_append=yes
  18484. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  18485. +$as_echo "$lt_shell_append" >&6; }
  18486. -# Check whether --enable-libtool-lock was given.
  18487. -if test "${enable_libtool_lock+set}" = set; then
  18488. - enableval=$enable_libtool_lock;
  18489. +
  18490. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  18491. + lt_unset=unset
  18492. +else
  18493. + lt_unset=false
  18494. fi
  18495. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  18496. -# Some flags need to be propagated to the compiler or linker for good
  18497. -# libtool support.
  18498. -case $host in
  18499. -ia64-*-hpux*)
  18500. - # Find out which ABI we are using.
  18501. - echo 'int i;' > conftest.$ac_ext
  18502. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18503. - (eval $ac_compile) 2>&5
  18504. - ac_status=$?
  18505. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18506. - (exit $ac_status); }; then
  18507. - case `/usr/bin/file conftest.$ac_objext` in
  18508. - *ELF-32*)
  18509. - HPUX_IA64_MODE="32"
  18510. - ;;
  18511. - *ELF-64*)
  18512. - HPUX_IA64_MODE="64"
  18513. - ;;
  18514. - esac
  18515. - fi
  18516. - rm -rf conftest*
  18517. +
  18518. +
  18519. +
  18520. +# test EBCDIC or ASCII
  18521. +case `echo X|tr X '\101'` in
  18522. + A) # ASCII based system
  18523. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  18524. + lt_SP2NL='tr \040 \012'
  18525. + lt_NL2SP='tr \015\012 \040\040'
  18526. ;;
  18527. -*-*-irix6*)
  18528. - # Find out which ABI we are using.
  18529. - echo '#line 5671 "configure"' > conftest.$ac_ext
  18530. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18531. - (eval $ac_compile) 2>&5
  18532. - ac_status=$?
  18533. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18534. - (exit $ac_status); }; then
  18535. - if test "$lt_cv_prog_gnu_ld" = yes; then
  18536. - case `/usr/bin/file conftest.$ac_objext` in
  18537. - *32-bit*)
  18538. - LD="${LD-ld} -melf32bsmip"
  18539. - ;;
  18540. - *N32*)
  18541. - LD="${LD-ld} -melf32bmipn32"
  18542. - ;;
  18543. - *64-bit*)
  18544. - LD="${LD-ld} -melf64bmip"
  18545. - ;;
  18546. - esac
  18547. - else
  18548. - case `/usr/bin/file conftest.$ac_objext` in
  18549. - *32-bit*)
  18550. - LD="${LD-ld} -32"
  18551. - ;;
  18552. - *N32*)
  18553. - LD="${LD-ld} -n32"
  18554. - ;;
  18555. - *64-bit*)
  18556. - LD="${LD-ld} -64"
  18557. - ;;
  18558. - esac
  18559. - fi
  18560. - fi
  18561. - rm -rf conftest*
  18562. + *) # EBCDIC based system
  18563. + lt_SP2NL='tr \100 \n'
  18564. + lt_NL2SP='tr \r\n \100\100'
  18565. ;;
  18566. +esac
  18567. +
  18568. -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  18569. -s390*-*linux*|sparc*-*linux*)
  18570. - # Find out which ABI we are using.
  18571. - echo 'int i;' > conftest.$ac_ext
  18572. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18573. - (eval $ac_compile) 2>&5
  18574. - ac_status=$?
  18575. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18576. - (exit $ac_status); }; then
  18577. - case `/usr/bin/file conftest.o` in
  18578. - *32-bit*)
  18579. - case $host in
  18580. - x86_64-*kfreebsd*-gnu)
  18581. - LD="${LD-ld} -m elf_i386_fbsd"
  18582. - ;;
  18583. - x86_64-*linux*)
  18584. - LD="${LD-ld} -m elf_i386"
  18585. - ;;
  18586. - ppc64-*linux*|powerpc64-*linux*)
  18587. - LD="${LD-ld} -m elf32ppclinux"
  18588. - ;;
  18589. - s390x-*linux*)
  18590. - LD="${LD-ld} -m elf_s390"
  18591. - ;;
  18592. - sparc64-*linux*)
  18593. - LD="${LD-ld} -m elf32_sparc"
  18594. - ;;
  18595. - esac
  18596. - ;;
  18597. - *64-bit*)
  18598. - libsuff=64
  18599. - case $host in
  18600. - x86_64-*kfreebsd*-gnu)
  18601. - LD="${LD-ld} -m elf_x86_64_fbsd"
  18602. - ;;
  18603. - x86_64-*linux*)
  18604. - LD="${LD-ld} -m elf_x86_64"
  18605. - ;;
  18606. - ppc*-*linux*|powerpc*-*linux*)
  18607. - LD="${LD-ld} -m elf64ppc"
  18608. - ;;
  18609. - s390*-*linux*)
  18610. - LD="${LD-ld} -m elf64_s390"
  18611. - ;;
  18612. - sparc*-*linux*)
  18613. - LD="${LD-ld} -m elf64_sparc"
  18614. - ;;
  18615. - esac
  18616. - ;;
  18617. - esac
  18618. - fi
  18619. - rm -rf conftest*
  18620. - ;;
  18621. -*-*-sco3.2v5*)
  18622. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  18623. - SAVE_CFLAGS="$CFLAGS"
  18624. - CFLAGS="$CFLAGS -belf"
  18625. - { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  18626. -$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  18627. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  18628. - $as_echo_n "(cached) " >&6
  18629. -else
  18630. - ac_ext=c
  18631. -ac_cpp='$CPP $CPPFLAGS'
  18632. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18633. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18634. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18635. - cat >conftest.$ac_ext <<_ACEOF
  18636. -/* confdefs.h. */
  18637. -_ACEOF
  18638. -cat confdefs.h >>conftest.$ac_ext
  18639. -cat >>conftest.$ac_ext <<_ACEOF
  18640. -/* end confdefs.h. */
  18641. -int
  18642. -main ()
  18643. -{
  18644. - ;
  18645. - return 0;
  18646. -}
  18647. -_ACEOF
  18648. -rm -f conftest.$ac_objext conftest$ac_exeext
  18649. -if { (ac_try="$ac_link"
  18650. -case "(($ac_try" in
  18651. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18652. - *) ac_try_echo=$ac_try;;
  18653. -esac
  18654. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18655. -$as_echo "$ac_try_echo") >&5
  18656. - (eval "$ac_link") 2>conftest.er1
  18657. - ac_status=$?
  18658. - grep -v '^ *+' conftest.er1 >conftest.err
  18659. - rm -f conftest.er1
  18660. - cat conftest.err >&5
  18661. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18662. - (exit $ac_status); } && {
  18663. - test -z "$ac_c_werror_flag" ||
  18664. - test ! -s conftest.err
  18665. - } && test -s conftest$ac_exeext && {
  18666. - test "$cross_compiling" = yes ||
  18667. - $as_test_x conftest$ac_exeext
  18668. - }; then
  18669. - lt_cv_cc_needs_belf=yes
  18670. -else
  18671. - $as_echo "$as_me: failed program was:" >&5
  18672. -sed 's/^/| /' conftest.$ac_ext >&5
  18673. - lt_cv_cc_needs_belf=no
  18674. -fi
  18675. -rm -rf conftest.dSYM
  18676. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18677. - conftest$ac_exeext conftest.$ac_ext
  18678. - ac_ext=c
  18679. -ac_cpp='$CPP $CPPFLAGS'
  18680. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18681. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18682. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18683. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  18684. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  18685. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  18686. + $as_echo_n "(cached) " >&6
  18687. +else
  18688. + lt_cv_ld_reload_flag='-r'
  18689. fi
  18690. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  18691. -$as_echo "$lt_cv_cc_needs_belf" >&6; }
  18692. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  18693. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  18694. - CFLAGS="$SAVE_CFLAGS"
  18695. - fi
  18696. - ;;
  18697. -sparc*-*solaris*)
  18698. - # Find out which ABI we are using.
  18699. - echo 'int i;' > conftest.$ac_ext
  18700. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18701. - (eval $ac_compile) 2>&5
  18702. - ac_status=$?
  18703. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18704. - (exit $ac_status); }; then
  18705. - case `/usr/bin/file conftest.o` in
  18706. - *64-bit*)
  18707. - case $lt_cv_prog_gnu_ld in
  18708. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  18709. - *)
  18710. - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  18711. - LD="${LD-ld} -64"
  18712. - fi
  18713. - ;;
  18714. - esac
  18715. - ;;
  18716. - esac
  18717. - fi
  18718. - rm -rf conftest*
  18719. - ;;
  18720. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  18721. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  18722. +reload_flag=$lt_cv_ld_reload_flag
  18723. +case $reload_flag in
  18724. +"" | " "*) ;;
  18725. +*) reload_flag=" $reload_flag" ;;
  18726. +esac
  18727. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  18728. +case $host_os in
  18729. + darwin*)
  18730. + if test "$GCC" = yes; then
  18731. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  18732. + else
  18733. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  18734. + fi
  18735. + ;;
  18736. +esac
  18737. -esac
  18738. -need_locks="$enable_libtool_lock"
  18739. -for ac_header in dlfcn.h
  18740. -do
  18741. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18742. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18743. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18744. -$as_echo_n "checking for $ac_header... " >&6; }
  18745. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18746. +
  18747. +
  18748. +
  18749. +if test -n "$ac_tool_prefix"; then
  18750. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  18751. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  18752. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18753. +$as_echo_n "checking for $ac_word... " >&6; }
  18754. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  18755. $as_echo_n "(cached) " >&6
  18756. -fi
  18757. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  18758. - $as_echo "$as_val"'`
  18759. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18760. -$as_echo "$ac_res" >&6; }
  18761. else
  18762. - # Is the header compilable?
  18763. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18764. -$as_echo_n "checking $ac_header usability... " >&6; }
  18765. -cat >conftest.$ac_ext <<_ACEOF
  18766. -/* confdefs.h. */
  18767. -_ACEOF
  18768. -cat confdefs.h >>conftest.$ac_ext
  18769. -cat >>conftest.$ac_ext <<_ACEOF
  18770. -/* end confdefs.h. */
  18771. -$ac_includes_default
  18772. -#include <$ac_header>
  18773. -_ACEOF
  18774. -rm -f conftest.$ac_objext
  18775. -if { (ac_try="$ac_compile"
  18776. -case "(($ac_try" in
  18777. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18778. - *) ac_try_echo=$ac_try;;
  18779. -esac
  18780. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18781. -$as_echo "$ac_try_echo") >&5
  18782. - (eval "$ac_compile") 2>conftest.er1
  18783. - ac_status=$?
  18784. - grep -v '^ *+' conftest.er1 >conftest.err
  18785. - rm -f conftest.er1
  18786. - cat conftest.err >&5
  18787. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18788. - (exit $ac_status); } && {
  18789. - test -z "$ac_c_werror_flag" ||
  18790. - test ! -s conftest.err
  18791. - } && test -s conftest.$ac_objext; then
  18792. - ac_header_compiler=yes
  18793. + if test -n "$OBJDUMP"; then
  18794. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  18795. else
  18796. - $as_echo "$as_me: failed program was:" >&5
  18797. -sed 's/^/| /' conftest.$ac_ext >&5
  18798. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18799. +for as_dir in $PATH
  18800. +do
  18801. + IFS=$as_save_IFS
  18802. + test -z "$as_dir" && as_dir=.
  18803. + for ac_exec_ext in '' $ac_executable_extensions; do
  18804. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18805. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  18806. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18807. + break 2
  18808. + fi
  18809. +done
  18810. + done
  18811. +IFS=$as_save_IFS
  18812. - ac_header_compiler=no
  18813. +fi
  18814. +fi
  18815. +OBJDUMP=$ac_cv_prog_OBJDUMP
  18816. +if test -n "$OBJDUMP"; then
  18817. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  18818. +$as_echo "$OBJDUMP" >&6; }
  18819. +else
  18820. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18821. +$as_echo "no" >&6; }
  18822. fi
  18823. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18824. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18825. -$as_echo "$ac_header_compiler" >&6; }
  18826. -# Is the header present?
  18827. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18828. -$as_echo_n "checking $ac_header presence... " >&6; }
  18829. -cat >conftest.$ac_ext <<_ACEOF
  18830. -/* confdefs.h. */
  18831. -_ACEOF
  18832. -cat confdefs.h >>conftest.$ac_ext
  18833. -cat >>conftest.$ac_ext <<_ACEOF
  18834. -/* end confdefs.h. */
  18835. -#include <$ac_header>
  18836. -_ACEOF
  18837. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  18838. -case "(($ac_try" in
  18839. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18840. - *) ac_try_echo=$ac_try;;
  18841. -esac
  18842. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18843. -$as_echo "$ac_try_echo") >&5
  18844. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18845. - ac_status=$?
  18846. - grep -v '^ *+' conftest.er1 >conftest.err
  18847. - rm -f conftest.er1
  18848. - cat conftest.err >&5
  18849. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18850. - (exit $ac_status); } >/dev/null && {
  18851. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18852. - test ! -s conftest.err
  18853. - }; then
  18854. - ac_header_preproc=yes
  18855. +fi
  18856. +if test -z "$ac_cv_prog_OBJDUMP"; then
  18857. + ac_ct_OBJDUMP=$OBJDUMP
  18858. + # Extract the first word of "objdump", so it can be a program name with args.
  18859. +set dummy objdump; ac_word=$2
  18860. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18861. +$as_echo_n "checking for $ac_word... " >&6; }
  18862. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  18863. + $as_echo_n "(cached) " >&6
  18864. else
  18865. - $as_echo "$as_me: failed program was:" >&5
  18866. -sed 's/^/| /' conftest.$ac_ext >&5
  18867. + if test -n "$ac_ct_OBJDUMP"; then
  18868. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  18869. +else
  18870. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18871. +for as_dir in $PATH
  18872. +do
  18873. + IFS=$as_save_IFS
  18874. + test -z "$as_dir" && as_dir=.
  18875. + for ac_exec_ext in '' $ac_executable_extensions; do
  18876. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18877. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  18878. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18879. + break 2
  18880. + fi
  18881. +done
  18882. + done
  18883. +IFS=$as_save_IFS
  18884. - ac_header_preproc=no
  18885. +fi
  18886. +fi
  18887. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  18888. +if test -n "$ac_ct_OBJDUMP"; then
  18889. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  18890. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  18891. +else
  18892. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18893. +$as_echo "no" >&6; }
  18894. fi
  18895. -rm -f conftest.err conftest.$ac_ext
  18896. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18897. -$as_echo "$ac_header_preproc" >&6; }
  18898. -
  18899. -# So? What about this header?
  18900. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18901. - yes:no: )
  18902. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18903. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18904. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18905. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18906. - ac_header_preproc=yes
  18907. - ;;
  18908. - no:yes:* )
  18909. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18910. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18911. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18912. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18913. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18914. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18915. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18916. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18917. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18918. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18919. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18920. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18921. - ( cat <<\_ASBOX
  18922. -## ---------------------------------------------- ##
  18923. -## Report this to mzqnrzba (at) 0pointer (dot) de ##
  18924. -## ---------------------------------------------- ##
  18925. -_ASBOX
  18926. - ) | sed "s/^/$as_me: WARNING: /" >&2
  18927. - ;;
  18928. + if test "x$ac_ct_OBJDUMP" = x; then
  18929. + OBJDUMP="false"
  18930. + else
  18931. + case $cross_compiling:$ac_tool_warned in
  18932. +yes:)
  18933. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18934. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18935. +ac_tool_warned=yes ;;
  18936. esac
  18937. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18938. -$as_echo_n "checking for $ac_header... " >&6; }
  18939. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18940. - $as_echo_n "(cached) " >&6
  18941. + OBJDUMP=$ac_ct_OBJDUMP
  18942. + fi
  18943. else
  18944. - eval "$as_ac_Header=\$ac_header_preproc"
  18945. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  18946. fi
  18947. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  18948. - $as_echo "$as_val"'`
  18949. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18950. -$as_echo "$ac_res" >&6; }
  18951. -fi
  18952. -if test `eval 'as_val=${'$as_ac_Header'}
  18953. - $as_echo "$as_val"'` = yes; then
  18954. - cat >>confdefs.h <<_ACEOF
  18955. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18956. -_ACEOF
  18957. +test -z "$OBJDUMP" && OBJDUMP=objdump
  18958. -fi
  18959. -done
  18960. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  18961. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  18962. - (test "X$CXX" != "Xg++"))) ; then
  18963. - ac_ext=cpp
  18964. -ac_cpp='$CXXCPP $CPPFLAGS'
  18965. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18966. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18967. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18968. -{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  18969. -$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  18970. -if test -z "$CXXCPP"; then
  18971. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  18972. +
  18973. +
  18974. +
  18975. +
  18976. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  18977. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  18978. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  18979. $as_echo_n "(cached) " >&6
  18980. else
  18981. - # Double quotes because CXXCPP needs to be expanded
  18982. - for CXXCPP in "$CXX -E" "/lib/cpp"
  18983. - do
  18984. - ac_preproc_ok=false
  18985. -for ac_cxx_preproc_warn_flag in '' yes
  18986. -do
  18987. - # Use a header file that comes with gcc, so configuring glibc
  18988. - # with a fresh cross-compiler works.
  18989. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18990. - # <limits.h> exists even on freestanding compilers.
  18991. - # On the NeXT, cc -E runs the code through the compiler's parser,
  18992. - # not just through cpp. "Syntax error" is here to catch this case.
  18993. - cat >conftest.$ac_ext <<_ACEOF
  18994. -/* confdefs.h. */
  18995. -_ACEOF
  18996. -cat confdefs.h >>conftest.$ac_ext
  18997. -cat >>conftest.$ac_ext <<_ACEOF
  18998. -/* end confdefs.h. */
  18999. -#ifdef __STDC__
  19000. -# include <limits.h>
  19001. -#else
  19002. -# include <assert.h>
  19003. -#endif
  19004. - Syntax error
  19005. -_ACEOF
  19006. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19007. -case "(($ac_try" in
  19008. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19009. - *) ac_try_echo=$ac_try;;
  19010. -esac
  19011. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19012. -$as_echo "$ac_try_echo") >&5
  19013. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19014. - ac_status=$?
  19015. - grep -v '^ *+' conftest.er1 >conftest.err
  19016. - rm -f conftest.er1
  19017. - cat conftest.err >&5
  19018. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19019. - (exit $ac_status); } >/dev/null && {
  19020. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  19021. - test ! -s conftest.err
  19022. - }; then
  19023. - :
  19024. -else
  19025. - $as_echo "$as_me: failed program was:" >&5
  19026. -sed 's/^/| /' conftest.$ac_ext >&5
  19027. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  19028. +lt_cv_file_magic_test_file=
  19029. +lt_cv_deplibs_check_method='unknown'
  19030. +# Need to set the preceding variable on all platforms that support
  19031. +# interlibrary dependencies.
  19032. +# 'none' -- dependencies not supported.
  19033. +# `unknown' -- same as none, but documents that we really don't know.
  19034. +# 'pass_all' -- all dependencies passed with no checks.
  19035. +# 'test_compile' -- check by making test program.
  19036. +# 'file_magic [[regex]]' -- check by looking for files in library path
  19037. +# which responds to the $file_magic_cmd with a given extended regex.
  19038. +# If you have `file' or equivalent on your system and you're not sure
  19039. +# whether `pass_all' will *always* work, you probably want this one.
  19040. - # Broken: fails on valid input.
  19041. -continue
  19042. -fi
  19043. +case $host_os in
  19044. +aix[4-9]*)
  19045. + lt_cv_deplibs_check_method=pass_all
  19046. + ;;
  19047. -rm -f conftest.err conftest.$ac_ext
  19048. +beos*)
  19049. + lt_cv_deplibs_check_method=pass_all
  19050. + ;;
  19051. - # OK, works on sane cases. Now check whether nonexistent headers
  19052. - # can be detected and how.
  19053. - cat >conftest.$ac_ext <<_ACEOF
  19054. -/* confdefs.h. */
  19055. -_ACEOF
  19056. -cat confdefs.h >>conftest.$ac_ext
  19057. -cat >>conftest.$ac_ext <<_ACEOF
  19058. -/* end confdefs.h. */
  19059. -#include <ac_nonexistent.h>
  19060. -_ACEOF
  19061. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19062. -case "(($ac_try" in
  19063. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19064. - *) ac_try_echo=$ac_try;;
  19065. -esac
  19066. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19067. -$as_echo "$ac_try_echo") >&5
  19068. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19069. - ac_status=$?
  19070. - grep -v '^ *+' conftest.er1 >conftest.err
  19071. - rm -f conftest.er1
  19072. - cat conftest.err >&5
  19073. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19074. - (exit $ac_status); } >/dev/null && {
  19075. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  19076. - test ! -s conftest.err
  19077. - }; then
  19078. - # Broken: success on invalid input.
  19079. -continue
  19080. -else
  19081. - $as_echo "$as_me: failed program was:" >&5
  19082. -sed 's/^/| /' conftest.$ac_ext >&5
  19083. +bsdi[45]*)
  19084. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  19085. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  19086. + lt_cv_file_magic_test_file=/shlib/libc.so
  19087. + ;;
  19088. - # Passes both tests.
  19089. -ac_preproc_ok=:
  19090. -break
  19091. -fi
  19092. +cygwin*)
  19093. + # func_win32_libid is a shell function defined in ltmain.sh
  19094. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  19095. + lt_cv_file_magic_cmd='func_win32_libid'
  19096. + ;;
  19097. -rm -f conftest.err conftest.$ac_ext
  19098. +mingw* | pw32*)
  19099. + # Base MSYS/MinGW do not provide the 'file' command needed by
  19100. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  19101. + # unless we find 'file', for example because we are cross-compiling.
  19102. + if ( file / ) >/dev/null 2>&1; then
  19103. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  19104. + lt_cv_file_magic_cmd='func_win32_libid'
  19105. + else
  19106. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  19107. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  19108. + fi
  19109. + ;;
  19110. -done
  19111. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  19112. -rm -f conftest.err conftest.$ac_ext
  19113. -if $ac_preproc_ok; then
  19114. - break
  19115. -fi
  19116. +cegcc)
  19117. + # use the weaker test based on 'objdump'. See mingw*.
  19118. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  19119. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  19120. + ;;
  19121. - done
  19122. - ac_cv_prog_CXXCPP=$CXXCPP
  19123. +darwin* | rhapsody*)
  19124. + lt_cv_deplibs_check_method=pass_all
  19125. + ;;
  19126. -fi
  19127. - CXXCPP=$ac_cv_prog_CXXCPP
  19128. -else
  19129. - ac_cv_prog_CXXCPP=$CXXCPP
  19130. -fi
  19131. -{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  19132. -$as_echo "$CXXCPP" >&6; }
  19133. -ac_preproc_ok=false
  19134. -for ac_cxx_preproc_warn_flag in '' yes
  19135. -do
  19136. - # Use a header file that comes with gcc, so configuring glibc
  19137. - # with a fresh cross-compiler works.
  19138. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19139. - # <limits.h> exists even on freestanding compilers.
  19140. - # On the NeXT, cc -E runs the code through the compiler's parser,
  19141. - # not just through cpp. "Syntax error" is here to catch this case.
  19142. - cat >conftest.$ac_ext <<_ACEOF
  19143. -/* confdefs.h. */
  19144. -_ACEOF
  19145. -cat confdefs.h >>conftest.$ac_ext
  19146. -cat >>conftest.$ac_ext <<_ACEOF
  19147. -/* end confdefs.h. */
  19148. -#ifdef __STDC__
  19149. -# include <limits.h>
  19150. -#else
  19151. -# include <assert.h>
  19152. -#endif
  19153. - Syntax error
  19154. -_ACEOF
  19155. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19156. -case "(($ac_try" in
  19157. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19158. - *) ac_try_echo=$ac_try;;
  19159. -esac
  19160. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19161. -$as_echo "$ac_try_echo") >&5
  19162. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19163. - ac_status=$?
  19164. - grep -v '^ *+' conftest.er1 >conftest.err
  19165. - rm -f conftest.er1
  19166. - cat conftest.err >&5
  19167. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19168. - (exit $ac_status); } >/dev/null && {
  19169. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  19170. - test ! -s conftest.err
  19171. - }; then
  19172. - :
  19173. -else
  19174. - $as_echo "$as_me: failed program was:" >&5
  19175. -sed 's/^/| /' conftest.$ac_ext >&5
  19176. +freebsd* | dragonfly*)
  19177. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  19178. + case $host_cpu in
  19179. + i*86 )
  19180. + # Not sure whether the presence of OpenBSD here was a mistake.
  19181. + # Let's accept both of them until this is cleared up.
  19182. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  19183. + lt_cv_file_magic_cmd=/usr/bin/file
  19184. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  19185. + ;;
  19186. + esac
  19187. + else
  19188. + lt_cv_deplibs_check_method=pass_all
  19189. + fi
  19190. + ;;
  19191. - # Broken: fails on valid input.
  19192. -continue
  19193. -fi
  19194. +gnu*)
  19195. + lt_cv_deplibs_check_method=pass_all
  19196. + ;;
  19197. -rm -f conftest.err conftest.$ac_ext
  19198. +hpux10.20* | hpux11*)
  19199. + lt_cv_file_magic_cmd=/usr/bin/file
  19200. + case $host_cpu in
  19201. + ia64*)
  19202. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  19203. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  19204. + ;;
  19205. + hppa*64*)
  19206. + 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]'
  19207. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  19208. + ;;
  19209. + *)
  19210. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  19211. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  19212. + ;;
  19213. + esac
  19214. + ;;
  19215. - # OK, works on sane cases. Now check whether nonexistent headers
  19216. - # can be detected and how.
  19217. - cat >conftest.$ac_ext <<_ACEOF
  19218. -/* confdefs.h. */
  19219. -_ACEOF
  19220. -cat confdefs.h >>conftest.$ac_ext
  19221. -cat >>conftest.$ac_ext <<_ACEOF
  19222. -/* end confdefs.h. */
  19223. -#include <ac_nonexistent.h>
  19224. -_ACEOF
  19225. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19226. -case "(($ac_try" in
  19227. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19228. - *) ac_try_echo=$ac_try;;
  19229. -esac
  19230. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19231. -$as_echo "$ac_try_echo") >&5
  19232. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19233. - ac_status=$?
  19234. - grep -v '^ *+' conftest.er1 >conftest.err
  19235. - rm -f conftest.er1
  19236. - cat conftest.err >&5
  19237. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19238. - (exit $ac_status); } >/dev/null && {
  19239. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  19240. - test ! -s conftest.err
  19241. - }; then
  19242. - # Broken: success on invalid input.
  19243. -continue
  19244. -else
  19245. - $as_echo "$as_me: failed program was:" >&5
  19246. -sed 's/^/| /' conftest.$ac_ext >&5
  19247. +interix[3-9]*)
  19248. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  19249. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  19250. + ;;
  19251. - # Passes both tests.
  19252. -ac_preproc_ok=:
  19253. -break
  19254. -fi
  19255. +irix5* | irix6* | nonstopux*)
  19256. + case $LD in
  19257. + *-32|*"-32 ") libmagic=32-bit;;
  19258. + *-n32|*"-n32 ") libmagic=N32;;
  19259. + *-64|*"-64 ") libmagic=64-bit;;
  19260. + *) libmagic=never-match;;
  19261. + esac
  19262. + lt_cv_deplibs_check_method=pass_all
  19263. + ;;
  19264. -rm -f conftest.err conftest.$ac_ext
  19265. +# This must be Linux ELF.
  19266. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  19267. + lt_cv_deplibs_check_method=pass_all
  19268. + ;;
  19269. -done
  19270. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  19271. -rm -f conftest.err conftest.$ac_ext
  19272. -if $ac_preproc_ok; then
  19273. - :
  19274. -else
  19275. - { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  19276. -See \`config.log' for more details." >&5
  19277. -$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  19278. -See \`config.log' for more details." >&2;}
  19279. - { (exit 1); exit 1; }; }
  19280. -fi
  19281. +netbsd* | netbsdelf*-gnu)
  19282. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  19283. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  19284. + else
  19285. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  19286. + fi
  19287. + ;;
  19288. -ac_ext=cpp
  19289. -ac_cpp='$CXXCPP $CPPFLAGS'
  19290. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19291. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19292. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19293. +newos6*)
  19294. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  19295. + lt_cv_file_magic_cmd=/usr/bin/file
  19296. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  19297. + ;;
  19298. -fi
  19299. +*nto* | *qnx*)
  19300. + lt_cv_deplibs_check_method=pass_all
  19301. + ;;
  19302. +openbsd*)
  19303. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  19304. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  19305. + else
  19306. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  19307. + fi
  19308. + ;;
  19309. -ac_ext=f
  19310. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  19311. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19312. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  19313. -if test -n "$ac_tool_prefix"; then
  19314. - 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
  19315. - do
  19316. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  19317. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  19318. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19319. -$as_echo_n "checking for $ac_word... " >&6; }
  19320. -if test "${ac_cv_prog_F77+set}" = set; then
  19321. - $as_echo_n "(cached) " >&6
  19322. -else
  19323. - if test -n "$F77"; then
  19324. - ac_cv_prog_F77="$F77" # Let the user override the test.
  19325. -else
  19326. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19327. -for as_dir in $PATH
  19328. -do
  19329. - IFS=$as_save_IFS
  19330. +osf3* | osf4* | osf5*)
  19331. + lt_cv_deplibs_check_method=pass_all
  19332. + ;;
  19333. +
  19334. +rdos*)
  19335. + lt_cv_deplibs_check_method=pass_all
  19336. + ;;
  19337. +
  19338. +solaris*)
  19339. + lt_cv_deplibs_check_method=pass_all
  19340. + ;;
  19341. +
  19342. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  19343. + lt_cv_deplibs_check_method=pass_all
  19344. + ;;
  19345. +
  19346. +sysv4 | sysv4.3*)
  19347. + case $host_vendor in
  19348. + motorola)
  19349. + 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]'
  19350. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  19351. + ;;
  19352. + ncr)
  19353. + lt_cv_deplibs_check_method=pass_all
  19354. + ;;
  19355. + sequent)
  19356. + lt_cv_file_magic_cmd='/bin/file'
  19357. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  19358. + ;;
  19359. + sni)
  19360. + lt_cv_file_magic_cmd='/bin/file'
  19361. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  19362. + lt_cv_file_magic_test_file=/lib/libc.so
  19363. + ;;
  19364. + siemens)
  19365. + lt_cv_deplibs_check_method=pass_all
  19366. + ;;
  19367. + pc)
  19368. + lt_cv_deplibs_check_method=pass_all
  19369. + ;;
  19370. + esac
  19371. + ;;
  19372. +
  19373. +tpf*)
  19374. + lt_cv_deplibs_check_method=pass_all
  19375. + ;;
  19376. +esac
  19377. +
  19378. +fi
  19379. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  19380. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  19381. +file_magic_cmd=$lt_cv_file_magic_cmd
  19382. +deplibs_check_method=$lt_cv_deplibs_check_method
  19383. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  19384. +
  19385. +
  19386. +
  19387. +
  19388. +
  19389. +
  19390. +
  19391. +
  19392. +
  19393. +
  19394. +
  19395. +
  19396. +if test -n "$ac_tool_prefix"; then
  19397. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  19398. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  19399. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19400. +$as_echo_n "checking for $ac_word... " >&6; }
  19401. +if test "${ac_cv_prog_AR+set}" = set; then :
  19402. + $as_echo_n "(cached) " >&6
  19403. +else
  19404. + if test -n "$AR"; then
  19405. + ac_cv_prog_AR="$AR" # Let the user override the test.
  19406. +else
  19407. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19408. +for as_dir in $PATH
  19409. +do
  19410. + IFS=$as_save_IFS
  19411. test -z "$as_dir" && as_dir=.
  19412. - for ac_exec_ext in '' $ac_executable_extensions; do
  19413. + for ac_exec_ext in '' $ac_executable_extensions; do
  19414. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19415. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  19416. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19417. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  19418. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19419. break 2
  19420. fi
  19421. done
  19422. -done
  19423. + done
  19424. IFS=$as_save_IFS
  19425. fi
  19426. fi
  19427. -F77=$ac_cv_prog_F77
  19428. -if test -n "$F77"; then
  19429. - { $as_echo "$as_me:$LINENO: result: $F77" >&5
  19430. -$as_echo "$F77" >&6; }
  19431. +AR=$ac_cv_prog_AR
  19432. +if test -n "$AR"; then
  19433. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  19434. +$as_echo "$AR" >&6; }
  19435. else
  19436. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19437. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19438. $as_echo "no" >&6; }
  19439. fi
  19440. - test -n "$F77" && break
  19441. - done
  19442. fi
  19443. -if test -z "$F77"; then
  19444. - ac_ct_F77=$F77
  19445. - 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
  19446. -do
  19447. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  19448. -set dummy $ac_prog; ac_word=$2
  19449. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19450. +if test -z "$ac_cv_prog_AR"; then
  19451. + ac_ct_AR=$AR
  19452. + # Extract the first word of "ar", so it can be a program name with args.
  19453. +set dummy ar; ac_word=$2
  19454. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19455. $as_echo_n "checking for $ac_word... " >&6; }
  19456. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  19457. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  19458. $as_echo_n "(cached) " >&6
  19459. else
  19460. - if test -n "$ac_ct_F77"; then
  19461. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  19462. + if test -n "$ac_ct_AR"; then
  19463. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  19464. else
  19465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19466. for as_dir in $PATH
  19467. do
  19468. IFS=$as_save_IFS
  19469. test -z "$as_dir" && as_dir=.
  19470. - for ac_exec_ext in '' $ac_executable_extensions; do
  19471. + for ac_exec_ext in '' $ac_executable_extensions; do
  19472. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19473. - ac_cv_prog_ac_ct_F77="$ac_prog"
  19474. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19475. + ac_cv_prog_ac_ct_AR="ar"
  19476. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19477. break 2
  19478. fi
  19479. done
  19480. -done
  19481. + done
  19482. IFS=$as_save_IFS
  19483. fi
  19484. fi
  19485. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  19486. -if test -n "$ac_ct_F77"; then
  19487. - { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  19488. -$as_echo "$ac_ct_F77" >&6; }
  19489. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  19490. +if test -n "$ac_ct_AR"; then
  19491. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  19492. +$as_echo "$ac_ct_AR" >&6; }
  19493. else
  19494. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19495. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19496. $as_echo "no" >&6; }
  19497. fi
  19498. -
  19499. - test -n "$ac_ct_F77" && break
  19500. -done
  19501. -
  19502. - if test "x$ac_ct_F77" = x; then
  19503. - F77=""
  19504. + if test "x$ac_ct_AR" = x; then
  19505. + AR="false"
  19506. else
  19507. case $cross_compiling:$ac_tool_warned in
  19508. yes:)
  19509. -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  19510. -whose name does not start with the host triplet. If you think this
  19511. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  19512. -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  19513. -whose name does not start with the host triplet. If you think this
  19514. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  19515. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19516. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19517. ac_tool_warned=yes ;;
  19518. esac
  19519. - F77=$ac_ct_F77
  19520. + AR=$ac_ct_AR
  19521. fi
  19522. +else
  19523. + AR="$ac_cv_prog_AR"
  19524. fi
  19525. +test -z "$AR" && AR=ar
  19526. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  19527. -# Provide some information about the compiler.
  19528. -$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  19529. -set X $ac_compile
  19530. -ac_compiler=$2
  19531. -{ (ac_try="$ac_compiler --version >&5"
  19532. -case "(($ac_try" in
  19533. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19534. - *) ac_try_echo=$ac_try;;
  19535. -esac
  19536. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19537. -$as_echo "$ac_try_echo") >&5
  19538. - (eval "$ac_compiler --version >&5") 2>&5
  19539. - ac_status=$?
  19540. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19541. - (exit $ac_status); }
  19542. -{ (ac_try="$ac_compiler -v >&5"
  19543. -case "(($ac_try" in
  19544. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19545. - *) ac_try_echo=$ac_try;;
  19546. -esac
  19547. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19548. -$as_echo "$ac_try_echo") >&5
  19549. - (eval "$ac_compiler -v >&5") 2>&5
  19550. - ac_status=$?
  19551. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19552. - (exit $ac_status); }
  19553. -{ (ac_try="$ac_compiler -V >&5"
  19554. -case "(($ac_try" in
  19555. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19556. - *) ac_try_echo=$ac_try;;
  19557. -esac
  19558. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19559. -$as_echo "$ac_try_echo") >&5
  19560. - (eval "$ac_compiler -V >&5") 2>&5
  19561. - ac_status=$?
  19562. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19563. - (exit $ac_status); }
  19564. -rm -f a.out
  19565. -
  19566. -# If we don't use `.F' as extension, the preprocessor is not run on the
  19567. -# input file. (Note that this only needs to work for GNU compilers.)
  19568. -ac_save_ext=$ac_ext
  19569. -ac_ext=F
  19570. -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  19571. -$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
  19572. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  19573. +
  19574. +
  19575. +
  19576. +
  19577. +
  19578. +
  19579. +
  19580. +
  19581. +
  19582. +
  19583. +if test -n "$ac_tool_prefix"; then
  19584. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  19585. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  19586. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19587. +$as_echo_n "checking for $ac_word... " >&6; }
  19588. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  19589. $as_echo_n "(cached) " >&6
  19590. else
  19591. - cat >conftest.$ac_ext <<_ACEOF
  19592. - program main
  19593. -#ifndef __GNUC__
  19594. - choke me
  19595. -#endif
  19596. -
  19597. - end
  19598. -_ACEOF
  19599. -rm -f conftest.$ac_objext
  19600. -if { (ac_try="$ac_compile"
  19601. -case "(($ac_try" in
  19602. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19603. - *) ac_try_echo=$ac_try;;
  19604. -esac
  19605. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19606. -$as_echo "$ac_try_echo") >&5
  19607. - (eval "$ac_compile") 2>conftest.er1
  19608. - ac_status=$?
  19609. - grep -v '^ *+' conftest.er1 >conftest.err
  19610. - rm -f conftest.er1
  19611. - cat conftest.err >&5
  19612. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19613. - (exit $ac_status); } && {
  19614. - test -z "$ac_f77_werror_flag" ||
  19615. - test ! -s conftest.err
  19616. - } && test -s conftest.$ac_objext; then
  19617. - ac_compiler_gnu=yes
  19618. + if test -n "$STRIP"; then
  19619. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  19620. else
  19621. - $as_echo "$as_me: failed program was:" >&5
  19622. -sed 's/^/| /' conftest.$ac_ext >&5
  19623. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19624. +for as_dir in $PATH
  19625. +do
  19626. + IFS=$as_save_IFS
  19627. + test -z "$as_dir" && as_dir=.
  19628. + for ac_exec_ext in '' $ac_executable_extensions; do
  19629. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19630. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  19631. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19632. + break 2
  19633. + fi
  19634. +done
  19635. + done
  19636. +IFS=$as_save_IFS
  19637. - ac_compiler_gnu=no
  19638. +fi
  19639. +fi
  19640. +STRIP=$ac_cv_prog_STRIP
  19641. +if test -n "$STRIP"; then
  19642. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  19643. +$as_echo "$STRIP" >&6; }
  19644. +else
  19645. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19646. +$as_echo "no" >&6; }
  19647. fi
  19648. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19649. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  19650. fi
  19651. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  19652. -$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
  19653. -ac_ext=$ac_save_ext
  19654. -ac_test_FFLAGS=${FFLAGS+set}
  19655. -ac_save_FFLAGS=$FFLAGS
  19656. -FFLAGS=
  19657. -{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  19658. -$as_echo_n "checking whether $F77 accepts -g... " >&6; }
  19659. -if test "${ac_cv_prog_f77_g+set}" = set; then
  19660. +if test -z "$ac_cv_prog_STRIP"; then
  19661. + ac_ct_STRIP=$STRIP
  19662. + # Extract the first word of "strip", so it can be a program name with args.
  19663. +set dummy strip; ac_word=$2
  19664. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19665. +$as_echo_n "checking for $ac_word... " >&6; }
  19666. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  19667. $as_echo_n "(cached) " >&6
  19668. else
  19669. - FFLAGS=-g
  19670. -cat >conftest.$ac_ext <<_ACEOF
  19671. - program main
  19672. -
  19673. - end
  19674. -_ACEOF
  19675. -rm -f conftest.$ac_objext
  19676. -if { (ac_try="$ac_compile"
  19677. -case "(($ac_try" in
  19678. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19679. - *) ac_try_echo=$ac_try;;
  19680. -esac
  19681. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19682. -$as_echo "$ac_try_echo") >&5
  19683. - (eval "$ac_compile") 2>conftest.er1
  19684. - ac_status=$?
  19685. - grep -v '^ *+' conftest.er1 >conftest.err
  19686. - rm -f conftest.er1
  19687. - cat conftest.err >&5
  19688. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19689. - (exit $ac_status); } && {
  19690. - test -z "$ac_f77_werror_flag" ||
  19691. - test ! -s conftest.err
  19692. - } && test -s conftest.$ac_objext; then
  19693. - ac_cv_prog_f77_g=yes
  19694. + if test -n "$ac_ct_STRIP"; then
  19695. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  19696. else
  19697. - $as_echo "$as_me: failed program was:" >&5
  19698. -sed 's/^/| /' conftest.$ac_ext >&5
  19699. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19700. +for as_dir in $PATH
  19701. +do
  19702. + IFS=$as_save_IFS
  19703. + test -z "$as_dir" && as_dir=.
  19704. + for ac_exec_ext in '' $ac_executable_extensions; do
  19705. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19706. + ac_cv_prog_ac_ct_STRIP="strip"
  19707. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19708. + break 2
  19709. + fi
  19710. +done
  19711. + done
  19712. +IFS=$as_save_IFS
  19713. - ac_cv_prog_f77_g=no
  19714. fi
  19715. -
  19716. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19717. -
  19718. fi
  19719. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  19720. -$as_echo "$ac_cv_prog_f77_g" >&6; }
  19721. -if test "$ac_test_FFLAGS" = set; then
  19722. - FFLAGS=$ac_save_FFLAGS
  19723. -elif test $ac_cv_prog_f77_g = yes; then
  19724. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  19725. - FFLAGS="-g -O2"
  19726. - else
  19727. - FFLAGS="-g"
  19728. - fi
  19729. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  19730. +if test -n "$ac_ct_STRIP"; then
  19731. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  19732. +$as_echo "$ac_ct_STRIP" >&6; }
  19733. else
  19734. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  19735. - FFLAGS="-O2"
  19736. - else
  19737. - FFLAGS=
  19738. - fi
  19739. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19740. +$as_echo "no" >&6; }
  19741. fi
  19742. -if test $ac_compiler_gnu = yes; then
  19743. - G77=yes
  19744. + if test "x$ac_ct_STRIP" = x; then
  19745. + STRIP=":"
  19746. + else
  19747. + case $cross_compiling:$ac_tool_warned in
  19748. +yes:)
  19749. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19750. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19751. +ac_tool_warned=yes ;;
  19752. +esac
  19753. + STRIP=$ac_ct_STRIP
  19754. + fi
  19755. else
  19756. - G77=
  19757. + STRIP="$ac_cv_prog_STRIP"
  19758. fi
  19759. -ac_ext=c
  19760. -ac_cpp='$CPP $CPPFLAGS'
  19761. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19762. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19763. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19764. +test -z "$STRIP" && STRIP=:
  19765. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  19766. -# find the maximum length of command line arguments
  19767. -{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  19768. -$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  19769. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  19770. - $as_echo_n "(cached) " >&6
  19771. -else
  19772. - i=0
  19773. - teststring="ABCD"
  19774. - case $build_os in
  19775. - msdosdjgpp*)
  19776. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  19777. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  19778. - # during glob expansion). Even if it were fixed, the result of this
  19779. - # check would be larger than it should be.
  19780. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  19781. - ;;
  19782. - gnu*)
  19783. - # Under GNU Hurd, this test is not required because there is
  19784. - # no limit to the length of command line arguments.
  19785. - # Libtool will interpret -1 as no limit whatsoever
  19786. - lt_cv_sys_max_cmd_len=-1;
  19787. - ;;
  19788. - cygwin* | mingw*)
  19789. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  19790. - # about 5 minutes as the teststring grows exponentially.
  19791. - # Worse, since 9x/ME are not pre-emptively multitasking,
  19792. - # you end up with a "frozen" computer, even though with patience
  19793. - # the test eventually succeeds (with a max line length of 256k).
  19794. - # Instead, let's just punt: use the minimum linelength reported by
  19795. - # all of the supported platforms: 8192 (on NT/2K/XP).
  19796. - lt_cv_sys_max_cmd_len=8192;
  19797. - ;;
  19798. - amigaos*)
  19799. - # On AmigaOS with pdksh, this test takes hours, literally.
  19800. - # So we just punt and use a minimum line length of 8192.
  19801. - lt_cv_sys_max_cmd_len=8192;
  19802. - ;;
  19803. +if test -n "$ac_tool_prefix"; then
  19804. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  19805. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  19806. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19807. +$as_echo_n "checking for $ac_word... " >&6; }
  19808. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  19809. + $as_echo_n "(cached) " >&6
  19810. +else
  19811. + if test -n "$RANLIB"; then
  19812. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  19813. +else
  19814. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19815. +for as_dir in $PATH
  19816. +do
  19817. + IFS=$as_save_IFS
  19818. + test -z "$as_dir" && as_dir=.
  19819. + for ac_exec_ext in '' $ac_executable_extensions; do
  19820. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19821. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  19822. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19823. + break 2
  19824. + fi
  19825. +done
  19826. + done
  19827. +IFS=$as_save_IFS
  19828. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  19829. - # This has been around since 386BSD, at least. Likely further.
  19830. - if test -x /sbin/sysctl; then
  19831. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  19832. - elif test -x /usr/sbin/sysctl; then
  19833. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  19834. - else
  19835. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  19836. - fi
  19837. - # And add a safety zone
  19838. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  19839. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  19840. - ;;
  19841. +fi
  19842. +fi
  19843. +RANLIB=$ac_cv_prog_RANLIB
  19844. +if test -n "$RANLIB"; then
  19845. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  19846. +$as_echo "$RANLIB" >&6; }
  19847. +else
  19848. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19849. +$as_echo "no" >&6; }
  19850. +fi
  19851. - interix*)
  19852. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  19853. - lt_cv_sys_max_cmd_len=196608
  19854. - ;;
  19855. - osf*)
  19856. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  19857. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  19858. - # nice to cause kernel panics so lets avoid the loop below.
  19859. - # First set a reasonable default.
  19860. - lt_cv_sys_max_cmd_len=16384
  19861. - #
  19862. - if test -x /sbin/sysconfig; then
  19863. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  19864. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  19865. - esac
  19866. - fi
  19867. - ;;
  19868. - sco3.2v5*)
  19869. - lt_cv_sys_max_cmd_len=102400
  19870. - ;;
  19871. - sysv5* | sco5v6* | sysv4.2uw2*)
  19872. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  19873. - if test -n "$kargmax"; then
  19874. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  19875. - else
  19876. - lt_cv_sys_max_cmd_len=32768
  19877. - fi
  19878. +fi
  19879. +if test -z "$ac_cv_prog_RANLIB"; then
  19880. + ac_ct_RANLIB=$RANLIB
  19881. + # Extract the first word of "ranlib", so it can be a program name with args.
  19882. +set dummy ranlib; ac_word=$2
  19883. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19884. +$as_echo_n "checking for $ac_word... " >&6; }
  19885. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  19886. + $as_echo_n "(cached) " >&6
  19887. +else
  19888. + if test -n "$ac_ct_RANLIB"; then
  19889. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  19890. +else
  19891. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19892. +for as_dir in $PATH
  19893. +do
  19894. + IFS=$as_save_IFS
  19895. + test -z "$as_dir" && as_dir=.
  19896. + for ac_exec_ext in '' $ac_executable_extensions; do
  19897. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19898. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  19899. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19900. + break 2
  19901. + fi
  19902. +done
  19903. + done
  19904. +IFS=$as_save_IFS
  19905. +
  19906. +fi
  19907. +fi
  19908. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  19909. +if test -n "$ac_ct_RANLIB"; then
  19910. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  19911. +$as_echo "$ac_ct_RANLIB" >&6; }
  19912. +else
  19913. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19914. +$as_echo "no" >&6; }
  19915. +fi
  19916. +
  19917. + if test "x$ac_ct_RANLIB" = x; then
  19918. + RANLIB=":"
  19919. + else
  19920. + case $cross_compiling:$ac_tool_warned in
  19921. +yes:)
  19922. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19923. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19924. +ac_tool_warned=yes ;;
  19925. +esac
  19926. + RANLIB=$ac_ct_RANLIB
  19927. + fi
  19928. +else
  19929. + RANLIB="$ac_cv_prog_RANLIB"
  19930. +fi
  19931. +
  19932. +test -z "$RANLIB" && RANLIB=:
  19933. +
  19934. +
  19935. +
  19936. +
  19937. +
  19938. +
  19939. +# Determine commands to create old-style static archives.
  19940. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  19941. +old_postinstall_cmds='chmod 644 $oldlib'
  19942. +old_postuninstall_cmds=
  19943. +
  19944. +if test -n "$RANLIB"; then
  19945. + case $host_os in
  19946. + openbsd*)
  19947. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  19948. ;;
  19949. *)
  19950. - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  19951. - if test -n "$lt_cv_sys_max_cmd_len"; then
  19952. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  19953. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  19954. - else
  19955. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  19956. - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  19957. - = "XX$teststring") >/dev/null 2>&1 &&
  19958. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  19959. - lt_cv_sys_max_cmd_len=$new_result &&
  19960. - test $i != 17 # 1/2 MB should be enough
  19961. - do
  19962. - i=`expr $i + 1`
  19963. - teststring=$teststring$teststring
  19964. - done
  19965. - teststring=
  19966. - # Add a significant safety factor because C++ compilers can tack on massive
  19967. - # amounts of additional arguments before passing them to the linker.
  19968. - # It appears as though 1/2 is a usable value.
  19969. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  19970. - fi
  19971. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  19972. ;;
  19973. esac
  19974. -
  19975. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  19976. fi
  19977. -if test -n $lt_cv_sys_max_cmd_len ; then
  19978. - { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  19979. -$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  19980. -else
  19981. - { $as_echo "$as_me:$LINENO: result: none" >&5
  19982. -$as_echo "none" >&6; }
  19983. -fi
  19984. +
  19985. +
  19986. +
  19987. +
  19988. +
  19989. +
  19990. +
  19991. +
  19992. +
  19993. +
  19994. +
  19995. +
  19996. +
  19997. +
  19998. +
  19999. +
  20000. +
  20001. +
  20002. +
  20003. +
  20004. +
  20005. +
  20006. +
  20007. +
  20008. +
  20009. +
  20010. +
  20011. +
  20012. +# If no C compiler was specified, use CC.
  20013. +LTCC=${LTCC-"$CC"}
  20014. +
  20015. +# If no C compiler flags were specified, use CFLAGS.
  20016. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  20017. +
  20018. +# Allow CC to be a program name with arguments.
  20019. +compiler=$CC
  20020. +
  20021. +
  20022. # Check for command to grab the raw symbol name followed by C symbol from nm.
  20023. -{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  20024. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  20025. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  20026. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  20027. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  20028. $as_echo_n "(cached) " >&6
  20029. else
  20030. @@ -6664,33 +6369,18 @@
  20031. # Regexp to match symbols that can be accessed directly from C.
  20032. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  20033. -# Transform an extracted symbol line into a proper C declaration
  20034. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  20035. -
  20036. -# Transform an extracted symbol line into symbol name and symbol address
  20037. -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'"
  20038. -
  20039. # Define system-specific variables.
  20040. case $host_os in
  20041. aix*)
  20042. symcode='[BCDT]'
  20043. ;;
  20044. -cygwin* | mingw* | pw32*)
  20045. +cygwin* | mingw* | pw32* | cegcc*)
  20046. symcode='[ABCDGISTW]'
  20047. ;;
  20048. -hpux*) # Its linker distinguishes data from code symbols
  20049. +hpux*)
  20050. if test "$host_cpu" = ia64; then
  20051. symcode='[ABCDEGRST]'
  20052. fi
  20053. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  20054. - 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'"
  20055. - ;;
  20056. -linux* | k*bsd*-gnu)
  20057. - if test "$host_cpu" = ia64; then
  20058. - symcode='[ABCDGIRSTW]'
  20059. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  20060. - 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'"
  20061. - fi
  20062. ;;
  20063. irix* | nonstopux*)
  20064. symcode='[BCDEGRST]'
  20065. @@ -6715,57 +6405,85 @@
  20066. ;;
  20067. esac
  20068. +# If we're using GNU nm, then use its standard symbol codes.
  20069. +case `$NM -V 2>&1` in
  20070. +*GNU* | *'with BFD'*)
  20071. + symcode='[ABCDGIRSTW]' ;;
  20072. +esac
  20073. +
  20074. +# Transform an extracted symbol line into a proper C declaration.
  20075. +# Some systems (esp. on ia64) link data and code symbols differently,
  20076. +# so use this general approach.
  20077. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  20078. +
  20079. +# Transform an extracted symbol line into symbol name and symbol address
  20080. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  20081. +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'"
  20082. +
  20083. # Handle CRLF in mingw tool chain
  20084. opt_cr=
  20085. case $build_os in
  20086. mingw*)
  20087. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  20088. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  20089. ;;
  20090. esac
  20091. -# If we're using GNU nm, then use its standard symbol codes.
  20092. -case `$NM -V 2>&1` in
  20093. -*GNU* | *'with BFD'*)
  20094. - symcode='[ABCDGIRSTW]' ;;
  20095. -esac
  20096. -
  20097. -# Try without a prefix undercore, then with it.
  20098. +# Try without a prefix underscore, then with it.
  20099. for ac_symprfx in "" "_"; do
  20100. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  20101. symxfrm="\\1 $ac_symprfx\\2 \\2"
  20102. # Write the raw and C identifiers.
  20103. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  20104. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  20105. + # Fake it for dumpbin and say T for any non-static function
  20106. + # and D for any global variable.
  20107. + # Also find C++ and __fastcall symbols from MSVC++,
  20108. + # which start with @ or ?.
  20109. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  20110. +" {last_section=section; section=\$ 3};"\
  20111. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  20112. +" \$ 0!~/External *\|/{next};"\
  20113. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  20114. +" {if(hide[section]) next};"\
  20115. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  20116. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  20117. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  20118. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  20119. +" ' prfx=^$ac_symprfx"
  20120. + else
  20121. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  20122. + fi
  20123. # Check to see that the pipe works correctly.
  20124. pipe_works=no
  20125. rm -f conftest*
  20126. - cat > conftest.$ac_ext <<EOF
  20127. + cat > conftest.$ac_ext <<_LT_EOF
  20128. #ifdef __cplusplus
  20129. extern "C" {
  20130. #endif
  20131. char nm_test_var;
  20132. -void nm_test_func(){}
  20133. +void nm_test_func(void);
  20134. +void nm_test_func(void){}
  20135. #ifdef __cplusplus
  20136. }
  20137. #endif
  20138. int main(){nm_test_var='a';nm_test_func();return(0);}
  20139. -EOF
  20140. +_LT_EOF
  20141. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20142. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  20143. (eval $ac_compile) 2>&5
  20144. ac_status=$?
  20145. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20146. - (exit $ac_status); }; then
  20147. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20148. + test $ac_status = 0; }; then
  20149. # Now try to grab the symbols.
  20150. nlist=conftest.nm
  20151. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  20152. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  20153. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  20154. ac_status=$?
  20155. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20156. - (exit $ac_status); } && test -s "$nlist"; then
  20157. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20158. + test $ac_status = 0; } && test -s "$nlist"; then
  20159. # Try sorting and uniquifying the output.
  20160. if sort "$nlist" | uniq > "$nlist"T; then
  20161. mv -f "$nlist"T "$nlist"
  20162. @@ -6774,53 +6492,55 @@
  20163. fi
  20164. # Make sure that we snagged all the symbols we need.
  20165. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  20166. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  20167. - cat <<EOF > conftest.$ac_ext
  20168. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  20169. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  20170. + cat <<_LT_EOF > conftest.$ac_ext
  20171. #ifdef __cplusplus
  20172. extern "C" {
  20173. #endif
  20174. -EOF
  20175. +_LT_EOF
  20176. # Now generate the symbol file.
  20177. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  20178. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  20179. - cat <<EOF >> conftest.$ac_ext
  20180. -#if defined (__STDC__) && __STDC__
  20181. -# define lt_ptr_t void *
  20182. -#else
  20183. -# define lt_ptr_t char *
  20184. -# define const
  20185. -#endif
  20186. + cat <<_LT_EOF >> conftest.$ac_ext
  20187. -/* The mapping between symbol names and symbols. */
  20188. +/* The mapping between symbol names and symbols. */
  20189. const struct {
  20190. const char *name;
  20191. - lt_ptr_t address;
  20192. + void *address;
  20193. }
  20194. -lt_preloaded_symbols[] =
  20195. +lt__PROGRAM__LTX_preloaded_symbols[] =
  20196. {
  20197. -EOF
  20198. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  20199. - cat <<\EOF >> conftest.$ac_ext
  20200. - {0, (lt_ptr_t) 0}
  20201. + { "@PROGRAM@", (void *) 0 },
  20202. +_LT_EOF
  20203. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  20204. + cat <<\_LT_EOF >> conftest.$ac_ext
  20205. + {0, (void *) 0}
  20206. };
  20207. +/* This works around a problem in FreeBSD linker */
  20208. +#ifdef FREEBSD_WORKAROUND
  20209. +static const void *lt_preloaded_setup() {
  20210. + return lt__PROGRAM__LTX_preloaded_symbols;
  20211. +}
  20212. +#endif
  20213. +
  20214. #ifdef __cplusplus
  20215. }
  20216. #endif
  20217. -EOF
  20218. +_LT_EOF
  20219. # Now try linking the two files.
  20220. mv conftest.$ac_objext conftstm.$ac_objext
  20221. lt_save_LIBS="$LIBS"
  20222. lt_save_CFLAGS="$CFLAGS"
  20223. LIBS="conftstm.$ac_objext"
  20224. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  20225. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20226. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  20227. (eval $ac_link) 2>&5
  20228. ac_status=$?
  20229. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20230. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  20231. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20232. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  20233. pipe_works=yes
  20234. fi
  20235. LIBS="$lt_save_LIBS"
  20236. @@ -6854,783 +6574,755 @@
  20237. lt_cv_sys_global_symbol_to_cdecl=
  20238. fi
  20239. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  20240. - { $as_echo "$as_me:$LINENO: result: failed" >&5
  20241. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  20242. $as_echo "failed" >&6; }
  20243. else
  20244. - { $as_echo "$as_me:$LINENO: result: ok" >&5
  20245. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  20246. $as_echo "ok" >&6; }
  20247. fi
  20248. -{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
  20249. -$as_echo_n "checking for objdir... " >&6; }
  20250. -if test "${lt_cv_objdir+set}" = set; then
  20251. - $as_echo_n "(cached) " >&6
  20252. -else
  20253. - rm -f .libs 2>/dev/null
  20254. -mkdir .libs 2>/dev/null
  20255. -if test -d .libs; then
  20256. - lt_cv_objdir=.libs
  20257. -else
  20258. - # MS-DOS does not allow filenames that begin with a dot.
  20259. - lt_cv_objdir=_libs
  20260. -fi
  20261. -rmdir .libs 2>/dev/null
  20262. -fi
  20263. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  20264. -$as_echo "$lt_cv_objdir" >&6; }
  20265. -objdir=$lt_cv_objdir
  20266. -case $host_os in
  20267. -aix3*)
  20268. - # AIX sometimes has problems with the GCC collect2 program. For some
  20269. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  20270. - # vanish in a puff of smoke.
  20271. - if test "X${COLLECT_NAMES+set}" != Xset; then
  20272. - COLLECT_NAMES=
  20273. - export COLLECT_NAMES
  20274. +
  20275. +
  20276. +
  20277. +
  20278. +
  20279. +
  20280. +
  20281. +
  20282. +
  20283. +
  20284. +
  20285. +
  20286. +
  20287. +
  20288. +
  20289. +
  20290. +# Check whether --enable-libtool-lock was given.
  20291. +if test "${enable_libtool_lock+set}" = set; then :
  20292. + enableval=$enable_libtool_lock;
  20293. +fi
  20294. +
  20295. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  20296. +
  20297. +# Some flags need to be propagated to the compiler or linker for good
  20298. +# libtool support.
  20299. +case $host in
  20300. +ia64-*-hpux*)
  20301. + # Find out which ABI we are using.
  20302. + echo 'int i;' > conftest.$ac_ext
  20303. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  20304. + (eval $ac_compile) 2>&5
  20305. + ac_status=$?
  20306. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20307. + test $ac_status = 0; }; then
  20308. + case `/usr/bin/file conftest.$ac_objext` in
  20309. + *ELF-32*)
  20310. + HPUX_IA64_MODE="32"
  20311. + ;;
  20312. + *ELF-64*)
  20313. + HPUX_IA64_MODE="64"
  20314. + ;;
  20315. + esac
  20316. fi
  20317. + rm -rf conftest*
  20318. + ;;
  20319. +*-*-irix6*)
  20320. + # Find out which ABI we are using.
  20321. + echo '#line 6636 "configure"' > conftest.$ac_ext
  20322. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  20323. + (eval $ac_compile) 2>&5
  20324. + ac_status=$?
  20325. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20326. + test $ac_status = 0; }; then
  20327. + if test "$lt_cv_prog_gnu_ld" = yes; then
  20328. + case `/usr/bin/file conftest.$ac_objext` in
  20329. + *32-bit*)
  20330. + LD="${LD-ld} -melf32bsmip"
  20331. + ;;
  20332. + *N32*)
  20333. + LD="${LD-ld} -melf32bmipn32"
  20334. + ;;
  20335. + *64-bit*)
  20336. + LD="${LD-ld} -melf64bmip"
  20337. + ;;
  20338. + esac
  20339. + else
  20340. + case `/usr/bin/file conftest.$ac_objext` in
  20341. + *32-bit*)
  20342. + LD="${LD-ld} -32"
  20343. + ;;
  20344. + *N32*)
  20345. + LD="${LD-ld} -n32"
  20346. + ;;
  20347. + *64-bit*)
  20348. + LD="${LD-ld} -64"
  20349. + ;;
  20350. + esac
  20351. + fi
  20352. + fi
  20353. + rm -rf conftest*
  20354. ;;
  20355. -esac
  20356. -# Sed substitution that helps us do robust quoting. It backslashifies
  20357. -# metacharacters that are still active within double-quoted strings.
  20358. -Xsed='sed -e 1s/^X//'
  20359. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  20360. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  20361. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  20362. + # Find out which ABI we are using.
  20363. + echo 'int i;' > conftest.$ac_ext
  20364. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  20365. + (eval $ac_compile) 2>&5
  20366. + ac_status=$?
  20367. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20368. + test $ac_status = 0; }; then
  20369. + case `/usr/bin/file conftest.o` in
  20370. + *32-bit*)
  20371. + case $host in
  20372. + x86_64-*kfreebsd*-gnu)
  20373. + LD="${LD-ld} -m elf_i386_fbsd"
  20374. + ;;
  20375. + x86_64-*linux*)
  20376. + LD="${LD-ld} -m elf_i386"
  20377. + ;;
  20378. + ppc64-*linux*|powerpc64-*linux*)
  20379. + LD="${LD-ld} -m elf32ppclinux"
  20380. + ;;
  20381. + s390x-*linux*)
  20382. + LD="${LD-ld} -m elf_s390"
  20383. + ;;
  20384. + sparc64-*linux*)
  20385. + LD="${LD-ld} -m elf32_sparc"
  20386. + ;;
  20387. + esac
  20388. + ;;
  20389. + *64-bit*)
  20390. + case $host in
  20391. + x86_64-*kfreebsd*-gnu)
  20392. + LD="${LD-ld} -m elf_x86_64_fbsd"
  20393. + ;;
  20394. + x86_64-*linux*)
  20395. + LD="${LD-ld} -m elf_x86_64"
  20396. + ;;
  20397. + ppc*-*linux*|powerpc*-*linux*)
  20398. + LD="${LD-ld} -m elf64ppc"
  20399. + ;;
  20400. + s390*-*linux*|s390*-*tpf*)
  20401. + LD="${LD-ld} -m elf64_s390"
  20402. + ;;
  20403. + sparc*-*linux*)
  20404. + LD="${LD-ld} -m elf64_sparc"
  20405. + ;;
  20406. + esac
  20407. + ;;
  20408. + esac
  20409. + fi
  20410. + rm -rf conftest*
  20411. + ;;
  20412. -# Same as above, but do not quote variable references.
  20413. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  20414. +*-*-sco3.2v5*)
  20415. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  20416. + SAVE_CFLAGS="$CFLAGS"
  20417. + CFLAGS="$CFLAGS -belf"
  20418. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  20419. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  20420. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  20421. + $as_echo_n "(cached) " >&6
  20422. +else
  20423. + ac_ext=c
  20424. +ac_cpp='$CPP $CPPFLAGS'
  20425. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20426. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20427. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20428. -# Sed substitution to delay expansion of an escaped shell variable in a
  20429. -# double_quote_subst'ed string.
  20430. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  20431. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20432. +/* end confdefs.h. */
  20433. -# Sed substitution to avoid accidental globbing in evaled expressions
  20434. -no_glob_subst='s/\*/\\\*/g'
  20435. +int
  20436. +main ()
  20437. +{
  20438. -# Constants:
  20439. -rm="rm -f"
  20440. + ;
  20441. + return 0;
  20442. +}
  20443. +_ACEOF
  20444. +if ac_fn_c_try_link "$LINENO"; then :
  20445. + lt_cv_cc_needs_belf=yes
  20446. +else
  20447. + lt_cv_cc_needs_belf=no
  20448. +fi
  20449. +rm -f core conftest.err conftest.$ac_objext \
  20450. + conftest$ac_exeext conftest.$ac_ext
  20451. + ac_ext=c
  20452. +ac_cpp='$CPP $CPPFLAGS'
  20453. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20454. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20455. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20456. -# Global variables:
  20457. -default_ofile=libtool
  20458. -can_build_shared=yes
  20459. +fi
  20460. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  20461. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  20462. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  20463. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  20464. + CFLAGS="$SAVE_CFLAGS"
  20465. + fi
  20466. + ;;
  20467. +sparc*-*solaris*)
  20468. + # Find out which ABI we are using.
  20469. + echo 'int i;' > conftest.$ac_ext
  20470. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  20471. + (eval $ac_compile) 2>&5
  20472. + ac_status=$?
  20473. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20474. + test $ac_status = 0; }; then
  20475. + case `/usr/bin/file conftest.o` in
  20476. + *64-bit*)
  20477. + case $lt_cv_prog_gnu_ld in
  20478. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  20479. + *)
  20480. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  20481. + LD="${LD-ld} -64"
  20482. + fi
  20483. + ;;
  20484. + esac
  20485. + ;;
  20486. + esac
  20487. + fi
  20488. + rm -rf conftest*
  20489. + ;;
  20490. +esac
  20491. -# All known linkers require a `.a' archive for static linking (except MSVC,
  20492. -# which needs '.lib').
  20493. -libext=a
  20494. -ltmain="$ac_aux_dir/ltmain.sh"
  20495. -ofile="$default_ofile"
  20496. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  20497. +need_locks="$enable_libtool_lock"
  20498. -if test -n "$ac_tool_prefix"; then
  20499. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  20500. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  20501. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20502. +
  20503. + case $host_os in
  20504. + rhapsody* | darwin*)
  20505. + if test -n "$ac_tool_prefix"; then
  20506. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  20507. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  20508. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20509. $as_echo_n "checking for $ac_word... " >&6; }
  20510. -if test "${ac_cv_prog_AR+set}" = set; then
  20511. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  20512. $as_echo_n "(cached) " >&6
  20513. else
  20514. - if test -n "$AR"; then
  20515. - ac_cv_prog_AR="$AR" # Let the user override the test.
  20516. + if test -n "$DSYMUTIL"; then
  20517. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  20518. else
  20519. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20520. for as_dir in $PATH
  20521. do
  20522. IFS=$as_save_IFS
  20523. test -z "$as_dir" && as_dir=.
  20524. - for ac_exec_ext in '' $ac_executable_extensions; do
  20525. + for ac_exec_ext in '' $ac_executable_extensions; do
  20526. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20527. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  20528. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20529. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  20530. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20531. break 2
  20532. fi
  20533. done
  20534. -done
  20535. + done
  20536. IFS=$as_save_IFS
  20537. fi
  20538. fi
  20539. -AR=$ac_cv_prog_AR
  20540. -if test -n "$AR"; then
  20541. - { $as_echo "$as_me:$LINENO: result: $AR" >&5
  20542. -$as_echo "$AR" >&6; }
  20543. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  20544. +if test -n "$DSYMUTIL"; then
  20545. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  20546. +$as_echo "$DSYMUTIL" >&6; }
  20547. else
  20548. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20549. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20550. $as_echo "no" >&6; }
  20551. fi
  20552. fi
  20553. -if test -z "$ac_cv_prog_AR"; then
  20554. - ac_ct_AR=$AR
  20555. - # Extract the first word of "ar", so it can be a program name with args.
  20556. -set dummy ar; ac_word=$2
  20557. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20558. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  20559. + ac_ct_DSYMUTIL=$DSYMUTIL
  20560. + # Extract the first word of "dsymutil", so it can be a program name with args.
  20561. +set dummy dsymutil; ac_word=$2
  20562. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20563. $as_echo_n "checking for $ac_word... " >&6; }
  20564. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  20565. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  20566. $as_echo_n "(cached) " >&6
  20567. else
  20568. - if test -n "$ac_ct_AR"; then
  20569. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  20570. + if test -n "$ac_ct_DSYMUTIL"; then
  20571. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  20572. else
  20573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20574. for as_dir in $PATH
  20575. do
  20576. IFS=$as_save_IFS
  20577. test -z "$as_dir" && as_dir=.
  20578. - for ac_exec_ext in '' $ac_executable_extensions; do
  20579. + for ac_exec_ext in '' $ac_executable_extensions; do
  20580. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20581. - ac_cv_prog_ac_ct_AR="ar"
  20582. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20583. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  20584. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20585. break 2
  20586. fi
  20587. done
  20588. -done
  20589. + done
  20590. IFS=$as_save_IFS
  20591. fi
  20592. fi
  20593. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  20594. -if test -n "$ac_ct_AR"; then
  20595. - { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  20596. -$as_echo "$ac_ct_AR" >&6; }
  20597. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  20598. +if test -n "$ac_ct_DSYMUTIL"; then
  20599. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  20600. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  20601. else
  20602. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20603. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20604. $as_echo "no" >&6; }
  20605. fi
  20606. - if test "x$ac_ct_AR" = x; then
  20607. - AR="false"
  20608. + if test "x$ac_ct_DSYMUTIL" = x; then
  20609. + DSYMUTIL=":"
  20610. else
  20611. case $cross_compiling:$ac_tool_warned in
  20612. yes:)
  20613. -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  20614. -whose name does not start with the host triplet. If you think this
  20615. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  20616. -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  20617. -whose name does not start with the host triplet. If you think this
  20618. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  20619. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20620. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20621. ac_tool_warned=yes ;;
  20622. esac
  20623. - AR=$ac_ct_AR
  20624. + DSYMUTIL=$ac_ct_DSYMUTIL
  20625. fi
  20626. else
  20627. - AR="$ac_cv_prog_AR"
  20628. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  20629. fi
  20630. -if test -n "$ac_tool_prefix"; then
  20631. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  20632. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  20633. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20634. + if test -n "$ac_tool_prefix"; then
  20635. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  20636. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  20637. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20638. $as_echo_n "checking for $ac_word... " >&6; }
  20639. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  20640. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  20641. $as_echo_n "(cached) " >&6
  20642. else
  20643. - if test -n "$RANLIB"; then
  20644. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  20645. + if test -n "$NMEDIT"; then
  20646. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  20647. else
  20648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20649. for as_dir in $PATH
  20650. do
  20651. IFS=$as_save_IFS
  20652. test -z "$as_dir" && as_dir=.
  20653. - for ac_exec_ext in '' $ac_executable_extensions; do
  20654. + for ac_exec_ext in '' $ac_executable_extensions; do
  20655. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20656. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  20657. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20658. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  20659. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20660. break 2
  20661. fi
  20662. done
  20663. -done
  20664. + done
  20665. IFS=$as_save_IFS
  20666. fi
  20667. fi
  20668. -RANLIB=$ac_cv_prog_RANLIB
  20669. -if test -n "$RANLIB"; then
  20670. - { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  20671. -$as_echo "$RANLIB" >&6; }
  20672. +NMEDIT=$ac_cv_prog_NMEDIT
  20673. +if test -n "$NMEDIT"; then
  20674. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  20675. +$as_echo "$NMEDIT" >&6; }
  20676. else
  20677. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20678. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20679. $as_echo "no" >&6; }
  20680. fi
  20681. fi
  20682. -if test -z "$ac_cv_prog_RANLIB"; then
  20683. - ac_ct_RANLIB=$RANLIB
  20684. - # Extract the first word of "ranlib", so it can be a program name with args.
  20685. -set dummy ranlib; ac_word=$2
  20686. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20687. +if test -z "$ac_cv_prog_NMEDIT"; then
  20688. + ac_ct_NMEDIT=$NMEDIT
  20689. + # Extract the first word of "nmedit", so it can be a program name with args.
  20690. +set dummy nmedit; ac_word=$2
  20691. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20692. $as_echo_n "checking for $ac_word... " >&6; }
  20693. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  20694. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  20695. $as_echo_n "(cached) " >&6
  20696. else
  20697. - if test -n "$ac_ct_RANLIB"; then
  20698. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  20699. + if test -n "$ac_ct_NMEDIT"; then
  20700. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  20701. else
  20702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20703. for as_dir in $PATH
  20704. do
  20705. IFS=$as_save_IFS
  20706. test -z "$as_dir" && as_dir=.
  20707. - for ac_exec_ext in '' $ac_executable_extensions; do
  20708. + for ac_exec_ext in '' $ac_executable_extensions; do
  20709. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20710. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  20711. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20712. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  20713. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20714. break 2
  20715. fi
  20716. done
  20717. -done
  20718. + done
  20719. IFS=$as_save_IFS
  20720. fi
  20721. fi
  20722. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  20723. -if test -n "$ac_ct_RANLIB"; then
  20724. - { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  20725. -$as_echo "$ac_ct_RANLIB" >&6; }
  20726. -else
  20727. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20728. -$as_echo "no" >&6; }
  20729. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  20730. +if test -n "$ac_ct_NMEDIT"; then
  20731. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  20732. +$as_echo "$ac_ct_NMEDIT" >&6; }
  20733. +else
  20734. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20735. +$as_echo "no" >&6; }
  20736. fi
  20737. - if test "x$ac_ct_RANLIB" = x; then
  20738. - RANLIB=":"
  20739. + if test "x$ac_ct_NMEDIT" = x; then
  20740. + NMEDIT=":"
  20741. else
  20742. case $cross_compiling:$ac_tool_warned in
  20743. yes:)
  20744. -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  20745. -whose name does not start with the host triplet. If you think this
  20746. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  20747. -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  20748. -whose name does not start with the host triplet. If you think this
  20749. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  20750. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20751. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20752. ac_tool_warned=yes ;;
  20753. esac
  20754. - RANLIB=$ac_ct_RANLIB
  20755. + NMEDIT=$ac_ct_NMEDIT
  20756. fi
  20757. else
  20758. - RANLIB="$ac_cv_prog_RANLIB"
  20759. + NMEDIT="$ac_cv_prog_NMEDIT"
  20760. fi
  20761. -if test -n "$ac_tool_prefix"; then
  20762. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  20763. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  20764. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20765. + if test -n "$ac_tool_prefix"; then
  20766. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  20767. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  20768. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20769. $as_echo_n "checking for $ac_word... " >&6; }
  20770. -if test "${ac_cv_prog_STRIP+set}" = set; then
  20771. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  20772. $as_echo_n "(cached) " >&6
  20773. else
  20774. - if test -n "$STRIP"; then
  20775. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  20776. + if test -n "$LIPO"; then
  20777. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  20778. else
  20779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20780. for as_dir in $PATH
  20781. do
  20782. IFS=$as_save_IFS
  20783. test -z "$as_dir" && as_dir=.
  20784. - for ac_exec_ext in '' $ac_executable_extensions; do
  20785. + for ac_exec_ext in '' $ac_executable_extensions; do
  20786. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20787. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  20788. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20789. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  20790. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20791. break 2
  20792. fi
  20793. done
  20794. -done
  20795. + done
  20796. IFS=$as_save_IFS
  20797. fi
  20798. fi
  20799. -STRIP=$ac_cv_prog_STRIP
  20800. -if test -n "$STRIP"; then
  20801. - { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  20802. -$as_echo "$STRIP" >&6; }
  20803. +LIPO=$ac_cv_prog_LIPO
  20804. +if test -n "$LIPO"; then
  20805. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  20806. +$as_echo "$LIPO" >&6; }
  20807. else
  20808. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20809. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20810. $as_echo "no" >&6; }
  20811. fi
  20812. fi
  20813. -if test -z "$ac_cv_prog_STRIP"; then
  20814. - ac_ct_STRIP=$STRIP
  20815. - # Extract the first word of "strip", so it can be a program name with args.
  20816. -set dummy strip; ac_word=$2
  20817. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20818. +if test -z "$ac_cv_prog_LIPO"; then
  20819. + ac_ct_LIPO=$LIPO
  20820. + # Extract the first word of "lipo", so it can be a program name with args.
  20821. +set dummy lipo; ac_word=$2
  20822. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20823. $as_echo_n "checking for $ac_word... " >&6; }
  20824. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  20825. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  20826. $as_echo_n "(cached) " >&6
  20827. else
  20828. - if test -n "$ac_ct_STRIP"; then
  20829. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  20830. + if test -n "$ac_ct_LIPO"; then
  20831. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  20832. else
  20833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20834. for as_dir in $PATH
  20835. do
  20836. IFS=$as_save_IFS
  20837. test -z "$as_dir" && as_dir=.
  20838. - for ac_exec_ext in '' $ac_executable_extensions; do
  20839. + for ac_exec_ext in '' $ac_executable_extensions; do
  20840. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20841. - ac_cv_prog_ac_ct_STRIP="strip"
  20842. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20843. + ac_cv_prog_ac_ct_LIPO="lipo"
  20844. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20845. break 2
  20846. fi
  20847. done
  20848. -done
  20849. + done
  20850. IFS=$as_save_IFS
  20851. fi
  20852. fi
  20853. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  20854. -if test -n "$ac_ct_STRIP"; then
  20855. - { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  20856. -$as_echo "$ac_ct_STRIP" >&6; }
  20857. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  20858. +if test -n "$ac_ct_LIPO"; then
  20859. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  20860. +$as_echo "$ac_ct_LIPO" >&6; }
  20861. else
  20862. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20863. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20864. $as_echo "no" >&6; }
  20865. fi
  20866. - if test "x$ac_ct_STRIP" = x; then
  20867. - STRIP=":"
  20868. + if test "x$ac_ct_LIPO" = x; then
  20869. + LIPO=":"
  20870. else
  20871. case $cross_compiling:$ac_tool_warned in
  20872. yes:)
  20873. -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  20874. -whose name does not start with the host triplet. If you think this
  20875. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  20876. -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  20877. -whose name does not start with the host triplet. If you think this
  20878. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  20879. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20880. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20881. ac_tool_warned=yes ;;
  20882. esac
  20883. - STRIP=$ac_ct_STRIP
  20884. + LIPO=$ac_ct_LIPO
  20885. fi
  20886. else
  20887. - STRIP="$ac_cv_prog_STRIP"
  20888. -fi
  20889. -
  20890. -
  20891. -old_CC="$CC"
  20892. -old_CFLAGS="$CFLAGS"
  20893. -
  20894. -# Set sane defaults for various variables
  20895. -test -z "$AR" && AR=ar
  20896. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  20897. -test -z "$AS" && AS=as
  20898. -test -z "$CC" && CC=cc
  20899. -test -z "$LTCC" && LTCC=$CC
  20900. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  20901. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  20902. -test -z "$LD" && LD=ld
  20903. -test -z "$LN_S" && LN_S="ln -s"
  20904. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  20905. -test -z "$NM" && NM=nm
  20906. -test -z "$SED" && SED=sed
  20907. -test -z "$OBJDUMP" && OBJDUMP=objdump
  20908. -test -z "$RANLIB" && RANLIB=:
  20909. -test -z "$STRIP" && STRIP=:
  20910. -test -z "$ac_objext" && ac_objext=o
  20911. -
  20912. -# Determine commands to create old-style static archives.
  20913. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  20914. -old_postinstall_cmds='chmod 644 $oldlib'
  20915. -old_postuninstall_cmds=
  20916. -
  20917. -if test -n "$RANLIB"; then
  20918. - case $host_os in
  20919. - openbsd*)
  20920. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  20921. - ;;
  20922. - *)
  20923. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  20924. - ;;
  20925. - esac
  20926. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  20927. -fi
  20928. -
  20929. -for cc_temp in $compiler""; do
  20930. - case $cc_temp in
  20931. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  20932. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  20933. - \-*) ;;
  20934. - *) break;;
  20935. - esac
  20936. -done
  20937. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  20938. -
  20939. -
  20940. -# Only perform the check for file, if the check method requires it
  20941. -case $deplibs_check_method in
  20942. -file_magic*)
  20943. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  20944. - { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  20945. -$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  20946. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  20947. - $as_echo_n "(cached) " >&6
  20948. -else
  20949. - case $MAGIC_CMD in
  20950. -[\\/*] | ?:[\\/]*)
  20951. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  20952. - ;;
  20953. -*)
  20954. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  20955. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  20956. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  20957. - for ac_dir in $ac_dummy; do
  20958. - IFS="$lt_save_ifs"
  20959. - test -z "$ac_dir" && ac_dir=.
  20960. - if test -f $ac_dir/${ac_tool_prefix}file; then
  20961. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  20962. - if test -n "$file_magic_test_file"; then
  20963. - case $deplibs_check_method in
  20964. - "file_magic "*)
  20965. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  20966. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  20967. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  20968. - $EGREP "$file_magic_regex" > /dev/null; then
  20969. - :
  20970. - else
  20971. - cat <<EOF 1>&2
  20972. -
  20973. -*** Warning: the command libtool uses to detect shared libraries,
  20974. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  20975. -*** The result is that libtool may fail to recognize shared libraries
  20976. -*** as such. This will affect the creation of libtool libraries that
  20977. -*** depend on shared libraries, but programs linked with such libtool
  20978. -*** libraries will work regardless of this problem. Nevertheless, you
  20979. -*** may want to report the problem to your system manager and/or to
  20980. -*** bug-libtool@gnu.org
  20981. -
  20982. -EOF
  20983. - fi ;;
  20984. - esac
  20985. - fi
  20986. - break
  20987. - fi
  20988. - done
  20989. - IFS="$lt_save_ifs"
  20990. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  20991. - ;;
  20992. -esac
  20993. -fi
  20994. -
  20995. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  20996. -if test -n "$MAGIC_CMD"; then
  20997. - { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  20998. -$as_echo "$MAGIC_CMD" >&6; }
  20999. -else
  21000. - { $as_echo "$as_me:$LINENO: result: no" >&5
  21001. -$as_echo "no" >&6; }
  21002. -fi
  21003. -
  21004. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  21005. - if test -n "$ac_tool_prefix"; then
  21006. - { $as_echo "$as_me:$LINENO: checking for file" >&5
  21007. -$as_echo_n "checking for file... " >&6; }
  21008. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  21009. - $as_echo_n "(cached) " >&6
  21010. -else
  21011. - case $MAGIC_CMD in
  21012. -[\\/*] | ?:[\\/]*)
  21013. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  21014. - ;;
  21015. -*)
  21016. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  21017. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  21018. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  21019. - for ac_dir in $ac_dummy; do
  21020. - IFS="$lt_save_ifs"
  21021. - test -z "$ac_dir" && ac_dir=.
  21022. - if test -f $ac_dir/file; then
  21023. - lt_cv_path_MAGIC_CMD="$ac_dir/file"
  21024. - if test -n "$file_magic_test_file"; then
  21025. - case $deplibs_check_method in
  21026. - "file_magic "*)
  21027. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  21028. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  21029. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  21030. - $EGREP "$file_magic_regex" > /dev/null; then
  21031. - :
  21032. - else
  21033. - cat <<EOF 1>&2
  21034. -
  21035. -*** Warning: the command libtool uses to detect shared libraries,
  21036. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  21037. -*** The result is that libtool may fail to recognize shared libraries
  21038. -*** as such. This will affect the creation of libtool libraries that
  21039. -*** depend on shared libraries, but programs linked with such libtool
  21040. -*** libraries will work regardless of this problem. Nevertheless, you
  21041. -*** may want to report the problem to your system manager and/or to
  21042. -*** bug-libtool@gnu.org
  21043. -
  21044. -EOF
  21045. - fi ;;
  21046. - esac
  21047. - fi
  21048. - break
  21049. - fi
  21050. - done
  21051. - IFS="$lt_save_ifs"
  21052. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  21053. - ;;
  21054. -esac
  21055. -fi
  21056. -
  21057. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  21058. -if test -n "$MAGIC_CMD"; then
  21059. - { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  21060. -$as_echo "$MAGIC_CMD" >&6; }
  21061. -else
  21062. - { $as_echo "$as_me:$LINENO: result: no" >&5
  21063. -$as_echo "no" >&6; }
  21064. -fi
  21065. -
  21066. - else
  21067. - MAGIC_CMD=:
  21068. - fi
  21069. + LIPO="$ac_cv_prog_LIPO"
  21070. fi
  21071. - fi
  21072. - ;;
  21073. -esac
  21074. -
  21075. -
  21076. - case $host_os in
  21077. - rhapsody* | darwin*)
  21078. if test -n "$ac_tool_prefix"; then
  21079. - # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  21080. -set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  21081. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  21082. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  21083. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  21084. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21085. $as_echo_n "checking for $ac_word... " >&6; }
  21086. -if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  21087. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  21088. $as_echo_n "(cached) " >&6
  21089. else
  21090. - if test -n "$DSYMUTIL"; then
  21091. - ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  21092. + if test -n "$OTOOL"; then
  21093. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  21094. else
  21095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21096. for as_dir in $PATH
  21097. do
  21098. IFS=$as_save_IFS
  21099. test -z "$as_dir" && as_dir=.
  21100. - for ac_exec_ext in '' $ac_executable_extensions; do
  21101. + for ac_exec_ext in '' $ac_executable_extensions; do
  21102. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21103. - ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  21104. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21105. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  21106. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21107. break 2
  21108. fi
  21109. done
  21110. -done
  21111. + done
  21112. IFS=$as_save_IFS
  21113. fi
  21114. fi
  21115. -DSYMUTIL=$ac_cv_prog_DSYMUTIL
  21116. -if test -n "$DSYMUTIL"; then
  21117. - { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  21118. -$as_echo "$DSYMUTIL" >&6; }
  21119. +OTOOL=$ac_cv_prog_OTOOL
  21120. +if test -n "$OTOOL"; then
  21121. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  21122. +$as_echo "$OTOOL" >&6; }
  21123. else
  21124. - { $as_echo "$as_me:$LINENO: result: no" >&5
  21125. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21126. $as_echo "no" >&6; }
  21127. fi
  21128. fi
  21129. -if test -z "$ac_cv_prog_DSYMUTIL"; then
  21130. - ac_ct_DSYMUTIL=$DSYMUTIL
  21131. - # Extract the first word of "dsymutil", so it can be a program name with args.
  21132. -set dummy dsymutil; ac_word=$2
  21133. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  21134. +if test -z "$ac_cv_prog_OTOOL"; then
  21135. + ac_ct_OTOOL=$OTOOL
  21136. + # Extract the first word of "otool", so it can be a program name with args.
  21137. +set dummy otool; ac_word=$2
  21138. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21139. $as_echo_n "checking for $ac_word... " >&6; }
  21140. -if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  21141. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  21142. $as_echo_n "(cached) " >&6
  21143. else
  21144. - if test -n "$ac_ct_DSYMUTIL"; then
  21145. - ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  21146. + if test -n "$ac_ct_OTOOL"; then
  21147. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  21148. else
  21149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21150. for as_dir in $PATH
  21151. do
  21152. IFS=$as_save_IFS
  21153. test -z "$as_dir" && as_dir=.
  21154. - for ac_exec_ext in '' $ac_executable_extensions; do
  21155. + for ac_exec_ext in '' $ac_executable_extensions; do
  21156. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21157. - ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  21158. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21159. + ac_cv_prog_ac_ct_OTOOL="otool"
  21160. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21161. break 2
  21162. fi
  21163. done
  21164. -done
  21165. + done
  21166. IFS=$as_save_IFS
  21167. fi
  21168. fi
  21169. -ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  21170. -if test -n "$ac_ct_DSYMUTIL"; then
  21171. - { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  21172. -$as_echo "$ac_ct_DSYMUTIL" >&6; }
  21173. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  21174. +if test -n "$ac_ct_OTOOL"; then
  21175. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  21176. +$as_echo "$ac_ct_OTOOL" >&6; }
  21177. else
  21178. - { $as_echo "$as_me:$LINENO: result: no" >&5
  21179. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21180. $as_echo "no" >&6; }
  21181. fi
  21182. - if test "x$ac_ct_DSYMUTIL" = x; then
  21183. - DSYMUTIL=":"
  21184. + if test "x$ac_ct_OTOOL" = x; then
  21185. + OTOOL=":"
  21186. else
  21187. case $cross_compiling:$ac_tool_warned in
  21188. yes:)
  21189. -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  21190. -whose name does not start with the host triplet. If you think this
  21191. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  21192. -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  21193. -whose name does not start with the host triplet. If you think this
  21194. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  21195. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21196. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21197. ac_tool_warned=yes ;;
  21198. esac
  21199. - DSYMUTIL=$ac_ct_DSYMUTIL
  21200. + OTOOL=$ac_ct_OTOOL
  21201. fi
  21202. else
  21203. - DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  21204. + OTOOL="$ac_cv_prog_OTOOL"
  21205. fi
  21206. if test -n "$ac_tool_prefix"; then
  21207. - # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  21208. -set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  21209. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  21210. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  21211. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  21212. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21213. $as_echo_n "checking for $ac_word... " >&6; }
  21214. -if test "${ac_cv_prog_NMEDIT+set}" = set; then
  21215. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  21216. $as_echo_n "(cached) " >&6
  21217. else
  21218. - if test -n "$NMEDIT"; then
  21219. - ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  21220. + if test -n "$OTOOL64"; then
  21221. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  21222. else
  21223. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21224. for as_dir in $PATH
  21225. do
  21226. IFS=$as_save_IFS
  21227. test -z "$as_dir" && as_dir=.
  21228. - for ac_exec_ext in '' $ac_executable_extensions; do
  21229. + for ac_exec_ext in '' $ac_executable_extensions; do
  21230. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21231. - ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  21232. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21233. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  21234. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21235. break 2
  21236. fi
  21237. done
  21238. -done
  21239. + done
  21240. IFS=$as_save_IFS
  21241. fi
  21242. fi
  21243. -NMEDIT=$ac_cv_prog_NMEDIT
  21244. -if test -n "$NMEDIT"; then
  21245. - { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  21246. -$as_echo "$NMEDIT" >&6; }
  21247. +OTOOL64=$ac_cv_prog_OTOOL64
  21248. +if test -n "$OTOOL64"; then
  21249. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  21250. +$as_echo "$OTOOL64" >&6; }
  21251. else
  21252. - { $as_echo "$as_me:$LINENO: result: no" >&5
  21253. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21254. $as_echo "no" >&6; }
  21255. fi
  21256. fi
  21257. -if test -z "$ac_cv_prog_NMEDIT"; then
  21258. - ac_ct_NMEDIT=$NMEDIT
  21259. - # Extract the first word of "nmedit", so it can be a program name with args.
  21260. -set dummy nmedit; ac_word=$2
  21261. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  21262. +if test -z "$ac_cv_prog_OTOOL64"; then
  21263. + ac_ct_OTOOL64=$OTOOL64
  21264. + # Extract the first word of "otool64", so it can be a program name with args.
  21265. +set dummy otool64; ac_word=$2
  21266. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21267. $as_echo_n "checking for $ac_word... " >&6; }
  21268. -if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  21269. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  21270. $as_echo_n "(cached) " >&6
  21271. else
  21272. - if test -n "$ac_ct_NMEDIT"; then
  21273. - ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  21274. + if test -n "$ac_ct_OTOOL64"; then
  21275. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  21276. else
  21277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21278. for as_dir in $PATH
  21279. do
  21280. IFS=$as_save_IFS
  21281. test -z "$as_dir" && as_dir=.
  21282. - for ac_exec_ext in '' $ac_executable_extensions; do
  21283. + for ac_exec_ext in '' $ac_executable_extensions; do
  21284. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21285. - ac_cv_prog_ac_ct_NMEDIT="nmedit"
  21286. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21287. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  21288. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21289. break 2
  21290. fi
  21291. done
  21292. -done
  21293. + done
  21294. IFS=$as_save_IFS
  21295. fi
  21296. fi
  21297. -ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  21298. -if test -n "$ac_ct_NMEDIT"; then
  21299. - { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  21300. -$as_echo "$ac_ct_NMEDIT" >&6; }
  21301. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  21302. +if test -n "$ac_ct_OTOOL64"; then
  21303. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  21304. +$as_echo "$ac_ct_OTOOL64" >&6; }
  21305. else
  21306. - { $as_echo "$as_me:$LINENO: result: no" >&5
  21307. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21308. $as_echo "no" >&6; }
  21309. fi
  21310. - if test "x$ac_ct_NMEDIT" = x; then
  21311. - NMEDIT=":"
  21312. + if test "x$ac_ct_OTOOL64" = x; then
  21313. + OTOOL64=":"
  21314. else
  21315. case $cross_compiling:$ac_tool_warned in
  21316. yes:)
  21317. -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  21318. -whose name does not start with the host triplet. If you think this
  21319. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  21320. -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  21321. -whose name does not start with the host triplet. If you think this
  21322. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  21323. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21324. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21325. ac_tool_warned=yes ;;
  21326. esac
  21327. - NMEDIT=$ac_ct_NMEDIT
  21328. + OTOOL64=$ac_ct_OTOOL64
  21329. fi
  21330. else
  21331. - NMEDIT="$ac_cv_prog_NMEDIT"
  21332. + OTOOL64="$ac_cv_prog_OTOOL64"
  21333. fi
  21334. - { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  21335. +
  21336. +
  21337. +
  21338. +
  21339. +
  21340. +
  21341. +
  21342. +
  21343. +
  21344. +
  21345. +
  21346. +
  21347. +
  21348. +
  21349. +
  21350. +
  21351. +
  21352. +
  21353. +
  21354. +
  21355. +
  21356. +
  21357. +
  21358. +
  21359. +
  21360. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  21361. $as_echo_n "checking for -single_module linker flag... " >&6; }
  21362. -if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  21363. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  21364. $as_echo_n "(cached) " >&6
  21365. else
  21366. lt_cv_apple_cc_single_mod=no
  21367. if test -z "${LT_MULTI_MODULE}"; then
  21368. - # By default we will add the -single_module flag. You can override
  21369. - # by either setting the environment variable LT_MULTI_MODULE
  21370. - # non-empty at configure time, or by adding -multi_module to the
  21371. - # link flags.
  21372. - echo "int foo(void){return 1;}" > conftest.c
  21373. - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  21374. - -dynamiclib ${wl}-single_module conftest.c
  21375. - if test -f libconftest.dylib; then
  21376. - lt_cv_apple_cc_single_mod=yes
  21377. - rm -rf libconftest.dylib*
  21378. - fi
  21379. - rm conftest.c
  21380. + # By default we will add the -single_module flag. You can override
  21381. + # by either setting the environment variable LT_MULTI_MODULE
  21382. + # non-empty at configure time, or by adding -multi_module to the
  21383. + # link flags.
  21384. + rm -rf libconftest.dylib*
  21385. + echo "int foo(void){return 1;}" > conftest.c
  21386. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  21387. +-dynamiclib -Wl,-single_module conftest.c" >&5
  21388. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  21389. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  21390. + _lt_result=$?
  21391. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  21392. + lt_cv_apple_cc_single_mod=yes
  21393. + else
  21394. + cat conftest.err >&5
  21395. + fi
  21396. + rm -rf libconftest.dylib*
  21397. + rm -f conftest.*
  21398. fi
  21399. fi
  21400. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  21401. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  21402. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  21403. - { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  21404. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  21405. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  21406. -if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  21407. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  21408. $as_echo_n "(cached) " >&6
  21409. else
  21410. lt_cv_ld_exported_symbols_list=no
  21411. save_LDFLAGS=$LDFLAGS
  21412. echo "_main" > conftest.sym
  21413. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  21414. - cat >conftest.$ac_ext <<_ACEOF
  21415. -/* confdefs.h. */
  21416. -_ACEOF
  21417. -cat confdefs.h >>conftest.$ac_ext
  21418. -cat >>conftest.$ac_ext <<_ACEOF
  21419. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21420. /* end confdefs.h. */
  21421. int
  21422. @@ -7641,59 +7333,34 @@
  21423. return 0;
  21424. }
  21425. _ACEOF
  21426. -rm -f conftest.$ac_objext conftest$ac_exeext
  21427. -if { (ac_try="$ac_link"
  21428. -case "(($ac_try" in
  21429. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21430. - *) ac_try_echo=$ac_try;;
  21431. -esac
  21432. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21433. -$as_echo "$ac_try_echo") >&5
  21434. - (eval "$ac_link") 2>conftest.er1
  21435. - ac_status=$?
  21436. - grep -v '^ *+' conftest.er1 >conftest.err
  21437. - rm -f conftest.er1
  21438. - cat conftest.err >&5
  21439. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21440. - (exit $ac_status); } && {
  21441. - test -z "$ac_c_werror_flag" ||
  21442. - test ! -s conftest.err
  21443. - } && test -s conftest$ac_exeext && {
  21444. - test "$cross_compiling" = yes ||
  21445. - $as_test_x conftest$ac_exeext
  21446. - }; then
  21447. +if ac_fn_c_try_link "$LINENO"; then :
  21448. lt_cv_ld_exported_symbols_list=yes
  21449. else
  21450. - $as_echo "$as_me: failed program was:" >&5
  21451. -sed 's/^/| /' conftest.$ac_ext >&5
  21452. -
  21453. - lt_cv_ld_exported_symbols_list=no
  21454. + lt_cv_ld_exported_symbols_list=no
  21455. fi
  21456. -
  21457. -rm -rf conftest.dSYM
  21458. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21459. - conftest$ac_exeext conftest.$ac_ext
  21460. - LDFLAGS="$save_LDFLAGS"
  21461. +rm -f core conftest.err conftest.$ac_objext \
  21462. + conftest$ac_exeext conftest.$ac_ext
  21463. + LDFLAGS="$save_LDFLAGS"
  21464. fi
  21465. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  21466. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  21467. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  21468. case $host_os in
  21469. - rhapsody* | darwin1.[0123])
  21470. + rhapsody* | darwin1.[012])
  21471. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  21472. darwin1.*)
  21473. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  21474. - darwin*)
  21475. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  21476. + darwin*) # darwin 5.x on
  21477. # if running on 10.5 or later, the deployment target defaults
  21478. # to the OS version, if on x86, and 10.4, the deployment
  21479. # target defaults to 10.4. Don't you love it?
  21480. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  21481. - 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  21482. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  21483. - 10.[012]*)
  21484. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  21485. - 10.*)
  21486. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  21487. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  21488. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  21489. + 10.[012]*)
  21490. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  21491. + 10.*)
  21492. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  21493. esac
  21494. ;;
  21495. esac
  21496. @@ -7703,8297 +7370,2896 @@
  21497. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  21498. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  21499. else
  21500. - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  21501. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  21502. fi
  21503. if test "$DSYMUTIL" != ":"; then
  21504. - _lt_dsymutil="~$DSYMUTIL \$lib || :"
  21505. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  21506. else
  21507. _lt_dsymutil=
  21508. fi
  21509. ;;
  21510. esac
  21511. +for ac_header in dlfcn.h
  21512. +do :
  21513. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  21514. +"
  21515. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  21516. + cat >>confdefs.h <<_ACEOF
  21517. +#define HAVE_DLFCN_H 1
  21518. +_ACEOF
  21519. -enable_dlopen=no
  21520. -enable_win32_dll=no
  21521. -
  21522. -# Check whether --enable-libtool-lock was given.
  21523. -if test "${enable_libtool_lock+set}" = set; then
  21524. - enableval=$enable_libtool_lock;
  21525. fi
  21526. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  21527. +done
  21528. -# Check whether --with-pic was given.
  21529. -if test "${with_pic+set}" = set; then
  21530. - withval=$with_pic; pic_mode="$withval"
  21531. +
  21532. +ac_ext=cpp
  21533. +ac_cpp='$CXXCPP $CPPFLAGS'
  21534. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21535. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21536. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21537. +if test -z "$CXX"; then
  21538. + if test -n "$CCC"; then
  21539. + CXX=$CCC
  21540. + else
  21541. + if test -n "$ac_tool_prefix"; then
  21542. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  21543. + do
  21544. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  21545. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  21546. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21547. +$as_echo_n "checking for $ac_word... " >&6; }
  21548. +if test "${ac_cv_prog_CXX+set}" = set; then :
  21549. + $as_echo_n "(cached) " >&6
  21550. else
  21551. - pic_mode=default
  21552. + if test -n "$CXX"; then
  21553. + ac_cv_prog_CXX="$CXX" # Let the user override the test.
  21554. +else
  21555. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21556. +for as_dir in $PATH
  21557. +do
  21558. + IFS=$as_save_IFS
  21559. + test -z "$as_dir" && as_dir=.
  21560. + for ac_exec_ext in '' $ac_executable_extensions; do
  21561. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21562. + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  21563. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21564. + break 2
  21565. + fi
  21566. +done
  21567. + done
  21568. +IFS=$as_save_IFS
  21569. +
  21570. +fi
  21571. +fi
  21572. +CXX=$ac_cv_prog_CXX
  21573. +if test -n "$CXX"; then
  21574. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  21575. +$as_echo "$CXX" >&6; }
  21576. +else
  21577. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21578. +$as_echo "no" >&6; }
  21579. fi
  21580. -test -z "$pic_mode" && pic_mode=default
  21581. -# Use C for the default configuration in the libtool script
  21582. -tagname=
  21583. -lt_save_CC="$CC"
  21584. -ac_ext=c
  21585. -ac_cpp='$CPP $CPPFLAGS'
  21586. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21587. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21588. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21589. + test -n "$CXX" && break
  21590. + done
  21591. +fi
  21592. +if test -z "$CXX"; then
  21593. + ac_ct_CXX=$CXX
  21594. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  21595. +do
  21596. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  21597. +set dummy $ac_prog; ac_word=$2
  21598. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21599. +$as_echo_n "checking for $ac_word... " >&6; }
  21600. +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  21601. + $as_echo_n "(cached) " >&6
  21602. +else
  21603. + if test -n "$ac_ct_CXX"; then
  21604. + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  21605. +else
  21606. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21607. +for as_dir in $PATH
  21608. +do
  21609. + IFS=$as_save_IFS
  21610. + test -z "$as_dir" && as_dir=.
  21611. + for ac_exec_ext in '' $ac_executable_extensions; do
  21612. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21613. + ac_cv_prog_ac_ct_CXX="$ac_prog"
  21614. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21615. + break 2
  21616. + fi
  21617. +done
  21618. + done
  21619. +IFS=$as_save_IFS
  21620. +fi
  21621. +fi
  21622. +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  21623. +if test -n "$ac_ct_CXX"; then
  21624. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  21625. +$as_echo "$ac_ct_CXX" >&6; }
  21626. +else
  21627. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21628. +$as_echo "no" >&6; }
  21629. +fi
  21630. -# Source file extension for C test sources.
  21631. -ac_ext=c
  21632. -# Object file extension for compiled C test sources.
  21633. -objext=o
  21634. -objext=$objext
  21635. + test -n "$ac_ct_CXX" && break
  21636. +done
  21637. -# Code to be used in simple compile tests
  21638. -lt_simple_compile_test_code="int some_variable = 0;"
  21639. + if test "x$ac_ct_CXX" = x; then
  21640. + CXX="g++"
  21641. + else
  21642. + case $cross_compiling:$ac_tool_warned in
  21643. +yes:)
  21644. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21645. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21646. +ac_tool_warned=yes ;;
  21647. +esac
  21648. + CXX=$ac_ct_CXX
  21649. + fi
  21650. +fi
  21651. -# Code to be used in simple link tests
  21652. -lt_simple_link_test_code='int main(){return(0);}'
  21653. + fi
  21654. +fi
  21655. +# Provide some information about the compiler.
  21656. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  21657. +set X $ac_compile
  21658. +ac_compiler=$2
  21659. +for ac_option in --version -v -V -qversion; do
  21660. + { { ac_try="$ac_compiler $ac_option >&5"
  21661. +case "(($ac_try" in
  21662. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21663. + *) ac_try_echo=$ac_try;;
  21664. +esac
  21665. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  21666. +$as_echo "$ac_try_echo"; } >&5
  21667. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  21668. + ac_status=$?
  21669. + if test -s conftest.err; then
  21670. + sed '10a\
  21671. +... rest of stderr output deleted ...
  21672. + 10q' conftest.err >conftest.er1
  21673. + cat conftest.er1 >&5
  21674. + fi
  21675. + rm -f conftest.er1 conftest.err
  21676. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21677. + test $ac_status = 0; }
  21678. +done
  21679. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  21680. +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  21681. +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  21682. + $as_echo_n "(cached) " >&6
  21683. +else
  21684. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21685. +/* end confdefs.h. */
  21686. -# If no C compiler was specified, use CC.
  21687. -LTCC=${LTCC-"$CC"}
  21688. +int
  21689. +main ()
  21690. +{
  21691. +#ifndef __GNUC__
  21692. + choke me
  21693. +#endif
  21694. -# If no C compiler flags were specified, use CFLAGS.
  21695. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  21696. + ;
  21697. + return 0;
  21698. +}
  21699. +_ACEOF
  21700. +if ac_fn_cxx_try_compile "$LINENO"; then :
  21701. + ac_compiler_gnu=yes
  21702. +else
  21703. + ac_compiler_gnu=no
  21704. +fi
  21705. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21706. +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  21707. -# Allow CC to be a program name with arguments.
  21708. -compiler=$CC
  21709. +fi
  21710. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  21711. +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  21712. +if test $ac_compiler_gnu = yes; then
  21713. + GXX=yes
  21714. +else
  21715. + GXX=
  21716. +fi
  21717. +ac_test_CXXFLAGS=${CXXFLAGS+set}
  21718. +ac_save_CXXFLAGS=$CXXFLAGS
  21719. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  21720. +$as_echo_n "checking whether $CXX accepts -g... " >&6; }
  21721. +if test "${ac_cv_prog_cxx_g+set}" = set; then :
  21722. + $as_echo_n "(cached) " >&6
  21723. +else
  21724. + ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  21725. + ac_cxx_werror_flag=yes
  21726. + ac_cv_prog_cxx_g=no
  21727. + CXXFLAGS="-g"
  21728. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21729. +/* end confdefs.h. */
  21730. +int
  21731. +main ()
  21732. +{
  21733. -# save warnings/boilerplate of simple test code
  21734. -ac_outfile=conftest.$ac_objext
  21735. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  21736. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  21737. -_lt_compiler_boilerplate=`cat conftest.err`
  21738. -$rm conftest*
  21739. + ;
  21740. + return 0;
  21741. +}
  21742. +_ACEOF
  21743. +if ac_fn_cxx_try_compile "$LINENO"; then :
  21744. + ac_cv_prog_cxx_g=yes
  21745. +else
  21746. + CXXFLAGS=""
  21747. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21748. +/* end confdefs.h. */
  21749. -ac_outfile=conftest.$ac_objext
  21750. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  21751. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  21752. -_lt_linker_boilerplate=`cat conftest.err`
  21753. -$rm -r conftest*
  21754. -
  21755. -
  21756. -
  21757. -lt_prog_compiler_no_builtin_flag=
  21758. -
  21759. -if test "$GCC" = yes; then
  21760. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  21761. +int
  21762. +main ()
  21763. +{
  21764. + ;
  21765. + return 0;
  21766. +}
  21767. +_ACEOF
  21768. +if ac_fn_cxx_try_compile "$LINENO"; then :
  21769. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  21770. -$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  21771. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  21772. - $as_echo_n "(cached) " >&6
  21773. else
  21774. - lt_cv_prog_compiler_rtti_exceptions=no
  21775. - ac_outfile=conftest.$ac_objext
  21776. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  21777. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  21778. - # Insert the option either (1) after the last *FLAGS variable, or
  21779. - # (2) before a word containing "conftest.", or (3) at the end.
  21780. - # Note that $ac_compile itself does not contain backslashes and begins
  21781. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  21782. - # The option is referenced via a variable to avoid confusing sed.
  21783. - lt_compile=`echo "$ac_compile" | $SED \
  21784. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  21785. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  21786. - -e 's:$: $lt_compiler_flag:'`
  21787. - (eval echo "\"\$as_me:7810: $lt_compile\"" >&5)
  21788. - (eval "$lt_compile" 2>conftest.err)
  21789. - ac_status=$?
  21790. - cat conftest.err >&5
  21791. - echo "$as_me:7814: \$? = $ac_status" >&5
  21792. - if (exit $ac_status) && test -s "$ac_outfile"; then
  21793. - # The compiler can only warn and ignore the option if not recognized
  21794. - # So say no if there are warnings other than the usual output.
  21795. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  21796. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  21797. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  21798. - lt_cv_prog_compiler_rtti_exceptions=yes
  21799. - fi
  21800. - fi
  21801. - $rm conftest*
  21802. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  21803. + CXXFLAGS="-g"
  21804. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21805. +/* end confdefs.h. */
  21806. -fi
  21807. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  21808. -$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  21809. +int
  21810. +main ()
  21811. +{
  21812. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  21813. - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  21814. + ;
  21815. + return 0;
  21816. +}
  21817. +_ACEOF
  21818. +if ac_fn_cxx_try_compile "$LINENO"; then :
  21819. + ac_cv_prog_cxx_g=yes
  21820. +fi
  21821. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21822. +fi
  21823. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21824. +fi
  21825. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21826. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  21827. +fi
  21828. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  21829. +$as_echo "$ac_cv_prog_cxx_g" >&6; }
  21830. +if test "$ac_test_CXXFLAGS" = set; then
  21831. + CXXFLAGS=$ac_save_CXXFLAGS
  21832. +elif test $ac_cv_prog_cxx_g = yes; then
  21833. + if test "$GXX" = yes; then
  21834. + CXXFLAGS="-g -O2"
  21835. + else
  21836. + CXXFLAGS="-g"
  21837. + fi
  21838. else
  21839. - :
  21840. + if test "$GXX" = yes; then
  21841. + CXXFLAGS="-O2"
  21842. + else
  21843. + CXXFLAGS=
  21844. + fi
  21845. fi
  21846. +ac_ext=c
  21847. +ac_cpp='$CPP $CPPFLAGS'
  21848. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21849. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21850. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21851. -fi
  21852. +depcc="$CXX" am_compiler_list=
  21853. -lt_prog_compiler_wl=
  21854. -lt_prog_compiler_pic=
  21855. -lt_prog_compiler_static=
  21856. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  21857. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  21858. +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  21859. + $as_echo_n "(cached) " >&6
  21860. +else
  21861. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  21862. + # We make a subdir and do the tests there. Otherwise we can end up
  21863. + # making bogus files that we don't know about and never remove. For
  21864. + # instance it was reported that on HP-UX the gcc test will end up
  21865. + # making a dummy file named `D' -- because `-MD' means `put the output
  21866. + # in D'.
  21867. + mkdir conftest.dir
  21868. + # Copy depcomp to subdir because otherwise we won't find it if we're
  21869. + # using a relative directory.
  21870. + cp "$am_depcomp" conftest.dir
  21871. + cd conftest.dir
  21872. + # We will build objects and dependencies in a subdirectory because
  21873. + # it helps to detect inapplicable dependency modes. For instance
  21874. + # both Tru64's cc and ICC support -MD to output dependencies as a
  21875. + # side effect of compilation, but ICC will put the dependencies in
  21876. + # the current directory while Tru64 will put them in the object
  21877. + # directory.
  21878. + mkdir sub
  21879. -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  21880. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  21881. + am_cv_CXX_dependencies_compiler_type=none
  21882. + if test "$am_compiler_list" = ""; then
  21883. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  21884. + fi
  21885. + am__universal=false
  21886. + case " $depcc " in #(
  21887. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  21888. + esac
  21889. - if test "$GCC" = yes; then
  21890. - lt_prog_compiler_wl='-Wl,'
  21891. - lt_prog_compiler_static='-static'
  21892. + for depmode in $am_compiler_list; do
  21893. + # Setup a source with many dependencies, because some compilers
  21894. + # like to wrap large dependency lists on column 80 (with \), and
  21895. + # we should not choose a depcomp mode which is confused by this.
  21896. + #
  21897. + # We need to recreate these files for each test, as the compiler may
  21898. + # overwrite some of them when testing with obscure command lines.
  21899. + # This happens at least with the AIX C compiler.
  21900. + : > sub/conftest.c
  21901. + for i in 1 2 3 4 5 6; do
  21902. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  21903. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  21904. + # Solaris 8's {/usr,}/bin/sh.
  21905. + touch sub/conftst$i.h
  21906. + done
  21907. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  21908. - case $host_os in
  21909. - aix*)
  21910. - # All AIX code is PIC.
  21911. - if test "$host_cpu" = ia64; then
  21912. - # AIX 5 now supports IA64 processor
  21913. - lt_prog_compiler_static='-Bstatic'
  21914. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  21915. + # mode. It turns out that the SunPro C++ compiler does not properly
  21916. + # handle `-M -o', and we need to detect this. Also, some Intel
  21917. + # versions had trouble with output in subdirs
  21918. + am__obj=sub/conftest.${OBJEXT-o}
  21919. + am__minus_obj="-o $am__obj"
  21920. + case $depmode in
  21921. + gcc)
  21922. + # This depmode causes a compiler race in universal mode.
  21923. + test "$am__universal" = false || continue
  21924. + ;;
  21925. + nosideeffect)
  21926. + # after this tag, mechanisms are not by side-effect, so they'll
  21927. + # only be used when explicitly requested
  21928. + if test "x$enable_dependency_tracking" = xyes; then
  21929. + continue
  21930. + else
  21931. + break
  21932. fi
  21933. ;;
  21934. -
  21935. - amigaos*)
  21936. - # FIXME: we need at least 68020 code to build shared libraries, but
  21937. - # adding the `-m68020' flag to GCC prevents building anything better,
  21938. - # like `-m68040'.
  21939. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  21940. + msvisualcpp | msvcmsys)
  21941. + # This compiler won't grok `-c -o', but also, the minuso test has
  21942. + # not run yet. These depmodes are late enough in the game, and
  21943. + # so weak that their functioning should not be impacted.
  21944. + am__obj=conftest.${OBJEXT-o}
  21945. + am__minus_obj=
  21946. ;;
  21947. + none) break ;;
  21948. + esac
  21949. + if depmode=$depmode \
  21950. + source=sub/conftest.c object=$am__obj \
  21951. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  21952. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  21953. + >/dev/null 2>conftest.err &&
  21954. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  21955. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  21956. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  21957. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  21958. + # icc doesn't choke on unknown options, it will just issue warnings
  21959. + # or remarks (even with -Werror). So we grep stderr for any message
  21960. + # that says an option was ignored or not supported.
  21961. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  21962. + # icc: Command line warning: ignoring option '-M'; no argument required
  21963. + # The diagnosis changed in icc 8.0:
  21964. + # icc: Command line remark: option '-MP' not supported
  21965. + if (grep 'ignoring option' conftest.err ||
  21966. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  21967. + am_cv_CXX_dependencies_compiler_type=$depmode
  21968. + break
  21969. + fi
  21970. + fi
  21971. + done
  21972. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  21973. - # PIC is the default for these OSes.
  21974. - ;;
  21975. + cd ..
  21976. + rm -rf conftest.dir
  21977. +else
  21978. + am_cv_CXX_dependencies_compiler_type=none
  21979. +fi
  21980. - mingw* | cygwin* | pw32* | os2*)
  21981. - # This hack is so that the source file can tell whether it is being
  21982. - # built for inclusion in a dll (and should export symbols for example).
  21983. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  21984. - # (--disable-auto-import) libraries
  21985. - lt_prog_compiler_pic='-DDLL_EXPORT'
  21986. - ;;
  21987. +fi
  21988. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  21989. +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  21990. +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  21991. - darwin* | rhapsody*)
  21992. - # PIC is the default on this platform
  21993. - # Common symbols not allowed in MH_DYLIB files
  21994. - lt_prog_compiler_pic='-fno-common'
  21995. - ;;
  21996. + if
  21997. + test "x$enable_dependency_tracking" != xno \
  21998. + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  21999. + am__fastdepCXX_TRUE=
  22000. + am__fastdepCXX_FALSE='#'
  22001. +else
  22002. + am__fastdepCXX_TRUE='#'
  22003. + am__fastdepCXX_FALSE=
  22004. +fi
  22005. - interix[3-9]*)
  22006. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  22007. - # Instead, we relocate shared libraries at runtime.
  22008. - ;;
  22009. - msdosdjgpp*)
  22010. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  22011. - # on systems that don't support them.
  22012. - lt_prog_compiler_can_build_shared=no
  22013. - enable_shared=no
  22014. - ;;
  22015. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  22016. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  22017. + (test "X$CXX" != "Xg++"))) ; then
  22018. + ac_ext=cpp
  22019. +ac_cpp='$CXXCPP $CPPFLAGS'
  22020. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22021. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22022. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22023. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  22024. +$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  22025. +if test -z "$CXXCPP"; then
  22026. + if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  22027. + $as_echo_n "(cached) " >&6
  22028. +else
  22029. + # Double quotes because CXXCPP needs to be expanded
  22030. + for CXXCPP in "$CXX -E" "/lib/cpp"
  22031. + do
  22032. + ac_preproc_ok=false
  22033. +for ac_cxx_preproc_warn_flag in '' yes
  22034. +do
  22035. + # Use a header file that comes with gcc, so configuring glibc
  22036. + # with a fresh cross-compiler works.
  22037. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22038. + # <limits.h> exists even on freestanding compilers.
  22039. + # On the NeXT, cc -E runs the code through the compiler's parser,
  22040. + # not just through cpp. "Syntax error" is here to catch this case.
  22041. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22042. +/* end confdefs.h. */
  22043. +#ifdef __STDC__
  22044. +# include <limits.h>
  22045. +#else
  22046. +# include <assert.h>
  22047. +#endif
  22048. + Syntax error
  22049. +_ACEOF
  22050. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  22051. - sysv4*MP*)
  22052. - if test -d /usr/nec; then
  22053. - lt_prog_compiler_pic=-Kconform_pic
  22054. - fi
  22055. - ;;
  22056. +else
  22057. + # Broken: fails on valid input.
  22058. +continue
  22059. +fi
  22060. +rm -f conftest.err conftest.$ac_ext
  22061. - hpux*)
  22062. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  22063. - # not for PA HP-UX.
  22064. - case $host_cpu in
  22065. - hppa*64*|ia64*)
  22066. - # +Z the default
  22067. - ;;
  22068. - *)
  22069. - lt_prog_compiler_pic='-fPIC'
  22070. - ;;
  22071. - esac
  22072. - ;;
  22073. + # OK, works on sane cases. Now check whether nonexistent headers
  22074. + # can be detected and how.
  22075. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22076. +/* end confdefs.h. */
  22077. +#include <ac_nonexistent.h>
  22078. +_ACEOF
  22079. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  22080. + # Broken: success on invalid input.
  22081. +continue
  22082. +else
  22083. + # Passes both tests.
  22084. +ac_preproc_ok=:
  22085. +break
  22086. +fi
  22087. +rm -f conftest.err conftest.$ac_ext
  22088. - *)
  22089. - lt_prog_compiler_pic='-fPIC'
  22090. - ;;
  22091. - esac
  22092. - else
  22093. - # PORTME Check for flag to pass linker flags through the system compiler.
  22094. - case $host_os in
  22095. - aix*)
  22096. - lt_prog_compiler_wl='-Wl,'
  22097. - if test "$host_cpu" = ia64; then
  22098. - # AIX 5 now supports IA64 processor
  22099. - lt_prog_compiler_static='-Bstatic'
  22100. - else
  22101. - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  22102. - fi
  22103. - ;;
  22104. - darwin*)
  22105. - # PIC is the default on this platform
  22106. - # Common symbols not allowed in MH_DYLIB files
  22107. - case $cc_basename in
  22108. - xlc*)
  22109. - lt_prog_compiler_pic='-qnocommon'
  22110. - lt_prog_compiler_wl='-Wl,'
  22111. - ;;
  22112. - esac
  22113. - ;;
  22114. +done
  22115. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  22116. +rm -f conftest.err conftest.$ac_ext
  22117. +if $ac_preproc_ok; then :
  22118. + break
  22119. +fi
  22120. - mingw* | cygwin* | pw32* | os2*)
  22121. - # This hack is so that the source file can tell whether it is being
  22122. - # built for inclusion in a dll (and should export symbols for example).
  22123. - lt_prog_compiler_pic='-DDLL_EXPORT'
  22124. - ;;
  22125. + done
  22126. + ac_cv_prog_CXXCPP=$CXXCPP
  22127. - hpux9* | hpux10* | hpux11*)
  22128. - lt_prog_compiler_wl='-Wl,'
  22129. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  22130. - # not for PA HP-UX.
  22131. - case $host_cpu in
  22132. - hppa*64*|ia64*)
  22133. - # +Z the default
  22134. - ;;
  22135. - *)
  22136. - lt_prog_compiler_pic='+Z'
  22137. - ;;
  22138. - esac
  22139. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  22140. - lt_prog_compiler_static='${wl}-a ${wl}archive'
  22141. - ;;
  22142. +fi
  22143. + CXXCPP=$ac_cv_prog_CXXCPP
  22144. +else
  22145. + ac_cv_prog_CXXCPP=$CXXCPP
  22146. +fi
  22147. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  22148. +$as_echo "$CXXCPP" >&6; }
  22149. +ac_preproc_ok=false
  22150. +for ac_cxx_preproc_warn_flag in '' yes
  22151. +do
  22152. + # Use a header file that comes with gcc, so configuring glibc
  22153. + # with a fresh cross-compiler works.
  22154. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22155. + # <limits.h> exists even on freestanding compilers.
  22156. + # On the NeXT, cc -E runs the code through the compiler's parser,
  22157. + # not just through cpp. "Syntax error" is here to catch this case.
  22158. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22159. +/* end confdefs.h. */
  22160. +#ifdef __STDC__
  22161. +# include <limits.h>
  22162. +#else
  22163. +# include <assert.h>
  22164. +#endif
  22165. + Syntax error
  22166. +_ACEOF
  22167. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  22168. - irix5* | irix6* | nonstopux*)
  22169. - lt_prog_compiler_wl='-Wl,'
  22170. - # PIC (with -KPIC) is the default.
  22171. - lt_prog_compiler_static='-non_shared'
  22172. - ;;
  22173. +else
  22174. + # Broken: fails on valid input.
  22175. +continue
  22176. +fi
  22177. +rm -f conftest.err conftest.$ac_ext
  22178. - newsos6)
  22179. - lt_prog_compiler_pic='-KPIC'
  22180. - lt_prog_compiler_static='-Bstatic'
  22181. - ;;
  22182. + # OK, works on sane cases. Now check whether nonexistent headers
  22183. + # can be detected and how.
  22184. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22185. +/* end confdefs.h. */
  22186. +#include <ac_nonexistent.h>
  22187. +_ACEOF
  22188. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  22189. + # Broken: success on invalid input.
  22190. +continue
  22191. +else
  22192. + # Passes both tests.
  22193. +ac_preproc_ok=:
  22194. +break
  22195. +fi
  22196. +rm -f conftest.err conftest.$ac_ext
  22197. - linux* | k*bsd*-gnu)
  22198. - case $cc_basename in
  22199. - icc* | ecc*)
  22200. - lt_prog_compiler_wl='-Wl,'
  22201. - lt_prog_compiler_pic='-KPIC'
  22202. - lt_prog_compiler_static='-static'
  22203. - ;;
  22204. - pgcc* | pgf77* | pgf90* | pgf95*)
  22205. - # Portland Group compilers (*not* the Pentium gcc compiler,
  22206. - # which looks to be a dead project)
  22207. - lt_prog_compiler_wl='-Wl,'
  22208. - lt_prog_compiler_pic='-fpic'
  22209. - lt_prog_compiler_static='-Bstatic'
  22210. - ;;
  22211. - ccc*)
  22212. - lt_prog_compiler_wl='-Wl,'
  22213. - # All Alpha code is PIC.
  22214. - lt_prog_compiler_static='-non_shared'
  22215. - ;;
  22216. - *)
  22217. - case `$CC -V 2>&1 | sed 5q` in
  22218. - *Sun\ C*)
  22219. - # Sun C 5.9
  22220. - lt_prog_compiler_pic='-KPIC'
  22221. - lt_prog_compiler_static='-Bstatic'
  22222. - lt_prog_compiler_wl='-Wl,'
  22223. - ;;
  22224. - *Sun\ F*)
  22225. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  22226. - lt_prog_compiler_pic='-KPIC'
  22227. - lt_prog_compiler_static='-Bstatic'
  22228. - lt_prog_compiler_wl=''
  22229. - ;;
  22230. - esac
  22231. - ;;
  22232. - esac
  22233. - ;;
  22234. +done
  22235. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  22236. +rm -f conftest.err conftest.$ac_ext
  22237. +if $ac_preproc_ok; then :
  22238. - osf3* | osf4* | osf5*)
  22239. - lt_prog_compiler_wl='-Wl,'
  22240. - # All OSF/1 code is PIC.
  22241. - lt_prog_compiler_static='-non_shared'
  22242. - ;;
  22243. +else
  22244. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22245. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22246. +_lt_caught_CXX_error=yes; }
  22247. +fi
  22248. - rdos*)
  22249. - lt_prog_compiler_static='-non_shared'
  22250. - ;;
  22251. +ac_ext=c
  22252. +ac_cpp='$CPP $CPPFLAGS'
  22253. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22254. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22255. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22256. - solaris*)
  22257. - lt_prog_compiler_pic='-KPIC'
  22258. - lt_prog_compiler_static='-Bstatic'
  22259. - case $cc_basename in
  22260. - f77* | f90* | f95*)
  22261. - lt_prog_compiler_wl='-Qoption ld ';;
  22262. - *)
  22263. - lt_prog_compiler_wl='-Wl,';;
  22264. - esac
  22265. - ;;
  22266. +else
  22267. + _lt_caught_CXX_error=yes
  22268. +fi
  22269. - sunos4*)
  22270. - lt_prog_compiler_wl='-Qoption ld '
  22271. - lt_prog_compiler_pic='-PIC'
  22272. - lt_prog_compiler_static='-Bstatic'
  22273. - ;;
  22274. - sysv4 | sysv4.2uw2* | sysv4.3*)
  22275. - lt_prog_compiler_wl='-Wl,'
  22276. - lt_prog_compiler_pic='-KPIC'
  22277. - lt_prog_compiler_static='-Bstatic'
  22278. - ;;
  22279. - sysv4*MP*)
  22280. - if test -d /usr/nec ;then
  22281. - lt_prog_compiler_pic='-Kconform_pic'
  22282. - lt_prog_compiler_static='-Bstatic'
  22283. - fi
  22284. - ;;
  22285. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  22286. - lt_prog_compiler_wl='-Wl,'
  22287. - lt_prog_compiler_pic='-KPIC'
  22288. - lt_prog_compiler_static='-Bstatic'
  22289. - ;;
  22290. - unicos*)
  22291. - lt_prog_compiler_wl='-Wl,'
  22292. - lt_prog_compiler_can_build_shared=no
  22293. - ;;
  22294. +# Set options
  22295. +
  22296. +
  22297. +
  22298. + enable_dlopen=no
  22299. - uts4*)
  22300. - lt_prog_compiler_pic='-pic'
  22301. - lt_prog_compiler_static='-Bstatic'
  22302. - ;;
  22303. + enable_win32_dll=no
  22304. +
  22305. +
  22306. + # Check whether --enable-shared was given.
  22307. +if test "${enable_shared+set}" = set; then :
  22308. + enableval=$enable_shared; p=${PACKAGE-default}
  22309. + case $enableval in
  22310. + yes) enable_shared=yes ;;
  22311. + no) enable_shared=no ;;
  22312. *)
  22313. - lt_prog_compiler_can_build_shared=no
  22314. + enable_shared=no
  22315. + # Look at the argument we got. We use all the common list separators.
  22316. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  22317. + for pkg in $enableval; do
  22318. + IFS="$lt_save_ifs"
  22319. + if test "X$pkg" = "X$p"; then
  22320. + enable_shared=yes
  22321. + fi
  22322. + done
  22323. + IFS="$lt_save_ifs"
  22324. ;;
  22325. esac
  22326. - fi
  22327. +else
  22328. + enable_shared=yes
  22329. +fi
  22330. -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  22331. -$as_echo "$lt_prog_compiler_pic" >&6; }
  22332. -#
  22333. -# Check to make sure the PIC flag actually works.
  22334. -#
  22335. -if test -n "$lt_prog_compiler_pic"; then
  22336. -{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  22337. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  22338. -if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  22339. - $as_echo_n "(cached) " >&6
  22340. -else
  22341. - lt_cv_prog_compiler_pic_works=no
  22342. - ac_outfile=conftest.$ac_objext
  22343. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  22344. - lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  22345. - # Insert the option either (1) after the last *FLAGS variable, or
  22346. - # (2) before a word containing "conftest.", or (3) at the end.
  22347. - # Note that $ac_compile itself does not contain backslashes and begins
  22348. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  22349. - # The option is referenced via a variable to avoid confusing sed.
  22350. - lt_compile=`echo "$ac_compile" | $SED \
  22351. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  22352. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  22353. - -e 's:$: $lt_compiler_flag:'`
  22354. - (eval echo "\"\$as_me:8100: $lt_compile\"" >&5)
  22355. - (eval "$lt_compile" 2>conftest.err)
  22356. - ac_status=$?
  22357. - cat conftest.err >&5
  22358. - echo "$as_me:8104: \$? = $ac_status" >&5
  22359. - if (exit $ac_status) && test -s "$ac_outfile"; then
  22360. - # The compiler can only warn and ignore the option if not recognized
  22361. - # So say no if there are warnings other than the usual output.
  22362. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  22363. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  22364. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  22365. - lt_cv_prog_compiler_pic_works=yes
  22366. - fi
  22367. - fi
  22368. - $rm conftest*
  22369. -fi
  22370. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  22371. -$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  22372. -if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  22373. - case $lt_prog_compiler_pic in
  22374. - "" | " "*) ;;
  22375. - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  22376. - esac
  22377. -else
  22378. - lt_prog_compiler_pic=
  22379. - lt_prog_compiler_can_build_shared=no
  22380. -fi
  22381. -fi
  22382. -case $host_os in
  22383. - # For platforms which do not support PIC, -DPIC is meaningless:
  22384. - *djgpp*)
  22385. - lt_prog_compiler_pic=
  22386. - ;;
  22387. - *)
  22388. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  22389. - ;;
  22390. -esac
  22391. -#
  22392. -# Check to make sure the static flag actually works.
  22393. -#
  22394. -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  22395. -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  22396. -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  22397. -if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  22398. - $as_echo_n "(cached) " >&6
  22399. -else
  22400. - lt_cv_prog_compiler_static_works=no
  22401. - save_LDFLAGS="$LDFLAGS"
  22402. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  22403. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  22404. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  22405. - # The linker can only warn and ignore the option if not recognized
  22406. - # So say no if there are warnings
  22407. - if test -s conftest.err; then
  22408. - # Append any errors to the config.log.
  22409. - cat conftest.err 1>&5
  22410. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  22411. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  22412. - if diff conftest.exp conftest.er2 >/dev/null; then
  22413. - lt_cv_prog_compiler_static_works=yes
  22414. - fi
  22415. - else
  22416. - lt_cv_prog_compiler_static_works=yes
  22417. - fi
  22418. - fi
  22419. - $rm -r conftest*
  22420. - LDFLAGS="$save_LDFLAGS"
  22421. -fi
  22422. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  22423. -$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  22424. -if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  22425. - :
  22426. + # Check whether --enable-static was given.
  22427. +if test "${enable_static+set}" = set; then :
  22428. + enableval=$enable_static; p=${PACKAGE-default}
  22429. + case $enableval in
  22430. + yes) enable_static=yes ;;
  22431. + no) enable_static=no ;;
  22432. + *)
  22433. + enable_static=no
  22434. + # Look at the argument we got. We use all the common list separators.
  22435. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  22436. + for pkg in $enableval; do
  22437. + IFS="$lt_save_ifs"
  22438. + if test "X$pkg" = "X$p"; then
  22439. + enable_static=yes
  22440. + fi
  22441. + done
  22442. + IFS="$lt_save_ifs"
  22443. + ;;
  22444. + esac
  22445. else
  22446. - lt_prog_compiler_static=
  22447. + enable_static=yes
  22448. fi
  22449. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  22450. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  22451. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  22452. - $as_echo_n "(cached) " >&6
  22453. -else
  22454. - lt_cv_prog_compiler_c_o=no
  22455. - $rm -r conftest 2>/dev/null
  22456. - mkdir conftest
  22457. - cd conftest
  22458. - mkdir out
  22459. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  22460. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  22461. - # Insert the option either (1) after the last *FLAGS variable, or
  22462. - # (2) before a word containing "conftest.", or (3) at the end.
  22463. - # Note that $ac_compile itself does not contain backslashes and begins
  22464. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  22465. - lt_compile=`echo "$ac_compile" | $SED \
  22466. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  22467. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  22468. - -e 's:$: $lt_compiler_flag:'`
  22469. - (eval echo "\"\$as_me:8204: $lt_compile\"" >&5)
  22470. - (eval "$lt_compile" 2>out/conftest.err)
  22471. - ac_status=$?
  22472. - cat out/conftest.err >&5
  22473. - echo "$as_me:8208: \$? = $ac_status" >&5
  22474. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  22475. - then
  22476. - # The compiler can only warn and ignore the option if not recognized
  22477. - # So say no if there are warnings
  22478. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  22479. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  22480. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  22481. - lt_cv_prog_compiler_c_o=yes
  22482. - fi
  22483. - fi
  22484. - chmod u+w . 2>&5
  22485. - $rm conftest*
  22486. - # SGI C++ compiler will create directory out/ii_files/ for
  22487. - # template instantiation
  22488. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  22489. - $rm out/* && rmdir out
  22490. - cd ..
  22491. - rmdir conftest
  22492. - $rm conftest*
  22493. -fi
  22494. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  22495. -$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  22496. -hard_links="nottested"
  22497. -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  22498. - # do not overwrite the value of need_locks provided by the user
  22499. - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  22500. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  22501. - hard_links=yes
  22502. - $rm conftest*
  22503. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  22504. - touch conftest.a
  22505. - ln conftest.a conftest.b 2>&5 || hard_links=no
  22506. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  22507. - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  22508. -$as_echo "$hard_links" >&6; }
  22509. - if test "$hard_links" = no; then
  22510. - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  22511. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  22512. - need_locks=warn
  22513. - fi
  22514. +
  22515. +
  22516. +
  22517. +
  22518. +# Check whether --with-pic was given.
  22519. +if test "${with_pic+set}" = set; then :
  22520. + withval=$with_pic; pic_mode="$withval"
  22521. else
  22522. - need_locks=no
  22523. + pic_mode=default
  22524. fi
  22525. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  22526. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  22527. - runpath_var=
  22528. - allow_undefined_flag=
  22529. - enable_shared_with_static_runtimes=no
  22530. - archive_cmds=
  22531. - archive_expsym_cmds=
  22532. - old_archive_From_new_cmds=
  22533. - old_archive_from_expsyms_cmds=
  22534. - export_dynamic_flag_spec=
  22535. - whole_archive_flag_spec=
  22536. - thread_safe_flag_spec=
  22537. - hardcode_libdir_flag_spec=
  22538. - hardcode_libdir_flag_spec_ld=
  22539. - hardcode_libdir_separator=
  22540. - hardcode_direct=no
  22541. - hardcode_minus_L=no
  22542. - hardcode_shlibpath_var=unsupported
  22543. - link_all_deplibs=unknown
  22544. - hardcode_automatic=no
  22545. - module_cmds=
  22546. - module_expsym_cmds=
  22547. - always_export_symbols=no
  22548. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  22549. - # include_expsyms should be a list of space-separated symbols to be *always*
  22550. - # included in the symbol list
  22551. - include_expsyms=
  22552. - # exclude_expsyms can be an extended regexp of symbols to exclude
  22553. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  22554. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  22555. - # as well as any symbol that contains `d'.
  22556. - exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  22557. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  22558. - # platforms (ab)use it in PIC code, but their linkers get confused if
  22559. - # the symbol is explicitly referenced. Since portable code cannot
  22560. - # rely on this symbol name, it's probably fine to never include it in
  22561. - # preloaded symbol tables.
  22562. - # Exclude shared library initialization/finalization symbols.
  22563. - extract_expsyms_cmds=
  22564. - # Just being paranoid about ensuring that cc_basename is set.
  22565. - for cc_temp in $compiler""; do
  22566. - case $cc_temp in
  22567. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  22568. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  22569. - \-*) ;;
  22570. - *) break;;
  22571. - esac
  22572. -done
  22573. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  22574. +test -z "$pic_mode" && pic_mode=default
  22575. - case $host_os in
  22576. - cygwin* | mingw* | pw32*)
  22577. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  22578. - # When not using gcc, we currently assume that we are using
  22579. - # Microsoft Visual C++.
  22580. - if test "$GCC" != yes; then
  22581. - with_gnu_ld=no
  22582. - fi
  22583. - ;;
  22584. - interix*)
  22585. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  22586. - with_gnu_ld=yes
  22587. - ;;
  22588. - openbsd*)
  22589. - with_gnu_ld=no
  22590. - ;;
  22591. - esac
  22592. - ld_shlibs=yes
  22593. - if test "$with_gnu_ld" = yes; then
  22594. - # If archive_cmds runs LD, not CC, wlarc should be empty
  22595. - wlarc='${wl}'
  22596. - # Set some defaults for GNU ld with shared library support. These
  22597. - # are reset later if shared libraries are not supported. Putting them
  22598. - # here allows them to be overridden if necessary.
  22599. - runpath_var=LD_RUN_PATH
  22600. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  22601. - export_dynamic_flag_spec='${wl}--export-dynamic'
  22602. - # ancient GNU ld didn't support --whole-archive et. al.
  22603. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  22604. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  22605. - else
  22606. - whole_archive_flag_spec=
  22607. - fi
  22608. - supports_anon_versioning=no
  22609. - case `$LD -v 2>/dev/null` in
  22610. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  22611. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  22612. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  22613. - *\ 2.11.*) ;; # other 2.11 versions
  22614. - *) supports_anon_versioning=yes ;;
  22615. - esac
  22616. - # See if GNU ld supports shared libraries.
  22617. - case $host_os in
  22618. - aix[3-9]*)
  22619. - # On AIX/PPC, the GNU linker is very broken
  22620. - if test "$host_cpu" != ia64; then
  22621. - ld_shlibs=no
  22622. - cat <<EOF 1>&2
  22623. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  22624. -*** to be unable to reliably create shared libraries on AIX.
  22625. -*** Therefore, libtool is disabling shared libraries support. If you
  22626. -*** really care for shared libraries, you may want to modify your PATH
  22627. -*** so that a non-GNU linker is found, and then restart.
  22628. -EOF
  22629. - fi
  22630. +
  22631. + # Check whether --enable-fast-install was given.
  22632. +if test "${enable_fast_install+set}" = set; then :
  22633. + enableval=$enable_fast_install; p=${PACKAGE-default}
  22634. + case $enableval in
  22635. + yes) enable_fast_install=yes ;;
  22636. + no) enable_fast_install=no ;;
  22637. + *)
  22638. + enable_fast_install=no
  22639. + # Look at the argument we got. We use all the common list separators.
  22640. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  22641. + for pkg in $enableval; do
  22642. + IFS="$lt_save_ifs"
  22643. + if test "X$pkg" = "X$p"; then
  22644. + enable_fast_install=yes
  22645. + fi
  22646. + done
  22647. + IFS="$lt_save_ifs"
  22648. ;;
  22649. + esac
  22650. +else
  22651. + enable_fast_install=yes
  22652. +fi
  22653. - amigaos*)
  22654. - 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)'
  22655. - hardcode_libdir_flag_spec='-L$libdir'
  22656. - hardcode_minus_L=yes
  22657. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  22658. - # that the semantics of dynamic libraries on AmigaOS, at least up
  22659. - # to version 4, is to share data among multiple programs linked
  22660. - # with the same dynamic library. Since this doesn't match the
  22661. - # behavior of shared libraries on other platforms, we can't use
  22662. - # them.
  22663. - ld_shlibs=no
  22664. - ;;
  22665. - beos*)
  22666. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22667. - allow_undefined_flag=unsupported
  22668. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  22669. - # support --undefined. This deserves some investigation. FIXME
  22670. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22671. - else
  22672. - ld_shlibs=no
  22673. - fi
  22674. - ;;
  22675. - cygwin* | mingw* | pw32*)
  22676. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  22677. - # as there is no search path for DLLs.
  22678. - hardcode_libdir_flag_spec='-L$libdir'
  22679. - allow_undefined_flag=unsupported
  22680. - always_export_symbols=no
  22681. - enable_shared_with_static_runtimes=yes
  22682. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  22683. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  22684. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  22685. - # If the export-symbols file already is a .def file (1st line
  22686. - # is EXPORTS), use it as is; otherwise, prepend...
  22687. - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  22688. - cp $export_symbols $output_objdir/$soname.def;
  22689. - else
  22690. - echo EXPORTS > $output_objdir/$soname.def;
  22691. - cat $export_symbols >> $output_objdir/$soname.def;
  22692. - fi~
  22693. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  22694. - else
  22695. - ld_shlibs=no
  22696. - fi
  22697. - ;;
  22698. - interix[3-9]*)
  22699. - hardcode_direct=no
  22700. - hardcode_shlibpath_var=no
  22701. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  22702. - export_dynamic_flag_spec='${wl}-E'
  22703. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  22704. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  22705. - # default) and relocated if they conflict, which is a slow very memory
  22706. - # consuming and fragmenting process. To avoid this, we pick a random,
  22707. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  22708. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  22709. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  22710. - 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'
  22711. - ;;
  22712. - gnu* | linux* | k*bsd*-gnu)
  22713. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22714. - tmp_addflag=
  22715. - case $cc_basename,$host_cpu in
  22716. - pgcc*) # Portland Group C compiler
  22717. - 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'
  22718. - tmp_addflag=' $pic_flag'
  22719. - ;;
  22720. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  22721. - 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'
  22722. - tmp_addflag=' $pic_flag -Mnomain' ;;
  22723. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  22724. - tmp_addflag=' -i_dynamic' ;;
  22725. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  22726. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  22727. - ifc* | ifort*) # Intel Fortran compiler
  22728. - tmp_addflag=' -nofor_main' ;;
  22729. - esac
  22730. - case `$CC -V 2>&1 | sed 5q` in
  22731. - *Sun\ C*) # Sun C 5.9
  22732. - 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'
  22733. - tmp_sharedflag='-G' ;;
  22734. - *Sun\ F*) # Sun Fortran 8.3
  22735. - tmp_sharedflag='-G' ;;
  22736. - *)
  22737. - tmp_sharedflag='-shared' ;;
  22738. - esac
  22739. - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22740. - if test $supports_anon_versioning = yes; then
  22741. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  22742. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  22743. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  22744. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  22745. - fi
  22746. - else
  22747. - ld_shlibs=no
  22748. - fi
  22749. - ;;
  22750. - netbsd*)
  22751. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  22752. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  22753. - wlarc=
  22754. - else
  22755. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22756. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  22757. - fi
  22758. - ;;
  22759. - solaris*)
  22760. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  22761. - ld_shlibs=no
  22762. - cat <<EOF 1>&2
  22763. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  22764. -*** create shared libraries on Solaris systems. Therefore, libtool
  22765. -*** is disabling shared libraries support. We urge you to upgrade GNU
  22766. -*** binutils to release 2.9.1 or newer. Another option is to modify
  22767. -*** your PATH or compiler configuration so that the native linker is
  22768. -*** used, and then restart.
  22769. +# This can be used to rebuild libtool when needed
  22770. +LIBTOOL_DEPS="$ltmain"
  22771. -EOF
  22772. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22773. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22774. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  22775. - else
  22776. - ld_shlibs=no
  22777. - fi
  22778. - ;;
  22779. +# Always use our own libtool.
  22780. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  22781. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  22782. - case `$LD -v 2>&1` in
  22783. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  22784. - ld_shlibs=no
  22785. - cat <<_LT_EOF 1>&2
  22786. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  22787. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  22788. -*** is disabling shared libraries support. We urge you to upgrade GNU
  22789. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  22790. -*** your PATH or compiler configuration so that the native linker is
  22791. -*** used, and then restart.
  22792. -_LT_EOF
  22793. - ;;
  22794. - *)
  22795. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22796. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  22797. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  22798. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  22799. - else
  22800. - ld_shlibs=no
  22801. - fi
  22802. - ;;
  22803. - esac
  22804. - ;;
  22805. - sunos4*)
  22806. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  22807. - wlarc=
  22808. - hardcode_direct=yes
  22809. - hardcode_shlibpath_var=no
  22810. - ;;
  22811. - *)
  22812. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22813. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22814. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  22815. - else
  22816. - ld_shlibs=no
  22817. - fi
  22818. - ;;
  22819. - esac
  22820. - if test "$ld_shlibs" = no; then
  22821. - runpath_var=
  22822. - hardcode_libdir_flag_spec=
  22823. - export_dynamic_flag_spec=
  22824. - whole_archive_flag_spec=
  22825. - fi
  22826. - else
  22827. - # PORTME fill in a description of your system's linker (not GNU ld)
  22828. - case $host_os in
  22829. - aix3*)
  22830. - allow_undefined_flag=unsupported
  22831. - always_export_symbols=yes
  22832. - 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'
  22833. - # Note: this linker hardcodes the directories in LIBPATH if there
  22834. - # are no directories specified by -L.
  22835. - hardcode_minus_L=yes
  22836. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  22837. - # Neither direct hardcoding nor static linking is supported with a
  22838. - # broken collect2.
  22839. - hardcode_direct=unsupported
  22840. - fi
  22841. - ;;
  22842. - aix[4-9]*)
  22843. - if test "$host_cpu" = ia64; then
  22844. - # On IA64, the linker does run time linking by default, so we don't
  22845. - # have to do anything special.
  22846. - aix_use_runtimelinking=no
  22847. - exp_sym_flag='-Bexport'
  22848. - no_entry_flag=""
  22849. - else
  22850. - # If we're using GNU nm, then we don't want the "-C" option.
  22851. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  22852. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  22853. - 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'
  22854. - else
  22855. - 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'
  22856. - fi
  22857. - aix_use_runtimelinking=no
  22858. - # Test if we are trying to use run time linking or normal
  22859. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  22860. - # need to do runtime linking.
  22861. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  22862. - for ld_flag in $LDFLAGS; do
  22863. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  22864. - aix_use_runtimelinking=yes
  22865. - break
  22866. - fi
  22867. - done
  22868. - ;;
  22869. - esac
  22870. - exp_sym_flag='-bexport'
  22871. - no_entry_flag='-bnoentry'
  22872. - fi
  22873. - # When large executables or shared objects are built, AIX ld can
  22874. - # have problems creating the table of contents. If linking a library
  22875. - # or program results in "error TOC overflow" add -mminimal-toc to
  22876. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  22877. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  22878. - archive_cmds=''
  22879. - hardcode_direct=yes
  22880. - hardcode_libdir_separator=':'
  22881. - link_all_deplibs=yes
  22882. - if test "$GCC" = yes; then
  22883. - case $host_os in aix4.[012]|aix4.[012].*)
  22884. - # We only want to do this on AIX 4.2 and lower, the check
  22885. - # below for broken collect2 doesn't work under 4.3+
  22886. - collect2name=`${CC} -print-prog-name=collect2`
  22887. - if test -f "$collect2name" && \
  22888. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  22889. - then
  22890. - # We have reworked collect2
  22891. - :
  22892. - else
  22893. - # We have old collect2
  22894. - hardcode_direct=unsupported
  22895. - # It fails to find uninstalled libraries when the uninstalled
  22896. - # path is not listed in the libpath. Setting hardcode_minus_L
  22897. - # to unsupported forces relinking
  22898. - hardcode_minus_L=yes
  22899. - hardcode_libdir_flag_spec='-L$libdir'
  22900. - hardcode_libdir_separator=
  22901. - fi
  22902. - ;;
  22903. - esac
  22904. - shared_flag='-shared'
  22905. - if test "$aix_use_runtimelinking" = yes; then
  22906. - shared_flag="$shared_flag "'${wl}-G'
  22907. - fi
  22908. - else
  22909. - # not using gcc
  22910. - if test "$host_cpu" = ia64; then
  22911. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  22912. - # chokes on -Wl,-G. The following line is correct:
  22913. - shared_flag='-G'
  22914. - else
  22915. - if test "$aix_use_runtimelinking" = yes; then
  22916. - shared_flag='${wl}-G'
  22917. - else
  22918. - shared_flag='${wl}-bM:SRE'
  22919. - fi
  22920. - fi
  22921. - fi
  22922. - # It seems that -bexpall does not export symbols beginning with
  22923. - # underscore (_), so it is better to generate a list of symbols to export.
  22924. - always_export_symbols=yes
  22925. - if test "$aix_use_runtimelinking" = yes; then
  22926. - # Warning - without using the other runtime loading flags (-brtl),
  22927. - # -berok will link without error, but may produce a broken library.
  22928. - allow_undefined_flag='-berok'
  22929. - # Determine the default libpath from the value encoded in an empty executable.
  22930. - cat >conftest.$ac_ext <<_ACEOF
  22931. -/* confdefs.h. */
  22932. -_ACEOF
  22933. -cat confdefs.h >>conftest.$ac_ext
  22934. -cat >>conftest.$ac_ext <<_ACEOF
  22935. -/* end confdefs.h. */
  22936. -int
  22937. -main ()
  22938. -{
  22939. - ;
  22940. - return 0;
  22941. -}
  22942. -_ACEOF
  22943. -rm -f conftest.$ac_objext conftest$ac_exeext
  22944. -if { (ac_try="$ac_link"
  22945. -case "(($ac_try" in
  22946. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22947. - *) ac_try_echo=$ac_try;;
  22948. -esac
  22949. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22950. -$as_echo "$ac_try_echo") >&5
  22951. - (eval "$ac_link") 2>conftest.er1
  22952. - ac_status=$?
  22953. - grep -v '^ *+' conftest.er1 >conftest.err
  22954. - rm -f conftest.er1
  22955. - cat conftest.err >&5
  22956. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22957. - (exit $ac_status); } && {
  22958. - test -z "$ac_c_werror_flag" ||
  22959. - test ! -s conftest.err
  22960. - } && test -s conftest$ac_exeext && {
  22961. - test "$cross_compiling" = yes ||
  22962. - $as_test_x conftest$ac_exeext
  22963. - }; then
  22964. -lt_aix_libpath_sed='
  22965. - /Import File Strings/,/^$/ {
  22966. - /^0/ {
  22967. - s/^0 *\(.*\)$/\1/
  22968. - p
  22969. - }
  22970. - }'
  22971. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  22972. -# Check for a 64-bit object if we didn't find anything.
  22973. -if test -z "$aix_libpath"; then
  22974. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  22975. -fi
  22976. -else
  22977. - $as_echo "$as_me: failed program was:" >&5
  22978. -sed 's/^/| /' conftest.$ac_ext >&5
  22979. -fi
  22980. -rm -rf conftest.dSYM
  22981. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22982. - conftest$ac_exeext conftest.$ac_ext
  22983. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  22984. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  22985. - 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"
  22986. - else
  22987. - if test "$host_cpu" = ia64; then
  22988. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  22989. - allow_undefined_flag="-z nodefs"
  22990. - 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"
  22991. - else
  22992. - # Determine the default libpath from the value encoded in an empty executable.
  22993. - cat >conftest.$ac_ext <<_ACEOF
  22994. -/* confdefs.h. */
  22995. -_ACEOF
  22996. -cat confdefs.h >>conftest.$ac_ext
  22997. -cat >>conftest.$ac_ext <<_ACEOF
  22998. -/* end confdefs.h. */
  22999. -int
  23000. -main ()
  23001. -{
  23002. - ;
  23003. - return 0;
  23004. -}
  23005. -_ACEOF
  23006. -rm -f conftest.$ac_objext conftest$ac_exeext
  23007. -if { (ac_try="$ac_link"
  23008. -case "(($ac_try" in
  23009. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23010. - *) ac_try_echo=$ac_try;;
  23011. -esac
  23012. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23013. -$as_echo "$ac_try_echo") >&5
  23014. - (eval "$ac_link") 2>conftest.er1
  23015. - ac_status=$?
  23016. - grep -v '^ *+' conftest.er1 >conftest.err
  23017. - rm -f conftest.er1
  23018. - cat conftest.err >&5
  23019. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23020. - (exit $ac_status); } && {
  23021. - test -z "$ac_c_werror_flag" ||
  23022. - test ! -s conftest.err
  23023. - } && test -s conftest$ac_exeext && {
  23024. - test "$cross_compiling" = yes ||
  23025. - $as_test_x conftest$ac_exeext
  23026. - }; then
  23027. -lt_aix_libpath_sed='
  23028. - /Import File Strings/,/^$/ {
  23029. - /^0/ {
  23030. - s/^0 *\(.*\)$/\1/
  23031. - p
  23032. - }
  23033. - }'
  23034. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  23035. -# Check for a 64-bit object if we didn't find anything.
  23036. -if test -z "$aix_libpath"; then
  23037. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  23038. +
  23039. +
  23040. +test -z "$LN_S" && LN_S="ln -s"
  23041. +
  23042. +
  23043. +
  23044. +
  23045. +
  23046. +
  23047. +
  23048. +
  23049. +
  23050. +
  23051. +
  23052. +
  23053. +
  23054. +
  23055. +if test -n "${ZSH_VERSION+set}" ; then
  23056. + setopt NO_GLOB_SUBST
  23057. fi
  23058. +
  23059. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  23060. +$as_echo_n "checking for objdir... " >&6; }
  23061. +if test "${lt_cv_objdir+set}" = set; then :
  23062. + $as_echo_n "(cached) " >&6
  23063. else
  23064. - $as_echo "$as_me: failed program was:" >&5
  23065. -sed 's/^/| /' conftest.$ac_ext >&5
  23066. + rm -f .libs 2>/dev/null
  23067. +mkdir .libs 2>/dev/null
  23068. +if test -d .libs; then
  23069. + lt_cv_objdir=.libs
  23070. +else
  23071. + # MS-DOS does not allow filenames that begin with a dot.
  23072. + lt_cv_objdir=_libs
  23073. +fi
  23074. +rmdir .libs 2>/dev/null
  23075. +fi
  23076. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  23077. +$as_echo "$lt_cv_objdir" >&6; }
  23078. +objdir=$lt_cv_objdir
  23079. -fi
  23080. -rm -rf conftest.dSYM
  23081. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23082. - conftest$ac_exeext conftest.$ac_ext
  23083. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  23084. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  23085. - # Warning - without using the other run time loading flags,
  23086. - # -berok will link without error, but may produce a broken library.
  23087. - no_undefined_flag=' ${wl}-bernotok'
  23088. - allow_undefined_flag=' ${wl}-berok'
  23089. - # Exported symbols can be pulled into shared objects from archives
  23090. - whole_archive_flag_spec='$convenience'
  23091. - archive_cmds_need_lc=yes
  23092. - # This is similar to how AIX traditionally builds its shared libraries.
  23093. - 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'
  23094. - fi
  23095. - fi
  23096. - ;;
  23097. - amigaos*)
  23098. - 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)'
  23099. - hardcode_libdir_flag_spec='-L$libdir'
  23100. - hardcode_minus_L=yes
  23101. - # see comment about different semantics on the GNU ld section
  23102. - ld_shlibs=no
  23103. - ;;
  23104. +cat >>confdefs.h <<_ACEOF
  23105. +#define LT_OBJDIR "$lt_cv_objdir/"
  23106. +_ACEOF
  23107. - bsdi[45]*)
  23108. - export_dynamic_flag_spec=-rdynamic
  23109. - ;;
  23110. - cygwin* | mingw* | pw32*)
  23111. - # When not using gcc, we currently assume that we are using
  23112. - # Microsoft Visual C++.
  23113. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  23114. - # no search path for DLLs.
  23115. - hardcode_libdir_flag_spec=' '
  23116. - allow_undefined_flag=unsupported
  23117. - # Tell ltmain to make .lib files, not .a files.
  23118. - libext=lib
  23119. - # Tell ltmain to make .dll files, not .so files.
  23120. - shrext_cmds=".dll"
  23121. - # FIXME: Setting linknames here is a bad hack.
  23122. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  23123. - # The linker will automatically build a .lib file if we build a DLL.
  23124. - old_archive_From_new_cmds='true'
  23125. - # FIXME: Should let the user specify the lib program.
  23126. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  23127. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  23128. - enable_shared_with_static_runtimes=yes
  23129. - ;;
  23130. - darwin* | rhapsody*)
  23131. - case $host_os in
  23132. - rhapsody* | darwin1.[012])
  23133. - allow_undefined_flag='${wl}-undefined ${wl}suppress'
  23134. - ;;
  23135. - *) # Darwin 1.3 on
  23136. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  23137. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  23138. - else
  23139. - case ${MACOSX_DEPLOYMENT_TARGET} in
  23140. - 10.[012])
  23141. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  23142. - ;;
  23143. - 10.*)
  23144. - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  23145. - ;;
  23146. - esac
  23147. - fi
  23148. - ;;
  23149. - esac
  23150. - archive_cmds_need_lc=no
  23151. - hardcode_direct=no
  23152. - hardcode_automatic=yes
  23153. - hardcode_shlibpath_var=unsupported
  23154. - whole_archive_flag_spec=''
  23155. - link_all_deplibs=yes
  23156. - if test "$GCC" = yes ; then
  23157. - output_verbose_link_cmd='echo'
  23158. - archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  23159. - module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  23160. - 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}"
  23161. - 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}"
  23162. - else
  23163. - case $cc_basename in
  23164. - xlc*)
  23165. - output_verbose_link_cmd='echo'
  23166. - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  23167. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  23168. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  23169. - 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}'
  23170. - 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}'
  23171. - ;;
  23172. - *)
  23173. - ld_shlibs=no
  23174. - ;;
  23175. - esac
  23176. - fi
  23177. - ;;
  23178. - dgux*)
  23179. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23180. - hardcode_libdir_flag_spec='-L$libdir'
  23181. - hardcode_shlibpath_var=no
  23182. - ;;
  23183. - freebsd1*)
  23184. - ld_shlibs=no
  23185. - ;;
  23186. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  23187. - # support. Future versions do this automatically, but an explicit c++rt0.o
  23188. - # does not break anything, and helps significantly (at the cost of a little
  23189. - # extra space).
  23190. - freebsd2.2*)
  23191. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  23192. - hardcode_libdir_flag_spec='-R$libdir'
  23193. - hardcode_direct=yes
  23194. - hardcode_shlibpath_var=no
  23195. - ;;
  23196. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  23197. - freebsd2*)
  23198. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  23199. - hardcode_direct=yes
  23200. - hardcode_minus_L=yes
  23201. - hardcode_shlibpath_var=no
  23202. - ;;
  23203. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  23204. - freebsd* | dragonfly*)
  23205. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  23206. - hardcode_libdir_flag_spec='-R$libdir'
  23207. - hardcode_direct=yes
  23208. - hardcode_shlibpath_var=no
  23209. - ;;
  23210. - hpux9*)
  23211. - if test "$GCC" = yes; then
  23212. - 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'
  23213. - else
  23214. - 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'
  23215. - fi
  23216. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  23217. - hardcode_libdir_separator=:
  23218. - hardcode_direct=yes
  23219. - # hardcode_minus_L: Not really in the search PATH,
  23220. - # but as the default location of the library.
  23221. - hardcode_minus_L=yes
  23222. - export_dynamic_flag_spec='${wl}-E'
  23223. - ;;
  23224. - hpux10*)
  23225. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  23226. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  23227. - else
  23228. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  23229. - fi
  23230. - if test "$with_gnu_ld" = no; then
  23231. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  23232. - hardcode_libdir_separator=:
  23233. - hardcode_direct=yes
  23234. - export_dynamic_flag_spec='${wl}-E'
  23235. - # hardcode_minus_L: Not really in the search PATH,
  23236. - # but as the default location of the library.
  23237. - hardcode_minus_L=yes
  23238. - fi
  23239. - ;;
  23240. - hpux11*)
  23241. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  23242. - case $host_cpu in
  23243. - hppa*64*)
  23244. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23245. - ;;
  23246. - ia64*)
  23247. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  23248. - ;;
  23249. - *)
  23250. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  23251. - ;;
  23252. - esac
  23253. - else
  23254. - case $host_cpu in
  23255. - hppa*64*)
  23256. - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23257. - ;;
  23258. - ia64*)
  23259. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  23260. - ;;
  23261. - *)
  23262. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  23263. - ;;
  23264. - esac
  23265. - fi
  23266. - if test "$with_gnu_ld" = no; then
  23267. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  23268. - hardcode_libdir_separator=:
  23269. - case $host_cpu in
  23270. - hppa*64*|ia64*)
  23271. - hardcode_libdir_flag_spec_ld='+b $libdir'
  23272. - hardcode_direct=no
  23273. - hardcode_shlibpath_var=no
  23274. - ;;
  23275. - *)
  23276. - hardcode_direct=yes
  23277. - export_dynamic_flag_spec='${wl}-E'
  23278. - # hardcode_minus_L: Not really in the search PATH,
  23279. - # but as the default location of the library.
  23280. - hardcode_minus_L=yes
  23281. - ;;
  23282. - esac
  23283. - fi
  23284. - ;;
  23285. - irix5* | irix6* | nonstopux*)
  23286. - if test "$GCC" = yes; then
  23287. - 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'
  23288. - else
  23289. - 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'
  23290. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  23291. - fi
  23292. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  23293. - hardcode_libdir_separator=:
  23294. - link_all_deplibs=yes
  23295. - ;;
  23296. +case $host_os in
  23297. +aix3*)
  23298. + # AIX sometimes has problems with the GCC collect2 program. For some
  23299. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  23300. + # vanish in a puff of smoke.
  23301. + if test "X${COLLECT_NAMES+set}" != Xset; then
  23302. + COLLECT_NAMES=
  23303. + export COLLECT_NAMES
  23304. + fi
  23305. + ;;
  23306. +esac
  23307. - netbsd*)
  23308. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  23309. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  23310. - else
  23311. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  23312. - fi
  23313. - hardcode_libdir_flag_spec='-R$libdir'
  23314. - hardcode_direct=yes
  23315. - hardcode_shlibpath_var=no
  23316. - ;;
  23317. +# Sed substitution that helps us do robust quoting. It backslashifies
  23318. +# metacharacters that are still active within double-quoted strings.
  23319. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  23320. - newsos6)
  23321. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23322. - hardcode_direct=yes
  23323. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  23324. - hardcode_libdir_separator=:
  23325. - hardcode_shlibpath_var=no
  23326. - ;;
  23327. +# Same as above, but do not quote variable references.
  23328. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  23329. - openbsd*)
  23330. - if test -f /usr/libexec/ld.so; then
  23331. - hardcode_direct=yes
  23332. - hardcode_shlibpath_var=no
  23333. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  23334. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  23335. - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  23336. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  23337. - export_dynamic_flag_spec='${wl}-E'
  23338. - else
  23339. - case $host_os in
  23340. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  23341. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  23342. - hardcode_libdir_flag_spec='-R$libdir'
  23343. - ;;
  23344. - *)
  23345. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  23346. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  23347. - ;;
  23348. - esac
  23349. - fi
  23350. - else
  23351. - ld_shlibs=no
  23352. - fi
  23353. - ;;
  23354. -
  23355. - os2*)
  23356. - hardcode_libdir_flag_spec='-L$libdir'
  23357. - hardcode_minus_L=yes
  23358. - allow_undefined_flag=unsupported
  23359. - 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'
  23360. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  23361. - ;;
  23362. +# Sed substitution to delay expansion of an escaped shell variable in a
  23363. +# double_quote_subst'ed string.
  23364. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  23365. - osf3*)
  23366. - if test "$GCC" = yes; then
  23367. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  23368. - 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'
  23369. - else
  23370. - allow_undefined_flag=' -expect_unresolved \*'
  23371. - 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'
  23372. - fi
  23373. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  23374. - hardcode_libdir_separator=:
  23375. - ;;
  23376. +# Sed substitution to delay expansion of an escaped single quote.
  23377. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  23378. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  23379. - if test "$GCC" = yes; then
  23380. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  23381. - 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'
  23382. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  23383. - else
  23384. - allow_undefined_flag=' -expect_unresolved \*'
  23385. - 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'
  23386. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  23387. - $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'
  23388. +# Sed substitution to avoid accidental globbing in evaled expressions
  23389. +no_glob_subst='s/\*/\\\*/g'
  23390. - # Both c and cxx compiler support -rpath directly
  23391. - hardcode_libdir_flag_spec='-rpath $libdir'
  23392. - fi
  23393. - hardcode_libdir_separator=:
  23394. - ;;
  23395. +# Global variables:
  23396. +ofile=libtool
  23397. +can_build_shared=yes
  23398. - solaris*)
  23399. - no_undefined_flag=' -z text'
  23400. - if test "$GCC" = yes; then
  23401. - wlarc='${wl}'
  23402. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23403. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  23404. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  23405. - else
  23406. - wlarc=''
  23407. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23408. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  23409. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  23410. - fi
  23411. - hardcode_libdir_flag_spec='-R$libdir'
  23412. - hardcode_shlibpath_var=no
  23413. - case $host_os in
  23414. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  23415. - *)
  23416. - # The compiler driver will combine and reorder linker options,
  23417. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  23418. - # but is careful enough not to reorder.
  23419. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  23420. - if test "$GCC" = yes; then
  23421. - whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  23422. - else
  23423. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  23424. - fi
  23425. - ;;
  23426. - esac
  23427. - link_all_deplibs=yes
  23428. - ;;
  23429. +# All known linkers require a `.a' archive for static linking (except MSVC,
  23430. +# which needs '.lib').
  23431. +libext=a
  23432. - sunos4*)
  23433. - if test "x$host_vendor" = xsequent; then
  23434. - # Use $CC to link under sequent, because it throws in some extra .o
  23435. - # files that make .init and .fini sections work.
  23436. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  23437. - else
  23438. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  23439. - fi
  23440. - hardcode_libdir_flag_spec='-L$libdir'
  23441. - hardcode_direct=yes
  23442. - hardcode_minus_L=yes
  23443. - hardcode_shlibpath_var=no
  23444. - ;;
  23445. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  23446. - sysv4)
  23447. - case $host_vendor in
  23448. - sni)
  23449. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23450. - hardcode_direct=yes # is this really true???
  23451. - ;;
  23452. - siemens)
  23453. - ## LD is ld it makes a PLAMLIB
  23454. - ## CC just makes a GrossModule.
  23455. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  23456. - reload_cmds='$CC -r -o $output$reload_objs'
  23457. - hardcode_direct=no
  23458. - ;;
  23459. - motorola)
  23460. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23461. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  23462. - ;;
  23463. - esac
  23464. - runpath_var='LD_RUN_PATH'
  23465. - hardcode_shlibpath_var=no
  23466. - ;;
  23467. +old_CC="$CC"
  23468. +old_CFLAGS="$CFLAGS"
  23469. - sysv4.3*)
  23470. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23471. - hardcode_shlibpath_var=no
  23472. - export_dynamic_flag_spec='-Bexport'
  23473. - ;;
  23474. +# Set sane defaults for various variables
  23475. +test -z "$CC" && CC=cc
  23476. +test -z "$LTCC" && LTCC=$CC
  23477. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  23478. +test -z "$LD" && LD=ld
  23479. +test -z "$ac_objext" && ac_objext=o
  23480. - sysv4*MP*)
  23481. - if test -d /usr/nec; then
  23482. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23483. - hardcode_shlibpath_var=no
  23484. - runpath_var=LD_RUN_PATH
  23485. - hardcode_runpath_var=yes
  23486. - ld_shlibs=yes
  23487. - fi
  23488. - ;;
  23489. +for cc_temp in $compiler""; do
  23490. + case $cc_temp in
  23491. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  23492. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  23493. + \-*) ;;
  23494. + *) break;;
  23495. + esac
  23496. +done
  23497. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  23498. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  23499. - no_undefined_flag='${wl}-z,text'
  23500. - archive_cmds_need_lc=no
  23501. - hardcode_shlibpath_var=no
  23502. - runpath_var='LD_RUN_PATH'
  23503. - if test "$GCC" = yes; then
  23504. - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23505. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23506. - else
  23507. - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23508. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23509. - fi
  23510. - ;;
  23511. +# Only perform the check for file, if the check method requires it
  23512. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  23513. +case $deplibs_check_method in
  23514. +file_magic*)
  23515. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  23516. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  23517. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  23518. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  23519. + $as_echo_n "(cached) " >&6
  23520. +else
  23521. + case $MAGIC_CMD in
  23522. +[\\/*] | ?:[\\/]*)
  23523. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  23524. + ;;
  23525. +*)
  23526. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  23527. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  23528. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  23529. + for ac_dir in $ac_dummy; do
  23530. + IFS="$lt_save_ifs"
  23531. + test -z "$ac_dir" && ac_dir=.
  23532. + if test -f $ac_dir/${ac_tool_prefix}file; then
  23533. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  23534. + if test -n "$file_magic_test_file"; then
  23535. + case $deplibs_check_method in
  23536. + "file_magic "*)
  23537. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  23538. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23539. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  23540. + $EGREP "$file_magic_regex" > /dev/null; then
  23541. + :
  23542. + else
  23543. + cat <<_LT_EOF 1>&2
  23544. - sysv5* | sco3.2v5* | sco5v6*)
  23545. - # Note: We can NOT use -z defs as we might desire, because we do not
  23546. - # link with -lc, and that would cause any symbols used from libc to
  23547. - # always be unresolved, which means just about no library would
  23548. - # ever link correctly. If we're not using GNU ld we use -z text
  23549. - # though, which does catch some bad symbols but isn't as heavy-handed
  23550. - # as -z defs.
  23551. - no_undefined_flag='${wl}-z,text'
  23552. - allow_undefined_flag='${wl}-z,nodefs'
  23553. - archive_cmds_need_lc=no
  23554. - hardcode_shlibpath_var=no
  23555. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  23556. - hardcode_libdir_separator=':'
  23557. - link_all_deplibs=yes
  23558. - export_dynamic_flag_spec='${wl}-Bexport'
  23559. - runpath_var='LD_RUN_PATH'
  23560. +*** Warning: the command libtool uses to detect shared libraries,
  23561. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  23562. +*** The result is that libtool may fail to recognize shared libraries
  23563. +*** as such. This will affect the creation of libtool libraries that
  23564. +*** depend on shared libraries, but programs linked with such libtool
  23565. +*** libraries will work regardless of this problem. Nevertheless, you
  23566. +*** may want to report the problem to your system manager and/or to
  23567. +*** bug-libtool@gnu.org
  23568. - if test "$GCC" = yes; then
  23569. - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23570. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23571. - else
  23572. - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23573. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23574. +_LT_EOF
  23575. + fi ;;
  23576. + esac
  23577. fi
  23578. - ;;
  23579. + break
  23580. + fi
  23581. + done
  23582. + IFS="$lt_save_ifs"
  23583. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  23584. + ;;
  23585. +esac
  23586. +fi
  23587. - uts4*)
  23588. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23589. - hardcode_libdir_flag_spec='-L$libdir'
  23590. - hardcode_shlibpath_var=no
  23591. - ;;
  23592. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23593. +if test -n "$MAGIC_CMD"; then
  23594. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  23595. +$as_echo "$MAGIC_CMD" >&6; }
  23596. +else
  23597. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23598. +$as_echo "no" >&6; }
  23599. +fi
  23600. - *)
  23601. - ld_shlibs=no
  23602. - ;;
  23603. - esac
  23604. - fi
  23605. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  23606. -$as_echo "$ld_shlibs" >&6; }
  23607. -test "$ld_shlibs" = no && can_build_shared=no
  23608. -#
  23609. -# Do we need to explicitly link libc?
  23610. -#
  23611. -case "x$archive_cmds_need_lc" in
  23612. -x|xyes)
  23613. - # Assume -lc should be added
  23614. - archive_cmds_need_lc=yes
  23615. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  23616. - case $archive_cmds in
  23617. - *'~'*)
  23618. - # FIXME: we may have to deal with multi-command sequences.
  23619. - ;;
  23620. - '$CC '*)
  23621. - # Test whether the compiler implicitly links with -lc since on some
  23622. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  23623. - # to ld, don't add -lc before -lgcc.
  23624. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  23625. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  23626. - $rm conftest*
  23627. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  23628. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23629. - (eval $ac_compile) 2>&5
  23630. - ac_status=$?
  23631. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23632. - (exit $ac_status); } 2>conftest.err; then
  23633. - soname=conftest
  23634. - lib=conftest
  23635. - libobjs=conftest.$ac_objext
  23636. - deplibs=
  23637. - wl=$lt_prog_compiler_wl
  23638. - pic_flag=$lt_prog_compiler_pic
  23639. - compiler_flags=-v
  23640. - linker_flags=-v
  23641. - verstring=
  23642. - output_objdir=.
  23643. - libname=conftest
  23644. - lt_save_allow_undefined_flag=$allow_undefined_flag
  23645. - allow_undefined_flag=
  23646. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  23647. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  23648. - ac_status=$?
  23649. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23650. - (exit $ac_status); }
  23651. - then
  23652. - archive_cmds_need_lc=no
  23653. - else
  23654. - archive_cmds_need_lc=yes
  23655. - fi
  23656. - allow_undefined_flag=$lt_save_allow_undefined_flag
  23657. - else
  23658. - cat conftest.err 1>&5
  23659. - fi
  23660. - $rm conftest*
  23661. - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  23662. -$as_echo "$archive_cmds_need_lc" >&6; }
  23663. - ;;
  23664. - esac
  23665. - fi
  23666. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  23667. + if test -n "$ac_tool_prefix"; then
  23668. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  23669. +$as_echo_n "checking for file... " >&6; }
  23670. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  23671. + $as_echo_n "(cached) " >&6
  23672. +else
  23673. + case $MAGIC_CMD in
  23674. +[\\/*] | ?:[\\/]*)
  23675. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  23676. ;;
  23677. -esac
  23678. +*)
  23679. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  23680. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  23681. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  23682. + for ac_dir in $ac_dummy; do
  23683. + IFS="$lt_save_ifs"
  23684. + test -z "$ac_dir" && ac_dir=.
  23685. + if test -f $ac_dir/file; then
  23686. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  23687. + if test -n "$file_magic_test_file"; then
  23688. + case $deplibs_check_method in
  23689. + "file_magic "*)
  23690. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  23691. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23692. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  23693. + $EGREP "$file_magic_regex" > /dev/null; then
  23694. + :
  23695. + else
  23696. + cat <<_LT_EOF 1>&2
  23697. -{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  23698. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  23699. -library_names_spec=
  23700. -libname_spec='lib$name'
  23701. -soname_spec=
  23702. -shrext_cmds=".so"
  23703. -postinstall_cmds=
  23704. -postuninstall_cmds=
  23705. -finish_cmds=
  23706. -finish_eval=
  23707. -shlibpath_var=
  23708. -shlibpath_overrides_runpath=unknown
  23709. -version_type=none
  23710. -dynamic_linker="$host_os ld.so"
  23711. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  23712. +*** Warning: the command libtool uses to detect shared libraries,
  23713. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  23714. +*** The result is that libtool may fail to recognize shared libraries
  23715. +*** as such. This will affect the creation of libtool libraries that
  23716. +*** depend on shared libraries, but programs linked with such libtool
  23717. +*** libraries will work regardless of this problem. Nevertheless, you
  23718. +*** may want to report the problem to your system manager and/or to
  23719. +*** bug-libtool@gnu.org
  23720. -if test "$GCC" = yes; then
  23721. - case $host_os in
  23722. - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  23723. - *) lt_awk_arg="/^libraries:/" ;;
  23724. - esac
  23725. - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  23726. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  23727. - # if the path contains ";" then we assume it to be the separator
  23728. - # otherwise default to the standard path separator (i.e. ":") - it is
  23729. - # assumed that no part of a normal pathname contains ";" but that should
  23730. - # okay in the real world where ";" in dirpaths is itself problematic.
  23731. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  23732. - else
  23733. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  23734. - fi
  23735. - # Ok, now we have the path, separated by spaces, we can step through it
  23736. - # and add multilib dir if necessary.
  23737. - lt_tmp_lt_search_path_spec=
  23738. - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  23739. - for lt_sys_path in $lt_search_path_spec; do
  23740. - if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  23741. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  23742. - else
  23743. - test -d "$lt_sys_path" && \
  23744. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  23745. +_LT_EOF
  23746. + fi ;;
  23747. + esac
  23748. + fi
  23749. + break
  23750. fi
  23751. done
  23752. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  23753. -BEGIN {RS=" "; FS="/|\n";} {
  23754. - lt_foo="";
  23755. - lt_count=0;
  23756. - for (lt_i = NF; lt_i > 0; lt_i--) {
  23757. - if ($lt_i != "" && $lt_i != ".") {
  23758. - if ($lt_i == "..") {
  23759. - lt_count++;
  23760. - } else {
  23761. - if (lt_count == 0) {
  23762. - lt_foo="/" $lt_i lt_foo;
  23763. - } else {
  23764. - lt_count--;
  23765. - }
  23766. - }
  23767. - }
  23768. - }
  23769. - if (lt_foo != "") { lt_freq[lt_foo]++; }
  23770. - if (lt_freq[lt_foo] == 1) { print lt_foo; }
  23771. -}'`
  23772. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  23773. -else
  23774. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  23775. + IFS="$lt_save_ifs"
  23776. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  23777. + ;;
  23778. +esac
  23779. fi
  23780. -need_lib_prefix=unknown
  23781. -hardcode_into_libs=no
  23782. -
  23783. -# when you set need_version to no, make sure it does not cause -set_version
  23784. -# flags to be left without arguments
  23785. -need_version=unknown
  23786. -case $host_os in
  23787. -aix3*)
  23788. - version_type=linux
  23789. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  23790. - shlibpath_var=LIBPATH
  23791. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23792. +if test -n "$MAGIC_CMD"; then
  23793. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  23794. +$as_echo "$MAGIC_CMD" >&6; }
  23795. +else
  23796. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23797. +$as_echo "no" >&6; }
  23798. +fi
  23799. - # AIX 3 has no versioning support, so we append a major version to the name.
  23800. - soname_spec='${libname}${release}${shared_ext}$major'
  23801. - ;;
  23802. -aix[4-9]*)
  23803. - version_type=linux
  23804. - need_lib_prefix=no
  23805. - need_version=no
  23806. - hardcode_into_libs=yes
  23807. - if test "$host_cpu" = ia64; then
  23808. - # AIX 5 supports IA64
  23809. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  23810. - shlibpath_var=LD_LIBRARY_PATH
  23811. else
  23812. - # With GCC up to 2.95.x, collect2 would create an import file
  23813. - # for dependence libraries. The import file would start with
  23814. - # the line `#! .'. This would cause the generated library to
  23815. - # depend on `.', always an invalid library. This was fixed in
  23816. - # development snapshots of GCC prior to 3.0.
  23817. - case $host_os in
  23818. - aix4 | aix4.[01] | aix4.[01].*)
  23819. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  23820. - echo ' yes '
  23821. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  23822. - :
  23823. - else
  23824. - can_build_shared=no
  23825. - fi
  23826. - ;;
  23827. - esac
  23828. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  23829. - # soname into executable. Probably we can add versioning support to
  23830. - # collect2, so additional links can be useful in future.
  23831. - if test "$aix_use_runtimelinking" = yes; then
  23832. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  23833. - # instead of lib<name>.a to let people know that these are not
  23834. - # typical AIX shared libraries.
  23835. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23836. - else
  23837. - # We preserve .a as extension for shared libraries through AIX4.2
  23838. - # and later when we are not doing run time linking.
  23839. - library_names_spec='${libname}${release}.a $libname.a'
  23840. - soname_spec='${libname}${release}${shared_ext}$major'
  23841. - fi
  23842. - shlibpath_var=LIBPATH
  23843. + MAGIC_CMD=:
  23844. fi
  23845. - ;;
  23846. +fi
  23847. -amigaos*)
  23848. - library_names_spec='$libname.ixlibrary $libname.a'
  23849. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  23850. - 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'
  23851. + fi
  23852. ;;
  23853. +esac
  23854. -beos*)
  23855. - library_names_spec='${libname}${shared_ext}'
  23856. - dynamic_linker="$host_os ld.so"
  23857. - shlibpath_var=LIBRARY_PATH
  23858. - ;;
  23859. +# Use C for the default configuration in the libtool script
  23860. -bsdi[45]*)
  23861. - version_type=linux
  23862. - need_version=no
  23863. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23864. - soname_spec='${libname}${release}${shared_ext}$major'
  23865. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  23866. - shlibpath_var=LD_LIBRARY_PATH
  23867. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  23868. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  23869. - # the default ld.so.conf also contains /usr/contrib/lib and
  23870. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  23871. - # libtool to hard-code these into programs
  23872. - ;;
  23873. +lt_save_CC="$CC"
  23874. +ac_ext=c
  23875. +ac_cpp='$CPP $CPPFLAGS'
  23876. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23877. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23878. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23879. -cygwin* | mingw* | pw32*)
  23880. - version_type=windows
  23881. - shrext_cmds=".dll"
  23882. - need_version=no
  23883. - need_lib_prefix=no
  23884. - case $GCC,$host_os in
  23885. - yes,cygwin* | yes,mingw* | yes,pw32*)
  23886. - library_names_spec='$libname.dll.a'
  23887. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  23888. - postinstall_cmds='base_file=`basename \${file}`~
  23889. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  23890. - dldir=$destdir/`dirname \$dlpath`~
  23891. - test -d \$dldir || mkdir -p \$dldir~
  23892. - $install_prog $dir/$dlname \$dldir/$dlname~
  23893. - chmod a+x \$dldir/$dlname'
  23894. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  23895. - dlpath=$dir/\$dldll~
  23896. - $rm \$dlpath'
  23897. - shlibpath_overrides_runpath=yes
  23898. +# Source file extension for C test sources.
  23899. +ac_ext=c
  23900. - case $host_os in
  23901. - cygwin*)
  23902. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  23903. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  23904. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  23905. - ;;
  23906. - mingw*)
  23907. - # MinGW DLLs use traditional 'lib' prefix
  23908. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  23909. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  23910. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  23911. - # It is most probably a Windows format PATH printed by
  23912. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  23913. - # path with ; separators, and with drive letters. We can handle the
  23914. - # drive letters (cygwin fileutils understands them), so leave them,
  23915. - # especially as we might pass files found there to a mingw objdump,
  23916. - # which wouldn't understand a cygwinified path. Ahh.
  23917. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  23918. - else
  23919. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  23920. - fi
  23921. - ;;
  23922. - pw32*)
  23923. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  23924. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  23925. - ;;
  23926. - esac
  23927. - ;;
  23928. +# Object file extension for compiled C test sources.
  23929. +objext=o
  23930. +objext=$objext
  23931. - *)
  23932. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  23933. - ;;
  23934. - esac
  23935. - dynamic_linker='Win32 ld.exe'
  23936. - # FIXME: first we should search . and the directory the executable is in
  23937. - shlibpath_var=PATH
  23938. - ;;
  23939. +# Code to be used in simple compile tests
  23940. +lt_simple_compile_test_code="int some_variable = 0;"
  23941. -darwin* | rhapsody*)
  23942. - dynamic_linker="$host_os dyld"
  23943. - version_type=darwin
  23944. - need_lib_prefix=no
  23945. - need_version=no
  23946. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  23947. - soname_spec='${libname}${release}${major}$shared_ext'
  23948. - shlibpath_overrides_runpath=yes
  23949. - shlibpath_var=DYLD_LIBRARY_PATH
  23950. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  23951. +# Code to be used in simple link tests
  23952. +lt_simple_link_test_code='int main(){return(0);}'
  23953. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  23954. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  23955. - ;;
  23956. -dgux*)
  23957. - version_type=linux
  23958. - need_lib_prefix=no
  23959. - need_version=no
  23960. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  23961. - soname_spec='${libname}${release}${shared_ext}$major'
  23962. - shlibpath_var=LD_LIBRARY_PATH
  23963. - ;;
  23964. -freebsd1*)
  23965. - dynamic_linker=no
  23966. - ;;
  23967. -freebsd* | dragonfly*)
  23968. - # DragonFly does not have aout. When/if they implement a new
  23969. - # versioning mechanism, adjust this.
  23970. - if test -x /usr/bin/objformat; then
  23971. - objformat=`/usr/bin/objformat`
  23972. - else
  23973. - case $host_os in
  23974. - freebsd[123]*) objformat=aout ;;
  23975. - *) objformat=elf ;;
  23976. - esac
  23977. - fi
  23978. - version_type=freebsd-$objformat
  23979. - case $version_type in
  23980. - freebsd-elf*)
  23981. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  23982. - need_version=no
  23983. - need_lib_prefix=no
  23984. - ;;
  23985. - freebsd-*)
  23986. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  23987. - need_version=yes
  23988. - ;;
  23989. - esac
  23990. - shlibpath_var=LD_LIBRARY_PATH
  23991. - case $host_os in
  23992. - freebsd2*)
  23993. - shlibpath_overrides_runpath=yes
  23994. - ;;
  23995. - freebsd3.[01]* | freebsdelf3.[01]*)
  23996. - shlibpath_overrides_runpath=yes
  23997. - hardcode_into_libs=yes
  23998. - ;;
  23999. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  24000. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  24001. - shlibpath_overrides_runpath=no
  24002. - hardcode_into_libs=yes
  24003. - ;;
  24004. - *) # from 4.6 on, and DragonFly
  24005. - shlibpath_overrides_runpath=yes
  24006. - hardcode_into_libs=yes
  24007. - ;;
  24008. - esac
  24009. - ;;
  24010. -gnu*)
  24011. - version_type=linux
  24012. - need_lib_prefix=no
  24013. - need_version=no
  24014. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  24015. - soname_spec='${libname}${release}${shared_ext}$major'
  24016. - shlibpath_var=LD_LIBRARY_PATH
  24017. - hardcode_into_libs=yes
  24018. - ;;
  24019. -hpux9* | hpux10* | hpux11*)
  24020. - # Give a soname corresponding to the major version so that dld.sl refuses to
  24021. - # link against other versions.
  24022. - version_type=sunos
  24023. - need_lib_prefix=no
  24024. - need_version=no
  24025. - case $host_cpu in
  24026. - ia64*)
  24027. - shrext_cmds='.so'
  24028. - hardcode_into_libs=yes
  24029. - dynamic_linker="$host_os dld.so"
  24030. - shlibpath_var=LD_LIBRARY_PATH
  24031. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  24032. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24033. - soname_spec='${libname}${release}${shared_ext}$major'
  24034. - if test "X$HPUX_IA64_MODE" = X32; then
  24035. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  24036. - else
  24037. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  24038. - fi
  24039. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  24040. - ;;
  24041. - hppa*64*)
  24042. - shrext_cmds='.sl'
  24043. - hardcode_into_libs=yes
  24044. - dynamic_linker="$host_os dld.sl"
  24045. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  24046. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  24047. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24048. - soname_spec='${libname}${release}${shared_ext}$major'
  24049. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  24050. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  24051. - ;;
  24052. - *)
  24053. - shrext_cmds='.sl'
  24054. - dynamic_linker="$host_os dld.sl"
  24055. - shlibpath_var=SHLIB_PATH
  24056. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  24057. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24058. - soname_spec='${libname}${release}${shared_ext}$major'
  24059. - ;;
  24060. - esac
  24061. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  24062. - postinstall_cmds='chmod 555 $lib'
  24063. - ;;
  24064. -interix[3-9]*)
  24065. - version_type=linux
  24066. - need_lib_prefix=no
  24067. - need_version=no
  24068. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  24069. - soname_spec='${libname}${release}${shared_ext}$major'
  24070. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  24071. - shlibpath_var=LD_LIBRARY_PATH
  24072. - shlibpath_overrides_runpath=no
  24073. - hardcode_into_libs=yes
  24074. - ;;
  24075. +# If no C compiler was specified, use CC.
  24076. +LTCC=${LTCC-"$CC"}
  24077. -irix5* | irix6* | nonstopux*)
  24078. - case $host_os in
  24079. - nonstopux*) version_type=nonstopux ;;
  24080. - *)
  24081. - if test "$lt_cv_prog_gnu_ld" = yes; then
  24082. - version_type=linux
  24083. - else
  24084. - version_type=irix
  24085. - fi ;;
  24086. - esac
  24087. - need_lib_prefix=no
  24088. - need_version=no
  24089. - soname_spec='${libname}${release}${shared_ext}$major'
  24090. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  24091. - case $host_os in
  24092. - irix5* | nonstopux*)
  24093. - libsuff= shlibsuff=
  24094. - ;;
  24095. - *)
  24096. - case $LD in # libtool.m4 will add one of these switches to LD
  24097. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  24098. - libsuff= shlibsuff= libmagic=32-bit;;
  24099. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  24100. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  24101. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  24102. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  24103. - *) libsuff= shlibsuff= libmagic=never-match;;
  24104. - esac
  24105. - ;;
  24106. - esac
  24107. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  24108. - shlibpath_overrides_runpath=no
  24109. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  24110. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  24111. - hardcode_into_libs=yes
  24112. - ;;
  24113. +# If no C compiler flags were specified, use CFLAGS.
  24114. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  24115. -# No shared lib support for Linux oldld, aout, or coff.
  24116. -linux*oldld* | linux*aout* | linux*coff*)
  24117. - dynamic_linker=no
  24118. - ;;
  24119. +# Allow CC to be a program name with arguments.
  24120. +compiler=$CC
  24121. -# This must be Linux ELF.
  24122. -linux* | k*bsd*-gnu)
  24123. - version_type=linux
  24124. - need_lib_prefix=no
  24125. - need_version=no
  24126. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24127. - soname_spec='${libname}${release}${shared_ext}$major'
  24128. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  24129. - shlibpath_var=LD_LIBRARY_PATH
  24130. - shlibpath_overrides_runpath=no
  24131. - # This implies no fast_install, which is unacceptable.
  24132. - # Some rework will be needed to allow for fast_install
  24133. - # before this can be enabled.
  24134. - hardcode_into_libs=yes
  24135. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  24136. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  24137. +# Save the default compiler, since it gets overwritten when the other
  24138. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  24139. +compiler_DEFAULT=$CC
  24140. - # Append ld.so.conf contents to the search path
  24141. - if test -f /etc/ld.so.conf; then
  24142. - 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' ' '`
  24143. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  24144. - fi
  24145. +# save warnings/boilerplate of simple test code
  24146. +ac_outfile=conftest.$ac_objext
  24147. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  24148. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  24149. +_lt_compiler_boilerplate=`cat conftest.err`
  24150. +$RM conftest*
  24151. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  24152. - # powerpc, because MkLinux only supported shared libraries with the
  24153. - # GNU dynamic linker. Since this was broken with cross compilers,
  24154. - # most powerpc-linux boxes support dynamic linking these days and
  24155. - # people can always --disable-shared, the test was removed, and we
  24156. - # assume the GNU/Linux dynamic linker is in use.
  24157. - dynamic_linker='GNU/Linux ld.so'
  24158. - ;;
  24159. +ac_outfile=conftest.$ac_objext
  24160. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  24161. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  24162. +_lt_linker_boilerplate=`cat conftest.err`
  24163. +$RM -r conftest*
  24164. -netbsd*)
  24165. - version_type=sunos
  24166. - need_lib_prefix=no
  24167. - need_version=no
  24168. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  24169. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  24170. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  24171. - dynamic_linker='NetBSD (a.out) ld.so'
  24172. - else
  24173. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  24174. - soname_spec='${libname}${release}${shared_ext}$major'
  24175. - dynamic_linker='NetBSD ld.elf_so'
  24176. - fi
  24177. - shlibpath_var=LD_LIBRARY_PATH
  24178. - shlibpath_overrides_runpath=yes
  24179. - hardcode_into_libs=yes
  24180. - ;;
  24181. -newsos6)
  24182. - version_type=linux
  24183. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24184. - shlibpath_var=LD_LIBRARY_PATH
  24185. - shlibpath_overrides_runpath=yes
  24186. - ;;
  24187. +if test -n "$compiler"; then
  24188. -nto-qnx*)
  24189. - version_type=linux
  24190. - need_lib_prefix=no
  24191. - need_version=no
  24192. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24193. - soname_spec='${libname}${release}${shared_ext}$major'
  24194. - shlibpath_var=LD_LIBRARY_PATH
  24195. - shlibpath_overrides_runpath=yes
  24196. - ;;
  24197. -
  24198. -openbsd*)
  24199. - version_type=sunos
  24200. - sys_lib_dlsearch_path_spec="/usr/lib"
  24201. - need_lib_prefix=no
  24202. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  24203. - case $host_os in
  24204. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  24205. - *) need_version=no ;;
  24206. - esac
  24207. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  24208. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  24209. - shlibpath_var=LD_LIBRARY_PATH
  24210. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  24211. - case $host_os in
  24212. - openbsd2.[89] | openbsd2.[89].*)
  24213. - shlibpath_overrides_runpath=no
  24214. - ;;
  24215. - *)
  24216. - shlibpath_overrides_runpath=yes
  24217. - ;;
  24218. - esac
  24219. - else
  24220. - shlibpath_overrides_runpath=yes
  24221. - fi
  24222. - ;;
  24223. -
  24224. -os2*)
  24225. - libname_spec='$name'
  24226. - shrext_cmds=".dll"
  24227. - need_lib_prefix=no
  24228. - library_names_spec='$libname${shared_ext} $libname.a'
  24229. - dynamic_linker='OS/2 ld.exe'
  24230. - shlibpath_var=LIBPATH
  24231. - ;;
  24232. -
  24233. -osf3* | osf4* | osf5*)
  24234. - version_type=osf
  24235. - need_lib_prefix=no
  24236. - need_version=no
  24237. - soname_spec='${libname}${release}${shared_ext}$major'
  24238. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24239. - shlibpath_var=LD_LIBRARY_PATH
  24240. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  24241. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  24242. - ;;
  24243. -
  24244. -rdos*)
  24245. - dynamic_linker=no
  24246. - ;;
  24247. -
  24248. -solaris*)
  24249. - version_type=linux
  24250. - need_lib_prefix=no
  24251. - need_version=no
  24252. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24253. - soname_spec='${libname}${release}${shared_ext}$major'
  24254. - shlibpath_var=LD_LIBRARY_PATH
  24255. - shlibpath_overrides_runpath=yes
  24256. - hardcode_into_libs=yes
  24257. - # ldd complains unless libraries are executable
  24258. - postinstall_cmds='chmod +x $lib'
  24259. - ;;
  24260. -
  24261. -sunos4*)
  24262. - version_type=sunos
  24263. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  24264. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  24265. - shlibpath_var=LD_LIBRARY_PATH
  24266. - shlibpath_overrides_runpath=yes
  24267. - if test "$with_gnu_ld" = yes; then
  24268. - need_lib_prefix=no
  24269. - fi
  24270. - need_version=yes
  24271. - ;;
  24272. -
  24273. -sysv4 | sysv4.3*)
  24274. - version_type=linux
  24275. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24276. - soname_spec='${libname}${release}${shared_ext}$major'
  24277. - shlibpath_var=LD_LIBRARY_PATH
  24278. - case $host_vendor in
  24279. - sni)
  24280. - shlibpath_overrides_runpath=no
  24281. - need_lib_prefix=no
  24282. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  24283. - runpath_var=LD_RUN_PATH
  24284. - ;;
  24285. - siemens)
  24286. - need_lib_prefix=no
  24287. - ;;
  24288. - motorola)
  24289. - need_lib_prefix=no
  24290. - need_version=no
  24291. - shlibpath_overrides_runpath=no
  24292. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  24293. - ;;
  24294. - esac
  24295. - ;;
  24296. -
  24297. -sysv4*MP*)
  24298. - if test -d /usr/nec ;then
  24299. - version_type=linux
  24300. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  24301. - soname_spec='$libname${shared_ext}.$major'
  24302. - shlibpath_var=LD_LIBRARY_PATH
  24303. - fi
  24304. - ;;
  24305. -
  24306. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  24307. - version_type=freebsd-elf
  24308. - need_lib_prefix=no
  24309. - need_version=no
  24310. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  24311. - soname_spec='${libname}${release}${shared_ext}$major'
  24312. - shlibpath_var=LD_LIBRARY_PATH
  24313. - hardcode_into_libs=yes
  24314. - if test "$with_gnu_ld" = yes; then
  24315. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  24316. - shlibpath_overrides_runpath=no
  24317. - else
  24318. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  24319. - shlibpath_overrides_runpath=yes
  24320. - case $host_os in
  24321. - sco3.2v5*)
  24322. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  24323. - ;;
  24324. - esac
  24325. - fi
  24326. - sys_lib_dlsearch_path_spec='/usr/lib'
  24327. - ;;
  24328. -
  24329. -uts4*)
  24330. - version_type=linux
  24331. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24332. - soname_spec='${libname}${release}${shared_ext}$major'
  24333. - shlibpath_var=LD_LIBRARY_PATH
  24334. - ;;
  24335. +lt_prog_compiler_no_builtin_flag=
  24336. -*)
  24337. - dynamic_linker=no
  24338. - ;;
  24339. -esac
  24340. -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  24341. -$as_echo "$dynamic_linker" >&6; }
  24342. -test "$dynamic_linker" = no && can_build_shared=no
  24343. +if test "$GCC" = yes; then
  24344. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  24345. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  24346. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  24347. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  24348. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  24349. $as_echo_n "(cached) " >&6
  24350. else
  24351. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  24352. + lt_cv_prog_compiler_rtti_exceptions=no
  24353. + ac_outfile=conftest.$ac_objext
  24354. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  24355. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  24356. + # Insert the option either (1) after the last *FLAGS variable, or
  24357. + # (2) before a word containing "conftest.", or (3) at the end.
  24358. + # Note that $ac_compile itself does not contain backslashes and begins
  24359. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  24360. + # The option is referenced via a variable to avoid confusing sed.
  24361. + lt_compile=`echo "$ac_compile" | $SED \
  24362. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24363. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24364. + -e 's:$: $lt_compiler_flag:'`
  24365. + (eval echo "\"\$as_me:8421: $lt_compile\"" >&5)
  24366. + (eval "$lt_compile" 2>conftest.err)
  24367. + ac_status=$?
  24368. + cat conftest.err >&5
  24369. + echo "$as_me:8425: \$? = $ac_status" >&5
  24370. + if (exit $ac_status) && test -s "$ac_outfile"; then
  24371. + # The compiler can only warn and ignore the option if not recognized
  24372. + # So say no if there are warnings other than the usual output.
  24373. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  24374. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24375. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  24376. + lt_cv_prog_compiler_rtti_exceptions=yes
  24377. + fi
  24378. + fi
  24379. + $RM conftest*
  24380. +
  24381. fi
  24382. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  24383. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  24384. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  24385. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  24386. - $as_echo_n "(cached) " >&6
  24387. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  24388. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  24389. else
  24390. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  24391. + :
  24392. fi
  24393. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  24394. -
  24395. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  24396. -if test "$GCC" = yes; then
  24397. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  24398. fi
  24399. -{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  24400. -$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  24401. -hardcode_action=
  24402. -if test -n "$hardcode_libdir_flag_spec" || \
  24403. - test -n "$runpath_var" || \
  24404. - test "X$hardcode_automatic" = "Xyes" ; then
  24405. - # We can hardcode non-existant directories.
  24406. - if test "$hardcode_direct" != no &&
  24407. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  24408. - # have to relink, otherwise we might link with an installed library
  24409. - # when we should be linking with a yet-to-be-installed one
  24410. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  24411. - test "$hardcode_minus_L" != no; then
  24412. - # Linking always hardcodes the temporary library directory.
  24413. - hardcode_action=relink
  24414. - else
  24415. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  24416. - hardcode_action=immediate
  24417. - fi
  24418. -else
  24419. - # We cannot hardcode anything, or else we can only hardcode existing
  24420. - # directories.
  24421. - hardcode_action=unsupported
  24422. -fi
  24423. -{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  24424. -$as_echo "$hardcode_action" >&6; }
  24425. -if test "$hardcode_action" = relink; then
  24426. - # Fast installation is not supported
  24427. - enable_fast_install=no
  24428. -elif test "$shlibpath_overrides_runpath" = yes ||
  24429. - test "$enable_shared" = no; then
  24430. - # Fast installation is not necessary
  24431. - enable_fast_install=needless
  24432. -fi
  24433. -striplib=
  24434. -old_striplib=
  24435. -{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  24436. -$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  24437. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  24438. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  24439. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  24440. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  24441. -$as_echo "yes" >&6; }
  24442. -else
  24443. -# FIXME - insert some real tests, host_os isn't really good enough
  24444. - case $host_os in
  24445. - darwin*)
  24446. - if test -n "$STRIP" ; then
  24447. - striplib="$STRIP -x"
  24448. - old_striplib="$STRIP -S"
  24449. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  24450. -$as_echo "yes" >&6; }
  24451. - else
  24452. - { $as_echo "$as_me:$LINENO: result: no" >&5
  24453. -$as_echo "no" >&6; }
  24454. -fi
  24455. - ;;
  24456. - *)
  24457. - { $as_echo "$as_me:$LINENO: result: no" >&5
  24458. -$as_echo "no" >&6; }
  24459. - ;;
  24460. - esac
  24461. -fi
  24462. -if test "x$enable_dlopen" != xyes; then
  24463. - enable_dlopen=unknown
  24464. - enable_dlopen_self=unknown
  24465. - enable_dlopen_self_static=unknown
  24466. -else
  24467. - lt_cv_dlopen=no
  24468. - lt_cv_dlopen_libs=
  24469. - case $host_os in
  24470. - beos*)
  24471. - lt_cv_dlopen="load_add_on"
  24472. - lt_cv_dlopen_libs=
  24473. - lt_cv_dlopen_self=yes
  24474. - ;;
  24475. + lt_prog_compiler_wl=
  24476. +lt_prog_compiler_pic=
  24477. +lt_prog_compiler_static=
  24478. - mingw* | pw32*)
  24479. - lt_cv_dlopen="LoadLibrary"
  24480. - lt_cv_dlopen_libs=
  24481. - ;;
  24482. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  24483. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  24484. - cygwin*)
  24485. - lt_cv_dlopen="dlopen"
  24486. - lt_cv_dlopen_libs=
  24487. - ;;
  24488. + if test "$GCC" = yes; then
  24489. + lt_prog_compiler_wl='-Wl,'
  24490. + lt_prog_compiler_static='-static'
  24491. - darwin*)
  24492. - # if libdl is installed we need to link against it
  24493. - { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  24494. -$as_echo_n "checking for dlopen in -ldl... " >&6; }
  24495. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  24496. - $as_echo_n "(cached) " >&6
  24497. -else
  24498. - ac_check_lib_save_LIBS=$LIBS
  24499. -LIBS="-ldl $LIBS"
  24500. -cat >conftest.$ac_ext <<_ACEOF
  24501. -/* confdefs.h. */
  24502. -_ACEOF
  24503. -cat confdefs.h >>conftest.$ac_ext
  24504. -cat >>conftest.$ac_ext <<_ACEOF
  24505. -/* end confdefs.h. */
  24506. + case $host_os in
  24507. + aix*)
  24508. + # All AIX code is PIC.
  24509. + if test "$host_cpu" = ia64; then
  24510. + # AIX 5 now supports IA64 processor
  24511. + lt_prog_compiler_static='-Bstatic'
  24512. + fi
  24513. + ;;
  24514. -/* Override any GCC internal prototype to avoid an error.
  24515. - Use char because int might match the return type of a GCC
  24516. - builtin and then its argument prototype would still apply. */
  24517. -#ifdef __cplusplus
  24518. -extern "C"
  24519. -#endif
  24520. -char dlopen ();
  24521. -int
  24522. -main ()
  24523. -{
  24524. -return dlopen ();
  24525. - ;
  24526. - return 0;
  24527. -}
  24528. -_ACEOF
  24529. -rm -f conftest.$ac_objext conftest$ac_exeext
  24530. -if { (ac_try="$ac_link"
  24531. -case "(($ac_try" in
  24532. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24533. - *) ac_try_echo=$ac_try;;
  24534. -esac
  24535. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24536. -$as_echo "$ac_try_echo") >&5
  24537. - (eval "$ac_link") 2>conftest.er1
  24538. - ac_status=$?
  24539. - grep -v '^ *+' conftest.er1 >conftest.err
  24540. - rm -f conftest.er1
  24541. - cat conftest.err >&5
  24542. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24543. - (exit $ac_status); } && {
  24544. - test -z "$ac_c_werror_flag" ||
  24545. - test ! -s conftest.err
  24546. - } && test -s conftest$ac_exeext && {
  24547. - test "$cross_compiling" = yes ||
  24548. - $as_test_x conftest$ac_exeext
  24549. - }; then
  24550. - ac_cv_lib_dl_dlopen=yes
  24551. -else
  24552. - $as_echo "$as_me: failed program was:" >&5
  24553. -sed 's/^/| /' conftest.$ac_ext >&5
  24554. + amigaos*)
  24555. + case $host_cpu in
  24556. + powerpc)
  24557. + # see comment about AmigaOS4 .so support
  24558. + lt_prog_compiler_pic='-fPIC'
  24559. + ;;
  24560. + m68k)
  24561. + # FIXME: we need at least 68020 code to build shared libraries, but
  24562. + # adding the `-m68020' flag to GCC prevents building anything better,
  24563. + # like `-m68040'.
  24564. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  24565. + ;;
  24566. + esac
  24567. + ;;
  24568. - ac_cv_lib_dl_dlopen=no
  24569. -fi
  24570. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  24571. + # PIC is the default for these OSes.
  24572. + ;;
  24573. -rm -rf conftest.dSYM
  24574. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24575. - conftest$ac_exeext conftest.$ac_ext
  24576. -LIBS=$ac_check_lib_save_LIBS
  24577. -fi
  24578. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  24579. -$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  24580. -if test $ac_cv_lib_dl_dlopen = yes; then
  24581. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  24582. -else
  24583. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  24584. + # This hack is so that the source file can tell whether it is being
  24585. + # built for inclusion in a dll (and should export symbols for example).
  24586. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  24587. + # (--disable-auto-import) libraries
  24588. + lt_prog_compiler_pic='-DDLL_EXPORT'
  24589. + ;;
  24590. - lt_cv_dlopen="dyld"
  24591. - lt_cv_dlopen_libs=
  24592. - lt_cv_dlopen_self=yes
  24593. + darwin* | rhapsody*)
  24594. + # PIC is the default on this platform
  24595. + # Common symbols not allowed in MH_DYLIB files
  24596. + lt_prog_compiler_pic='-fno-common'
  24597. + ;;
  24598. -fi
  24599. + hpux*)
  24600. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  24601. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  24602. + # sets the default TLS model and affects inlining.
  24603. + case $host_cpu in
  24604. + hppa*64*)
  24605. + # +Z the default
  24606. + ;;
  24607. + *)
  24608. + lt_prog_compiler_pic='-fPIC'
  24609. + ;;
  24610. + esac
  24611. + ;;
  24612. - ;;
  24613. + interix[3-9]*)
  24614. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  24615. + # Instead, we relocate shared libraries at runtime.
  24616. + ;;
  24617. - *)
  24618. - { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  24619. -$as_echo_n "checking for shl_load... " >&6; }
  24620. -if test "${ac_cv_func_shl_load+set}" = set; then
  24621. - $as_echo_n "(cached) " >&6
  24622. -else
  24623. - cat >conftest.$ac_ext <<_ACEOF
  24624. -/* confdefs.h. */
  24625. -_ACEOF
  24626. -cat confdefs.h >>conftest.$ac_ext
  24627. -cat >>conftest.$ac_ext <<_ACEOF
  24628. -/* end confdefs.h. */
  24629. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  24630. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  24631. -#define shl_load innocuous_shl_load
  24632. + msdosdjgpp*)
  24633. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  24634. + # on systems that don't support them.
  24635. + lt_prog_compiler_can_build_shared=no
  24636. + enable_shared=no
  24637. + ;;
  24638. -/* System header to define __stub macros and hopefully few prototypes,
  24639. - which can conflict with char shl_load (); below.
  24640. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  24641. - <limits.h> exists even on freestanding compilers. */
  24642. + *nto* | *qnx*)
  24643. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  24644. + # it will coredump.
  24645. + lt_prog_compiler_pic='-fPIC -shared'
  24646. + ;;
  24647. -#ifdef __STDC__
  24648. -# include <limits.h>
  24649. -#else
  24650. -# include <assert.h>
  24651. -#endif
  24652. + sysv4*MP*)
  24653. + if test -d /usr/nec; then
  24654. + lt_prog_compiler_pic=-Kconform_pic
  24655. + fi
  24656. + ;;
  24657. -#undef shl_load
  24658. + *)
  24659. + lt_prog_compiler_pic='-fPIC'
  24660. + ;;
  24661. + esac
  24662. + else
  24663. + # PORTME Check for flag to pass linker flags through the system compiler.
  24664. + case $host_os in
  24665. + aix*)
  24666. + lt_prog_compiler_wl='-Wl,'
  24667. + if test "$host_cpu" = ia64; then
  24668. + # AIX 5 now supports IA64 processor
  24669. + lt_prog_compiler_static='-Bstatic'
  24670. + else
  24671. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  24672. + fi
  24673. + ;;
  24674. -/* Override any GCC internal prototype to avoid an error.
  24675. - Use char because int might match the return type of a GCC
  24676. - builtin and then its argument prototype would still apply. */
  24677. -#ifdef __cplusplus
  24678. -extern "C"
  24679. -#endif
  24680. -char shl_load ();
  24681. -/* The GNU C library defines this for functions which it implements
  24682. - to always fail with ENOSYS. Some functions are actually named
  24683. - something starting with __ and the normal name is an alias. */
  24684. -#if defined __stub_shl_load || defined __stub___shl_load
  24685. -choke me
  24686. -#endif
  24687. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  24688. + # This hack is so that the source file can tell whether it is being
  24689. + # built for inclusion in a dll (and should export symbols for example).
  24690. + lt_prog_compiler_pic='-DDLL_EXPORT'
  24691. + ;;
  24692. -int
  24693. -main ()
  24694. -{
  24695. -return shl_load ();
  24696. - ;
  24697. - return 0;
  24698. -}
  24699. -_ACEOF
  24700. -rm -f conftest.$ac_objext conftest$ac_exeext
  24701. -if { (ac_try="$ac_link"
  24702. -case "(($ac_try" in
  24703. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24704. - *) ac_try_echo=$ac_try;;
  24705. -esac
  24706. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24707. -$as_echo "$ac_try_echo") >&5
  24708. - (eval "$ac_link") 2>conftest.er1
  24709. - ac_status=$?
  24710. - grep -v '^ *+' conftest.er1 >conftest.err
  24711. - rm -f conftest.er1
  24712. - cat conftest.err >&5
  24713. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24714. - (exit $ac_status); } && {
  24715. - test -z "$ac_c_werror_flag" ||
  24716. - test ! -s conftest.err
  24717. - } && test -s conftest$ac_exeext && {
  24718. - test "$cross_compiling" = yes ||
  24719. - $as_test_x conftest$ac_exeext
  24720. - }; then
  24721. - ac_cv_func_shl_load=yes
  24722. -else
  24723. - $as_echo "$as_me: failed program was:" >&5
  24724. -sed 's/^/| /' conftest.$ac_ext >&5
  24725. + hpux9* | hpux10* | hpux11*)
  24726. + lt_prog_compiler_wl='-Wl,'
  24727. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  24728. + # not for PA HP-UX.
  24729. + case $host_cpu in
  24730. + hppa*64*|ia64*)
  24731. + # +Z the default
  24732. + ;;
  24733. + *)
  24734. + lt_prog_compiler_pic='+Z'
  24735. + ;;
  24736. + esac
  24737. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  24738. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  24739. + ;;
  24740. - ac_cv_func_shl_load=no
  24741. -fi
  24742. + irix5* | irix6* | nonstopux*)
  24743. + lt_prog_compiler_wl='-Wl,'
  24744. + # PIC (with -KPIC) is the default.
  24745. + lt_prog_compiler_static='-non_shared'
  24746. + ;;
  24747. -rm -rf conftest.dSYM
  24748. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24749. - conftest$ac_exeext conftest.$ac_ext
  24750. -fi
  24751. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  24752. -$as_echo "$ac_cv_func_shl_load" >&6; }
  24753. -if test $ac_cv_func_shl_load = yes; then
  24754. - lt_cv_dlopen="shl_load"
  24755. -else
  24756. - { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  24757. -$as_echo_n "checking for shl_load in -ldld... " >&6; }
  24758. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  24759. - $as_echo_n "(cached) " >&6
  24760. -else
  24761. - ac_check_lib_save_LIBS=$LIBS
  24762. -LIBS="-ldld $LIBS"
  24763. -cat >conftest.$ac_ext <<_ACEOF
  24764. -/* confdefs.h. */
  24765. -_ACEOF
  24766. -cat confdefs.h >>conftest.$ac_ext
  24767. -cat >>conftest.$ac_ext <<_ACEOF
  24768. -/* end confdefs.h. */
  24769. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  24770. + case $cc_basename in
  24771. + # old Intel for x86_64 which still supported -KPIC.
  24772. + ecc*)
  24773. + lt_prog_compiler_wl='-Wl,'
  24774. + lt_prog_compiler_pic='-KPIC'
  24775. + lt_prog_compiler_static='-static'
  24776. + ;;
  24777. + # icc used to be incompatible with GCC.
  24778. + # ICC 10 doesn't accept -KPIC any more.
  24779. + icc* | ifort*)
  24780. + lt_prog_compiler_wl='-Wl,'
  24781. + lt_prog_compiler_pic='-fPIC'
  24782. + lt_prog_compiler_static='-static'
  24783. + ;;
  24784. + # Lahey Fortran 8.1.
  24785. + lf95*)
  24786. + lt_prog_compiler_wl='-Wl,'
  24787. + lt_prog_compiler_pic='--shared'
  24788. + lt_prog_compiler_static='--static'
  24789. + ;;
  24790. + pgcc* | pgf77* | pgf90* | pgf95*)
  24791. + # Portland Group compilers (*not* the Pentium gcc compiler,
  24792. + # which looks to be a dead project)
  24793. + lt_prog_compiler_wl='-Wl,'
  24794. + lt_prog_compiler_pic='-fpic'
  24795. + lt_prog_compiler_static='-Bstatic'
  24796. + ;;
  24797. + ccc*)
  24798. + lt_prog_compiler_wl='-Wl,'
  24799. + # All Alpha code is PIC.
  24800. + lt_prog_compiler_static='-non_shared'
  24801. + ;;
  24802. + xl*)
  24803. + # IBM XL C 8.0/Fortran 10.1 on PPC
  24804. + lt_prog_compiler_wl='-Wl,'
  24805. + lt_prog_compiler_pic='-qpic'
  24806. + lt_prog_compiler_static='-qstaticlink'
  24807. + ;;
  24808. + *)
  24809. + case `$CC -V 2>&1 | sed 5q` in
  24810. + *Sun\ C*)
  24811. + # Sun C 5.9
  24812. + lt_prog_compiler_pic='-KPIC'
  24813. + lt_prog_compiler_static='-Bstatic'
  24814. + lt_prog_compiler_wl='-Wl,'
  24815. + ;;
  24816. + *Sun\ F*)
  24817. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  24818. + lt_prog_compiler_pic='-KPIC'
  24819. + lt_prog_compiler_static='-Bstatic'
  24820. + lt_prog_compiler_wl=''
  24821. + ;;
  24822. + esac
  24823. + ;;
  24824. + esac
  24825. + ;;
  24826. -/* Override any GCC internal prototype to avoid an error.
  24827. - Use char because int might match the return type of a GCC
  24828. - builtin and then its argument prototype would still apply. */
  24829. -#ifdef __cplusplus
  24830. -extern "C"
  24831. -#endif
  24832. -char shl_load ();
  24833. -int
  24834. -main ()
  24835. -{
  24836. -return shl_load ();
  24837. - ;
  24838. - return 0;
  24839. -}
  24840. -_ACEOF
  24841. -rm -f conftest.$ac_objext conftest$ac_exeext
  24842. -if { (ac_try="$ac_link"
  24843. -case "(($ac_try" in
  24844. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24845. - *) ac_try_echo=$ac_try;;
  24846. -esac
  24847. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24848. -$as_echo "$ac_try_echo") >&5
  24849. - (eval "$ac_link") 2>conftest.er1
  24850. - ac_status=$?
  24851. - grep -v '^ *+' conftest.er1 >conftest.err
  24852. - rm -f conftest.er1
  24853. - cat conftest.err >&5
  24854. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24855. - (exit $ac_status); } && {
  24856. - test -z "$ac_c_werror_flag" ||
  24857. - test ! -s conftest.err
  24858. - } && test -s conftest$ac_exeext && {
  24859. - test "$cross_compiling" = yes ||
  24860. - $as_test_x conftest$ac_exeext
  24861. - }; then
  24862. - ac_cv_lib_dld_shl_load=yes
  24863. -else
  24864. - $as_echo "$as_me: failed program was:" >&5
  24865. -sed 's/^/| /' conftest.$ac_ext >&5
  24866. + newsos6)
  24867. + lt_prog_compiler_pic='-KPIC'
  24868. + lt_prog_compiler_static='-Bstatic'
  24869. + ;;
  24870. - ac_cv_lib_dld_shl_load=no
  24871. -fi
  24872. + *nto* | *qnx*)
  24873. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  24874. + # it will coredump.
  24875. + lt_prog_compiler_pic='-fPIC -shared'
  24876. + ;;
  24877. -rm -rf conftest.dSYM
  24878. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24879. - conftest$ac_exeext conftest.$ac_ext
  24880. -LIBS=$ac_check_lib_save_LIBS
  24881. -fi
  24882. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  24883. -$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  24884. -if test $ac_cv_lib_dld_shl_load = yes; then
  24885. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  24886. -else
  24887. - { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  24888. -$as_echo_n "checking for dlopen... " >&6; }
  24889. -if test "${ac_cv_func_dlopen+set}" = set; then
  24890. - $as_echo_n "(cached) " >&6
  24891. -else
  24892. - cat >conftest.$ac_ext <<_ACEOF
  24893. -/* confdefs.h. */
  24894. -_ACEOF
  24895. -cat confdefs.h >>conftest.$ac_ext
  24896. -cat >>conftest.$ac_ext <<_ACEOF
  24897. -/* end confdefs.h. */
  24898. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  24899. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  24900. -#define dlopen innocuous_dlopen
  24901. + osf3* | osf4* | osf5*)
  24902. + lt_prog_compiler_wl='-Wl,'
  24903. + # All OSF/1 code is PIC.
  24904. + lt_prog_compiler_static='-non_shared'
  24905. + ;;
  24906. -/* System header to define __stub macros and hopefully few prototypes,
  24907. - which can conflict with char dlopen (); below.
  24908. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  24909. - <limits.h> exists even on freestanding compilers. */
  24910. + rdos*)
  24911. + lt_prog_compiler_static='-non_shared'
  24912. + ;;
  24913. -#ifdef __STDC__
  24914. -# include <limits.h>
  24915. -#else
  24916. -# include <assert.h>
  24917. -#endif
  24918. + solaris*)
  24919. + lt_prog_compiler_pic='-KPIC'
  24920. + lt_prog_compiler_static='-Bstatic'
  24921. + case $cc_basename in
  24922. + f77* | f90* | f95*)
  24923. + lt_prog_compiler_wl='-Qoption ld ';;
  24924. + *)
  24925. + lt_prog_compiler_wl='-Wl,';;
  24926. + esac
  24927. + ;;
  24928. -#undef dlopen
  24929. + sunos4*)
  24930. + lt_prog_compiler_wl='-Qoption ld '
  24931. + lt_prog_compiler_pic='-PIC'
  24932. + lt_prog_compiler_static='-Bstatic'
  24933. + ;;
  24934. -/* Override any GCC internal prototype to avoid an error.
  24935. - Use char because int might match the return type of a GCC
  24936. - builtin and then its argument prototype would still apply. */
  24937. -#ifdef __cplusplus
  24938. -extern "C"
  24939. -#endif
  24940. -char dlopen ();
  24941. -/* The GNU C library defines this for functions which it implements
  24942. - to always fail with ENOSYS. Some functions are actually named
  24943. - something starting with __ and the normal name is an alias. */
  24944. -#if defined __stub_dlopen || defined __stub___dlopen
  24945. -choke me
  24946. -#endif
  24947. + sysv4 | sysv4.2uw2* | sysv4.3*)
  24948. + lt_prog_compiler_wl='-Wl,'
  24949. + lt_prog_compiler_pic='-KPIC'
  24950. + lt_prog_compiler_static='-Bstatic'
  24951. + ;;
  24952. -int
  24953. -main ()
  24954. -{
  24955. -return dlopen ();
  24956. - ;
  24957. - return 0;
  24958. -}
  24959. -_ACEOF
  24960. -rm -f conftest.$ac_objext conftest$ac_exeext
  24961. -if { (ac_try="$ac_link"
  24962. -case "(($ac_try" in
  24963. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24964. - *) ac_try_echo=$ac_try;;
  24965. -esac
  24966. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24967. -$as_echo "$ac_try_echo") >&5
  24968. - (eval "$ac_link") 2>conftest.er1
  24969. - ac_status=$?
  24970. - grep -v '^ *+' conftest.er1 >conftest.err
  24971. - rm -f conftest.er1
  24972. - cat conftest.err >&5
  24973. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24974. - (exit $ac_status); } && {
  24975. - test -z "$ac_c_werror_flag" ||
  24976. - test ! -s conftest.err
  24977. - } && test -s conftest$ac_exeext && {
  24978. - test "$cross_compiling" = yes ||
  24979. - $as_test_x conftest$ac_exeext
  24980. - }; then
  24981. - ac_cv_func_dlopen=yes
  24982. -else
  24983. - $as_echo "$as_me: failed program was:" >&5
  24984. -sed 's/^/| /' conftest.$ac_ext >&5
  24985. + sysv4*MP*)
  24986. + if test -d /usr/nec ;then
  24987. + lt_prog_compiler_pic='-Kconform_pic'
  24988. + lt_prog_compiler_static='-Bstatic'
  24989. + fi
  24990. + ;;
  24991. - ac_cv_func_dlopen=no
  24992. -fi
  24993. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  24994. + lt_prog_compiler_wl='-Wl,'
  24995. + lt_prog_compiler_pic='-KPIC'
  24996. + lt_prog_compiler_static='-Bstatic'
  24997. + ;;
  24998. -rm -rf conftest.dSYM
  24999. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25000. - conftest$ac_exeext conftest.$ac_ext
  25001. -fi
  25002. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  25003. -$as_echo "$ac_cv_func_dlopen" >&6; }
  25004. -if test $ac_cv_func_dlopen = yes; then
  25005. - lt_cv_dlopen="dlopen"
  25006. -else
  25007. - { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  25008. -$as_echo_n "checking for dlopen in -ldl... " >&6; }
  25009. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  25010. - $as_echo_n "(cached) " >&6
  25011. -else
  25012. - ac_check_lib_save_LIBS=$LIBS
  25013. -LIBS="-ldl $LIBS"
  25014. -cat >conftest.$ac_ext <<_ACEOF
  25015. -/* confdefs.h. */
  25016. -_ACEOF
  25017. -cat confdefs.h >>conftest.$ac_ext
  25018. -cat >>conftest.$ac_ext <<_ACEOF
  25019. -/* end confdefs.h. */
  25020. + unicos*)
  25021. + lt_prog_compiler_wl='-Wl,'
  25022. + lt_prog_compiler_can_build_shared=no
  25023. + ;;
  25024. -/* Override any GCC internal prototype to avoid an error.
  25025. - Use char because int might match the return type of a GCC
  25026. - builtin and then its argument prototype would still apply. */
  25027. -#ifdef __cplusplus
  25028. -extern "C"
  25029. -#endif
  25030. -char dlopen ();
  25031. -int
  25032. -main ()
  25033. -{
  25034. -return dlopen ();
  25035. - ;
  25036. - return 0;
  25037. -}
  25038. -_ACEOF
  25039. -rm -f conftest.$ac_objext conftest$ac_exeext
  25040. -if { (ac_try="$ac_link"
  25041. -case "(($ac_try" in
  25042. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25043. - *) ac_try_echo=$ac_try;;
  25044. + uts4*)
  25045. + lt_prog_compiler_pic='-pic'
  25046. + lt_prog_compiler_static='-Bstatic'
  25047. + ;;
  25048. +
  25049. + *)
  25050. + lt_prog_compiler_can_build_shared=no
  25051. + ;;
  25052. + esac
  25053. + fi
  25054. +
  25055. +case $host_os in
  25056. + # For platforms which do not support PIC, -DPIC is meaningless:
  25057. + *djgpp*)
  25058. + lt_prog_compiler_pic=
  25059. + ;;
  25060. + *)
  25061. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  25062. + ;;
  25063. esac
  25064. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25065. -$as_echo "$ac_try_echo") >&5
  25066. - (eval "$ac_link") 2>conftest.er1
  25067. - ac_status=$?
  25068. - grep -v '^ *+' conftest.er1 >conftest.err
  25069. - rm -f conftest.er1
  25070. - cat conftest.err >&5
  25071. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25072. - (exit $ac_status); } && {
  25073. - test -z "$ac_c_werror_flag" ||
  25074. - test ! -s conftest.err
  25075. - } && test -s conftest$ac_exeext && {
  25076. - test "$cross_compiling" = yes ||
  25077. - $as_test_x conftest$ac_exeext
  25078. - }; then
  25079. - ac_cv_lib_dl_dlopen=yes
  25080. -else
  25081. - $as_echo "$as_me: failed program was:" >&5
  25082. -sed 's/^/| /' conftest.$ac_ext >&5
  25083. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  25084. +$as_echo "$lt_prog_compiler_pic" >&6; }
  25085. - ac_cv_lib_dl_dlopen=no
  25086. -fi
  25087. -rm -rf conftest.dSYM
  25088. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25089. - conftest$ac_exeext conftest.$ac_ext
  25090. -LIBS=$ac_check_lib_save_LIBS
  25091. -fi
  25092. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  25093. -$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  25094. -if test $ac_cv_lib_dl_dlopen = yes; then
  25095. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  25096. -else
  25097. - { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  25098. -$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  25099. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  25100. +
  25101. +
  25102. +
  25103. +
  25104. +#
  25105. +# Check to make sure the PIC flag actually works.
  25106. +#
  25107. +if test -n "$lt_prog_compiler_pic"; then
  25108. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  25109. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  25110. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  25111. $as_echo_n "(cached) " >&6
  25112. else
  25113. - ac_check_lib_save_LIBS=$LIBS
  25114. -LIBS="-lsvld $LIBS"
  25115. -cat >conftest.$ac_ext <<_ACEOF
  25116. -/* confdefs.h. */
  25117. -_ACEOF
  25118. -cat confdefs.h >>conftest.$ac_ext
  25119. -cat >>conftest.$ac_ext <<_ACEOF
  25120. -/* end confdefs.h. */
  25121. + lt_cv_prog_compiler_pic_works=no
  25122. + ac_outfile=conftest.$ac_objext
  25123. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  25124. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  25125. + # Insert the option either (1) after the last *FLAGS variable, or
  25126. + # (2) before a word containing "conftest.", or (3) at the end.
  25127. + # Note that $ac_compile itself does not contain backslashes and begins
  25128. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  25129. + # The option is referenced via a variable to avoid confusing sed.
  25130. + lt_compile=`echo "$ac_compile" | $SED \
  25131. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  25132. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  25133. + -e 's:$: $lt_compiler_flag:'`
  25134. + (eval echo "\"\$as_me:8760: $lt_compile\"" >&5)
  25135. + (eval "$lt_compile" 2>conftest.err)
  25136. + ac_status=$?
  25137. + cat conftest.err >&5
  25138. + echo "$as_me:8764: \$? = $ac_status" >&5
  25139. + if (exit $ac_status) && test -s "$ac_outfile"; then
  25140. + # The compiler can only warn and ignore the option if not recognized
  25141. + # So say no if there are warnings other than the usual output.
  25142. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  25143. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  25144. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  25145. + lt_cv_prog_compiler_pic_works=yes
  25146. + fi
  25147. + fi
  25148. + $RM conftest*
  25149. -/* Override any GCC internal prototype to avoid an error.
  25150. - Use char because int might match the return type of a GCC
  25151. - builtin and then its argument prototype would still apply. */
  25152. -#ifdef __cplusplus
  25153. -extern "C"
  25154. -#endif
  25155. -char dlopen ();
  25156. -int
  25157. -main ()
  25158. -{
  25159. -return dlopen ();
  25160. - ;
  25161. - return 0;
  25162. -}
  25163. -_ACEOF
  25164. -rm -f conftest.$ac_objext conftest$ac_exeext
  25165. -if { (ac_try="$ac_link"
  25166. -case "(($ac_try" in
  25167. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25168. - *) ac_try_echo=$ac_try;;
  25169. -esac
  25170. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25171. -$as_echo "$ac_try_echo") >&5
  25172. - (eval "$ac_link") 2>conftest.er1
  25173. - ac_status=$?
  25174. - grep -v '^ *+' conftest.er1 >conftest.err
  25175. - rm -f conftest.er1
  25176. - cat conftest.err >&5
  25177. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25178. - (exit $ac_status); } && {
  25179. - test -z "$ac_c_werror_flag" ||
  25180. - test ! -s conftest.err
  25181. - } && test -s conftest$ac_exeext && {
  25182. - test "$cross_compiling" = yes ||
  25183. - $as_test_x conftest$ac_exeext
  25184. - }; then
  25185. - ac_cv_lib_svld_dlopen=yes
  25186. -else
  25187. - $as_echo "$as_me: failed program was:" >&5
  25188. -sed 's/^/| /' conftest.$ac_ext >&5
  25189. +fi
  25190. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  25191. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  25192. - ac_cv_lib_svld_dlopen=no
  25193. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  25194. + case $lt_prog_compiler_pic in
  25195. + "" | " "*) ;;
  25196. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  25197. + esac
  25198. +else
  25199. + lt_prog_compiler_pic=
  25200. + lt_prog_compiler_can_build_shared=no
  25201. fi
  25202. -rm -rf conftest.dSYM
  25203. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25204. - conftest$ac_exeext conftest.$ac_ext
  25205. -LIBS=$ac_check_lib_save_LIBS
  25206. fi
  25207. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  25208. -$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  25209. -if test $ac_cv_lib_svld_dlopen = yes; then
  25210. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  25211. -else
  25212. - { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  25213. -$as_echo_n "checking for dld_link in -ldld... " >&6; }
  25214. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  25215. - $as_echo_n "(cached) " >&6
  25216. -else
  25217. - ac_check_lib_save_LIBS=$LIBS
  25218. -LIBS="-ldld $LIBS"
  25219. -cat >conftest.$ac_ext <<_ACEOF
  25220. -/* confdefs.h. */
  25221. -_ACEOF
  25222. -cat confdefs.h >>conftest.$ac_ext
  25223. -cat >>conftest.$ac_ext <<_ACEOF
  25224. -/* end confdefs.h. */
  25225. -/* Override any GCC internal prototype to avoid an error.
  25226. - Use char because int might match the return type of a GCC
  25227. - builtin and then its argument prototype would still apply. */
  25228. -#ifdef __cplusplus
  25229. -extern "C"
  25230. -#endif
  25231. -char dld_link ();
  25232. -int
  25233. -main ()
  25234. -{
  25235. -return dld_link ();
  25236. - ;
  25237. - return 0;
  25238. -}
  25239. -_ACEOF
  25240. -rm -f conftest.$ac_objext conftest$ac_exeext
  25241. -if { (ac_try="$ac_link"
  25242. -case "(($ac_try" in
  25243. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25244. - *) ac_try_echo=$ac_try;;
  25245. -esac
  25246. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25247. -$as_echo "$ac_try_echo") >&5
  25248. - (eval "$ac_link") 2>conftest.er1
  25249. - ac_status=$?
  25250. - grep -v '^ *+' conftest.er1 >conftest.err
  25251. - rm -f conftest.er1
  25252. - cat conftest.err >&5
  25253. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25254. - (exit $ac_status); } && {
  25255. - test -z "$ac_c_werror_flag" ||
  25256. - test ! -s conftest.err
  25257. - } && test -s conftest$ac_exeext && {
  25258. - test "$cross_compiling" = yes ||
  25259. - $as_test_x conftest$ac_exeext
  25260. - }; then
  25261. - ac_cv_lib_dld_dld_link=yes
  25262. +
  25263. +
  25264. +
  25265. +
  25266. +
  25267. +#
  25268. +# Check to make sure the static flag actually works.
  25269. +#
  25270. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  25271. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  25272. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  25273. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  25274. + $as_echo_n "(cached) " >&6
  25275. else
  25276. - $as_echo "$as_me: failed program was:" >&5
  25277. -sed 's/^/| /' conftest.$ac_ext >&5
  25278. + lt_cv_prog_compiler_static_works=no
  25279. + save_LDFLAGS="$LDFLAGS"
  25280. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  25281. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  25282. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  25283. + # The linker can only warn and ignore the option if not recognized
  25284. + # So say no if there are warnings
  25285. + if test -s conftest.err; then
  25286. + # Append any errors to the config.log.
  25287. + cat conftest.err 1>&5
  25288. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  25289. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  25290. + if diff conftest.exp conftest.er2 >/dev/null; then
  25291. + lt_cv_prog_compiler_static_works=yes
  25292. + fi
  25293. + else
  25294. + lt_cv_prog_compiler_static_works=yes
  25295. + fi
  25296. + fi
  25297. + $RM -r conftest*
  25298. + LDFLAGS="$save_LDFLAGS"
  25299. - ac_cv_lib_dld_dld_link=no
  25300. fi
  25301. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  25302. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  25303. -rm -rf conftest.dSYM
  25304. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25305. - conftest$ac_exeext conftest.$ac_ext
  25306. -LIBS=$ac_check_lib_save_LIBS
  25307. -fi
  25308. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  25309. -$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  25310. -if test $ac_cv_lib_dld_dld_link = yes; then
  25311. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  25312. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  25313. + :
  25314. +else
  25315. + lt_prog_compiler_static=
  25316. fi
  25317. -fi
  25318. -
  25319. -fi
  25320. -fi
  25321. -fi
  25322. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  25323. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  25324. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  25325. + $as_echo_n "(cached) " >&6
  25326. +else
  25327. + lt_cv_prog_compiler_c_o=no
  25328. + $RM -r conftest 2>/dev/null
  25329. + mkdir conftest
  25330. + cd conftest
  25331. + mkdir out
  25332. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  25333. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  25334. + # Insert the option either (1) after the last *FLAGS variable, or
  25335. + # (2) before a word containing "conftest.", or (3) at the end.
  25336. + # Note that $ac_compile itself does not contain backslashes and begins
  25337. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  25338. + lt_compile=`echo "$ac_compile" | $SED \
  25339. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  25340. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  25341. + -e 's:$: $lt_compiler_flag:'`
  25342. + (eval echo "\"\$as_me:8865: $lt_compile\"" >&5)
  25343. + (eval "$lt_compile" 2>out/conftest.err)
  25344. + ac_status=$?
  25345. + cat out/conftest.err >&5
  25346. + echo "$as_me:8869: \$? = $ac_status" >&5
  25347. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  25348. + then
  25349. + # The compiler can only warn and ignore the option if not recognized
  25350. + # So say no if there are warnings
  25351. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  25352. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  25353. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  25354. + lt_cv_prog_compiler_c_o=yes
  25355. + fi
  25356. + fi
  25357. + chmod u+w . 2>&5
  25358. + $RM conftest*
  25359. + # SGI C++ compiler will create directory out/ii_files/ for
  25360. + # template instantiation
  25361. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  25362. + $RM out/* && rmdir out
  25363. + cd ..
  25364. + $RM -r conftest
  25365. + $RM conftest*
  25366. fi
  25367. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  25368. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  25369. - ;;
  25370. - esac
  25371. - if test "x$lt_cv_dlopen" != xno; then
  25372. - enable_dlopen=yes
  25373. - else
  25374. - enable_dlopen=no
  25375. - fi
  25376. - case $lt_cv_dlopen in
  25377. - dlopen)
  25378. - save_CPPFLAGS="$CPPFLAGS"
  25379. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  25380. - save_LDFLAGS="$LDFLAGS"
  25381. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  25382. - save_LIBS="$LIBS"
  25383. - LIBS="$lt_cv_dlopen_libs $LIBS"
  25384. - { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  25385. -$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  25386. -if test "${lt_cv_dlopen_self+set}" = set; then
  25387. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  25388. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  25389. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  25390. $as_echo_n "(cached) " >&6
  25391. else
  25392. - if test "$cross_compiling" = yes; then :
  25393. - lt_cv_dlopen_self=cross
  25394. -else
  25395. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  25396. - lt_status=$lt_dlunknown
  25397. - cat > conftest.$ac_ext <<EOF
  25398. -#line 10606 "configure"
  25399. -#include "confdefs.h"
  25400. -
  25401. -#if HAVE_DLFCN_H
  25402. -#include <dlfcn.h>
  25403. -#endif
  25404. -
  25405. -#include <stdio.h>
  25406. + lt_cv_prog_compiler_c_o=no
  25407. + $RM -r conftest 2>/dev/null
  25408. + mkdir conftest
  25409. + cd conftest
  25410. + mkdir out
  25411. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  25412. -#ifdef RTLD_GLOBAL
  25413. -# define LT_DLGLOBAL RTLD_GLOBAL
  25414. -#else
  25415. -# ifdef DL_GLOBAL
  25416. -# define LT_DLGLOBAL DL_GLOBAL
  25417. -# else
  25418. -# define LT_DLGLOBAL 0
  25419. -# endif
  25420. -#endif
  25421. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  25422. + # Insert the option either (1) after the last *FLAGS variable, or
  25423. + # (2) before a word containing "conftest.", or (3) at the end.
  25424. + # Note that $ac_compile itself does not contain backslashes and begins
  25425. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  25426. + lt_compile=`echo "$ac_compile" | $SED \
  25427. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  25428. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  25429. + -e 's:$: $lt_compiler_flag:'`
  25430. + (eval echo "\"\$as_me:8920: $lt_compile\"" >&5)
  25431. + (eval "$lt_compile" 2>out/conftest.err)
  25432. + ac_status=$?
  25433. + cat out/conftest.err >&5
  25434. + echo "$as_me:8924: \$? = $ac_status" >&5
  25435. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  25436. + then
  25437. + # The compiler can only warn and ignore the option if not recognized
  25438. + # So say no if there are warnings
  25439. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  25440. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  25441. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  25442. + lt_cv_prog_compiler_c_o=yes
  25443. + fi
  25444. + fi
  25445. + chmod u+w . 2>&5
  25446. + $RM conftest*
  25447. + # SGI C++ compiler will create directory out/ii_files/ for
  25448. + # template instantiation
  25449. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  25450. + $RM out/* && rmdir out
  25451. + cd ..
  25452. + $RM -r conftest
  25453. + $RM conftest*
  25454. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  25455. - find out it does not work in some platform. */
  25456. -#ifndef LT_DLLAZY_OR_NOW
  25457. -# ifdef RTLD_LAZY
  25458. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  25459. -# else
  25460. -# ifdef DL_LAZY
  25461. -# define LT_DLLAZY_OR_NOW DL_LAZY
  25462. -# else
  25463. -# ifdef RTLD_NOW
  25464. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  25465. -# else
  25466. -# ifdef DL_NOW
  25467. -# define LT_DLLAZY_OR_NOW DL_NOW
  25468. -# else
  25469. -# define LT_DLLAZY_OR_NOW 0
  25470. -# endif
  25471. -# endif
  25472. -# endif
  25473. -# endif
  25474. -#endif
  25475. +fi
  25476. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  25477. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  25478. -#ifdef __cplusplus
  25479. -extern "C" void exit (int);
  25480. -#endif
  25481. -void fnord() { int i=42;}
  25482. -int main ()
  25483. -{
  25484. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  25485. - int status = $lt_dlunknown;
  25486. - if (self)
  25487. - {
  25488. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  25489. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  25490. - /* dlclose (self); */
  25491. - }
  25492. - else
  25493. - puts (dlerror ());
  25494. - exit (status);
  25495. -}
  25496. -EOF
  25497. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25498. - (eval $ac_link) 2>&5
  25499. - ac_status=$?
  25500. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25501. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  25502. - (./conftest; exit; ) >&5 2>/dev/null
  25503. - lt_status=$?
  25504. - case x$lt_status in
  25505. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  25506. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  25507. - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  25508. - esac
  25509. - else :
  25510. - # compilation failed
  25511. - lt_cv_dlopen_self=no
  25512. +hard_links="nottested"
  25513. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  25514. + # do not overwrite the value of need_locks provided by the user
  25515. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  25516. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  25517. + hard_links=yes
  25518. + $RM conftest*
  25519. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  25520. + touch conftest.a
  25521. + ln conftest.a conftest.b 2>&5 || hard_links=no
  25522. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  25523. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  25524. +$as_echo "$hard_links" >&6; }
  25525. + if test "$hard_links" = no; then
  25526. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  25527. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  25528. + need_locks=warn
  25529. fi
  25530. +else
  25531. + need_locks=no
  25532. fi
  25533. -rm -fr conftest*
  25534. -fi
  25535. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  25536. -$as_echo "$lt_cv_dlopen_self" >&6; }
  25537. - if test "x$lt_cv_dlopen_self" = xyes; then
  25538. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  25539. - { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  25540. -$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  25541. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  25542. - $as_echo_n "(cached) " >&6
  25543. -else
  25544. - if test "$cross_compiling" = yes; then :
  25545. - lt_cv_dlopen_self_static=cross
  25546. -else
  25547. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  25548. - lt_status=$lt_dlunknown
  25549. - cat > conftest.$ac_ext <<EOF
  25550. -#line 10706 "configure"
  25551. -#include "confdefs.h"
  25552. -
  25553. -#if HAVE_DLFCN_H
  25554. -#include <dlfcn.h>
  25555. -#endif
  25556. -
  25557. -#include <stdio.h>
  25558. -
  25559. -#ifdef RTLD_GLOBAL
  25560. -# define LT_DLGLOBAL RTLD_GLOBAL
  25561. -#else
  25562. -# ifdef DL_GLOBAL
  25563. -# define LT_DLGLOBAL DL_GLOBAL
  25564. -# else
  25565. -# define LT_DLGLOBAL 0
  25566. -# endif
  25567. -#endif
  25568. -
  25569. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  25570. - find out it does not work in some platform. */
  25571. -#ifndef LT_DLLAZY_OR_NOW
  25572. -# ifdef RTLD_LAZY
  25573. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  25574. -# else
  25575. -# ifdef DL_LAZY
  25576. -# define LT_DLLAZY_OR_NOW DL_LAZY
  25577. -# else
  25578. -# ifdef RTLD_NOW
  25579. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  25580. -# else
  25581. -# ifdef DL_NOW
  25582. -# define LT_DLLAZY_OR_NOW DL_NOW
  25583. -# else
  25584. -# define LT_DLLAZY_OR_NOW 0
  25585. -# endif
  25586. -# endif
  25587. -# endif
  25588. -# endif
  25589. -#endif
  25590. -
  25591. -#ifdef __cplusplus
  25592. -extern "C" void exit (int);
  25593. -#endif
  25594. -void fnord() { int i=42;}
  25595. -int main ()
  25596. -{
  25597. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  25598. - int status = $lt_dlunknown;
  25599. - if (self)
  25600. - {
  25601. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  25602. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  25603. - /* dlclose (self); */
  25604. - }
  25605. - else
  25606. - puts (dlerror ());
  25607. - exit (status);
  25608. -}
  25609. -EOF
  25610. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25611. - (eval $ac_link) 2>&5
  25612. - ac_status=$?
  25613. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25614. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  25615. - (./conftest; exit; ) >&5 2>/dev/null
  25616. - lt_status=$?
  25617. - case x$lt_status in
  25618. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  25619. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  25620. - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  25621. - esac
  25622. - else :
  25623. - # compilation failed
  25624. - lt_cv_dlopen_self_static=no
  25625. - fi
  25626. -fi
  25627. -rm -fr conftest*
  25628. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  25629. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  25630. + runpath_var=
  25631. + allow_undefined_flag=
  25632. + always_export_symbols=no
  25633. + archive_cmds=
  25634. + archive_expsym_cmds=
  25635. + compiler_needs_object=no
  25636. + enable_shared_with_static_runtimes=no
  25637. + export_dynamic_flag_spec=
  25638. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  25639. + hardcode_automatic=no
  25640. + hardcode_direct=no
  25641. + hardcode_direct_absolute=no
  25642. + hardcode_libdir_flag_spec=
  25643. + hardcode_libdir_flag_spec_ld=
  25644. + hardcode_libdir_separator=
  25645. + hardcode_minus_L=no
  25646. + hardcode_shlibpath_var=unsupported
  25647. + inherit_rpath=no
  25648. + link_all_deplibs=unknown
  25649. + module_cmds=
  25650. + module_expsym_cmds=
  25651. + old_archive_from_new_cmds=
  25652. + old_archive_from_expsyms_cmds=
  25653. + thread_safe_flag_spec=
  25654. + whole_archive_flag_spec=
  25655. + # include_expsyms should be a list of space-separated symbols to be *always*
  25656. + # included in the symbol list
  25657. + include_expsyms=
  25658. + # exclude_expsyms can be an extended regexp of symbols to exclude
  25659. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  25660. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  25661. + # as well as any symbol that contains `d'.
  25662. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  25663. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  25664. + # platforms (ab)use it in PIC code, but their linkers get confused if
  25665. + # the symbol is explicitly referenced. Since portable code cannot
  25666. + # rely on this symbol name, it's probably fine to never include it in
  25667. + # preloaded symbol tables.
  25668. + # Exclude shared library initialization/finalization symbols.
  25669. + extract_expsyms_cmds=
  25670. -fi
  25671. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  25672. -$as_echo "$lt_cv_dlopen_self_static" >&6; }
  25673. + case $host_os in
  25674. + cygwin* | mingw* | pw32* | cegcc*)
  25675. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  25676. + # When not using gcc, we currently assume that we are using
  25677. + # Microsoft Visual C++.
  25678. + if test "$GCC" != yes; then
  25679. + with_gnu_ld=no
  25680. fi
  25681. -
  25682. - CPPFLAGS="$save_CPPFLAGS"
  25683. - LDFLAGS="$save_LDFLAGS"
  25684. - LIBS="$save_LIBS"
  25685. + ;;
  25686. + interix*)
  25687. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  25688. + with_gnu_ld=yes
  25689. + ;;
  25690. + openbsd*)
  25691. + with_gnu_ld=no
  25692. + ;;
  25693. + linux* | k*bsd*-gnu)
  25694. + link_all_deplibs=no
  25695. ;;
  25696. esac
  25697. - case $lt_cv_dlopen_self in
  25698. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  25699. - *) enable_dlopen_self=unknown ;;
  25700. - esac
  25701. -
  25702. - case $lt_cv_dlopen_self_static in
  25703. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  25704. - *) enable_dlopen_self_static=unknown ;;
  25705. - esac
  25706. -fi
  25707. -
  25708. -
  25709. -# Report which library types will actually be built
  25710. -{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  25711. -$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  25712. -{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  25713. -$as_echo "$can_build_shared" >&6; }
  25714. + ld_shlibs=yes
  25715. + if test "$with_gnu_ld" = yes; then
  25716. + # If archive_cmds runs LD, not CC, wlarc should be empty
  25717. + wlarc='${wl}'
  25718. -{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  25719. -$as_echo_n "checking whether to build shared libraries... " >&6; }
  25720. -test "$can_build_shared" = "no" && enable_shared=no
  25721. + # Set some defaults for GNU ld with shared library support. These
  25722. + # are reset later if shared libraries are not supported. Putting them
  25723. + # here allows them to be overridden if necessary.
  25724. + runpath_var=LD_RUN_PATH
  25725. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25726. + export_dynamic_flag_spec='${wl}--export-dynamic'
  25727. + # ancient GNU ld didn't support --whole-archive et. al.
  25728. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  25729. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  25730. + else
  25731. + whole_archive_flag_spec=
  25732. + fi
  25733. + supports_anon_versioning=no
  25734. + case `$LD -v 2>&1` in
  25735. + *GNU\ gold*) supports_anon_versioning=yes ;;
  25736. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  25737. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  25738. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  25739. + *\ 2.11.*) ;; # other 2.11 versions
  25740. + *) supports_anon_versioning=yes ;;
  25741. + esac
  25742. -# On AIX, shared libraries and static libraries use the same namespace, and
  25743. -# are all built from PIC.
  25744. -case $host_os in
  25745. -aix3*)
  25746. - test "$enable_shared" = yes && enable_static=no
  25747. - if test -n "$RANLIB"; then
  25748. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  25749. - postinstall_cmds='$RANLIB $lib'
  25750. - fi
  25751. - ;;
  25752. + # See if GNU ld supports shared libraries.
  25753. + case $host_os in
  25754. + aix[3-9]*)
  25755. + # On AIX/PPC, the GNU linker is very broken
  25756. + if test "$host_cpu" != ia64; then
  25757. + ld_shlibs=no
  25758. + cat <<_LT_EOF 1>&2
  25759. -aix[4-9]*)
  25760. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  25761. - test "$enable_shared" = yes && enable_static=no
  25762. - fi
  25763. - ;;
  25764. -esac
  25765. -{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  25766. -$as_echo "$enable_shared" >&6; }
  25767. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  25768. +*** to be unable to reliably create shared libraries on AIX.
  25769. +*** Therefore, libtool is disabling shared libraries support. If you
  25770. +*** really care for shared libraries, you may want to modify your PATH
  25771. +*** so that a non-GNU linker is found, and then restart.
  25772. -{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  25773. -$as_echo_n "checking whether to build static libraries... " >&6; }
  25774. -# Make sure either enable_shared or enable_static is yes.
  25775. -test "$enable_shared" = yes || enable_static=yes
  25776. -{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  25777. -$as_echo "$enable_static" >&6; }
  25778. +_LT_EOF
  25779. + fi
  25780. + ;;
  25781. -# The else clause should only fire when bootstrapping the
  25782. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  25783. -# with your package, and you will get complaints that there are
  25784. -# no rules to generate ltmain.sh.
  25785. -if test -f "$ltmain"; then
  25786. - # See if we are running on zsh, and set the options which allow our commands through
  25787. - # without removal of \ escapes.
  25788. - if test -n "${ZSH_VERSION+set}" ; then
  25789. - setopt NO_GLOB_SUBST
  25790. - fi
  25791. - # Now quote all the things that may contain metacharacters while being
  25792. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  25793. - # variables and quote the copies for generation of the libtool script.
  25794. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  25795. - SED SHELL STRIP \
  25796. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  25797. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  25798. - deplibs_check_method reload_flag reload_cmds need_locks \
  25799. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  25800. - lt_cv_sys_global_symbol_to_c_name_address \
  25801. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  25802. - old_postinstall_cmds old_postuninstall_cmds \
  25803. - compiler \
  25804. - CC \
  25805. - LD \
  25806. - lt_prog_compiler_wl \
  25807. - lt_prog_compiler_pic \
  25808. - lt_prog_compiler_static \
  25809. - lt_prog_compiler_no_builtin_flag \
  25810. - export_dynamic_flag_spec \
  25811. - thread_safe_flag_spec \
  25812. - whole_archive_flag_spec \
  25813. - enable_shared_with_static_runtimes \
  25814. - old_archive_cmds \
  25815. - old_archive_from_new_cmds \
  25816. - predep_objects \
  25817. - postdep_objects \
  25818. - predeps \
  25819. - postdeps \
  25820. - compiler_lib_search_path \
  25821. - compiler_lib_search_dirs \
  25822. - archive_cmds \
  25823. - archive_expsym_cmds \
  25824. - postinstall_cmds \
  25825. - postuninstall_cmds \
  25826. - old_archive_from_expsyms_cmds \
  25827. - allow_undefined_flag \
  25828. - no_undefined_flag \
  25829. - export_symbols_cmds \
  25830. - hardcode_libdir_flag_spec \
  25831. - hardcode_libdir_flag_spec_ld \
  25832. - hardcode_libdir_separator \
  25833. - hardcode_automatic \
  25834. - module_cmds \
  25835. - module_expsym_cmds \
  25836. - lt_cv_prog_compiler_c_o \
  25837. - fix_srcfile_path \
  25838. - exclude_expsyms \
  25839. - include_expsyms; do
  25840. -
  25841. - case $var in
  25842. - old_archive_cmds | \
  25843. - old_archive_from_new_cmds | \
  25844. - archive_cmds | \
  25845. - archive_expsym_cmds | \
  25846. - module_cmds | \
  25847. - module_expsym_cmds | \
  25848. - old_archive_from_expsyms_cmds | \
  25849. - export_symbols_cmds | \
  25850. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  25851. - postinstall_cmds | postuninstall_cmds | \
  25852. - old_postinstall_cmds | old_postuninstall_cmds | \
  25853. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  25854. - # Double-quote double-evaled strings.
  25855. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  25856. + amigaos*)
  25857. + case $host_cpu in
  25858. + powerpc)
  25859. + # see comment about AmigaOS4 .so support
  25860. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25861. + archive_expsym_cmds=''
  25862. + ;;
  25863. + m68k)
  25864. + 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)'
  25865. + hardcode_libdir_flag_spec='-L$libdir'
  25866. + hardcode_minus_L=yes
  25867. + ;;
  25868. + esac
  25869. ;;
  25870. - *)
  25871. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  25872. +
  25873. + beos*)
  25874. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  25875. + allow_undefined_flag=unsupported
  25876. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  25877. + # support --undefined. This deserves some investigation. FIXME
  25878. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25879. + else
  25880. + ld_shlibs=no
  25881. + fi
  25882. ;;
  25883. - esac
  25884. - done
  25885. - case $lt_echo in
  25886. - *'\$0 --fallback-echo"')
  25887. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  25888. - ;;
  25889. - esac
  25890. + cygwin* | mingw* | pw32* | cegcc*)
  25891. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  25892. + # as there is no search path for DLLs.
  25893. + hardcode_libdir_flag_spec='-L$libdir'
  25894. + allow_undefined_flag=unsupported
  25895. + always_export_symbols=no
  25896. + enable_shared_with_static_runtimes=yes
  25897. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  25898. -cfgfile="${ofile}T"
  25899. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  25900. - $rm -f "$cfgfile"
  25901. - { $as_echo "$as_me:$LINENO: creating $ofile" >&5
  25902. -$as_echo "$as_me: creating $ofile" >&6;}
  25903. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  25904. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  25905. + # If the export-symbols file already is a .def file (1st line
  25906. + # is EXPORTS), use it as is; otherwise, prepend...
  25907. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  25908. + cp $export_symbols $output_objdir/$soname.def;
  25909. + else
  25910. + echo EXPORTS > $output_objdir/$soname.def;
  25911. + cat $export_symbols >> $output_objdir/$soname.def;
  25912. + fi~
  25913. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  25914. + else
  25915. + ld_shlibs=no
  25916. + fi
  25917. + ;;
  25918. - cat <<__EOF__ >> "$cfgfile"
  25919. -#! $SHELL
  25920. + interix[3-9]*)
  25921. + hardcode_direct=no
  25922. + hardcode_shlibpath_var=no
  25923. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  25924. + export_dynamic_flag_spec='${wl}-E'
  25925. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  25926. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  25927. + # default) and relocated if they conflict, which is a slow very memory
  25928. + # consuming and fragmenting process. To avoid this, we pick a random,
  25929. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  25930. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  25931. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  25932. + 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'
  25933. + ;;
  25934. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  25935. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  25936. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  25937. -#
  25938. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  25939. -# Free Software Foundation, Inc.
  25940. -#
  25941. -# This file is part of GNU Libtool:
  25942. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  25943. -#
  25944. -# This program is free software; you can redistribute it and/or modify
  25945. -# it under the terms of the GNU General Public License as published by
  25946. -# the Free Software Foundation; either version 2 of the License, or
  25947. -# (at your option) any later version.
  25948. -#
  25949. -# This program is distributed in the hope that it will be useful, but
  25950. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  25951. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  25952. -# General Public License for more details.
  25953. -#
  25954. -# You should have received a copy of the GNU General Public License
  25955. -# along with this program; if not, write to the Free Software
  25956. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  25957. -#
  25958. -# As a special exception to the GNU General Public License, if you
  25959. -# distribute this file as part of a program that contains a
  25960. -# configuration script generated by Autoconf, you may include it under
  25961. -# the same distribution terms that you use for the rest of that program.
  25962. -
  25963. -# A sed program that does not truncate output.
  25964. -SED=$lt_SED
  25965. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  25966. + tmp_diet=no
  25967. + if test "$host_os" = linux-dietlibc; then
  25968. + case $cc_basename in
  25969. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  25970. + esac
  25971. + fi
  25972. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  25973. + && test "$tmp_diet" = no
  25974. + then
  25975. + tmp_addflag=
  25976. + tmp_sharedflag='-shared'
  25977. + case $cc_basename,$host_cpu in
  25978. + pgcc*) # Portland Group C compiler
  25979. + 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'
  25980. + tmp_addflag=' $pic_flag'
  25981. + ;;
  25982. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  25983. + 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'
  25984. + tmp_addflag=' $pic_flag -Mnomain' ;;
  25985. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  25986. + tmp_addflag=' -i_dynamic' ;;
  25987. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  25988. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  25989. + ifc* | ifort*) # Intel Fortran compiler
  25990. + tmp_addflag=' -nofor_main' ;;
  25991. + lf95*) # Lahey Fortran 8.1
  25992. + whole_archive_flag_spec=
  25993. + tmp_sharedflag='--shared' ;;
  25994. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  25995. + tmp_sharedflag='-qmkshrobj'
  25996. + tmp_addflag= ;;
  25997. + esac
  25998. + case `$CC -V 2>&1 | sed 5q` in
  25999. + *Sun\ C*) # Sun C 5.9
  26000. + 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'
  26001. + compiler_needs_object=yes
  26002. + tmp_sharedflag='-G' ;;
  26003. + *Sun\ F*) # Sun Fortran 8.3
  26004. + tmp_sharedflag='-G' ;;
  26005. + esac
  26006. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26007. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  26008. -Xsed="$SED -e 1s/^X//"
  26009. + if test "x$supports_anon_versioning" = xyes; then
  26010. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  26011. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  26012. + echo "local: *; };" >> $output_objdir/$libname.ver~
  26013. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  26014. + fi
  26015. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  26016. -# if CDPATH is set.
  26017. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26018. + case $cc_basename in
  26019. + xlf*)
  26020. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  26021. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  26022. + hardcode_libdir_flag_spec=
  26023. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  26024. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  26025. + if test "x$supports_anon_versioning" = xyes; then
  26026. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  26027. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  26028. + echo "local: *; };" >> $output_objdir/$libname.ver~
  26029. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  26030. + fi
  26031. + ;;
  26032. + esac
  26033. + else
  26034. + ld_shlibs=no
  26035. + fi
  26036. + ;;
  26037. -# The names of the tagged configurations supported by this script.
  26038. -available_tags=
  26039. + netbsd* | netbsdelf*-gnu)
  26040. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  26041. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  26042. + wlarc=
  26043. + else
  26044. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26045. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26046. + fi
  26047. + ;;
  26048. -# ### BEGIN LIBTOOL CONFIG
  26049. + solaris*)
  26050. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  26051. + ld_shlibs=no
  26052. + cat <<_LT_EOF 1>&2
  26053. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  26054. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  26055. +*** create shared libraries on Solaris systems. Therefore, libtool
  26056. +*** is disabling shared libraries support. We urge you to upgrade GNU
  26057. +*** binutils to release 2.9.1 or newer. Another option is to modify
  26058. +*** your PATH or compiler configuration so that the native linker is
  26059. +*** used, and then restart.
  26060. -# Shell to use when invoking shell scripts.
  26061. -SHELL=$lt_SHELL
  26062. +_LT_EOF
  26063. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  26064. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26065. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26066. + else
  26067. + ld_shlibs=no
  26068. + fi
  26069. + ;;
  26070. -# Whether or not to build shared libraries.
  26071. -build_libtool_libs=$enable_shared
  26072. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  26073. + case `$LD -v 2>&1` in
  26074. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  26075. + ld_shlibs=no
  26076. + cat <<_LT_EOF 1>&2
  26077. -# Whether or not to build static libraries.
  26078. -build_old_libs=$enable_static
  26079. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  26080. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  26081. +*** is disabling shared libraries support. We urge you to upgrade GNU
  26082. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  26083. +*** your PATH or compiler configuration so that the native linker is
  26084. +*** used, and then restart.
  26085. -# Whether or not to add -lc for building shared libraries.
  26086. -build_libtool_need_lc=$archive_cmds_need_lc
  26087. +_LT_EOF
  26088. + ;;
  26089. + *)
  26090. + # For security reasons, it is highly recommended that you always
  26091. + # use absolute paths for naming shared libraries, and exclude the
  26092. + # DT_RUNPATH tag from executables and libraries. But doing so
  26093. + # requires that you compile everything twice, which is a pain.
  26094. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  26095. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26096. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26097. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26098. + else
  26099. + ld_shlibs=no
  26100. + fi
  26101. + ;;
  26102. + esac
  26103. + ;;
  26104. -# Whether or not to disallow shared libs when runtime libs are static
  26105. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  26106. + sunos4*)
  26107. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  26108. + wlarc=
  26109. + hardcode_direct=yes
  26110. + hardcode_shlibpath_var=no
  26111. + ;;
  26112. -# Whether or not to optimize for fast installation.
  26113. -fast_install=$enable_fast_install
  26114. + *)
  26115. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  26116. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26117. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26118. + else
  26119. + ld_shlibs=no
  26120. + fi
  26121. + ;;
  26122. + esac
  26123. -# The host system.
  26124. -host_alias=$host_alias
  26125. -host=$host
  26126. -host_os=$host_os
  26127. + if test "$ld_shlibs" = no; then
  26128. + runpath_var=
  26129. + hardcode_libdir_flag_spec=
  26130. + export_dynamic_flag_spec=
  26131. + whole_archive_flag_spec=
  26132. + fi
  26133. + else
  26134. + # PORTME fill in a description of your system's linker (not GNU ld)
  26135. + case $host_os in
  26136. + aix3*)
  26137. + allow_undefined_flag=unsupported
  26138. + always_export_symbols=yes
  26139. + 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'
  26140. + # Note: this linker hardcodes the directories in LIBPATH if there
  26141. + # are no directories specified by -L.
  26142. + hardcode_minus_L=yes
  26143. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  26144. + # Neither direct hardcoding nor static linking is supported with a
  26145. + # broken collect2.
  26146. + hardcode_direct=unsupported
  26147. + fi
  26148. + ;;
  26149. -# The build system.
  26150. -build_alias=$build_alias
  26151. -build=$build
  26152. -build_os=$build_os
  26153. + aix[4-9]*)
  26154. + if test "$host_cpu" = ia64; then
  26155. + # On IA64, the linker does run time linking by default, so we don't
  26156. + # have to do anything special.
  26157. + aix_use_runtimelinking=no
  26158. + exp_sym_flag='-Bexport'
  26159. + no_entry_flag=""
  26160. + else
  26161. + # If we're using GNU nm, then we don't want the "-C" option.
  26162. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  26163. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  26164. + 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'
  26165. + else
  26166. + 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'
  26167. + fi
  26168. + aix_use_runtimelinking=no
  26169. -# An echo program that does not interpret backslashes.
  26170. -echo=$lt_echo
  26171. + # Test if we are trying to use run time linking or normal
  26172. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  26173. + # need to do runtime linking.
  26174. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  26175. + for ld_flag in $LDFLAGS; do
  26176. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  26177. + aix_use_runtimelinking=yes
  26178. + break
  26179. + fi
  26180. + done
  26181. + ;;
  26182. + esac
  26183. -# The archiver.
  26184. -AR=$lt_AR
  26185. -AR_FLAGS=$lt_AR_FLAGS
  26186. + exp_sym_flag='-bexport'
  26187. + no_entry_flag='-bnoentry'
  26188. + fi
  26189. -# A C compiler.
  26190. -LTCC=$lt_LTCC
  26191. + # When large executables or shared objects are built, AIX ld can
  26192. + # have problems creating the table of contents. If linking a library
  26193. + # or program results in "error TOC overflow" add -mminimal-toc to
  26194. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  26195. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  26196. -# LTCC compiler flags.
  26197. -LTCFLAGS=$lt_LTCFLAGS
  26198. + archive_cmds=''
  26199. + hardcode_direct=yes
  26200. + hardcode_direct_absolute=yes
  26201. + hardcode_libdir_separator=':'
  26202. + link_all_deplibs=yes
  26203. + file_list_spec='${wl}-f,'
  26204. -# A language-specific compiler.
  26205. -CC=$lt_compiler
  26206. + if test "$GCC" = yes; then
  26207. + case $host_os in aix4.[012]|aix4.[012].*)
  26208. + # We only want to do this on AIX 4.2 and lower, the check
  26209. + # below for broken collect2 doesn't work under 4.3+
  26210. + collect2name=`${CC} -print-prog-name=collect2`
  26211. + if test -f "$collect2name" &&
  26212. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  26213. + then
  26214. + # We have reworked collect2
  26215. + :
  26216. + else
  26217. + # We have old collect2
  26218. + hardcode_direct=unsupported
  26219. + # It fails to find uninstalled libraries when the uninstalled
  26220. + # path is not listed in the libpath. Setting hardcode_minus_L
  26221. + # to unsupported forces relinking
  26222. + hardcode_minus_L=yes
  26223. + hardcode_libdir_flag_spec='-L$libdir'
  26224. + hardcode_libdir_separator=
  26225. + fi
  26226. + ;;
  26227. + esac
  26228. + shared_flag='-shared'
  26229. + if test "$aix_use_runtimelinking" = yes; then
  26230. + shared_flag="$shared_flag "'${wl}-G'
  26231. + fi
  26232. + link_all_deplibs=no
  26233. + else
  26234. + # not using gcc
  26235. + if test "$host_cpu" = ia64; then
  26236. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  26237. + # chokes on -Wl,-G. The following line is correct:
  26238. + shared_flag='-G'
  26239. + else
  26240. + if test "$aix_use_runtimelinking" = yes; then
  26241. + shared_flag='${wl}-G'
  26242. + else
  26243. + shared_flag='${wl}-bM:SRE'
  26244. + fi
  26245. + fi
  26246. + fi
  26247. -# Is the compiler the GNU C compiler?
  26248. -with_gcc=$GCC
  26249. + export_dynamic_flag_spec='${wl}-bexpall'
  26250. + # It seems that -bexpall does not export symbols beginning with
  26251. + # underscore (_), so it is better to generate a list of symbols to export.
  26252. + always_export_symbols=yes
  26253. + if test "$aix_use_runtimelinking" = yes; then
  26254. + # Warning - without using the other runtime loading flags (-brtl),
  26255. + # -berok will link without error, but may produce a broken library.
  26256. + allow_undefined_flag='-berok'
  26257. + # Determine the default libpath from the value encoded in an
  26258. + # empty executable.
  26259. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26260. +/* end confdefs.h. */
  26261. -# An ERE matcher.
  26262. -EGREP=$lt_EGREP
  26263. +int
  26264. +main ()
  26265. +{
  26266. -# The linker used to build libraries.
  26267. -LD=$lt_LD
  26268. + ;
  26269. + return 0;
  26270. +}
  26271. +_ACEOF
  26272. +if ac_fn_c_try_link "$LINENO"; then :
  26273. -# Whether we need hard or soft links.
  26274. -LN_S=$lt_LN_S
  26275. +lt_aix_libpath_sed='
  26276. + /Import File Strings/,/^$/ {
  26277. + /^0/ {
  26278. + s/^0 *\(.*\)$/\1/
  26279. + p
  26280. + }
  26281. + }'
  26282. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  26283. +# Check for a 64-bit object if we didn't find anything.
  26284. +if test -z "$aix_libpath"; then
  26285. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  26286. +fi
  26287. +fi
  26288. +rm -f core conftest.err conftest.$ac_objext \
  26289. + conftest$ac_exeext conftest.$ac_ext
  26290. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  26291. -# A BSD-compatible nm program.
  26292. -NM=$lt_NM
  26293. -
  26294. -# A symbol stripping program
  26295. -STRIP=$lt_STRIP
  26296. -
  26297. -# Used to examine libraries when file_magic_cmd begins "file"
  26298. -MAGIC_CMD=$MAGIC_CMD
  26299. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  26300. + 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"
  26301. + else
  26302. + if test "$host_cpu" = ia64; then
  26303. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  26304. + allow_undefined_flag="-z nodefs"
  26305. + 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"
  26306. + else
  26307. + # Determine the default libpath from the value encoded in an
  26308. + # empty executable.
  26309. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26310. +/* end confdefs.h. */
  26311. -# Used on cygwin: DLL creation program.
  26312. -DLLTOOL="$DLLTOOL"
  26313. +int
  26314. +main ()
  26315. +{
  26316. -# Used on cygwin: object dumper.
  26317. -OBJDUMP="$OBJDUMP"
  26318. + ;
  26319. + return 0;
  26320. +}
  26321. +_ACEOF
  26322. +if ac_fn_c_try_link "$LINENO"; then :
  26323. -# Used on cygwin: assembler.
  26324. -AS="$AS"
  26325. +lt_aix_libpath_sed='
  26326. + /Import File Strings/,/^$/ {
  26327. + /^0/ {
  26328. + s/^0 *\(.*\)$/\1/
  26329. + p
  26330. + }
  26331. + }'
  26332. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  26333. +# Check for a 64-bit object if we didn't find anything.
  26334. +if test -z "$aix_libpath"; then
  26335. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  26336. +fi
  26337. +fi
  26338. +rm -f core conftest.err conftest.$ac_objext \
  26339. + conftest$ac_exeext conftest.$ac_ext
  26340. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  26341. -# The name of the directory that contains temporary libtool files.
  26342. -objdir=$objdir
  26343. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  26344. + # Warning - without using the other run time loading flags,
  26345. + # -berok will link without error, but may produce a broken library.
  26346. + no_undefined_flag=' ${wl}-bernotok'
  26347. + allow_undefined_flag=' ${wl}-berok'
  26348. + # Exported symbols can be pulled into shared objects from archives
  26349. + whole_archive_flag_spec='$convenience'
  26350. + archive_cmds_need_lc=yes
  26351. + # This is similar to how AIX traditionally builds its shared libraries.
  26352. + 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'
  26353. + fi
  26354. + fi
  26355. + ;;
  26356. -# How to create reloadable object files.
  26357. -reload_flag=$lt_reload_flag
  26358. -reload_cmds=$lt_reload_cmds
  26359. + amigaos*)
  26360. + case $host_cpu in
  26361. + powerpc)
  26362. + # see comment about AmigaOS4 .so support
  26363. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26364. + archive_expsym_cmds=''
  26365. + ;;
  26366. + m68k)
  26367. + 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)'
  26368. + hardcode_libdir_flag_spec='-L$libdir'
  26369. + hardcode_minus_L=yes
  26370. + ;;
  26371. + esac
  26372. + ;;
  26373. -# How to pass a linker flag through the compiler.
  26374. -wl=$lt_lt_prog_compiler_wl
  26375. + bsdi[45]*)
  26376. + export_dynamic_flag_spec=-rdynamic
  26377. + ;;
  26378. -# Object file suffix (normally "o").
  26379. -objext="$ac_objext"
  26380. + cygwin* | mingw* | pw32* | cegcc*)
  26381. + # When not using gcc, we currently assume that we are using
  26382. + # Microsoft Visual C++.
  26383. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  26384. + # no search path for DLLs.
  26385. + hardcode_libdir_flag_spec=' '
  26386. + allow_undefined_flag=unsupported
  26387. + # Tell ltmain to make .lib files, not .a files.
  26388. + libext=lib
  26389. + # Tell ltmain to make .dll files, not .so files.
  26390. + shrext_cmds=".dll"
  26391. + # FIXME: Setting linknames here is a bad hack.
  26392. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  26393. + # The linker will automatically build a .lib file if we build a DLL.
  26394. + old_archive_from_new_cmds='true'
  26395. + # FIXME: Should let the user specify the lib program.
  26396. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  26397. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  26398. + enable_shared_with_static_runtimes=yes
  26399. + ;;
  26400. -# Old archive suffix (normally "a").
  26401. -libext="$libext"
  26402. + darwin* | rhapsody*)
  26403. -# Shared library suffix (normally ".so").
  26404. -shrext_cmds='$shrext_cmds'
  26405. -# Executable file suffix (normally "").
  26406. -exeext="$exeext"
  26407. + archive_cmds_need_lc=no
  26408. + hardcode_direct=no
  26409. + hardcode_automatic=yes
  26410. + hardcode_shlibpath_var=unsupported
  26411. + whole_archive_flag_spec=''
  26412. + link_all_deplibs=yes
  26413. + allow_undefined_flag="$_lt_dar_allow_undefined"
  26414. + case $cc_basename in
  26415. + ifort*) _lt_dar_can_shared=yes ;;
  26416. + *) _lt_dar_can_shared=$GCC ;;
  26417. + esac
  26418. + if test "$_lt_dar_can_shared" = "yes"; then
  26419. + output_verbose_link_cmd=echo
  26420. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  26421. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  26422. + 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}"
  26423. + 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}"
  26424. -# Additional compiler flags for building library objects.
  26425. -pic_flag=$lt_lt_prog_compiler_pic
  26426. -pic_mode=$pic_mode
  26427. + else
  26428. + ld_shlibs=no
  26429. + fi
  26430. -# What is the maximum length of a command?
  26431. -max_cmd_len=$lt_cv_sys_max_cmd_len
  26432. + ;;
  26433. -# Does compiler simultaneously support -c and -o options?
  26434. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  26435. + dgux*)
  26436. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26437. + hardcode_libdir_flag_spec='-L$libdir'
  26438. + hardcode_shlibpath_var=no
  26439. + ;;
  26440. -# Must we lock files when doing compilation?
  26441. -need_locks=$lt_need_locks
  26442. + freebsd1*)
  26443. + ld_shlibs=no
  26444. + ;;
  26445. -# Do we need the lib prefix for modules?
  26446. -need_lib_prefix=$need_lib_prefix
  26447. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  26448. + # support. Future versions do this automatically, but an explicit c++rt0.o
  26449. + # does not break anything, and helps significantly (at the cost of a little
  26450. + # extra space).
  26451. + freebsd2.2*)
  26452. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  26453. + hardcode_libdir_flag_spec='-R$libdir'
  26454. + hardcode_direct=yes
  26455. + hardcode_shlibpath_var=no
  26456. + ;;
  26457. -# Do we need a version for libraries?
  26458. -need_version=$need_version
  26459. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  26460. + freebsd2*)
  26461. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  26462. + hardcode_direct=yes
  26463. + hardcode_minus_L=yes
  26464. + hardcode_shlibpath_var=no
  26465. + ;;
  26466. -# Whether dlopen is supported.
  26467. -dlopen_support=$enable_dlopen
  26468. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  26469. + freebsd* | dragonfly*)
  26470. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  26471. + hardcode_libdir_flag_spec='-R$libdir'
  26472. + hardcode_direct=yes
  26473. + hardcode_shlibpath_var=no
  26474. + ;;
  26475. -# Whether dlopen of programs is supported.
  26476. -dlopen_self=$enable_dlopen_self
  26477. + hpux9*)
  26478. + if test "$GCC" = yes; then
  26479. + 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'
  26480. + else
  26481. + 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'
  26482. + fi
  26483. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  26484. + hardcode_libdir_separator=:
  26485. + hardcode_direct=yes
  26486. -# Whether dlopen of statically linked programs is supported.
  26487. -dlopen_self_static=$enable_dlopen_self_static
  26488. + # hardcode_minus_L: Not really in the search PATH,
  26489. + # but as the default location of the library.
  26490. + hardcode_minus_L=yes
  26491. + export_dynamic_flag_spec='${wl}-E'
  26492. + ;;
  26493. -# Compiler flag to prevent dynamic linking.
  26494. -link_static_flag=$lt_lt_prog_compiler_static
  26495. + hpux10*)
  26496. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  26497. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  26498. + else
  26499. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  26500. + fi
  26501. + if test "$with_gnu_ld" = no; then
  26502. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  26503. + hardcode_libdir_flag_spec_ld='+b $libdir'
  26504. + hardcode_libdir_separator=:
  26505. + hardcode_direct=yes
  26506. + hardcode_direct_absolute=yes
  26507. + export_dynamic_flag_spec='${wl}-E'
  26508. + # hardcode_minus_L: Not really in the search PATH,
  26509. + # but as the default location of the library.
  26510. + hardcode_minus_L=yes
  26511. + fi
  26512. + ;;
  26513. -# Compiler flag to turn off builtin functions.
  26514. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  26515. + hpux11*)
  26516. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  26517. + case $host_cpu in
  26518. + hppa*64*)
  26519. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26520. + ;;
  26521. + ia64*)
  26522. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  26523. + ;;
  26524. + *)
  26525. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  26526. + ;;
  26527. + esac
  26528. + else
  26529. + case $host_cpu in
  26530. + hppa*64*)
  26531. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26532. + ;;
  26533. + ia64*)
  26534. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  26535. + ;;
  26536. + *)
  26537. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  26538. + ;;
  26539. + esac
  26540. + fi
  26541. + if test "$with_gnu_ld" = no; then
  26542. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  26543. + hardcode_libdir_separator=:
  26544. -# Compiler flag to allow reflexive dlopens.
  26545. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  26546. + case $host_cpu in
  26547. + hppa*64*|ia64*)
  26548. + hardcode_direct=no
  26549. + hardcode_shlibpath_var=no
  26550. + ;;
  26551. + *)
  26552. + hardcode_direct=yes
  26553. + hardcode_direct_absolute=yes
  26554. + export_dynamic_flag_spec='${wl}-E'
  26555. -# Compiler flag to generate shared objects directly from archives.
  26556. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  26557. + # hardcode_minus_L: Not really in the search PATH,
  26558. + # but as the default location of the library.
  26559. + hardcode_minus_L=yes
  26560. + ;;
  26561. + esac
  26562. + fi
  26563. + ;;
  26564. -# Compiler flag to generate thread-safe objects.
  26565. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  26566. + irix5* | irix6* | nonstopux*)
  26567. + if test "$GCC" = yes; then
  26568. + 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'
  26569. + # Try to use the -exported_symbol ld option, if it does not
  26570. + # work, assume that -exports_file does not work either and
  26571. + # implicitly export all symbols.
  26572. + save_LDFLAGS="$LDFLAGS"
  26573. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  26574. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26575. +/* end confdefs.h. */
  26576. +int foo(void) {}
  26577. +_ACEOF
  26578. +if ac_fn_c_try_link "$LINENO"; then :
  26579. + 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'
  26580. -# Library versioning type.
  26581. -version_type=$version_type
  26582. +fi
  26583. +rm -f core conftest.err conftest.$ac_objext \
  26584. + conftest$ac_exeext conftest.$ac_ext
  26585. + LDFLAGS="$save_LDFLAGS"
  26586. + else
  26587. + 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'
  26588. + 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'
  26589. + fi
  26590. + archive_cmds_need_lc='no'
  26591. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26592. + hardcode_libdir_separator=:
  26593. + inherit_rpath=yes
  26594. + link_all_deplibs=yes
  26595. + ;;
  26596. -# Format of library name prefix.
  26597. -libname_spec=$lt_libname_spec
  26598. + netbsd* | netbsdelf*-gnu)
  26599. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  26600. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  26601. + else
  26602. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  26603. + fi
  26604. + hardcode_libdir_flag_spec='-R$libdir'
  26605. + hardcode_direct=yes
  26606. + hardcode_shlibpath_var=no
  26607. + ;;
  26608. -# List of archive names. First name is the real one, the rest are links.
  26609. -# The last name is the one that the linker finds with -lNAME.
  26610. -library_names_spec=$lt_library_names_spec
  26611. + newsos6)
  26612. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26613. + hardcode_direct=yes
  26614. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26615. + hardcode_libdir_separator=:
  26616. + hardcode_shlibpath_var=no
  26617. + ;;
  26618. -# The coded name of the library, if different from the real name.
  26619. -soname_spec=$lt_soname_spec
  26620. + *nto* | *qnx*)
  26621. + ;;
  26622. -# Commands used to build and install an old-style archive.
  26623. -RANLIB=$lt_RANLIB
  26624. -old_archive_cmds=$lt_old_archive_cmds
  26625. -old_postinstall_cmds=$lt_old_postinstall_cmds
  26626. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  26627. -
  26628. -# Create an old-style archive from a shared archive.
  26629. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  26630. -
  26631. -# Create a temporary old-style archive to link instead of a shared archive.
  26632. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  26633. -
  26634. -# Commands used to build and install a shared archive.
  26635. -archive_cmds=$lt_archive_cmds
  26636. -archive_expsym_cmds=$lt_archive_expsym_cmds
  26637. -postinstall_cmds=$lt_postinstall_cmds
  26638. -postuninstall_cmds=$lt_postuninstall_cmds
  26639. + openbsd*)
  26640. + if test -f /usr/libexec/ld.so; then
  26641. + hardcode_direct=yes
  26642. + hardcode_shlibpath_var=no
  26643. + hardcode_direct_absolute=yes
  26644. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  26645. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  26646. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  26647. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  26648. + export_dynamic_flag_spec='${wl}-E'
  26649. + else
  26650. + case $host_os in
  26651. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  26652. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  26653. + hardcode_libdir_flag_spec='-R$libdir'
  26654. + ;;
  26655. + *)
  26656. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  26657. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  26658. + ;;
  26659. + esac
  26660. + fi
  26661. + else
  26662. + ld_shlibs=no
  26663. + fi
  26664. + ;;
  26665. -# Commands used to build a loadable module (assumed same as above if empty)
  26666. -module_cmds=$lt_module_cmds
  26667. -module_expsym_cmds=$lt_module_expsym_cmds
  26668. + os2*)
  26669. + hardcode_libdir_flag_spec='-L$libdir'
  26670. + hardcode_minus_L=yes
  26671. + allow_undefined_flag=unsupported
  26672. + 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'
  26673. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  26674. + ;;
  26675. -# Commands to strip libraries.
  26676. -old_striplib=$lt_old_striplib
  26677. -striplib=$lt_striplib
  26678. + osf3*)
  26679. + if test "$GCC" = yes; then
  26680. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  26681. + 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'
  26682. + else
  26683. + allow_undefined_flag=' -expect_unresolved \*'
  26684. + 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'
  26685. + fi
  26686. + archive_cmds_need_lc='no'
  26687. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26688. + hardcode_libdir_separator=:
  26689. + ;;
  26690. -# Dependencies to place before the objects being linked to create a
  26691. -# shared library.
  26692. -predep_objects=$lt_predep_objects
  26693. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  26694. + if test "$GCC" = yes; then
  26695. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  26696. + 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'
  26697. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26698. + else
  26699. + allow_undefined_flag=' -expect_unresolved \*'
  26700. + 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'
  26701. + 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~
  26702. + $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'
  26703. -# Dependencies to place after the objects being linked to create a
  26704. -# shared library.
  26705. -postdep_objects=$lt_postdep_objects
  26706. + # Both c and cxx compiler support -rpath directly
  26707. + hardcode_libdir_flag_spec='-rpath $libdir'
  26708. + fi
  26709. + archive_cmds_need_lc='no'
  26710. + hardcode_libdir_separator=:
  26711. + ;;
  26712. -# Dependencies to place before the objects being linked to create a
  26713. -# shared library.
  26714. -predeps=$lt_predeps
  26715. + solaris*)
  26716. + no_undefined_flag=' -z defs'
  26717. + if test "$GCC" = yes; then
  26718. + wlarc='${wl}'
  26719. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26720. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  26721. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  26722. + else
  26723. + case `$CC -V 2>&1` in
  26724. + *"Compilers 5.0"*)
  26725. + wlarc=''
  26726. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26727. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  26728. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  26729. + ;;
  26730. + *)
  26731. + wlarc='${wl}'
  26732. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  26733. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  26734. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  26735. + ;;
  26736. + esac
  26737. + fi
  26738. + hardcode_libdir_flag_spec='-R$libdir'
  26739. + hardcode_shlibpath_var=no
  26740. + case $host_os in
  26741. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  26742. + *)
  26743. + # The compiler driver will combine and reorder linker options,
  26744. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  26745. + # but is careful enough not to reorder.
  26746. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  26747. + if test "$GCC" = yes; then
  26748. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  26749. + else
  26750. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  26751. + fi
  26752. + ;;
  26753. + esac
  26754. + link_all_deplibs=yes
  26755. + ;;
  26756. -# Dependencies to place after the objects being linked to create a
  26757. -# shared library.
  26758. -postdeps=$lt_postdeps
  26759. + sunos4*)
  26760. + if test "x$host_vendor" = xsequent; then
  26761. + # Use $CC to link under sequent, because it throws in some extra .o
  26762. + # files that make .init and .fini sections work.
  26763. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  26764. + else
  26765. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  26766. + fi
  26767. + hardcode_libdir_flag_spec='-L$libdir'
  26768. + hardcode_direct=yes
  26769. + hardcode_minus_L=yes
  26770. + hardcode_shlibpath_var=no
  26771. + ;;
  26772. -# The directories searched by this compiler when creating a shared
  26773. -# library
  26774. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  26775. + sysv4)
  26776. + case $host_vendor in
  26777. + sni)
  26778. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26779. + hardcode_direct=yes # is this really true???
  26780. + ;;
  26781. + siemens)
  26782. + ## LD is ld it makes a PLAMLIB
  26783. + ## CC just makes a GrossModule.
  26784. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  26785. + reload_cmds='$CC -r -o $output$reload_objs'
  26786. + hardcode_direct=no
  26787. + ;;
  26788. + motorola)
  26789. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26790. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  26791. + ;;
  26792. + esac
  26793. + runpath_var='LD_RUN_PATH'
  26794. + hardcode_shlibpath_var=no
  26795. + ;;
  26796. -# The library search path used internally by the compiler when linking
  26797. -# a shared library.
  26798. -compiler_lib_search_path=$lt_compiler_lib_search_path
  26799. + sysv4.3*)
  26800. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26801. + hardcode_shlibpath_var=no
  26802. + export_dynamic_flag_spec='-Bexport'
  26803. + ;;
  26804. -# Method to check whether dependent libraries are shared objects.
  26805. -deplibs_check_method=$lt_deplibs_check_method
  26806. + sysv4*MP*)
  26807. + if test -d /usr/nec; then
  26808. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26809. + hardcode_shlibpath_var=no
  26810. + runpath_var=LD_RUN_PATH
  26811. + hardcode_runpath_var=yes
  26812. + ld_shlibs=yes
  26813. + fi
  26814. + ;;
  26815. -# Command to use when deplibs_check_method == file_magic.
  26816. -file_magic_cmd=$lt_file_magic_cmd
  26817. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  26818. + no_undefined_flag='${wl}-z,text'
  26819. + archive_cmds_need_lc=no
  26820. + hardcode_shlibpath_var=no
  26821. + runpath_var='LD_RUN_PATH'
  26822. -# Flag that allows shared libraries with undefined symbols to be built.
  26823. -allow_undefined_flag=$lt_allow_undefined_flag
  26824. + if test "$GCC" = yes; then
  26825. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26826. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26827. + else
  26828. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26829. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26830. + fi
  26831. + ;;
  26832. -# Flag that forces no undefined symbols.
  26833. -no_undefined_flag=$lt_no_undefined_flag
  26834. + sysv5* | sco3.2v5* | sco5v6*)
  26835. + # Note: We can NOT use -z defs as we might desire, because we do not
  26836. + # link with -lc, and that would cause any symbols used from libc to
  26837. + # always be unresolved, which means just about no library would
  26838. + # ever link correctly. If we're not using GNU ld we use -z text
  26839. + # though, which does catch some bad symbols but isn't as heavy-handed
  26840. + # as -z defs.
  26841. + no_undefined_flag='${wl}-z,text'
  26842. + allow_undefined_flag='${wl}-z,nodefs'
  26843. + archive_cmds_need_lc=no
  26844. + hardcode_shlibpath_var=no
  26845. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  26846. + hardcode_libdir_separator=':'
  26847. + link_all_deplibs=yes
  26848. + export_dynamic_flag_spec='${wl}-Bexport'
  26849. + runpath_var='LD_RUN_PATH'
  26850. -# Commands used to finish a libtool library installation in a directory.
  26851. -finish_cmds=$lt_finish_cmds
  26852. + if test "$GCC" = yes; then
  26853. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26854. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26855. + else
  26856. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26857. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26858. + fi
  26859. + ;;
  26860. -# Same as above, but a single script fragment to be evaled but not shown.
  26861. -finish_eval=$lt_finish_eval
  26862. + uts4*)
  26863. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26864. + hardcode_libdir_flag_spec='-L$libdir'
  26865. + hardcode_shlibpath_var=no
  26866. + ;;
  26867. -# Take the output of nm and produce a listing of raw symbols and C names.
  26868. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  26869. + *)
  26870. + ld_shlibs=no
  26871. + ;;
  26872. + esac
  26873. -# Transform the output of nm in a proper C declaration
  26874. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  26875. + if test x$host_vendor = xsni; then
  26876. + case $host in
  26877. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  26878. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  26879. + ;;
  26880. + esac
  26881. + fi
  26882. + fi
  26883. -# Transform the output of nm in a C name address pair
  26884. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  26885. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  26886. +$as_echo "$ld_shlibs" >&6; }
  26887. +test "$ld_shlibs" = no && can_build_shared=no
  26888. -# This is the shared library runtime path variable.
  26889. -runpath_var=$runpath_var
  26890. +with_gnu_ld=$with_gnu_ld
  26891. -# This is the shared library path variable.
  26892. -shlibpath_var=$shlibpath_var
  26893. -# Is shlibpath searched before the hard-coded library search path?
  26894. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  26895. -# How to hardcode a shared library path into an executable.
  26896. -hardcode_action=$hardcode_action
  26897. -# Whether we should hardcode library paths into libraries.
  26898. -hardcode_into_libs=$hardcode_into_libs
  26899. -# Flag to hardcode \$libdir into a binary during linking.
  26900. -# This must work even if \$libdir does not exist.
  26901. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  26902. -# If ld is used when linking, flag to hardcode \$libdir into
  26903. -# a binary during linking. This must work even if \$libdir does
  26904. -# not exist.
  26905. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  26906. -# Whether we need a single -rpath flag with a separated argument.
  26907. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  26908. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  26909. -# resulting binary.
  26910. -hardcode_direct=$hardcode_direct
  26911. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  26912. -# resulting binary.
  26913. -hardcode_minus_L=$hardcode_minus_L
  26914. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  26915. -# the resulting binary.
  26916. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  26917. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  26918. -# and all subsequent libraries and executables linked against it.
  26919. -hardcode_automatic=$hardcode_automatic
  26920. -# Variables whose values should be saved in libtool wrapper scripts and
  26921. -# restored at relink time.
  26922. -variables_saved_for_relink="$variables_saved_for_relink"
  26923. -# Whether libtool must link a program against all its dependency libraries.
  26924. -link_all_deplibs=$link_all_deplibs
  26925. -# Compile-time system search path for libraries
  26926. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  26927. -# Run-time system search path for libraries
  26928. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  26929. +#
  26930. +# Do we need to explicitly link libc?
  26931. +#
  26932. +case "x$archive_cmds_need_lc" in
  26933. +x|xyes)
  26934. + # Assume -lc should be added
  26935. + archive_cmds_need_lc=yes
  26936. -# Fix the shell variable \$srcfile for the compiler.
  26937. -fix_srcfile_path=$lt_fix_srcfile_path
  26938. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  26939. + case $archive_cmds in
  26940. + *'~'*)
  26941. + # FIXME: we may have to deal with multi-command sequences.
  26942. + ;;
  26943. + '$CC '*)
  26944. + # Test whether the compiler implicitly links with -lc since on some
  26945. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  26946. + # to ld, don't add -lc before -lgcc.
  26947. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  26948. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  26949. + $RM conftest*
  26950. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  26951. -# Set to yes if exported symbols are required.
  26952. -always_export_symbols=$always_export_symbols
  26953. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  26954. + (eval $ac_compile) 2>&5
  26955. + ac_status=$?
  26956. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26957. + test $ac_status = 0; } 2>conftest.err; then
  26958. + soname=conftest
  26959. + lib=conftest
  26960. + libobjs=conftest.$ac_objext
  26961. + deplibs=
  26962. + wl=$lt_prog_compiler_wl
  26963. + pic_flag=$lt_prog_compiler_pic
  26964. + compiler_flags=-v
  26965. + linker_flags=-v
  26966. + verstring=
  26967. + output_objdir=.
  26968. + libname=conftest
  26969. + lt_save_allow_undefined_flag=$allow_undefined_flag
  26970. + allow_undefined_flag=
  26971. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  26972. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  26973. + ac_status=$?
  26974. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26975. + test $ac_status = 0; }
  26976. + then
  26977. + archive_cmds_need_lc=no
  26978. + else
  26979. + archive_cmds_need_lc=yes
  26980. + fi
  26981. + allow_undefined_flag=$lt_save_allow_undefined_flag
  26982. + else
  26983. + cat conftest.err 1>&5
  26984. + fi
  26985. + $RM conftest*
  26986. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  26987. +$as_echo "$archive_cmds_need_lc" >&6; }
  26988. + ;;
  26989. + esac
  26990. + fi
  26991. + ;;
  26992. +esac
  26993. -# The commands to list exported symbols.
  26994. -export_symbols_cmds=$lt_export_symbols_cmds
  26995. -# The commands to extract the exported symbol list from a shared archive.
  26996. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  26997. -# Symbols that should not be listed in the preloaded symbols.
  26998. -exclude_expsyms=$lt_exclude_expsyms
  26999. -# Symbols that must always be exported.
  27000. -include_expsyms=$lt_include_expsyms
  27001. -# ### END LIBTOOL CONFIG
  27002. -__EOF__
  27003. - case $host_os in
  27004. - aix3*)
  27005. - cat <<\EOF >> "$cfgfile"
  27006. -# AIX sometimes has problems with the GCC collect2 program. For some
  27007. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  27008. -# vanish in a puff of smoke.
  27009. -if test "X${COLLECT_NAMES+set}" != Xset; then
  27010. - COLLECT_NAMES=
  27011. - export COLLECT_NAMES
  27012. -fi
  27013. -EOF
  27014. - ;;
  27015. - esac
  27016. - # We use sed instead of cat because bash on DJGPP gets confused if
  27017. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27018. - # text mode, it properly converts lines to CR/LF. This bash problem
  27019. - # is reportedly fixed, but why not run on old versions too?
  27020. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  27021. - mv -f "$cfgfile" "$ofile" || \
  27022. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27023. - chmod +x "$ofile"
  27024. -else
  27025. - # If there is no Makefile yet, we rely on a make rule to execute
  27026. - # `config.status --recheck' to rerun these tests and create the
  27027. - # libtool script then.
  27028. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  27029. - if test -f "$ltmain_in"; then
  27030. - test -f Makefile && make "$ltmain"
  27031. - fi
  27032. -fi
  27033. -ac_ext=c
  27034. -ac_cpp='$CPP $CPPFLAGS'
  27035. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27036. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27037. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27038. -CC="$lt_save_CC"
  27039. -# Check whether --with-tags was given.
  27040. -if test "${with_tags+set}" = set; then
  27041. - withval=$with_tags; tagnames="$withval"
  27042. -fi
  27043. -if test -f "$ltmain" && test -n "$tagnames"; then
  27044. - if test ! -f "${ofile}"; then
  27045. - { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  27046. -$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  27047. - fi
  27048. - if test -z "$LTCC"; then
  27049. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  27050. - if test -z "$LTCC"; then
  27051. - { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  27052. -$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  27053. - else
  27054. - { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  27055. -$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  27056. - fi
  27057. - fi
  27058. - if test -z "$LTCFLAGS"; then
  27059. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  27060. - fi
  27061. - # Extract list of available tagged configurations in $ofile.
  27062. - # Note that this assumes the entire list is on one line.
  27063. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  27064. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  27065. - for tagname in $tagnames; do
  27066. - IFS="$lt_save_ifs"
  27067. - # Check whether tagname contains only valid characters
  27068. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  27069. - "") ;;
  27070. - *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  27071. -$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
  27072. - { (exit 1); exit 1; }; }
  27073. - ;;
  27074. - esac
  27075. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  27076. - then
  27077. - { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  27078. -$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  27079. - { (exit 1); exit 1; }; }
  27080. - fi
  27081. - # Update the list of available tags.
  27082. - if test -n "$tagname"; then
  27083. - echo appending configuration tag \"$tagname\" to $ofile
  27084. -
  27085. - case $tagname in
  27086. - CXX)
  27087. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  27088. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  27089. - (test "X$CXX" != "Xg++"))) ; then
  27090. - ac_ext=cpp
  27091. -ac_cpp='$CXXCPP $CPPFLAGS'
  27092. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27093. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27094. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27095. -archive_cmds_need_lc_CXX=no
  27096. -allow_undefined_flag_CXX=
  27097. -always_export_symbols_CXX=no
  27098. -archive_expsym_cmds_CXX=
  27099. -export_dynamic_flag_spec_CXX=
  27100. -hardcode_direct_CXX=no
  27101. -hardcode_libdir_flag_spec_CXX=
  27102. -hardcode_libdir_flag_spec_ld_CXX=
  27103. -hardcode_libdir_separator_CXX=
  27104. -hardcode_minus_L_CXX=no
  27105. -hardcode_shlibpath_var_CXX=unsupported
  27106. -hardcode_automatic_CXX=no
  27107. -module_cmds_CXX=
  27108. -module_expsym_cmds_CXX=
  27109. -link_all_deplibs_CXX=unknown
  27110. -old_archive_cmds_CXX=$old_archive_cmds
  27111. -no_undefined_flag_CXX=
  27112. -whole_archive_flag_spec_CXX=
  27113. -enable_shared_with_static_runtimes_CXX=no
  27114. -# Dependencies to place before and after the object being linked:
  27115. -predep_objects_CXX=
  27116. -postdep_objects_CXX=
  27117. -predeps_CXX=
  27118. -postdeps_CXX=
  27119. -compiler_lib_search_path_CXX=
  27120. -compiler_lib_search_dirs_CXX=
  27121. -# Source file extension for C++ test sources.
  27122. -ac_ext=cpp
  27123. -# Object file extension for compiled C++ test sources.
  27124. -objext=o
  27125. -objext_CXX=$objext
  27126. -# Code to be used in simple compile tests
  27127. -lt_simple_compile_test_code="int some_variable = 0;"
  27128. -# Code to be used in simple link tests
  27129. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  27130. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  27131. -# If no C compiler was specified, use CC.
  27132. -LTCC=${LTCC-"$CC"}
  27133. -# If no C compiler flags were specified, use CFLAGS.
  27134. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  27135. -# Allow CC to be a program name with arguments.
  27136. -compiler=$CC
  27137. -# save warnings/boilerplate of simple test code
  27138. -ac_outfile=conftest.$ac_objext
  27139. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  27140. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  27141. -_lt_compiler_boilerplate=`cat conftest.err`
  27142. -$rm conftest*
  27143. -ac_outfile=conftest.$ac_objext
  27144. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  27145. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  27146. -_lt_linker_boilerplate=`cat conftest.err`
  27147. -$rm -r conftest*
  27148. -# Allow CC to be a program name with arguments.
  27149. -lt_save_CC=$CC
  27150. -lt_save_LD=$LD
  27151. -lt_save_GCC=$GCC
  27152. -GCC=$GXX
  27153. -lt_save_with_gnu_ld=$with_gnu_ld
  27154. -lt_save_path_LD=$lt_cv_path_LD
  27155. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  27156. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  27157. -else
  27158. - $as_unset lt_cv_prog_gnu_ld
  27159. -fi
  27160. -if test -n "${lt_cv_path_LDCXX+set}"; then
  27161. - lt_cv_path_LD=$lt_cv_path_LDCXX
  27162. -else
  27163. - $as_unset lt_cv_path_LD
  27164. -fi
  27165. -test -z "${LDCXX+set}" || LD=$LDCXX
  27166. -CC=${CXX-"c++"}
  27167. -compiler=$CC
  27168. -compiler_CXX=$CC
  27169. -for cc_temp in $compiler""; do
  27170. - case $cc_temp in
  27171. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27172. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27173. - \-*) ;;
  27174. - *) break;;
  27175. - esac
  27176. -done
  27177. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  27178. -# We don't want -fno-exception wen compiling C++ code, so set the
  27179. -# no_builtin_flag separately
  27180. -if test "$GXX" = yes; then
  27181. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  27182. -else
  27183. - lt_prog_compiler_no_builtin_flag_CXX=
  27184. -fi
  27185. -if test "$GXX" = yes; then
  27186. - # Set up default GNU C++ configuration
  27187. -# Check whether --with-gnu-ld was given.
  27188. -if test "${with_gnu_ld+set}" = set; then
  27189. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  27190. -else
  27191. - with_gnu_ld=no
  27192. -fi
  27193. -ac_prog=ld
  27194. -if test "$GCC" = yes; then
  27195. - # Check if gcc -print-prog-name=ld gives a path.
  27196. - { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  27197. -$as_echo_n "checking for ld used by $CC... " >&6; }
  27198. - case $host in
  27199. - *-*-mingw*)
  27200. - # gcc leaves a trailing carriage return which upsets mingw
  27201. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  27202. - *)
  27203. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  27204. - esac
  27205. - case $ac_prog in
  27206. - # Accept absolute paths.
  27207. - [\\/]* | ?:[\\/]*)
  27208. - re_direlt='/[^/][^/]*/\.\./'
  27209. - # Canonicalize the pathname of ld
  27210. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  27211. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  27212. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  27213. - done
  27214. - test -z "$LD" && LD="$ac_prog"
  27215. - ;;
  27216. - "")
  27217. - # If it fails, then pretend we aren't using GCC.
  27218. - ac_prog=ld
  27219. - ;;
  27220. - *)
  27221. - # If it is relative, then search for the first ld in PATH.
  27222. - with_gnu_ld=unknown
  27223. - ;;
  27224. - esac
  27225. -elif test "$with_gnu_ld" = yes; then
  27226. - { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  27227. -$as_echo_n "checking for GNU ld... " >&6; }
  27228. -else
  27229. - { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  27230. -$as_echo_n "checking for non-GNU ld... " >&6; }
  27231. -fi
  27232. -if test "${lt_cv_path_LD+set}" = set; then
  27233. - $as_echo_n "(cached) " >&6
  27234. -else
  27235. - if test -z "$LD"; then
  27236. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  27237. - for ac_dir in $PATH; do
  27238. - IFS="$lt_save_ifs"
  27239. - test -z "$ac_dir" && ac_dir=.
  27240. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  27241. - lt_cv_path_LD="$ac_dir/$ac_prog"
  27242. - # Check to see if the program is GNU ld. I'd rather use --version,
  27243. - # but apparently some variants of GNU ld only accept -v.
  27244. - # Break only if it was the GNU/non-GNU ld that we prefer.
  27245. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  27246. - *GNU* | *'with BFD'*)
  27247. - test "$with_gnu_ld" != no && break
  27248. - ;;
  27249. - *)
  27250. - test "$with_gnu_ld" != yes && break
  27251. - ;;
  27252. - esac
  27253. - fi
  27254. - done
  27255. - IFS="$lt_save_ifs"
  27256. -else
  27257. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  27258. -fi
  27259. -fi
  27260. -LD="$lt_cv_path_LD"
  27261. -if test -n "$LD"; then
  27262. - { $as_echo "$as_me:$LINENO: result: $LD" >&5
  27263. -$as_echo "$LD" >&6; }
  27264. -else
  27265. - { $as_echo "$as_me:$LINENO: result: no" >&5
  27266. -$as_echo "no" >&6; }
  27267. -fi
  27268. -test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  27269. -$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  27270. - { (exit 1); exit 1; }; }
  27271. -{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  27272. -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  27273. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  27274. - $as_echo_n "(cached) " >&6
  27275. -else
  27276. - # I'd rather use --version here, but apparently some GNU lds only accept -v.
  27277. -case `$LD -v 2>&1 </dev/null` in
  27278. -*GNU* | *'with BFD'*)
  27279. - lt_cv_prog_gnu_ld=yes
  27280. - ;;
  27281. -*)
  27282. - lt_cv_prog_gnu_ld=no
  27283. - ;;
  27284. -esac
  27285. -fi
  27286. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  27287. -$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  27288. -with_gnu_ld=$lt_cv_prog_gnu_ld
  27289. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  27290. - # archiving commands below assume that GNU ld is being used.
  27291. - if test "$with_gnu_ld" = yes; then
  27292. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27293. - 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'
  27294. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  27295. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  27296. - # If archive_cmds runs LD, not CC, wlarc should be empty
  27297. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  27298. - # investigate it a little bit more. (MM)
  27299. - wlarc='${wl}'
  27300. - # ancient GNU ld didn't support --whole-archive et. al.
  27301. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  27302. - grep 'no-whole-archive' > /dev/null; then
  27303. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  27304. - else
  27305. - whole_archive_flag_spec_CXX=
  27306. - fi
  27307. - else
  27308. - with_gnu_ld=no
  27309. - wlarc=
  27310. - # A generic and very simple default shared library creation
  27311. - # command for GNU C++ for the case where it uses the native
  27312. - # linker, instead of GNU ld. If possible, this setting should
  27313. - # overridden to take advantage of the native linker features on
  27314. - # the platform it is being used on.
  27315. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  27316. - fi
  27317. - # Commands to make compiler produce verbose output that lists
  27318. - # what "hidden" libraries, object files and flags are used when
  27319. - # linking a shared library.
  27320. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  27321. -else
  27322. - GXX=no
  27323. - with_gnu_ld=no
  27324. - wlarc=
  27325. -fi
  27326. -# PORTME: fill in a description of your system's C++ link characteristics
  27327. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  27328. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  27329. -ld_shlibs_CXX=yes
  27330. -case $host_os in
  27331. - aix3*)
  27332. - # FIXME: insert proper C++ library support
  27333. - ld_shlibs_CXX=no
  27334. - ;;
  27335. - aix[4-9]*)
  27336. - if test "$host_cpu" = ia64; then
  27337. - # On IA64, the linker does run time linking by default, so we don't
  27338. - # have to do anything special.
  27339. - aix_use_runtimelinking=no
  27340. - exp_sym_flag='-Bexport'
  27341. - no_entry_flag=""
  27342. - else
  27343. - aix_use_runtimelinking=no
  27344. - # Test if we are trying to use run time linking or normal
  27345. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  27346. - # need to do runtime linking.
  27347. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  27348. - for ld_flag in $LDFLAGS; do
  27349. - case $ld_flag in
  27350. - *-brtl*)
  27351. - aix_use_runtimelinking=yes
  27352. - break
  27353. - ;;
  27354. - esac
  27355. - done
  27356. - ;;
  27357. - esac
  27358. - exp_sym_flag='-bexport'
  27359. - no_entry_flag='-bnoentry'
  27360. - fi
  27361. - # When large executables or shared objects are built, AIX ld can
  27362. - # have problems creating the table of contents. If linking a library
  27363. - # or program results in "error TOC overflow" add -mminimal-toc to
  27364. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  27365. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  27366. -
  27367. - archive_cmds_CXX=''
  27368. - hardcode_direct_CXX=yes
  27369. - hardcode_libdir_separator_CXX=':'
  27370. - link_all_deplibs_CXX=yes
  27371. - if test "$GXX" = yes; then
  27372. - case $host_os in aix4.[012]|aix4.[012].*)
  27373. - # We only want to do this on AIX 4.2 and lower, the check
  27374. - # below for broken collect2 doesn't work under 4.3+
  27375. - collect2name=`${CC} -print-prog-name=collect2`
  27376. - if test -f "$collect2name" && \
  27377. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  27378. - then
  27379. - # We have reworked collect2
  27380. - :
  27381. - else
  27382. - # We have old collect2
  27383. - hardcode_direct_CXX=unsupported
  27384. - # It fails to find uninstalled libraries when the uninstalled
  27385. - # path is not listed in the libpath. Setting hardcode_minus_L
  27386. - # to unsupported forces relinking
  27387. - hardcode_minus_L_CXX=yes
  27388. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  27389. - hardcode_libdir_separator_CXX=
  27390. - fi
  27391. - ;;
  27392. - esac
  27393. - shared_flag='-shared'
  27394. - if test "$aix_use_runtimelinking" = yes; then
  27395. - shared_flag="$shared_flag "'${wl}-G'
  27396. - fi
  27397. - else
  27398. - # not using gcc
  27399. - if test "$host_cpu" = ia64; then
  27400. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  27401. - # chokes on -Wl,-G. The following line is correct:
  27402. - shared_flag='-G'
  27403. - else
  27404. - if test "$aix_use_runtimelinking" = yes; then
  27405. - shared_flag='${wl}-G'
  27406. - else
  27407. - shared_flag='${wl}-bM:SRE'
  27408. - fi
  27409. - fi
  27410. - fi
  27411. - # It seems that -bexpall does not export symbols beginning with
  27412. - # underscore (_), so it is better to generate a list of symbols to export.
  27413. - always_export_symbols_CXX=yes
  27414. - if test "$aix_use_runtimelinking" = yes; then
  27415. - # Warning - without using the other runtime loading flags (-brtl),
  27416. - # -berok will link without error, but may produce a broken library.
  27417. - allow_undefined_flag_CXX='-berok'
  27418. - # Determine the default libpath from the value encoded in an empty executable.
  27419. - cat >conftest.$ac_ext <<_ACEOF
  27420. -/* confdefs.h. */
  27421. -_ACEOF
  27422. -cat confdefs.h >>conftest.$ac_ext
  27423. -cat >>conftest.$ac_ext <<_ACEOF
  27424. -/* end confdefs.h. */
  27425. -int
  27426. -main ()
  27427. -{
  27428. - ;
  27429. - return 0;
  27430. -}
  27431. -_ACEOF
  27432. -rm -f conftest.$ac_objext conftest$ac_exeext
  27433. -if { (ac_try="$ac_link"
  27434. -case "(($ac_try" in
  27435. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27436. - *) ac_try_echo=$ac_try;;
  27437. -esac
  27438. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27439. -$as_echo "$ac_try_echo") >&5
  27440. - (eval "$ac_link") 2>conftest.er1
  27441. - ac_status=$?
  27442. - grep -v '^ *+' conftest.er1 >conftest.err
  27443. - rm -f conftest.er1
  27444. - cat conftest.err >&5
  27445. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27446. - (exit $ac_status); } && {
  27447. - test -z "$ac_cxx_werror_flag" ||
  27448. - test ! -s conftest.err
  27449. - } && test -s conftest$ac_exeext && {
  27450. - test "$cross_compiling" = yes ||
  27451. - $as_test_x conftest$ac_exeext
  27452. - }; then
  27453. -lt_aix_libpath_sed='
  27454. - /Import File Strings/,/^$/ {
  27455. - /^0/ {
  27456. - s/^0 *\(.*\)$/\1/
  27457. - p
  27458. - }
  27459. - }'
  27460. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  27461. -# Check for a 64-bit object if we didn't find anything.
  27462. -if test -z "$aix_libpath"; then
  27463. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  27464. -fi
  27465. -else
  27466. - $as_echo "$as_me: failed program was:" >&5
  27467. -sed 's/^/| /' conftest.$ac_ext >&5
  27468. -fi
  27469. -rm -rf conftest.dSYM
  27470. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27471. - conftest$ac_exeext conftest.$ac_ext
  27472. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  27473. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  27474. - 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"
  27475. - else
  27476. - if test "$host_cpu" = ia64; then
  27477. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  27478. - allow_undefined_flag_CXX="-z nodefs"
  27479. - 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"
  27480. - else
  27481. - # Determine the default libpath from the value encoded in an empty executable.
  27482. - cat >conftest.$ac_ext <<_ACEOF
  27483. -/* confdefs.h. */
  27484. -_ACEOF
  27485. -cat confdefs.h >>conftest.$ac_ext
  27486. -cat >>conftest.$ac_ext <<_ACEOF
  27487. -/* end confdefs.h. */
  27488. -int
  27489. -main ()
  27490. -{
  27491. - ;
  27492. - return 0;
  27493. -}
  27494. -_ACEOF
  27495. -rm -f conftest.$ac_objext conftest$ac_exeext
  27496. -if { (ac_try="$ac_link"
  27497. -case "(($ac_try" in
  27498. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27499. - *) ac_try_echo=$ac_try;;
  27500. -esac
  27501. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27502. -$as_echo "$ac_try_echo") >&5
  27503. - (eval "$ac_link") 2>conftest.er1
  27504. - ac_status=$?
  27505. - grep -v '^ *+' conftest.er1 >conftest.err
  27506. - rm -f conftest.er1
  27507. - cat conftest.err >&5
  27508. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27509. - (exit $ac_status); } && {
  27510. - test -z "$ac_cxx_werror_flag" ||
  27511. - test ! -s conftest.err
  27512. - } && test -s conftest$ac_exeext && {
  27513. - test "$cross_compiling" = yes ||
  27514. - $as_test_x conftest$ac_exeext
  27515. - }; then
  27516. -lt_aix_libpath_sed='
  27517. - /Import File Strings/,/^$/ {
  27518. - /^0/ {
  27519. - s/^0 *\(.*\)$/\1/
  27520. - p
  27521. - }
  27522. - }'
  27523. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  27524. -# Check for a 64-bit object if we didn't find anything.
  27525. -if test -z "$aix_libpath"; then
  27526. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  27527. -fi
  27528. -else
  27529. - $as_echo "$as_me: failed program was:" >&5
  27530. -sed 's/^/| /' conftest.$ac_ext >&5
  27531. -fi
  27532. -rm -rf conftest.dSYM
  27533. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27534. - conftest$ac_exeext conftest.$ac_ext
  27535. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  27536. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  27537. - # Warning - without using the other run time loading flags,
  27538. - # -berok will link without error, but may produce a broken library.
  27539. - no_undefined_flag_CXX=' ${wl}-bernotok'
  27540. - allow_undefined_flag_CXX=' ${wl}-berok'
  27541. - # Exported symbols can be pulled into shared objects from archives
  27542. - whole_archive_flag_spec_CXX='$convenience'
  27543. - archive_cmds_need_lc_CXX=yes
  27544. - # This is similar to how AIX traditionally builds its shared libraries.
  27545. - 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'
  27546. - fi
  27547. - fi
  27548. - ;;
  27549. - beos*)
  27550. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  27551. - allow_undefined_flag_CXX=unsupported
  27552. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  27553. - # support --undefined. This deserves some investigation. FIXME
  27554. - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27555. - else
  27556. - ld_shlibs_CXX=no
  27557. - fi
  27558. - ;;
  27559. - chorus*)
  27560. - case $cc_basename in
  27561. - *)
  27562. - # FIXME: insert proper C++ library support
  27563. - ld_shlibs_CXX=no
  27564. - ;;
  27565. - esac
  27566. - ;;
  27567. - cygwin* | mingw* | pw32*)
  27568. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  27569. - # as there is no search path for DLLs.
  27570. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  27571. - allow_undefined_flag_CXX=unsupported
  27572. - always_export_symbols_CXX=no
  27573. - enable_shared_with_static_runtimes_CXX=yes
  27574. -
  27575. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  27576. - 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'
  27577. - # If the export-symbols file already is a .def file (1st line
  27578. - # is EXPORTS), use it as is; otherwise, prepend...
  27579. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  27580. - cp $export_symbols $output_objdir/$soname.def;
  27581. - else
  27582. - echo EXPORTS > $output_objdir/$soname.def;
  27583. - cat $export_symbols >> $output_objdir/$soname.def;
  27584. - fi~
  27585. - $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'
  27586. - else
  27587. - ld_shlibs_CXX=no
  27588. - fi
  27589. - ;;
  27590. - darwin* | rhapsody*)
  27591. - archive_cmds_need_lc_CXX=no
  27592. - hardcode_direct_CXX=no
  27593. - hardcode_automatic_CXX=yes
  27594. - hardcode_shlibpath_var_CXX=unsupported
  27595. - whole_archive_flag_spec_CXX=''
  27596. - link_all_deplibs_CXX=yes
  27597. - allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  27598. - if test "$GXX" = yes ; then
  27599. - output_verbose_link_cmd='echo'
  27600. - 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}"
  27601. - module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  27602. - 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}"
  27603. - 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}"
  27604. - if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  27605. - 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}"
  27606. - 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}"
  27607. - fi
  27608. - else
  27609. - case $cc_basename in
  27610. - xlc*)
  27611. - output_verbose_link_cmd='echo'
  27612. - 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'
  27613. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  27614. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  27615. - 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}'
  27616. - 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}'
  27617. - ;;
  27618. - *)
  27619. - ld_shlibs_CXX=no
  27620. - ;;
  27621. - esac
  27622. - fi
  27623. - ;;
  27624. - dgux*)
  27625. - case $cc_basename in
  27626. - ec++*)
  27627. - # FIXME: insert proper C++ library support
  27628. - ld_shlibs_CXX=no
  27629. - ;;
  27630. - ghcx*)
  27631. - # Green Hills C++ Compiler
  27632. - # FIXME: insert proper C++ library support
  27633. - ld_shlibs_CXX=no
  27634. - ;;
  27635. - *)
  27636. - # FIXME: insert proper C++ library support
  27637. - ld_shlibs_CXX=no
  27638. - ;;
  27639. - esac
  27640. - ;;
  27641. - freebsd[12]*)
  27642. - # C++ shared libraries reported to be fairly broken before switch to ELF
  27643. - ld_shlibs_CXX=no
  27644. - ;;
  27645. - freebsd-elf*)
  27646. - archive_cmds_need_lc_CXX=no
  27647. - ;;
  27648. - freebsd* | dragonfly*)
  27649. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  27650. - # conventions
  27651. - ld_shlibs_CXX=yes
  27652. - ;;
  27653. - gnu*)
  27654. - ;;
  27655. - hpux9*)
  27656. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  27657. - hardcode_libdir_separator_CXX=:
  27658. - export_dynamic_flag_spec_CXX='${wl}-E'
  27659. - hardcode_direct_CXX=yes
  27660. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  27661. - # but as the default
  27662. - # location of the library.
  27663. -
  27664. - case $cc_basename in
  27665. - CC*)
  27666. - # FIXME: insert proper C++ library support
  27667. - ld_shlibs_CXX=no
  27668. - ;;
  27669. - aCC*)
  27670. - 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'
  27671. - # Commands to make compiler produce verbose output that lists
  27672. - # what "hidden" libraries, object files and flags are used when
  27673. - # linking a shared library.
  27674. - #
  27675. - # There doesn't appear to be a way to prevent this compiler from
  27676. - # explicitly linking system object files so we need to strip them
  27677. - # from the output so that they don't get included in the library
  27678. - # dependencies.
  27679. - 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'
  27680. - ;;
  27681. - *)
  27682. - if test "$GXX" = yes; then
  27683. - 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'
  27684. - else
  27685. - # FIXME: insert proper C++ library support
  27686. - ld_shlibs_CXX=no
  27687. - fi
  27688. - ;;
  27689. - esac
  27690. - ;;
  27691. - hpux10*|hpux11*)
  27692. - if test $with_gnu_ld = no; then
  27693. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  27694. - hardcode_libdir_separator_CXX=:
  27695. - case $host_cpu in
  27696. - hppa*64*|ia64*) ;;
  27697. - *)
  27698. - export_dynamic_flag_spec_CXX='${wl}-E'
  27699. - ;;
  27700. - esac
  27701. - fi
  27702. - case $host_cpu in
  27703. - hppa*64*|ia64*)
  27704. - hardcode_direct_CXX=no
  27705. - hardcode_shlibpath_var_CXX=no
  27706. - ;;
  27707. - *)
  27708. - hardcode_direct_CXX=yes
  27709. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  27710. - # but as the default
  27711. - # location of the library.
  27712. - ;;
  27713. - esac
  27714. - case $cc_basename in
  27715. - CC*)
  27716. - # FIXME: insert proper C++ library support
  27717. - ld_shlibs_CXX=no
  27718. - ;;
  27719. - aCC*)
  27720. - case $host_cpu in
  27721. - hppa*64*)
  27722. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  27723. - ;;
  27724. - ia64*)
  27725. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  27726. - ;;
  27727. - *)
  27728. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  27729. - ;;
  27730. - esac
  27731. - # Commands to make compiler produce verbose output that lists
  27732. - # what "hidden" libraries, object files and flags are used when
  27733. - # linking a shared library.
  27734. - #
  27735. - # There doesn't appear to be a way to prevent this compiler from
  27736. - # explicitly linking system object files so we need to strip them
  27737. - # from the output so that they don't get included in the library
  27738. - # dependencies.
  27739. - 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'
  27740. - ;;
  27741. - *)
  27742. - if test "$GXX" = yes; then
  27743. - if test $with_gnu_ld = no; then
  27744. - case $host_cpu in
  27745. - hppa*64*)
  27746. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  27747. - ;;
  27748. - ia64*)
  27749. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  27750. - ;;
  27751. - *)
  27752. - 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'
  27753. - ;;
  27754. - esac
  27755. - fi
  27756. - else
  27757. - # FIXME: insert proper C++ library support
  27758. - ld_shlibs_CXX=no
  27759. - fi
  27760. - ;;
  27761. - esac
  27762. - ;;
  27763. - interix[3-9]*)
  27764. - hardcode_direct_CXX=no
  27765. - hardcode_shlibpath_var_CXX=no
  27766. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  27767. - export_dynamic_flag_spec_CXX='${wl}-E'
  27768. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  27769. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  27770. - # default) and relocated if they conflict, which is a slow very memory
  27771. - # consuming and fragmenting process. To avoid this, we pick a random,
  27772. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  27773. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  27774. - 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'
  27775. - 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'
  27776. - ;;
  27777. - irix5* | irix6*)
  27778. - case $cc_basename in
  27779. - CC*)
  27780. - # SGI C++
  27781. - 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'
  27782. -
  27783. - # Archives containing C++ object files must be created using
  27784. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  27785. - # necessary to make sure instantiated templates are included
  27786. - # in the archive.
  27787. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  27788. - ;;
  27789. - *)
  27790. - if test "$GXX" = yes; then
  27791. - if test "$with_gnu_ld" = no; then
  27792. - 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'
  27793. - else
  27794. - 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'
  27795. - fi
  27796. - fi
  27797. - link_all_deplibs_CXX=yes
  27798. - ;;
  27799. - esac
  27800. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  27801. - hardcode_libdir_separator_CXX=:
  27802. - ;;
  27803. - linux* | k*bsd*-gnu)
  27804. - case $cc_basename in
  27805. - KCC*)
  27806. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  27807. -
  27808. - # KCC will only create a shared library if the output file
  27809. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  27810. - # to its proper name (with version) after linking.
  27811. - 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'
  27812. - 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'
  27813. - # Commands to make compiler produce verbose output that lists
  27814. - # what "hidden" libraries, object files and flags are used when
  27815. - # linking a shared library.
  27816. - #
  27817. - # There doesn't appear to be a way to prevent this compiler from
  27818. - # explicitly linking system object files so we need to strip them
  27819. - # from the output so that they don't get included in the library
  27820. - # dependencies.
  27821. - 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'
  27822. -
  27823. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  27824. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  27825. -
  27826. - # Archives containing C++ object files must be created using
  27827. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  27828. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  27829. - ;;
  27830. - icpc*)
  27831. - # Intel C++
  27832. - with_gnu_ld=yes
  27833. - # version 8.0 and above of icpc choke on multiply defined symbols
  27834. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  27835. - # earlier do not add the objects themselves.
  27836. - case `$CC -V 2>&1` in
  27837. - *"Version 7."*)
  27838. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27839. - 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'
  27840. - ;;
  27841. - *) # Version 8.0 or newer
  27842. - tmp_idyn=
  27843. - case $host_cpu in
  27844. - ia64*) tmp_idyn=' -i_dynamic';;
  27845. - esac
  27846. - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27847. - 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'
  27848. - ;;
  27849. - esac
  27850. - archive_cmds_need_lc_CXX=no
  27851. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  27852. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  27853. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  27854. - ;;
  27855. - pgCC* | pgcpp*)
  27856. - # Portland Group C++ compiler
  27857. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  27858. - 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'
  27859. -
  27860. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  27861. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  27862. - 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'
  27863. - ;;
  27864. - cxx*)
  27865. - # Compaq C++
  27866. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27867. - 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'
  27868. - runpath_var=LD_RUN_PATH
  27869. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  27870. - hardcode_libdir_separator_CXX=:
  27871. - # Commands to make compiler produce verbose output that lists
  27872. - # what "hidden" libraries, object files and flags are used when
  27873. - # linking a shared library.
  27874. - #
  27875. - # There doesn't appear to be a way to prevent this compiler from
  27876. - # explicitly linking system object files so we need to strip them
  27877. - # from the output so that they don't get included in the library
  27878. - # dependencies.
  27879. - 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'
  27880. - ;;
  27881. - *)
  27882. - case `$CC -V 2>&1 | sed 5q` in
  27883. - *Sun\ C*)
  27884. - # Sun C++ 5.9
  27885. - no_undefined_flag_CXX=' -zdefs'
  27886. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  27887. - 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'
  27888. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  27889. - 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'
  27890. - # Not sure whether something based on
  27891. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  27892. - # would be better.
  27893. - output_verbose_link_cmd='echo'
  27894. -
  27895. - # Archives containing C++ object files must be created using
  27896. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  27897. - # necessary to make sure instantiated templates are included
  27898. - # in the archive.
  27899. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  27900. - ;;
  27901. - esac
  27902. - ;;
  27903. - esac
  27904. - ;;
  27905. - lynxos*)
  27906. - # FIXME: insert proper C++ library support
  27907. - ld_shlibs_CXX=no
  27908. - ;;
  27909. - m88k*)
  27910. - # FIXME: insert proper C++ library support
  27911. - ld_shlibs_CXX=no
  27912. - ;;
  27913. - mvs*)
  27914. - case $cc_basename in
  27915. - cxx*)
  27916. - # FIXME: insert proper C++ library support
  27917. - ld_shlibs_CXX=no
  27918. - ;;
  27919. - *)
  27920. - # FIXME: insert proper C++ library support
  27921. - ld_shlibs_CXX=no
  27922. - ;;
  27923. - esac
  27924. - ;;
  27925. - netbsd*)
  27926. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  27927. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  27928. - wlarc=
  27929. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  27930. - hardcode_direct_CXX=yes
  27931. - hardcode_shlibpath_var_CXX=no
  27932. - fi
  27933. - # Workaround some broken pre-1.5 toolchains
  27934. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  27935. - ;;
  27936. - openbsd2*)
  27937. - # C++ shared libraries are fairly broken
  27938. - ld_shlibs_CXX=no
  27939. - ;;
  27940. - openbsd*)
  27941. - if test -f /usr/libexec/ld.so; then
  27942. - hardcode_direct_CXX=yes
  27943. - hardcode_shlibpath_var_CXX=no
  27944. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  27945. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  27946. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  27947. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  27948. - export_dynamic_flag_spec_CXX='${wl}-E'
  27949. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  27950. - fi
  27951. - output_verbose_link_cmd='echo'
  27952. - else
  27953. - ld_shlibs_CXX=no
  27954. - fi
  27955. - ;;
  27956. - osf3*)
  27957. - case $cc_basename in
  27958. - KCC*)
  27959. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  27960. -
  27961. - # KCC will only create a shared library if the output file
  27962. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  27963. - # to its proper name (with version) after linking.
  27964. - 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'
  27965. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  27966. - hardcode_libdir_separator_CXX=:
  27967. - # Archives containing C++ object files must be created using
  27968. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  27969. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  27970. - ;;
  27971. - RCC*)
  27972. - # Rational C++ 2.4.1
  27973. - # FIXME: insert proper C++ library support
  27974. - ld_shlibs_CXX=no
  27975. - ;;
  27976. - cxx*)
  27977. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  27978. - 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'
  27979. -
  27980. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  27981. - hardcode_libdir_separator_CXX=:
  27982. -
  27983. - # Commands to make compiler produce verbose output that lists
  27984. - # what "hidden" libraries, object files and flags are used when
  27985. - # linking a shared library.
  27986. - #
  27987. - # There doesn't appear to be a way to prevent this compiler from
  27988. - # explicitly linking system object files so we need to strip them
  27989. - # from the output so that they don't get included in the library
  27990. - # dependencies.
  27991. - 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'
  27992. - ;;
  27993. - *)
  27994. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  27995. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  27996. - 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'
  27997. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  27998. - hardcode_libdir_separator_CXX=:
  27999. - # Commands to make compiler produce verbose output that lists
  28000. - # what "hidden" libraries, object files and flags are used when
  28001. - # linking a shared library.
  28002. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  28003. - else
  28004. - # FIXME: insert proper C++ library support
  28005. - ld_shlibs_CXX=no
  28006. - fi
  28007. - ;;
  28008. - esac
  28009. - ;;
  28010. - osf4* | osf5*)
  28011. - case $cc_basename in
  28012. - KCC*)
  28013. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  28014. -
  28015. - # KCC will only create a shared library if the output file
  28016. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  28017. - # to its proper name (with version) after linking.
  28018. - 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'
  28019. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  28020. - hardcode_libdir_separator_CXX=:
  28021. - # Archives containing C++ object files must be created using
  28022. - # the KAI C++ compiler.
  28023. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  28024. - ;;
  28025. - RCC*)
  28026. - # Rational C++ 2.4.1
  28027. - # FIXME: insert proper C++ library support
  28028. - ld_shlibs_CXX=no
  28029. - ;;
  28030. - cxx*)
  28031. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  28032. - 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'
  28033. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  28034. - echo "-hidden">> $lib.exp~
  28035. - $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~
  28036. - $rm $lib.exp'
  28037. -
  28038. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  28039. - hardcode_libdir_separator_CXX=:
  28040. -
  28041. - # Commands to make compiler produce verbose output that lists
  28042. - # what "hidden" libraries, object files and flags are used when
  28043. - # linking a shared library.
  28044. - #
  28045. - # There doesn't appear to be a way to prevent this compiler from
  28046. - # explicitly linking system object files so we need to strip them
  28047. - # from the output so that they don't get included in the library
  28048. - # dependencies.
  28049. - 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'
  28050. - ;;
  28051. - *)
  28052. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  28053. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  28054. - 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'
  28055. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  28056. - hardcode_libdir_separator_CXX=:
  28057. - # Commands to make compiler produce verbose output that lists
  28058. - # what "hidden" libraries, object files and flags are used when
  28059. - # linking a shared library.
  28060. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  28061. - else
  28062. - # FIXME: insert proper C++ library support
  28063. - ld_shlibs_CXX=no
  28064. - fi
  28065. - ;;
  28066. - esac
  28067. - ;;
  28068. - psos*)
  28069. - # FIXME: insert proper C++ library support
  28070. - ld_shlibs_CXX=no
  28071. - ;;
  28072. - sunos4*)
  28073. - case $cc_basename in
  28074. - CC*)
  28075. - # Sun C++ 4.x
  28076. - # FIXME: insert proper C++ library support
  28077. - ld_shlibs_CXX=no
  28078. - ;;
  28079. - lcc*)
  28080. - # Lucid
  28081. - # FIXME: insert proper C++ library support
  28082. - ld_shlibs_CXX=no
  28083. - ;;
  28084. - *)
  28085. - # FIXME: insert proper C++ library support
  28086. - ld_shlibs_CXX=no
  28087. - ;;
  28088. - esac
  28089. - ;;
  28090. - solaris*)
  28091. - case $cc_basename in
  28092. - CC*)
  28093. - # Sun C++ 4.2, 5.x and Centerline C++
  28094. - archive_cmds_need_lc_CXX=yes
  28095. - no_undefined_flag_CXX=' -zdefs'
  28096. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28097. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  28098. - $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'
  28099. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  28100. - hardcode_shlibpath_var_CXX=no
  28101. - case $host_os in
  28102. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  28103. - *)
  28104. - # The compiler driver will combine and reorder linker options,
  28105. - # but understands `-z linker_flag'.
  28106. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  28107. - whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  28108. - ;;
  28109. - esac
  28110. - link_all_deplibs_CXX=yes
  28111. - output_verbose_link_cmd='echo'
  28112. - # Archives containing C++ object files must be created using
  28113. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  28114. - # necessary to make sure instantiated templates are included
  28115. - # in the archive.
  28116. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  28117. - ;;
  28118. - gcx*)
  28119. - # Green Hills C++ Compiler
  28120. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  28121. - # The C++ compiler must be used to create the archive.
  28122. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  28123. - ;;
  28124. - *)
  28125. - # GNU C++ compiler with Solaris linker
  28126. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  28127. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  28128. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  28129. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  28130. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  28131. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  28132. - # Commands to make compiler produce verbose output that lists
  28133. - # what "hidden" libraries, object files and flags are used when
  28134. - # linking a shared library.
  28135. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  28136. - else
  28137. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  28138. - # platform.
  28139. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  28140. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  28141. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  28142. - # Commands to make compiler produce verbose output that lists
  28143. - # what "hidden" libraries, object files and flags are used when
  28144. - # linking a shared library.
  28145. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  28146. - fi
  28147. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  28148. - case $host_os in
  28149. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  28150. - *)
  28151. - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  28152. - ;;
  28153. - esac
  28154. - fi
  28155. - ;;
  28156. - esac
  28157. - ;;
  28158. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  28159. - no_undefined_flag_CXX='${wl}-z,text'
  28160. - archive_cmds_need_lc_CXX=no
  28161. - hardcode_shlibpath_var_CXX=no
  28162. - runpath_var='LD_RUN_PATH'
  28163. -
  28164. - case $cc_basename in
  28165. - CC*)
  28166. - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28167. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28168. - ;;
  28169. - *)
  28170. - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28171. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28172. - ;;
  28173. - esac
  28174. - ;;
  28175. - sysv5* | sco3.2v5* | sco5v6*)
  28176. - # Note: We can NOT use -z defs as we might desire, because we do not
  28177. - # link with -lc, and that would cause any symbols used from libc to
  28178. - # always be unresolved, which means just about no library would
  28179. - # ever link correctly. If we're not using GNU ld we use -z text
  28180. - # though, which does catch some bad symbols but isn't as heavy-handed
  28181. - # as -z defs.
  28182. - # For security reasons, it is highly recommended that you always
  28183. - # use absolute paths for naming shared libraries, and exclude the
  28184. - # DT_RUNPATH tag from executables and libraries. But doing so
  28185. - # requires that you compile everything twice, which is a pain.
  28186. - # So that behaviour is only enabled if SCOABSPATH is set to a
  28187. - # non-empty value in the environment. Most likely only useful for
  28188. - # creating official distributions of packages.
  28189. - # This is a hack until libtool officially supports absolute path
  28190. - # names for shared libraries.
  28191. - no_undefined_flag_CXX='${wl}-z,text'
  28192. - allow_undefined_flag_CXX='${wl}-z,nodefs'
  28193. - archive_cmds_need_lc_CXX=no
  28194. - hardcode_shlibpath_var_CXX=no
  28195. - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  28196. - hardcode_libdir_separator_CXX=':'
  28197. - link_all_deplibs_CXX=yes
  28198. - export_dynamic_flag_spec_CXX='${wl}-Bexport'
  28199. - runpath_var='LD_RUN_PATH'
  28200. -
  28201. - case $cc_basename in
  28202. - CC*)
  28203. - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28204. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28205. - ;;
  28206. - *)
  28207. - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28208. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28209. - ;;
  28210. - esac
  28211. - ;;
  28212. - tandem*)
  28213. - case $cc_basename in
  28214. - NCC*)
  28215. - # NonStop-UX NCC 3.20
  28216. - # FIXME: insert proper C++ library support
  28217. - ld_shlibs_CXX=no
  28218. - ;;
  28219. - *)
  28220. - # FIXME: insert proper C++ library support
  28221. - ld_shlibs_CXX=no
  28222. - ;;
  28223. - esac
  28224. - ;;
  28225. - vxworks*)
  28226. - # FIXME: insert proper C++ library support
  28227. - ld_shlibs_CXX=no
  28228. - ;;
  28229. - *)
  28230. - # FIXME: insert proper C++ library support
  28231. - ld_shlibs_CXX=no
  28232. - ;;
  28233. -esac
  28234. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  28235. -$as_echo "$ld_shlibs_CXX" >&6; }
  28236. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  28237. -GCC_CXX="$GXX"
  28238. -LD_CXX="$LD"
  28239. -cat > conftest.$ac_ext <<EOF
  28240. -class Foo
  28241. -{
  28242. -public:
  28243. - Foo (void) { a = 0; }
  28244. -private:
  28245. - int a;
  28246. -};
  28247. -EOF
  28248. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28249. - (eval $ac_compile) 2>&5
  28250. - ac_status=$?
  28251. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28252. - (exit $ac_status); }; then
  28253. - # Parse the compiler output and extract the necessary
  28254. - # objects, libraries and library flags.
  28255. - # Sentinel used to keep track of whether or not we are before
  28256. - # the conftest object file.
  28257. - pre_test_object_deps_done=no
  28258. - # The `*' in the case matches for architectures that use `case' in
  28259. - # $output_verbose_cmd can trigger glob expansion during the loop
  28260. - # eval without this substitution.
  28261. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  28262. - for p in `eval $output_verbose_link_cmd`; do
  28263. - case $p in
  28264. - -L* | -R* | -l*)
  28265. - # Some compilers place space between "-{L,R}" and the path.
  28266. - # Remove the space.
  28267. - if test $p = "-L" \
  28268. - || test $p = "-R"; then
  28269. - prev=$p
  28270. - continue
  28271. - else
  28272. - prev=
  28273. - fi
  28274. - if test "$pre_test_object_deps_done" = no; then
  28275. - case $p in
  28276. - -L* | -R*)
  28277. - # Internal compiler library paths should come after those
  28278. - # provided the user. The postdeps already come after the
  28279. - # user supplied libs so there is no need to process them.
  28280. - if test -z "$compiler_lib_search_path_CXX"; then
  28281. - compiler_lib_search_path_CXX="${prev}${p}"
  28282. - else
  28283. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  28284. - fi
  28285. - ;;
  28286. - # The "-l" case would never come before the object being
  28287. - # linked, so don't bother handling this case.
  28288. - esac
  28289. - else
  28290. - if test -z "$postdeps_CXX"; then
  28291. - postdeps_CXX="${prev}${p}"
  28292. - else
  28293. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  28294. - fi
  28295. - fi
  28296. - ;;
  28297. - *.$objext)
  28298. - # This assumes that the test object file only shows up
  28299. - # once in the compiler output.
  28300. - if test "$p" = "conftest.$objext"; then
  28301. - pre_test_object_deps_done=yes
  28302. - continue
  28303. - fi
  28304. - if test "$pre_test_object_deps_done" = no; then
  28305. - if test -z "$predep_objects_CXX"; then
  28306. - predep_objects_CXX="$p"
  28307. - else
  28308. - predep_objects_CXX="$predep_objects_CXX $p"
  28309. - fi
  28310. - else
  28311. - if test -z "$postdep_objects_CXX"; then
  28312. - postdep_objects_CXX="$p"
  28313. - else
  28314. - postdep_objects_CXX="$postdep_objects_CXX $p"
  28315. - fi
  28316. - fi
  28317. - ;;
  28318. - *) ;; # Ignore the rest.
  28319. - esac
  28320. - done
  28321. - # Clean up.
  28322. - rm -f a.out a.exe
  28323. -else
  28324. - echo "libtool.m4: error: problem compiling CXX test program"
  28325. -fi
  28326. -$rm -f confest.$objext
  28327. -compiler_lib_search_dirs_CXX=
  28328. -if test -n "$compiler_lib_search_path_CXX"; then
  28329. - compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  28330. -fi
  28331. -# PORTME: override above test on systems where it is broken
  28332. -case $host_os in
  28333. -interix[3-9]*)
  28334. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  28335. - # hack all around it, let's just trust "g++" to DTRT.
  28336. - predep_objects_CXX=
  28337. - postdep_objects_CXX=
  28338. - postdeps_CXX=
  28339. - ;;
  28340. -linux*)
  28341. - case `$CC -V 2>&1 | sed 5q` in
  28342. - *Sun\ C*)
  28343. - # Sun C++ 5.9
  28344. - #
  28345. - # The more standards-conforming stlport4 library is
  28346. - # incompatible with the Cstd library. Avoid specifying
  28347. - # it if it's in CXXFLAGS. Ignore libCrun as
  28348. - # -library=stlport4 depends on it.
  28349. - case " $CXX $CXXFLAGS " in
  28350. - *" -library=stlport4 "*)
  28351. - solaris_use_stlport4=yes
  28352. - ;;
  28353. - esac
  28354. - if test "$solaris_use_stlport4" != yes; then
  28355. - postdeps_CXX='-library=Cstd -library=Crun'
  28356. - fi
  28357. - ;;
  28358. - esac
  28359. - ;;
  28360. -solaris*)
  28361. - case $cc_basename in
  28362. - CC*)
  28363. - # The more standards-conforming stlport4 library is
  28364. - # incompatible with the Cstd library. Avoid specifying
  28365. - # it if it's in CXXFLAGS. Ignore libCrun as
  28366. - # -library=stlport4 depends on it.
  28367. - case " $CXX $CXXFLAGS " in
  28368. - *" -library=stlport4 "*)
  28369. - solaris_use_stlport4=yes
  28370. - ;;
  28371. - esac
  28372. - # Adding this requires a known-good setup of shared libraries for
  28373. - # Sun compiler versions before 5.6, else PIC objects from an old
  28374. - # archive will be linked into the output, leading to subtle bugs.
  28375. - if test "$solaris_use_stlport4" != yes; then
  28376. - postdeps_CXX='-library=Cstd -library=Crun'
  28377. - fi
  28378. - ;;
  28379. - esac
  28380. - ;;
  28381. -esac
  28382. -case " $postdeps_CXX " in
  28383. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  28384. -esac
  28385. -lt_prog_compiler_wl_CXX=
  28386. -lt_prog_compiler_pic_CXX=
  28387. -lt_prog_compiler_static_CXX=
  28388. -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  28389. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  28390. - # C++ specific cases for pic, static, wl, etc.
  28391. - if test "$GXX" = yes; then
  28392. - lt_prog_compiler_wl_CXX='-Wl,'
  28393. - lt_prog_compiler_static_CXX='-static'
  28394. - case $host_os in
  28395. - aix*)
  28396. - # All AIX code is PIC.
  28397. - if test "$host_cpu" = ia64; then
  28398. - # AIX 5 now supports IA64 processor
  28399. - lt_prog_compiler_static_CXX='-Bstatic'
  28400. - fi
  28401. - ;;
  28402. - amigaos*)
  28403. - # FIXME: we need at least 68020 code to build shared libraries, but
  28404. - # adding the `-m68020' flag to GCC prevents building anything better,
  28405. - # like `-m68040'.
  28406. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  28407. - ;;
  28408. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  28409. - # PIC is the default for these OSes.
  28410. - ;;
  28411. - mingw* | cygwin* | os2* | pw32*)
  28412. - # This hack is so that the source file can tell whether it is being
  28413. - # built for inclusion in a dll (and should export symbols for example).
  28414. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  28415. - # (--disable-auto-import) libraries
  28416. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  28417. - ;;
  28418. - darwin* | rhapsody*)
  28419. - # PIC is the default on this platform
  28420. - # Common symbols not allowed in MH_DYLIB files
  28421. - lt_prog_compiler_pic_CXX='-fno-common'
  28422. - ;;
  28423. - *djgpp*)
  28424. - # DJGPP does not support shared libraries at all
  28425. - lt_prog_compiler_pic_CXX=
  28426. - ;;
  28427. - interix[3-9]*)
  28428. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  28429. - # Instead, we relocate shared libraries at runtime.
  28430. - ;;
  28431. - sysv4*MP*)
  28432. - if test -d /usr/nec; then
  28433. - lt_prog_compiler_pic_CXX=-Kconform_pic
  28434. - fi
  28435. - ;;
  28436. - hpux*)
  28437. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  28438. - # not for PA HP-UX.
  28439. - case $host_cpu in
  28440. - hppa*64*|ia64*)
  28441. - ;;
  28442. - *)
  28443. - lt_prog_compiler_pic_CXX='-fPIC'
  28444. - ;;
  28445. - esac
  28446. - ;;
  28447. - *)
  28448. - lt_prog_compiler_pic_CXX='-fPIC'
  28449. - ;;
  28450. - esac
  28451. - else
  28452. - case $host_os in
  28453. - aix[4-9]*)
  28454. - # All AIX code is PIC.
  28455. - if test "$host_cpu" = ia64; then
  28456. - # AIX 5 now supports IA64 processor
  28457. - lt_prog_compiler_static_CXX='-Bstatic'
  28458. - else
  28459. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  28460. - fi
  28461. - ;;
  28462. - chorus*)
  28463. - case $cc_basename in
  28464. - cxch68*)
  28465. - # Green Hills C++ Compiler
  28466. - # _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"
  28467. - ;;
  28468. - esac
  28469. - ;;
  28470. - darwin*)
  28471. - # PIC is the default on this platform
  28472. - # Common symbols not allowed in MH_DYLIB files
  28473. - case $cc_basename in
  28474. - xlc*)
  28475. - lt_prog_compiler_pic_CXX='-qnocommon'
  28476. - lt_prog_compiler_wl_CXX='-Wl,'
  28477. - ;;
  28478. - esac
  28479. - ;;
  28480. - dgux*)
  28481. - case $cc_basename in
  28482. - ec++*)
  28483. - lt_prog_compiler_pic_CXX='-KPIC'
  28484. - ;;
  28485. - ghcx*)
  28486. - # Green Hills C++ Compiler
  28487. - lt_prog_compiler_pic_CXX='-pic'
  28488. - ;;
  28489. - *)
  28490. - ;;
  28491. - esac
  28492. - ;;
  28493. - freebsd* | dragonfly*)
  28494. - # FreeBSD uses GNU C++
  28495. - ;;
  28496. - hpux9* | hpux10* | hpux11*)
  28497. - case $cc_basename in
  28498. - CC*)
  28499. - lt_prog_compiler_wl_CXX='-Wl,'
  28500. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  28501. - if test "$host_cpu" != ia64; then
  28502. - lt_prog_compiler_pic_CXX='+Z'
  28503. - fi
  28504. - ;;
  28505. - aCC*)
  28506. - lt_prog_compiler_wl_CXX='-Wl,'
  28507. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  28508. - case $host_cpu in
  28509. - hppa*64*|ia64*)
  28510. - # +Z the default
  28511. - ;;
  28512. - *)
  28513. - lt_prog_compiler_pic_CXX='+Z'
  28514. - ;;
  28515. - esac
  28516. - ;;
  28517. - *)
  28518. - ;;
  28519. - esac
  28520. - ;;
  28521. - interix*)
  28522. - # This is c89, which is MS Visual C++ (no shared libs)
  28523. - # Anyone wants to do a port?
  28524. - ;;
  28525. - irix5* | irix6* | nonstopux*)
  28526. - case $cc_basename in
  28527. - CC*)
  28528. - lt_prog_compiler_wl_CXX='-Wl,'
  28529. - lt_prog_compiler_static_CXX='-non_shared'
  28530. - # CC pic flag -KPIC is the default.
  28531. - ;;
  28532. - *)
  28533. - ;;
  28534. - esac
  28535. - ;;
  28536. - linux* | k*bsd*-gnu)
  28537. - case $cc_basename in
  28538. - KCC*)
  28539. - # KAI C++ Compiler
  28540. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  28541. - lt_prog_compiler_pic_CXX='-fPIC'
  28542. - ;;
  28543. - icpc* | ecpc*)
  28544. - # Intel C++
  28545. - lt_prog_compiler_wl_CXX='-Wl,'
  28546. - lt_prog_compiler_pic_CXX='-KPIC'
  28547. - lt_prog_compiler_static_CXX='-static'
  28548. - ;;
  28549. - pgCC* | pgcpp*)
  28550. - # Portland Group C++ compiler.
  28551. - lt_prog_compiler_wl_CXX='-Wl,'
  28552. - lt_prog_compiler_pic_CXX='-fpic'
  28553. - lt_prog_compiler_static_CXX='-Bstatic'
  28554. - ;;
  28555. - cxx*)
  28556. - # Compaq C++
  28557. - # Make sure the PIC flag is empty. It appears that all Alpha
  28558. - # Linux and Compaq Tru64 Unix objects are PIC.
  28559. - lt_prog_compiler_pic_CXX=
  28560. - lt_prog_compiler_static_CXX='-non_shared'
  28561. - ;;
  28562. - *)
  28563. - case `$CC -V 2>&1 | sed 5q` in
  28564. - *Sun\ C*)
  28565. - # Sun C++ 5.9
  28566. - lt_prog_compiler_pic_CXX='-KPIC'
  28567. - lt_prog_compiler_static_CXX='-Bstatic'
  28568. - lt_prog_compiler_wl_CXX='-Qoption ld '
  28569. - ;;
  28570. - esac
  28571. - ;;
  28572. - esac
  28573. - ;;
  28574. - lynxos*)
  28575. - ;;
  28576. - m88k*)
  28577. - ;;
  28578. - mvs*)
  28579. - case $cc_basename in
  28580. - cxx*)
  28581. - lt_prog_compiler_pic_CXX='-W c,exportall'
  28582. - ;;
  28583. - *)
  28584. - ;;
  28585. - esac
  28586. - ;;
  28587. - netbsd*)
  28588. - ;;
  28589. - osf3* | osf4* | osf5*)
  28590. - case $cc_basename in
  28591. - KCC*)
  28592. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  28593. - ;;
  28594. - RCC*)
  28595. - # Rational C++ 2.4.1
  28596. - lt_prog_compiler_pic_CXX='-pic'
  28597. - ;;
  28598. - cxx*)
  28599. - # Digital/Compaq C++
  28600. - lt_prog_compiler_wl_CXX='-Wl,'
  28601. - # Make sure the PIC flag is empty. It appears that all Alpha
  28602. - # Linux and Compaq Tru64 Unix objects are PIC.
  28603. - lt_prog_compiler_pic_CXX=
  28604. - lt_prog_compiler_static_CXX='-non_shared'
  28605. - ;;
  28606. - *)
  28607. - ;;
  28608. - esac
  28609. - ;;
  28610. - psos*)
  28611. - ;;
  28612. - solaris*)
  28613. - case $cc_basename in
  28614. - CC*)
  28615. - # Sun C++ 4.2, 5.x and Centerline C++
  28616. - lt_prog_compiler_pic_CXX='-KPIC'
  28617. - lt_prog_compiler_static_CXX='-Bstatic'
  28618. - lt_prog_compiler_wl_CXX='-Qoption ld '
  28619. - ;;
  28620. - gcx*)
  28621. - # Green Hills C++ Compiler
  28622. - lt_prog_compiler_pic_CXX='-PIC'
  28623. - ;;
  28624. - *)
  28625. - ;;
  28626. - esac
  28627. - ;;
  28628. - sunos4*)
  28629. - case $cc_basename in
  28630. - CC*)
  28631. - # Sun C++ 4.x
  28632. - lt_prog_compiler_pic_CXX='-pic'
  28633. - lt_prog_compiler_static_CXX='-Bstatic'
  28634. - ;;
  28635. - lcc*)
  28636. - # Lucid
  28637. - lt_prog_compiler_pic_CXX='-pic'
  28638. - ;;
  28639. - *)
  28640. - ;;
  28641. - esac
  28642. - ;;
  28643. - tandem*)
  28644. - case $cc_basename in
  28645. - NCC*)
  28646. - # NonStop-UX NCC 3.20
  28647. - lt_prog_compiler_pic_CXX='-KPIC'
  28648. - ;;
  28649. - *)
  28650. - ;;
  28651. - esac
  28652. - ;;
  28653. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  28654. - case $cc_basename in
  28655. - CC*)
  28656. - lt_prog_compiler_wl_CXX='-Wl,'
  28657. - lt_prog_compiler_pic_CXX='-KPIC'
  28658. - lt_prog_compiler_static_CXX='-Bstatic'
  28659. - ;;
  28660. - esac
  28661. - ;;
  28662. - vxworks*)
  28663. - ;;
  28664. - *)
  28665. - lt_prog_compiler_can_build_shared_CXX=no
  28666. - ;;
  28667. - esac
  28668. - fi
  28669. -
  28670. -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  28671. -$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  28672. -
  28673. -#
  28674. -# Check to make sure the PIC flag actually works.
  28675. -#
  28676. -if test -n "$lt_prog_compiler_pic_CXX"; then
  28677. -
  28678. -{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  28679. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  28680. -if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  28681. - $as_echo_n "(cached) " >&6
  28682. -else
  28683. - lt_cv_prog_compiler_pic_works_CXX=no
  28684. - ac_outfile=conftest.$ac_objext
  28685. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28686. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  28687. - # Insert the option either (1) after the last *FLAGS variable, or
  28688. - # (2) before a word containing "conftest.", or (3) at the end.
  28689. - # Note that $ac_compile itself does not contain backslashes and begins
  28690. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  28691. - # The option is referenced via a variable to avoid confusing sed.
  28692. - lt_compile=`echo "$ac_compile" | $SED \
  28693. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  28694. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  28695. - -e 's:$: $lt_compiler_flag:'`
  28696. - (eval echo "\"\$as_me:13115: $lt_compile\"" >&5)
  28697. - (eval "$lt_compile" 2>conftest.err)
  28698. - ac_status=$?
  28699. - cat conftest.err >&5
  28700. - echo "$as_me:13119: \$? = $ac_status" >&5
  28701. - if (exit $ac_status) && test -s "$ac_outfile"; then
  28702. - # The compiler can only warn and ignore the option if not recognized
  28703. - # So say no if there are warnings other than the usual output.
  28704. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  28705. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  28706. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  28707. - lt_cv_prog_compiler_pic_works_CXX=yes
  28708. - fi
  28709. - fi
  28710. - $rm conftest*
  28711. -
  28712. -fi
  28713. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  28714. -$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  28715. -
  28716. -if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  28717. - case $lt_prog_compiler_pic_CXX in
  28718. - "" | " "*) ;;
  28719. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  28720. - esac
  28721. -else
  28722. - lt_prog_compiler_pic_CXX=
  28723. - lt_prog_compiler_can_build_shared_CXX=no
  28724. -fi
  28725. -
  28726. -fi
  28727. -case $host_os in
  28728. - # For platforms which do not support PIC, -DPIC is meaningless:
  28729. - *djgpp*)
  28730. - lt_prog_compiler_pic_CXX=
  28731. - ;;
  28732. - *)
  28733. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  28734. - ;;
  28735. -esac
  28736. -
  28737. -#
  28738. -# Check to make sure the static flag actually works.
  28739. -#
  28740. -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  28741. -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  28742. -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  28743. -if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  28744. - $as_echo_n "(cached) " >&6
  28745. -else
  28746. - lt_cv_prog_compiler_static_works_CXX=no
  28747. - save_LDFLAGS="$LDFLAGS"
  28748. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  28749. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  28750. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  28751. - # The linker can only warn and ignore the option if not recognized
  28752. - # So say no if there are warnings
  28753. - if test -s conftest.err; then
  28754. - # Append any errors to the config.log.
  28755. - cat conftest.err 1>&5
  28756. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  28757. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  28758. - if diff conftest.exp conftest.er2 >/dev/null; then
  28759. - lt_cv_prog_compiler_static_works_CXX=yes
  28760. - fi
  28761. - else
  28762. - lt_cv_prog_compiler_static_works_CXX=yes
  28763. - fi
  28764. - fi
  28765. - $rm -r conftest*
  28766. - LDFLAGS="$save_LDFLAGS"
  28767. -
  28768. -fi
  28769. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  28770. -$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  28771. -
  28772. -if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  28773. - :
  28774. -else
  28775. - lt_prog_compiler_static_CXX=
  28776. -fi
  28777. -
  28778. -
  28779. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  28780. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  28781. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  28782. - $as_echo_n "(cached) " >&6
  28783. -else
  28784. - lt_cv_prog_compiler_c_o_CXX=no
  28785. - $rm -r conftest 2>/dev/null
  28786. - mkdir conftest
  28787. - cd conftest
  28788. - mkdir out
  28789. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28790. -
  28791. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  28792. - # Insert the option either (1) after the last *FLAGS variable, or
  28793. - # (2) before a word containing "conftest.", or (3) at the end.
  28794. - # Note that $ac_compile itself does not contain backslashes and begins
  28795. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  28796. - lt_compile=`echo "$ac_compile" | $SED \
  28797. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  28798. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  28799. - -e 's:$: $lt_compiler_flag:'`
  28800. - (eval echo "\"\$as_me:13219: $lt_compile\"" >&5)
  28801. - (eval "$lt_compile" 2>out/conftest.err)
  28802. - ac_status=$?
  28803. - cat out/conftest.err >&5
  28804. - echo "$as_me:13223: \$? = $ac_status" >&5
  28805. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  28806. - then
  28807. - # The compiler can only warn and ignore the option if not recognized
  28808. - # So say no if there are warnings
  28809. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  28810. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  28811. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  28812. - lt_cv_prog_compiler_c_o_CXX=yes
  28813. - fi
  28814. - fi
  28815. - chmod u+w . 2>&5
  28816. - $rm conftest*
  28817. - # SGI C++ compiler will create directory out/ii_files/ for
  28818. - # template instantiation
  28819. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  28820. - $rm out/* && rmdir out
  28821. - cd ..
  28822. - rmdir conftest
  28823. - $rm conftest*
  28824. -
  28825. -fi
  28826. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  28827. -$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  28828. -
  28829. -
  28830. -hard_links="nottested"
  28831. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  28832. - # do not overwrite the value of need_locks provided by the user
  28833. - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  28834. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  28835. - hard_links=yes
  28836. - $rm conftest*
  28837. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  28838. - touch conftest.a
  28839. - ln conftest.a conftest.b 2>&5 || hard_links=no
  28840. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  28841. - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  28842. -$as_echo "$hard_links" >&6; }
  28843. - if test "$hard_links" = no; then
  28844. - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  28845. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  28846. - need_locks=warn
  28847. - fi
  28848. -else
  28849. - need_locks=no
  28850. -fi
  28851. -
  28852. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  28853. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  28854. -
  28855. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  28856. - case $host_os in
  28857. - aix[4-9]*)
  28858. - # If we're using GNU nm, then we don't want the "-C" option.
  28859. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  28860. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  28861. - 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'
  28862. - else
  28863. - 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'
  28864. - fi
  28865. - ;;
  28866. - pw32*)
  28867. - export_symbols_cmds_CXX="$ltdll_cmds"
  28868. - ;;
  28869. - cygwin* | mingw*)
  28870. - 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'
  28871. - ;;
  28872. - *)
  28873. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  28874. - ;;
  28875. - esac
  28876. - exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  28877. -
  28878. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  28879. -$as_echo "$ld_shlibs_CXX" >&6; }
  28880. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  28881. -
  28882. -#
  28883. -# Do we need to explicitly link libc?
  28884. -#
  28885. -case "x$archive_cmds_need_lc_CXX" in
  28886. -x|xyes)
  28887. - # Assume -lc should be added
  28888. - archive_cmds_need_lc_CXX=yes
  28889. -
  28890. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  28891. - case $archive_cmds_CXX in
  28892. - *'~'*)
  28893. - # FIXME: we may have to deal with multi-command sequences.
  28894. - ;;
  28895. - '$CC '*)
  28896. - # Test whether the compiler implicitly links with -lc since on some
  28897. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  28898. - # to ld, don't add -lc before -lgcc.
  28899. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  28900. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  28901. - $rm conftest*
  28902. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28903. -
  28904. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28905. - (eval $ac_compile) 2>&5
  28906. - ac_status=$?
  28907. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28908. - (exit $ac_status); } 2>conftest.err; then
  28909. - soname=conftest
  28910. - lib=conftest
  28911. - libobjs=conftest.$ac_objext
  28912. - deplibs=
  28913. - wl=$lt_prog_compiler_wl_CXX
  28914. - pic_flag=$lt_prog_compiler_pic_CXX
  28915. - compiler_flags=-v
  28916. - linker_flags=-v
  28917. - verstring=
  28918. - output_objdir=.
  28919. - libname=conftest
  28920. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  28921. - allow_undefined_flag_CXX=
  28922. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  28923. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  28924. - ac_status=$?
  28925. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28926. - (exit $ac_status); }
  28927. - then
  28928. - archive_cmds_need_lc_CXX=no
  28929. - else
  28930. - archive_cmds_need_lc_CXX=yes
  28931. - fi
  28932. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  28933. - else
  28934. - cat conftest.err 1>&5
  28935. - fi
  28936. - $rm conftest*
  28937. - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  28938. -$as_echo "$archive_cmds_need_lc_CXX" >&6; }
  28939. - ;;
  28940. - esac
  28941. - fi
  28942. - ;;
  28943. -esac
  28944. -
  28945. -{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  28946. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  28947. -library_names_spec=
  28948. -libname_spec='lib$name'
  28949. -soname_spec=
  28950. -shrext_cmds=".so"
  28951. -postinstall_cmds=
  28952. -postuninstall_cmds=
  28953. -finish_cmds=
  28954. -finish_eval=
  28955. -shlibpath_var=
  28956. -shlibpath_overrides_runpath=unknown
  28957. -version_type=none
  28958. -dynamic_linker="$host_os ld.so"
  28959. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  28960. -
  28961. -need_lib_prefix=unknown
  28962. -hardcode_into_libs=no
  28963. -
  28964. -# when you set need_version to no, make sure it does not cause -set_version
  28965. -# flags to be left without arguments
  28966. -need_version=unknown
  28967. -
  28968. -case $host_os in
  28969. -aix3*)
  28970. - version_type=linux
  28971. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  28972. - shlibpath_var=LIBPATH
  28973. -
  28974. - # AIX 3 has no versioning support, so we append a major version to the name.
  28975. - soname_spec='${libname}${release}${shared_ext}$major'
  28976. - ;;
  28977. -
  28978. -aix[4-9]*)
  28979. - version_type=linux
  28980. - need_lib_prefix=no
  28981. - need_version=no
  28982. - hardcode_into_libs=yes
  28983. - if test "$host_cpu" = ia64; then
  28984. - # AIX 5 supports IA64
  28985. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  28986. - shlibpath_var=LD_LIBRARY_PATH
  28987. - else
  28988. - # With GCC up to 2.95.x, collect2 would create an import file
  28989. - # for dependence libraries. The import file would start with
  28990. - # the line `#! .'. This would cause the generated library to
  28991. - # depend on `.', always an invalid library. This was fixed in
  28992. - # development snapshots of GCC prior to 3.0.
  28993. - case $host_os in
  28994. - aix4 | aix4.[01] | aix4.[01].*)
  28995. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  28996. - echo ' yes '
  28997. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  28998. - :
  28999. - else
  29000. - can_build_shared=no
  29001. - fi
  29002. - ;;
  29003. - esac
  29004. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  29005. - # soname into executable. Probably we can add versioning support to
  29006. - # collect2, so additional links can be useful in future.
  29007. - if test "$aix_use_runtimelinking" = yes; then
  29008. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  29009. - # instead of lib<name>.a to let people know that these are not
  29010. - # typical AIX shared libraries.
  29011. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29012. - else
  29013. - # We preserve .a as extension for shared libraries through AIX4.2
  29014. - # and later when we are not doing run time linking.
  29015. - library_names_spec='${libname}${release}.a $libname.a'
  29016. - soname_spec='${libname}${release}${shared_ext}$major'
  29017. - fi
  29018. - shlibpath_var=LIBPATH
  29019. - fi
  29020. - ;;
  29021. -
  29022. -amigaos*)
  29023. - library_names_spec='$libname.ixlibrary $libname.a'
  29024. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  29025. - 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'
  29026. - ;;
  29027. -
  29028. -beos*)
  29029. - library_names_spec='${libname}${shared_ext}'
  29030. - dynamic_linker="$host_os ld.so"
  29031. - shlibpath_var=LIBRARY_PATH
  29032. - ;;
  29033. -
  29034. -bsdi[45]*)
  29035. - version_type=linux
  29036. - need_version=no
  29037. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29038. - soname_spec='${libname}${release}${shared_ext}$major'
  29039. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  29040. - shlibpath_var=LD_LIBRARY_PATH
  29041. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  29042. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  29043. - # the default ld.so.conf also contains /usr/contrib/lib and
  29044. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  29045. - # libtool to hard-code these into programs
  29046. - ;;
  29047. -
  29048. -cygwin* | mingw* | pw32*)
  29049. - version_type=windows
  29050. - shrext_cmds=".dll"
  29051. - need_version=no
  29052. - need_lib_prefix=no
  29053. -
  29054. - case $GCC,$host_os in
  29055. - yes,cygwin* | yes,mingw* | yes,pw32*)
  29056. - library_names_spec='$libname.dll.a'
  29057. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  29058. - postinstall_cmds='base_file=`basename \${file}`~
  29059. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  29060. - dldir=$destdir/`dirname \$dlpath`~
  29061. - test -d \$dldir || mkdir -p \$dldir~
  29062. - $install_prog $dir/$dlname \$dldir/$dlname~
  29063. - chmod a+x \$dldir/$dlname'
  29064. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  29065. - dlpath=$dir/\$dldll~
  29066. - $rm \$dlpath'
  29067. - shlibpath_overrides_runpath=yes
  29068. -
  29069. - case $host_os in
  29070. - cygwin*)
  29071. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  29072. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  29073. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  29074. - ;;
  29075. - mingw*)
  29076. - # MinGW DLLs use traditional 'lib' prefix
  29077. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  29078. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  29079. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  29080. - # It is most probably a Windows format PATH printed by
  29081. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  29082. - # path with ; separators, and with drive letters. We can handle the
  29083. - # drive letters (cygwin fileutils understands them), so leave them,
  29084. - # especially as we might pass files found there to a mingw objdump,
  29085. - # which wouldn't understand a cygwinified path. Ahh.
  29086. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  29087. - else
  29088. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  29089. - fi
  29090. - ;;
  29091. - pw32*)
  29092. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  29093. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  29094. - ;;
  29095. - esac
  29096. - ;;
  29097. -
  29098. - *)
  29099. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  29100. - ;;
  29101. - esac
  29102. - dynamic_linker='Win32 ld.exe'
  29103. - # FIXME: first we should search . and the directory the executable is in
  29104. - shlibpath_var=PATH
  29105. - ;;
  29106. -
  29107. -darwin* | rhapsody*)
  29108. - dynamic_linker="$host_os dyld"
  29109. - version_type=darwin
  29110. - need_lib_prefix=no
  29111. - need_version=no
  29112. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  29113. - soname_spec='${libname}${release}${major}$shared_ext'
  29114. - shlibpath_overrides_runpath=yes
  29115. - shlibpath_var=DYLD_LIBRARY_PATH
  29116. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  29117. -
  29118. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  29119. - ;;
  29120. -
  29121. -dgux*)
  29122. - version_type=linux
  29123. - need_lib_prefix=no
  29124. - need_version=no
  29125. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  29126. - soname_spec='${libname}${release}${shared_ext}$major'
  29127. - shlibpath_var=LD_LIBRARY_PATH
  29128. - ;;
  29129. -
  29130. -freebsd1*)
  29131. - dynamic_linker=no
  29132. - ;;
  29133. -
  29134. -freebsd* | dragonfly*)
  29135. - # DragonFly does not have aout. When/if they implement a new
  29136. - # versioning mechanism, adjust this.
  29137. - if test -x /usr/bin/objformat; then
  29138. - objformat=`/usr/bin/objformat`
  29139. - else
  29140. - case $host_os in
  29141. - freebsd[123]*) objformat=aout ;;
  29142. - *) objformat=elf ;;
  29143. - esac
  29144. - fi
  29145. - version_type=freebsd-$objformat
  29146. - case $version_type in
  29147. - freebsd-elf*)
  29148. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  29149. - need_version=no
  29150. - need_lib_prefix=no
  29151. - ;;
  29152. - freebsd-*)
  29153. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  29154. - need_version=yes
  29155. - ;;
  29156. - esac
  29157. - shlibpath_var=LD_LIBRARY_PATH
  29158. - case $host_os in
  29159. - freebsd2*)
  29160. - shlibpath_overrides_runpath=yes
  29161. - ;;
  29162. - freebsd3.[01]* | freebsdelf3.[01]*)
  29163. - shlibpath_overrides_runpath=yes
  29164. - hardcode_into_libs=yes
  29165. - ;;
  29166. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  29167. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  29168. - shlibpath_overrides_runpath=no
  29169. - hardcode_into_libs=yes
  29170. - ;;
  29171. - *) # from 4.6 on, and DragonFly
  29172. - shlibpath_overrides_runpath=yes
  29173. - hardcode_into_libs=yes
  29174. - ;;
  29175. - esac
  29176. - ;;
  29177. -
  29178. -gnu*)
  29179. - version_type=linux
  29180. - need_lib_prefix=no
  29181. - need_version=no
  29182. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  29183. - soname_spec='${libname}${release}${shared_ext}$major'
  29184. - shlibpath_var=LD_LIBRARY_PATH
  29185. - hardcode_into_libs=yes
  29186. - ;;
  29187. -
  29188. -hpux9* | hpux10* | hpux11*)
  29189. - # Give a soname corresponding to the major version so that dld.sl refuses to
  29190. - # link against other versions.
  29191. - version_type=sunos
  29192. - need_lib_prefix=no
  29193. - need_version=no
  29194. - case $host_cpu in
  29195. - ia64*)
  29196. - shrext_cmds='.so'
  29197. - hardcode_into_libs=yes
  29198. - dynamic_linker="$host_os dld.so"
  29199. - shlibpath_var=LD_LIBRARY_PATH
  29200. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  29201. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29202. - soname_spec='${libname}${release}${shared_ext}$major'
  29203. - if test "X$HPUX_IA64_MODE" = X32; then
  29204. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  29205. - else
  29206. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  29207. - fi
  29208. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  29209. - ;;
  29210. - hppa*64*)
  29211. - shrext_cmds='.sl'
  29212. - hardcode_into_libs=yes
  29213. - dynamic_linker="$host_os dld.sl"
  29214. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  29215. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  29216. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29217. - soname_spec='${libname}${release}${shared_ext}$major'
  29218. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  29219. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  29220. - ;;
  29221. - *)
  29222. - shrext_cmds='.sl'
  29223. - dynamic_linker="$host_os dld.sl"
  29224. - shlibpath_var=SHLIB_PATH
  29225. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  29226. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29227. - soname_spec='${libname}${release}${shared_ext}$major'
  29228. - ;;
  29229. - esac
  29230. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  29231. - postinstall_cmds='chmod 555 $lib'
  29232. - ;;
  29233. -
  29234. -interix[3-9]*)
  29235. - version_type=linux
  29236. - need_lib_prefix=no
  29237. - need_version=no
  29238. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  29239. - soname_spec='${libname}${release}${shared_ext}$major'
  29240. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  29241. - shlibpath_var=LD_LIBRARY_PATH
  29242. - shlibpath_overrides_runpath=no
  29243. - hardcode_into_libs=yes
  29244. - ;;
  29245. -
  29246. -irix5* | irix6* | nonstopux*)
  29247. - case $host_os in
  29248. - nonstopux*) version_type=nonstopux ;;
  29249. - *)
  29250. - if test "$lt_cv_prog_gnu_ld" = yes; then
  29251. - version_type=linux
  29252. - else
  29253. - version_type=irix
  29254. - fi ;;
  29255. - esac
  29256. - need_lib_prefix=no
  29257. - need_version=no
  29258. - soname_spec='${libname}${release}${shared_ext}$major'
  29259. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  29260. - case $host_os in
  29261. - irix5* | nonstopux*)
  29262. - libsuff= shlibsuff=
  29263. - ;;
  29264. - *)
  29265. - case $LD in # libtool.m4 will add one of these switches to LD
  29266. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  29267. - libsuff= shlibsuff= libmagic=32-bit;;
  29268. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  29269. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  29270. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  29271. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  29272. - *) libsuff= shlibsuff= libmagic=never-match;;
  29273. - esac
  29274. - ;;
  29275. - esac
  29276. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  29277. - shlibpath_overrides_runpath=no
  29278. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  29279. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  29280. - hardcode_into_libs=yes
  29281. - ;;
  29282. -
  29283. -# No shared lib support for Linux oldld, aout, or coff.
  29284. -linux*oldld* | linux*aout* | linux*coff*)
  29285. - dynamic_linker=no
  29286. - ;;
  29287. -
  29288. -# This must be Linux ELF.
  29289. -linux* | k*bsd*-gnu)
  29290. - version_type=linux
  29291. - need_lib_prefix=no
  29292. - need_version=no
  29293. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29294. - soname_spec='${libname}${release}${shared_ext}$major'
  29295. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  29296. - shlibpath_var=LD_LIBRARY_PATH
  29297. - shlibpath_overrides_runpath=no
  29298. - # This implies no fast_install, which is unacceptable.
  29299. - # Some rework will be needed to allow for fast_install
  29300. - # before this can be enabled.
  29301. - hardcode_into_libs=yes
  29302. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  29303. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  29304. -
  29305. - # Append ld.so.conf contents to the search path
  29306. - if test -f /etc/ld.so.conf; then
  29307. - 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' ' '`
  29308. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  29309. - fi
  29310. -
  29311. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  29312. - # powerpc, because MkLinux only supported shared libraries with the
  29313. - # GNU dynamic linker. Since this was broken with cross compilers,
  29314. - # most powerpc-linux boxes support dynamic linking these days and
  29315. - # people can always --disable-shared, the test was removed, and we
  29316. - # assume the GNU/Linux dynamic linker is in use.
  29317. - dynamic_linker='GNU/Linux ld.so'
  29318. - ;;
  29319. -
  29320. -netbsd*)
  29321. - version_type=sunos
  29322. - need_lib_prefix=no
  29323. - need_version=no
  29324. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  29325. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  29326. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  29327. - dynamic_linker='NetBSD (a.out) ld.so'
  29328. - else
  29329. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  29330. - soname_spec='${libname}${release}${shared_ext}$major'
  29331. - dynamic_linker='NetBSD ld.elf_so'
  29332. - fi
  29333. - shlibpath_var=LD_LIBRARY_PATH
  29334. - shlibpath_overrides_runpath=yes
  29335. - hardcode_into_libs=yes
  29336. - ;;
  29337. -
  29338. -newsos6)
  29339. - version_type=linux
  29340. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29341. - shlibpath_var=LD_LIBRARY_PATH
  29342. - shlibpath_overrides_runpath=yes
  29343. - ;;
  29344. -
  29345. -nto-qnx*)
  29346. - version_type=linux
  29347. - need_lib_prefix=no
  29348. - need_version=no
  29349. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29350. - soname_spec='${libname}${release}${shared_ext}$major'
  29351. - shlibpath_var=LD_LIBRARY_PATH
  29352. - shlibpath_overrides_runpath=yes
  29353. - ;;
  29354. -
  29355. -openbsd*)
  29356. - version_type=sunos
  29357. - sys_lib_dlsearch_path_spec="/usr/lib"
  29358. - need_lib_prefix=no
  29359. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  29360. - case $host_os in
  29361. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  29362. - *) need_version=no ;;
  29363. - esac
  29364. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  29365. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  29366. - shlibpath_var=LD_LIBRARY_PATH
  29367. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  29368. - case $host_os in
  29369. - openbsd2.[89] | openbsd2.[89].*)
  29370. - shlibpath_overrides_runpath=no
  29371. - ;;
  29372. - *)
  29373. - shlibpath_overrides_runpath=yes
  29374. - ;;
  29375. - esac
  29376. - else
  29377. - shlibpath_overrides_runpath=yes
  29378. - fi
  29379. - ;;
  29380. -
  29381. -os2*)
  29382. - libname_spec='$name'
  29383. - shrext_cmds=".dll"
  29384. - need_lib_prefix=no
  29385. - library_names_spec='$libname${shared_ext} $libname.a'
  29386. - dynamic_linker='OS/2 ld.exe'
  29387. - shlibpath_var=LIBPATH
  29388. - ;;
  29389. -
  29390. -osf3* | osf4* | osf5*)
  29391. - version_type=osf
  29392. - need_lib_prefix=no
  29393. - need_version=no
  29394. - soname_spec='${libname}${release}${shared_ext}$major'
  29395. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29396. - shlibpath_var=LD_LIBRARY_PATH
  29397. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  29398. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  29399. - ;;
  29400. -
  29401. -rdos*)
  29402. - dynamic_linker=no
  29403. - ;;
  29404. -
  29405. -solaris*)
  29406. - version_type=linux
  29407. - need_lib_prefix=no
  29408. - need_version=no
  29409. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29410. - soname_spec='${libname}${release}${shared_ext}$major'
  29411. - shlibpath_var=LD_LIBRARY_PATH
  29412. - shlibpath_overrides_runpath=yes
  29413. - hardcode_into_libs=yes
  29414. - # ldd complains unless libraries are executable
  29415. - postinstall_cmds='chmod +x $lib'
  29416. - ;;
  29417. -
  29418. -sunos4*)
  29419. - version_type=sunos
  29420. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  29421. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  29422. - shlibpath_var=LD_LIBRARY_PATH
  29423. - shlibpath_overrides_runpath=yes
  29424. - if test "$with_gnu_ld" = yes; then
  29425. - need_lib_prefix=no
  29426. - fi
  29427. - need_version=yes
  29428. - ;;
  29429. -
  29430. -sysv4 | sysv4.3*)
  29431. - version_type=linux
  29432. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29433. - soname_spec='${libname}${release}${shared_ext}$major'
  29434. - shlibpath_var=LD_LIBRARY_PATH
  29435. - case $host_vendor in
  29436. - sni)
  29437. - shlibpath_overrides_runpath=no
  29438. - need_lib_prefix=no
  29439. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  29440. - runpath_var=LD_RUN_PATH
  29441. - ;;
  29442. - siemens)
  29443. - need_lib_prefix=no
  29444. - ;;
  29445. - motorola)
  29446. - need_lib_prefix=no
  29447. - need_version=no
  29448. - shlibpath_overrides_runpath=no
  29449. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  29450. - ;;
  29451. - esac
  29452. - ;;
  29453. -
  29454. -sysv4*MP*)
  29455. - if test -d /usr/nec ;then
  29456. - version_type=linux
  29457. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  29458. - soname_spec='$libname${shared_ext}.$major'
  29459. - shlibpath_var=LD_LIBRARY_PATH
  29460. - fi
  29461. - ;;
  29462. -
  29463. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  29464. - version_type=freebsd-elf
  29465. - need_lib_prefix=no
  29466. - need_version=no
  29467. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  29468. - soname_spec='${libname}${release}${shared_ext}$major'
  29469. - shlibpath_var=LD_LIBRARY_PATH
  29470. - hardcode_into_libs=yes
  29471. - if test "$with_gnu_ld" = yes; then
  29472. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  29473. - shlibpath_overrides_runpath=no
  29474. - else
  29475. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  29476. - shlibpath_overrides_runpath=yes
  29477. - case $host_os in
  29478. - sco3.2v5*)
  29479. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  29480. - ;;
  29481. - esac
  29482. - fi
  29483. - sys_lib_dlsearch_path_spec='/usr/lib'
  29484. - ;;
  29485. -
  29486. -uts4*)
  29487. - version_type=linux
  29488. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29489. - soname_spec='${libname}${release}${shared_ext}$major'
  29490. - shlibpath_var=LD_LIBRARY_PATH
  29491. - ;;
  29492. -
  29493. -*)
  29494. - dynamic_linker=no
  29495. - ;;
  29496. -esac
  29497. -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  29498. -$as_echo "$dynamic_linker" >&6; }
  29499. -test "$dynamic_linker" = no && can_build_shared=no
  29500. -
  29501. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  29502. - $as_echo_n "(cached) " >&6
  29503. -else
  29504. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  29505. -fi
  29506. -
  29507. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  29508. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  29509. - $as_echo_n "(cached) " >&6
  29510. -else
  29511. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  29512. -fi
  29513. -
  29514. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  29515. -
  29516. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  29517. -if test "$GCC" = yes; then
  29518. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  29519. -fi
  29520. -
  29521. -{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  29522. -$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  29523. -hardcode_action_CXX=
  29524. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  29525. - test -n "$runpath_var_CXX" || \
  29526. - test "X$hardcode_automatic_CXX" = "Xyes" ; then
  29527. -
  29528. - # We can hardcode non-existant directories.
  29529. - if test "$hardcode_direct_CXX" != no &&
  29530. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  29531. - # have to relink, otherwise we might link with an installed library
  29532. - # when we should be linking with a yet-to-be-installed one
  29533. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  29534. - test "$hardcode_minus_L_CXX" != no; then
  29535. - # Linking always hardcodes the temporary library directory.
  29536. - hardcode_action_CXX=relink
  29537. - else
  29538. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  29539. - hardcode_action_CXX=immediate
  29540. - fi
  29541. -else
  29542. - # We cannot hardcode anything, or else we can only hardcode existing
  29543. - # directories.
  29544. - hardcode_action_CXX=unsupported
  29545. -fi
  29546. -{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  29547. -$as_echo "$hardcode_action_CXX" >&6; }
  29548. -
  29549. -if test "$hardcode_action_CXX" = relink; then
  29550. - # Fast installation is not supported
  29551. - enable_fast_install=no
  29552. -elif test "$shlibpath_overrides_runpath" = yes ||
  29553. - test "$enable_shared" = no; then
  29554. - # Fast installation is not necessary
  29555. - enable_fast_install=needless
  29556. -fi
  29557. -
  29558. -
  29559. -# The else clause should only fire when bootstrapping the
  29560. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  29561. -# with your package, and you will get complaints that there are
  29562. -# no rules to generate ltmain.sh.
  29563. -if test -f "$ltmain"; then
  29564. - # See if we are running on zsh, and set the options which allow our commands through
  29565. - # without removal of \ escapes.
  29566. - if test -n "${ZSH_VERSION+set}" ; then
  29567. - setopt NO_GLOB_SUBST
  29568. - fi
  29569. - # Now quote all the things that may contain metacharacters while being
  29570. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  29571. - # variables and quote the copies for generation of the libtool script.
  29572. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  29573. - SED SHELL STRIP \
  29574. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  29575. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  29576. - deplibs_check_method reload_flag reload_cmds need_locks \
  29577. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  29578. - lt_cv_sys_global_symbol_to_c_name_address \
  29579. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  29580. - old_postinstall_cmds old_postuninstall_cmds \
  29581. - compiler_CXX \
  29582. - CC_CXX \
  29583. - LD_CXX \
  29584. - lt_prog_compiler_wl_CXX \
  29585. - lt_prog_compiler_pic_CXX \
  29586. - lt_prog_compiler_static_CXX \
  29587. - lt_prog_compiler_no_builtin_flag_CXX \
  29588. - export_dynamic_flag_spec_CXX \
  29589. - thread_safe_flag_spec_CXX \
  29590. - whole_archive_flag_spec_CXX \
  29591. - enable_shared_with_static_runtimes_CXX \
  29592. - old_archive_cmds_CXX \
  29593. - old_archive_from_new_cmds_CXX \
  29594. - predep_objects_CXX \
  29595. - postdep_objects_CXX \
  29596. - predeps_CXX \
  29597. - postdeps_CXX \
  29598. - compiler_lib_search_path_CXX \
  29599. - compiler_lib_search_dirs_CXX \
  29600. - archive_cmds_CXX \
  29601. - archive_expsym_cmds_CXX \
  29602. - postinstall_cmds_CXX \
  29603. - postuninstall_cmds_CXX \
  29604. - old_archive_from_expsyms_cmds_CXX \
  29605. - allow_undefined_flag_CXX \
  29606. - no_undefined_flag_CXX \
  29607. - export_symbols_cmds_CXX \
  29608. - hardcode_libdir_flag_spec_CXX \
  29609. - hardcode_libdir_flag_spec_ld_CXX \
  29610. - hardcode_libdir_separator_CXX \
  29611. - hardcode_automatic_CXX \
  29612. - module_cmds_CXX \
  29613. - module_expsym_cmds_CXX \
  29614. - lt_cv_prog_compiler_c_o_CXX \
  29615. - fix_srcfile_path_CXX \
  29616. - exclude_expsyms_CXX \
  29617. - include_expsyms_CXX; do
  29618. -
  29619. - case $var in
  29620. - old_archive_cmds_CXX | \
  29621. - old_archive_from_new_cmds_CXX | \
  29622. - archive_cmds_CXX | \
  29623. - archive_expsym_cmds_CXX | \
  29624. - module_cmds_CXX | \
  29625. - module_expsym_cmds_CXX | \
  29626. - old_archive_from_expsyms_cmds_CXX | \
  29627. - export_symbols_cmds_CXX | \
  29628. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  29629. - postinstall_cmds | postuninstall_cmds | \
  29630. - old_postinstall_cmds | old_postuninstall_cmds | \
  29631. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  29632. - # Double-quote double-evaled strings.
  29633. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  29634. - ;;
  29635. - *)
  29636. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  29637. - ;;
  29638. - esac
  29639. - done
  29640. -
  29641. - case $lt_echo in
  29642. - *'\$0 --fallback-echo"')
  29643. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  29644. - ;;
  29645. - esac
  29646. -
  29647. -cfgfile="$ofile"
  29648. -
  29649. - cat <<__EOF__ >> "$cfgfile"
  29650. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  29651. -
  29652. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  29653. -
  29654. -# Shell to use when invoking shell scripts.
  29655. -SHELL=$lt_SHELL
  29656. -
  29657. -# Whether or not to build shared libraries.
  29658. -build_libtool_libs=$enable_shared
  29659. -
  29660. -# Whether or not to build static libraries.
  29661. -build_old_libs=$enable_static
  29662. -
  29663. -# Whether or not to add -lc for building shared libraries.
  29664. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  29665. -
  29666. -# Whether or not to disallow shared libs when runtime libs are static
  29667. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  29668. -
  29669. -# Whether or not to optimize for fast installation.
  29670. -fast_install=$enable_fast_install
  29671. -
  29672. -# The host system.
  29673. -host_alias=$host_alias
  29674. -host=$host
  29675. -host_os=$host_os
  29676. -
  29677. -# The build system.
  29678. -build_alias=$build_alias
  29679. -build=$build
  29680. -build_os=$build_os
  29681. -
  29682. -# An echo program that does not interpret backslashes.
  29683. -echo=$lt_echo
  29684. -
  29685. -# The archiver.
  29686. -AR=$lt_AR
  29687. -AR_FLAGS=$lt_AR_FLAGS
  29688. -
  29689. -# A C compiler.
  29690. -LTCC=$lt_LTCC
  29691. -
  29692. -# LTCC compiler flags.
  29693. -LTCFLAGS=$lt_LTCFLAGS
  29694. -
  29695. -# A language-specific compiler.
  29696. -CC=$lt_compiler_CXX
  29697. -
  29698. -# Is the compiler the GNU C compiler?
  29699. -with_gcc=$GCC_CXX
  29700. -
  29701. -# An ERE matcher.
  29702. -EGREP=$lt_EGREP
  29703. -
  29704. -# The linker used to build libraries.
  29705. -LD=$lt_LD_CXX
  29706. -
  29707. -# Whether we need hard or soft links.
  29708. -LN_S=$lt_LN_S
  29709. -
  29710. -# A BSD-compatible nm program.
  29711. -NM=$lt_NM
  29712. -
  29713. -# A symbol stripping program
  29714. -STRIP=$lt_STRIP
  29715. -
  29716. -# Used to examine libraries when file_magic_cmd begins "file"
  29717. -MAGIC_CMD=$MAGIC_CMD
  29718. -
  29719. -# Used on cygwin: DLL creation program.
  29720. -DLLTOOL="$DLLTOOL"
  29721. -
  29722. -# Used on cygwin: object dumper.
  29723. -OBJDUMP="$OBJDUMP"
  29724. -
  29725. -# Used on cygwin: assembler.
  29726. -AS="$AS"
  29727. -
  29728. -# The name of the directory that contains temporary libtool files.
  29729. -objdir=$objdir
  29730. -
  29731. -# How to create reloadable object files.
  29732. -reload_flag=$lt_reload_flag
  29733. -reload_cmds=$lt_reload_cmds
  29734. -
  29735. -# How to pass a linker flag through the compiler.
  29736. -wl=$lt_lt_prog_compiler_wl_CXX
  29737. -
  29738. -# Object file suffix (normally "o").
  29739. -objext="$ac_objext"
  29740. -
  29741. -# Old archive suffix (normally "a").
  29742. -libext="$libext"
  29743. -
  29744. -# Shared library suffix (normally ".so").
  29745. -shrext_cmds='$shrext_cmds'
  29746. -
  29747. -# Executable file suffix (normally "").
  29748. -exeext="$exeext"
  29749. -
  29750. -# Additional compiler flags for building library objects.
  29751. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  29752. -pic_mode=$pic_mode
  29753. -
  29754. -# What is the maximum length of a command?
  29755. -max_cmd_len=$lt_cv_sys_max_cmd_len
  29756. -
  29757. -# Does compiler simultaneously support -c and -o options?
  29758. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  29759. -
  29760. -# Must we lock files when doing compilation?
  29761. -need_locks=$lt_need_locks
  29762. -
  29763. -# Do we need the lib prefix for modules?
  29764. -need_lib_prefix=$need_lib_prefix
  29765. -
  29766. -# Do we need a version for libraries?
  29767. -need_version=$need_version
  29768. -
  29769. -# Whether dlopen is supported.
  29770. -dlopen_support=$enable_dlopen
  29771. -
  29772. -# Whether dlopen of programs is supported.
  29773. -dlopen_self=$enable_dlopen_self
  29774. -
  29775. -# Whether dlopen of statically linked programs is supported.
  29776. -dlopen_self_static=$enable_dlopen_self_static
  29777. -
  29778. -# Compiler flag to prevent dynamic linking.
  29779. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  29780. -
  29781. -# Compiler flag to turn off builtin functions.
  29782. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  29783. -
  29784. -# Compiler flag to allow reflexive dlopens.
  29785. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  29786. -
  29787. -# Compiler flag to generate shared objects directly from archives.
  29788. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  29789. -
  29790. -# Compiler flag to generate thread-safe objects.
  29791. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  29792. -
  29793. -# Library versioning type.
  29794. -version_type=$version_type
  29795. -
  29796. -# Format of library name prefix.
  29797. -libname_spec=$lt_libname_spec
  29798. -
  29799. -# List of archive names. First name is the real one, the rest are links.
  29800. -# The last name is the one that the linker finds with -lNAME.
  29801. -library_names_spec=$lt_library_names_spec
  29802. -
  29803. -# The coded name of the library, if different from the real name.
  29804. -soname_spec=$lt_soname_spec
  29805. -
  29806. -# Commands used to build and install an old-style archive.
  29807. -RANLIB=$lt_RANLIB
  29808. -old_archive_cmds=$lt_old_archive_cmds_CXX
  29809. -old_postinstall_cmds=$lt_old_postinstall_cmds
  29810. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  29811. -
  29812. -# Create an old-style archive from a shared archive.
  29813. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  29814. -
  29815. -# Create a temporary old-style archive to link instead of a shared archive.
  29816. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  29817. -
  29818. -# Commands used to build and install a shared archive.
  29819. -archive_cmds=$lt_archive_cmds_CXX
  29820. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  29821. -postinstall_cmds=$lt_postinstall_cmds
  29822. -postuninstall_cmds=$lt_postuninstall_cmds
  29823. -
  29824. -# Commands used to build a loadable module (assumed same as above if empty)
  29825. -module_cmds=$lt_module_cmds_CXX
  29826. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  29827. -
  29828. -# Commands to strip libraries.
  29829. -old_striplib=$lt_old_striplib
  29830. -striplib=$lt_striplib
  29831. -
  29832. -# Dependencies to place before the objects being linked to create a
  29833. -# shared library.
  29834. -predep_objects=$lt_predep_objects_CXX
  29835. -
  29836. -# Dependencies to place after the objects being linked to create a
  29837. -# shared library.
  29838. -postdep_objects=$lt_postdep_objects_CXX
  29839. -
  29840. -# Dependencies to place before the objects being linked to create a
  29841. -# shared library.
  29842. -predeps=$lt_predeps_CXX
  29843. -
  29844. -# Dependencies to place after the objects being linked to create a
  29845. -# shared library.
  29846. -postdeps=$lt_postdeps_CXX
  29847. -
  29848. -# The directories searched by this compiler when creating a shared
  29849. -# library
  29850. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  29851. -
  29852. -# The library search path used internally by the compiler when linking
  29853. -# a shared library.
  29854. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  29855. -
  29856. -# Method to check whether dependent libraries are shared objects.
  29857. -deplibs_check_method=$lt_deplibs_check_method
  29858. -
  29859. -# Command to use when deplibs_check_method == file_magic.
  29860. -file_magic_cmd=$lt_file_magic_cmd
  29861. -
  29862. -# Flag that allows shared libraries with undefined symbols to be built.
  29863. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  29864. -
  29865. -# Flag that forces no undefined symbols.
  29866. -no_undefined_flag=$lt_no_undefined_flag_CXX
  29867. -
  29868. -# Commands used to finish a libtool library installation in a directory.
  29869. -finish_cmds=$lt_finish_cmds
  29870. -
  29871. -# Same as above, but a single script fragment to be evaled but not shown.
  29872. -finish_eval=$lt_finish_eval
  29873. -
  29874. -# Take the output of nm and produce a listing of raw symbols and C names.
  29875. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  29876. -
  29877. -# Transform the output of nm in a proper C declaration
  29878. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  29879. -
  29880. -# Transform the output of nm in a C name address pair
  29881. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  29882. -
  29883. -# This is the shared library runtime path variable.
  29884. -runpath_var=$runpath_var
  29885. -
  29886. -# This is the shared library path variable.
  29887. -shlibpath_var=$shlibpath_var
  29888. -
  29889. -# Is shlibpath searched before the hard-coded library search path?
  29890. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  29891. -
  29892. -# How to hardcode a shared library path into an executable.
  29893. -hardcode_action=$hardcode_action_CXX
  29894. -
  29895. -# Whether we should hardcode library paths into libraries.
  29896. -hardcode_into_libs=$hardcode_into_libs
  29897. -
  29898. -# Flag to hardcode \$libdir into a binary during linking.
  29899. -# This must work even if \$libdir does not exist.
  29900. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  29901. -
  29902. -# If ld is used when linking, flag to hardcode \$libdir into
  29903. -# a binary during linking. This must work even if \$libdir does
  29904. -# not exist.
  29905. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  29906. -
  29907. -# Whether we need a single -rpath flag with a separated argument.
  29908. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  29909. -
  29910. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  29911. -# resulting binary.
  29912. -hardcode_direct=$hardcode_direct_CXX
  29913. -
  29914. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  29915. -# resulting binary.
  29916. -hardcode_minus_L=$hardcode_minus_L_CXX
  29917. -
  29918. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  29919. -# the resulting binary.
  29920. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  29921. -
  29922. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  29923. -# and all subsequent libraries and executables linked against it.
  29924. -hardcode_automatic=$hardcode_automatic_CXX
  29925. -
  29926. -# Variables whose values should be saved in libtool wrapper scripts and
  29927. -# restored at relink time.
  29928. -variables_saved_for_relink="$variables_saved_for_relink"
  29929. -
  29930. -# Whether libtool must link a program against all its dependency libraries.
  29931. -link_all_deplibs=$link_all_deplibs_CXX
  29932. -
  29933. -# Compile-time system search path for libraries
  29934. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  29935. -
  29936. -# Run-time system search path for libraries
  29937. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  29938. -
  29939. -# Fix the shell variable \$srcfile for the compiler.
  29940. -fix_srcfile_path=$lt_fix_srcfile_path
  29941. -
  29942. -# Set to yes if exported symbols are required.
  29943. -always_export_symbols=$always_export_symbols_CXX
  29944. -
  29945. -# The commands to list exported symbols.
  29946. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  29947. -
  29948. -# The commands to extract the exported symbol list from a shared archive.
  29949. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  29950. -
  29951. -# Symbols that should not be listed in the preloaded symbols.
  29952. -exclude_expsyms=$lt_exclude_expsyms_CXX
  29953. -
  29954. -# Symbols that must always be exported.
  29955. -include_expsyms=$lt_include_expsyms_CXX
  29956. -
  29957. -# ### END LIBTOOL TAG CONFIG: $tagname
  29958. -
  29959. -__EOF__
  29960. -
  29961. -
  29962. -else
  29963. - # If there is no Makefile yet, we rely on a make rule to execute
  29964. - # `config.status --recheck' to rerun these tests and create the
  29965. - # libtool script then.
  29966. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  29967. - if test -f "$ltmain_in"; then
  29968. - test -f Makefile && make "$ltmain"
  29969. - fi
  29970. -fi
  29971. -
  29972. -
  29973. -ac_ext=c
  29974. -ac_cpp='$CPP $CPPFLAGS'
  29975. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29976. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29977. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29978. -
  29979. -CC=$lt_save_CC
  29980. -LDCXX=$LD
  29981. -LD=$lt_save_LD
  29982. -GCC=$lt_save_GCC
  29983. -with_gnu_ldcxx=$with_gnu_ld
  29984. -with_gnu_ld=$lt_save_with_gnu_ld
  29985. -lt_cv_path_LDCXX=$lt_cv_path_LD
  29986. -lt_cv_path_LD=$lt_save_path_LD
  29987. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  29988. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  29989. -
  29990. - else
  29991. - tagname=""
  29992. - fi
  29993. - ;;
  29994. -
  29995. - F77)
  29996. - if test -n "$F77" && test "X$F77" != "Xno"; then
  29997. -
  29998. -ac_ext=f
  29999. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  30000. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30001. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  30002. -
  30003. -
  30004. -archive_cmds_need_lc_F77=no
  30005. -allow_undefined_flag_F77=
  30006. -always_export_symbols_F77=no
  30007. -archive_expsym_cmds_F77=
  30008. -export_dynamic_flag_spec_F77=
  30009. -hardcode_direct_F77=no
  30010. -hardcode_libdir_flag_spec_F77=
  30011. -hardcode_libdir_flag_spec_ld_F77=
  30012. -hardcode_libdir_separator_F77=
  30013. -hardcode_minus_L_F77=no
  30014. -hardcode_automatic_F77=no
  30015. -module_cmds_F77=
  30016. -module_expsym_cmds_F77=
  30017. -link_all_deplibs_F77=unknown
  30018. -old_archive_cmds_F77=$old_archive_cmds
  30019. -no_undefined_flag_F77=
  30020. -whole_archive_flag_spec_F77=
  30021. -enable_shared_with_static_runtimes_F77=no
  30022. -
  30023. -# Source file extension for f77 test sources.
  30024. -ac_ext=f
  30025. -
  30026. -# Object file extension for compiled f77 test sources.
  30027. -objext=o
  30028. -objext_F77=$objext
  30029. -
  30030. -# Code to be used in simple compile tests
  30031. -lt_simple_compile_test_code="\
  30032. - subroutine t
  30033. - return
  30034. - end
  30035. -"
  30036. -
  30037. -# Code to be used in simple link tests
  30038. -lt_simple_link_test_code="\
  30039. - program t
  30040. - end
  30041. -"
  30042. -
  30043. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  30044. -
  30045. -# If no C compiler was specified, use CC.
  30046. -LTCC=${LTCC-"$CC"}
  30047. -
  30048. -# If no C compiler flags were specified, use CFLAGS.
  30049. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  30050. -
  30051. -# Allow CC to be a program name with arguments.
  30052. -compiler=$CC
  30053. -
  30054. -
  30055. -# save warnings/boilerplate of simple test code
  30056. -ac_outfile=conftest.$ac_objext
  30057. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  30058. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  30059. -_lt_compiler_boilerplate=`cat conftest.err`
  30060. -$rm conftest*
  30061. -
  30062. -ac_outfile=conftest.$ac_objext
  30063. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  30064. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  30065. -_lt_linker_boilerplate=`cat conftest.err`
  30066. -$rm -r conftest*
  30067. -
  30068. -
  30069. -# Allow CC to be a program name with arguments.
  30070. -lt_save_CC="$CC"
  30071. -CC=${F77-"f77"}
  30072. -compiler=$CC
  30073. -compiler_F77=$CC
  30074. -for cc_temp in $compiler""; do
  30075. - case $cc_temp in
  30076. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  30077. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  30078. - \-*) ;;
  30079. - *) break;;
  30080. - esac
  30081. -done
  30082. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  30083. -
  30084. -
  30085. -{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  30086. -$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  30087. -{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  30088. -$as_echo "$can_build_shared" >&6; }
  30089. -
  30090. -{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  30091. -$as_echo_n "checking whether to build shared libraries... " >&6; }
  30092. -test "$can_build_shared" = "no" && enable_shared=no
  30093. -
  30094. -# On AIX, shared libraries and static libraries use the same namespace, and
  30095. -# are all built from PIC.
  30096. -case $host_os in
  30097. -aix3*)
  30098. - test "$enable_shared" = yes && enable_static=no
  30099. - if test -n "$RANLIB"; then
  30100. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  30101. - postinstall_cmds='$RANLIB $lib'
  30102. - fi
  30103. - ;;
  30104. -aix[4-9]*)
  30105. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  30106. - test "$enable_shared" = yes && enable_static=no
  30107. - fi
  30108. - ;;
  30109. -esac
  30110. -{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  30111. -$as_echo "$enable_shared" >&6; }
  30112. -
  30113. -{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  30114. -$as_echo_n "checking whether to build static libraries... " >&6; }
  30115. -# Make sure either enable_shared or enable_static is yes.
  30116. -test "$enable_shared" = yes || enable_static=yes
  30117. -{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  30118. -$as_echo "$enable_static" >&6; }
  30119. -
  30120. -GCC_F77="$G77"
  30121. -LD_F77="$LD"
  30122. -
  30123. -lt_prog_compiler_wl_F77=
  30124. -lt_prog_compiler_pic_F77=
  30125. -lt_prog_compiler_static_F77=
  30126. -
  30127. -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  30128. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  30129. -
  30130. - if test "$GCC" = yes; then
  30131. - lt_prog_compiler_wl_F77='-Wl,'
  30132. - lt_prog_compiler_static_F77='-static'
  30133. -
  30134. - case $host_os in
  30135. - aix*)
  30136. - # All AIX code is PIC.
  30137. - if test "$host_cpu" = ia64; then
  30138. - # AIX 5 now supports IA64 processor
  30139. - lt_prog_compiler_static_F77='-Bstatic'
  30140. - fi
  30141. - ;;
  30142. -
  30143. - amigaos*)
  30144. - # FIXME: we need at least 68020 code to build shared libraries, but
  30145. - # adding the `-m68020' flag to GCC prevents building anything better,
  30146. - # like `-m68040'.
  30147. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  30148. - ;;
  30149. -
  30150. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  30151. - # PIC is the default for these OSes.
  30152. - ;;
  30153. -
  30154. - mingw* | cygwin* | pw32* | os2*)
  30155. - # This hack is so that the source file can tell whether it is being
  30156. - # built for inclusion in a dll (and should export symbols for example).
  30157. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  30158. - # (--disable-auto-import) libraries
  30159. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  30160. - ;;
  30161. -
  30162. - darwin* | rhapsody*)
  30163. - # PIC is the default on this platform
  30164. - # Common symbols not allowed in MH_DYLIB files
  30165. - lt_prog_compiler_pic_F77='-fno-common'
  30166. - ;;
  30167. -
  30168. - interix[3-9]*)
  30169. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  30170. - # Instead, we relocate shared libraries at runtime.
  30171. - ;;
  30172. -
  30173. - msdosdjgpp*)
  30174. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  30175. - # on systems that don't support them.
  30176. - lt_prog_compiler_can_build_shared_F77=no
  30177. - enable_shared=no
  30178. - ;;
  30179. -
  30180. - sysv4*MP*)
  30181. - if test -d /usr/nec; then
  30182. - lt_prog_compiler_pic_F77=-Kconform_pic
  30183. - fi
  30184. - ;;
  30185. -
  30186. - hpux*)
  30187. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  30188. - # not for PA HP-UX.
  30189. - case $host_cpu in
  30190. - hppa*64*|ia64*)
  30191. - # +Z the default
  30192. - ;;
  30193. - *)
  30194. - lt_prog_compiler_pic_F77='-fPIC'
  30195. - ;;
  30196. - esac
  30197. - ;;
  30198. -
  30199. - *)
  30200. - lt_prog_compiler_pic_F77='-fPIC'
  30201. - ;;
  30202. - esac
  30203. - else
  30204. - # PORTME Check for flag to pass linker flags through the system compiler.
  30205. - case $host_os in
  30206. - aix*)
  30207. - lt_prog_compiler_wl_F77='-Wl,'
  30208. - if test "$host_cpu" = ia64; then
  30209. - # AIX 5 now supports IA64 processor
  30210. - lt_prog_compiler_static_F77='-Bstatic'
  30211. - else
  30212. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  30213. - fi
  30214. - ;;
  30215. - darwin*)
  30216. - # PIC is the default on this platform
  30217. - # Common symbols not allowed in MH_DYLIB files
  30218. - case $cc_basename in
  30219. - xlc*)
  30220. - lt_prog_compiler_pic_F77='-qnocommon'
  30221. - lt_prog_compiler_wl_F77='-Wl,'
  30222. - ;;
  30223. - esac
  30224. - ;;
  30225. -
  30226. - mingw* | cygwin* | pw32* | os2*)
  30227. - # This hack is so that the source file can tell whether it is being
  30228. - # built for inclusion in a dll (and should export symbols for example).
  30229. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  30230. - ;;
  30231. -
  30232. - hpux9* | hpux10* | hpux11*)
  30233. - lt_prog_compiler_wl_F77='-Wl,'
  30234. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  30235. - # not for PA HP-UX.
  30236. - case $host_cpu in
  30237. - hppa*64*|ia64*)
  30238. - # +Z the default
  30239. - ;;
  30240. - *)
  30241. - lt_prog_compiler_pic_F77='+Z'
  30242. - ;;
  30243. - esac
  30244. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  30245. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  30246. - ;;
  30247. -
  30248. - irix5* | irix6* | nonstopux*)
  30249. - lt_prog_compiler_wl_F77='-Wl,'
  30250. - # PIC (with -KPIC) is the default.
  30251. - lt_prog_compiler_static_F77='-non_shared'
  30252. - ;;
  30253. -
  30254. - newsos6)
  30255. - lt_prog_compiler_pic_F77='-KPIC'
  30256. - lt_prog_compiler_static_F77='-Bstatic'
  30257. - ;;
  30258. -
  30259. - linux* | k*bsd*-gnu)
  30260. - case $cc_basename in
  30261. - icc* | ecc*)
  30262. - lt_prog_compiler_wl_F77='-Wl,'
  30263. - lt_prog_compiler_pic_F77='-KPIC'
  30264. - lt_prog_compiler_static_F77='-static'
  30265. - ;;
  30266. - pgcc* | pgf77* | pgf90* | pgf95*)
  30267. - # Portland Group compilers (*not* the Pentium gcc compiler,
  30268. - # which looks to be a dead project)
  30269. - lt_prog_compiler_wl_F77='-Wl,'
  30270. - lt_prog_compiler_pic_F77='-fpic'
  30271. - lt_prog_compiler_static_F77='-Bstatic'
  30272. - ;;
  30273. - ccc*)
  30274. - lt_prog_compiler_wl_F77='-Wl,'
  30275. - # All Alpha code is PIC.
  30276. - lt_prog_compiler_static_F77='-non_shared'
  30277. - ;;
  30278. - *)
  30279. - case `$CC -V 2>&1 | sed 5q` in
  30280. - *Sun\ C*)
  30281. - # Sun C 5.9
  30282. - lt_prog_compiler_pic_F77='-KPIC'
  30283. - lt_prog_compiler_static_F77='-Bstatic'
  30284. - lt_prog_compiler_wl_F77='-Wl,'
  30285. - ;;
  30286. - *Sun\ F*)
  30287. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  30288. - lt_prog_compiler_pic_F77='-KPIC'
  30289. - lt_prog_compiler_static_F77='-Bstatic'
  30290. - lt_prog_compiler_wl_F77=''
  30291. - ;;
  30292. - esac
  30293. - ;;
  30294. - esac
  30295. - ;;
  30296. -
  30297. - osf3* | osf4* | osf5*)
  30298. - lt_prog_compiler_wl_F77='-Wl,'
  30299. - # All OSF/1 code is PIC.
  30300. - lt_prog_compiler_static_F77='-non_shared'
  30301. - ;;
  30302. -
  30303. - rdos*)
  30304. - lt_prog_compiler_static_F77='-non_shared'
  30305. - ;;
  30306. -
  30307. - solaris*)
  30308. - lt_prog_compiler_pic_F77='-KPIC'
  30309. - lt_prog_compiler_static_F77='-Bstatic'
  30310. - case $cc_basename in
  30311. - f77* | f90* | f95*)
  30312. - lt_prog_compiler_wl_F77='-Qoption ld ';;
  30313. - *)
  30314. - lt_prog_compiler_wl_F77='-Wl,';;
  30315. - esac
  30316. - ;;
  30317. -
  30318. - sunos4*)
  30319. - lt_prog_compiler_wl_F77='-Qoption ld '
  30320. - lt_prog_compiler_pic_F77='-PIC'
  30321. - lt_prog_compiler_static_F77='-Bstatic'
  30322. - ;;
  30323. -
  30324. - sysv4 | sysv4.2uw2* | sysv4.3*)
  30325. - lt_prog_compiler_wl_F77='-Wl,'
  30326. - lt_prog_compiler_pic_F77='-KPIC'
  30327. - lt_prog_compiler_static_F77='-Bstatic'
  30328. - ;;
  30329. -
  30330. - sysv4*MP*)
  30331. - if test -d /usr/nec ;then
  30332. - lt_prog_compiler_pic_F77='-Kconform_pic'
  30333. - lt_prog_compiler_static_F77='-Bstatic'
  30334. - fi
  30335. - ;;
  30336. -
  30337. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  30338. - lt_prog_compiler_wl_F77='-Wl,'
  30339. - lt_prog_compiler_pic_F77='-KPIC'
  30340. - lt_prog_compiler_static_F77='-Bstatic'
  30341. - ;;
  30342. -
  30343. - unicos*)
  30344. - lt_prog_compiler_wl_F77='-Wl,'
  30345. - lt_prog_compiler_can_build_shared_F77=no
  30346. - ;;
  30347. -
  30348. - uts4*)
  30349. - lt_prog_compiler_pic_F77='-pic'
  30350. - lt_prog_compiler_static_F77='-Bstatic'
  30351. - ;;
  30352. -
  30353. - *)
  30354. - lt_prog_compiler_can_build_shared_F77=no
  30355. - ;;
  30356. - esac
  30357. - fi
  30358. -
  30359. -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  30360. -$as_echo "$lt_prog_compiler_pic_F77" >&6; }
  30361. -
  30362. -#
  30363. -# Check to make sure the PIC flag actually works.
  30364. -#
  30365. -if test -n "$lt_prog_compiler_pic_F77"; then
  30366. -
  30367. -{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  30368. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
  30369. -if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
  30370. - $as_echo_n "(cached) " >&6
  30371. -else
  30372. - lt_cv_prog_compiler_pic_works_F77=no
  30373. - ac_outfile=conftest.$ac_objext
  30374. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30375. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  30376. - # Insert the option either (1) after the last *FLAGS variable, or
  30377. - # (2) before a word containing "conftest.", or (3) at the end.
  30378. - # Note that $ac_compile itself does not contain backslashes and begins
  30379. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  30380. - # The option is referenced via a variable to avoid confusing sed.
  30381. - lt_compile=`echo "$ac_compile" | $SED \
  30382. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30383. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30384. - -e 's:$: $lt_compiler_flag:'`
  30385. - (eval echo "\"\$as_me:14804: $lt_compile\"" >&5)
  30386. - (eval "$lt_compile" 2>conftest.err)
  30387. - ac_status=$?
  30388. - cat conftest.err >&5
  30389. - echo "$as_me:14808: \$? = $ac_status" >&5
  30390. - if (exit $ac_status) && test -s "$ac_outfile"; then
  30391. - # The compiler can only warn and ignore the option if not recognized
  30392. - # So say no if there are warnings other than the usual output.
  30393. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  30394. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  30395. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  30396. - lt_cv_prog_compiler_pic_works_F77=yes
  30397. - fi
  30398. - fi
  30399. - $rm conftest*
  30400. -
  30401. -fi
  30402. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
  30403. -$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
  30404. -
  30405. -if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
  30406. - case $lt_prog_compiler_pic_F77 in
  30407. - "" | " "*) ;;
  30408. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  30409. - esac
  30410. -else
  30411. - lt_prog_compiler_pic_F77=
  30412. - lt_prog_compiler_can_build_shared_F77=no
  30413. -fi
  30414. -
  30415. -fi
  30416. -case $host_os in
  30417. - # For platforms which do not support PIC, -DPIC is meaningless:
  30418. - *djgpp*)
  30419. - lt_prog_compiler_pic_F77=
  30420. - ;;
  30421. - *)
  30422. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  30423. - ;;
  30424. -esac
  30425. -
  30426. -#
  30427. -# Check to make sure the static flag actually works.
  30428. -#
  30429. -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  30430. -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  30431. -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  30432. -if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
  30433. - $as_echo_n "(cached) " >&6
  30434. -else
  30435. - lt_cv_prog_compiler_static_works_F77=no
  30436. - save_LDFLAGS="$LDFLAGS"
  30437. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  30438. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  30439. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  30440. - # The linker can only warn and ignore the option if not recognized
  30441. - # So say no if there are warnings
  30442. - if test -s conftest.err; then
  30443. - # Append any errors to the config.log.
  30444. - cat conftest.err 1>&5
  30445. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  30446. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  30447. - if diff conftest.exp conftest.er2 >/dev/null; then
  30448. - lt_cv_prog_compiler_static_works_F77=yes
  30449. - fi
  30450. - else
  30451. - lt_cv_prog_compiler_static_works_F77=yes
  30452. - fi
  30453. - fi
  30454. - $rm -r conftest*
  30455. - LDFLAGS="$save_LDFLAGS"
  30456. -
  30457. -fi
  30458. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
  30459. -$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
  30460. -
  30461. -if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
  30462. - :
  30463. -else
  30464. - lt_prog_compiler_static_F77=
  30465. -fi
  30466. -
  30467. -
  30468. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  30469. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  30470. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  30471. - $as_echo_n "(cached) " >&6
  30472. -else
  30473. - lt_cv_prog_compiler_c_o_F77=no
  30474. - $rm -r conftest 2>/dev/null
  30475. - mkdir conftest
  30476. - cd conftest
  30477. - mkdir out
  30478. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30479. -
  30480. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  30481. - # Insert the option either (1) after the last *FLAGS variable, or
  30482. - # (2) before a word containing "conftest.", or (3) at the end.
  30483. - # Note that $ac_compile itself does not contain backslashes and begins
  30484. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  30485. - lt_compile=`echo "$ac_compile" | $SED \
  30486. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30487. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30488. - -e 's:$: $lt_compiler_flag:'`
  30489. - (eval echo "\"\$as_me:14908: $lt_compile\"" >&5)
  30490. - (eval "$lt_compile" 2>out/conftest.err)
  30491. - ac_status=$?
  30492. - cat out/conftest.err >&5
  30493. - echo "$as_me:14912: \$? = $ac_status" >&5
  30494. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  30495. - then
  30496. - # The compiler can only warn and ignore the option if not recognized
  30497. - # So say no if there are warnings
  30498. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  30499. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  30500. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  30501. - lt_cv_prog_compiler_c_o_F77=yes
  30502. - fi
  30503. - fi
  30504. - chmod u+w . 2>&5
  30505. - $rm conftest*
  30506. - # SGI C++ compiler will create directory out/ii_files/ for
  30507. - # template instantiation
  30508. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  30509. - $rm out/* && rmdir out
  30510. - cd ..
  30511. - rmdir conftest
  30512. - $rm conftest*
  30513. -
  30514. -fi
  30515. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  30516. -$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
  30517. -
  30518. -
  30519. -hard_links="nottested"
  30520. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  30521. - # do not overwrite the value of need_locks provided by the user
  30522. - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  30523. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  30524. - hard_links=yes
  30525. - $rm conftest*
  30526. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  30527. - touch conftest.a
  30528. - ln conftest.a conftest.b 2>&5 || hard_links=no
  30529. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  30530. - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  30531. -$as_echo "$hard_links" >&6; }
  30532. - if test "$hard_links" = no; then
  30533. - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  30534. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  30535. - need_locks=warn
  30536. - fi
  30537. -else
  30538. - need_locks=no
  30539. -fi
  30540. -
  30541. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  30542. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  30543. -
  30544. - runpath_var=
  30545. - allow_undefined_flag_F77=
  30546. - enable_shared_with_static_runtimes_F77=no
  30547. - archive_cmds_F77=
  30548. - archive_expsym_cmds_F77=
  30549. - old_archive_From_new_cmds_F77=
  30550. - old_archive_from_expsyms_cmds_F77=
  30551. - export_dynamic_flag_spec_F77=
  30552. - whole_archive_flag_spec_F77=
  30553. - thread_safe_flag_spec_F77=
  30554. - hardcode_libdir_flag_spec_F77=
  30555. - hardcode_libdir_flag_spec_ld_F77=
  30556. - hardcode_libdir_separator_F77=
  30557. - hardcode_direct_F77=no
  30558. - hardcode_minus_L_F77=no
  30559. - hardcode_shlibpath_var_F77=unsupported
  30560. - link_all_deplibs_F77=unknown
  30561. - hardcode_automatic_F77=no
  30562. - module_cmds_F77=
  30563. - module_expsym_cmds_F77=
  30564. - always_export_symbols_F77=no
  30565. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  30566. - # include_expsyms should be a list of space-separated symbols to be *always*
  30567. - # included in the symbol list
  30568. - include_expsyms_F77=
  30569. - # exclude_expsyms can be an extended regexp of symbols to exclude
  30570. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  30571. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  30572. - # as well as any symbol that contains `d'.
  30573. - exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  30574. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  30575. - # platforms (ab)use it in PIC code, but their linkers get confused if
  30576. - # the symbol is explicitly referenced. Since portable code cannot
  30577. - # rely on this symbol name, it's probably fine to never include it in
  30578. - # preloaded symbol tables.
  30579. - # Exclude shared library initialization/finalization symbols.
  30580. - extract_expsyms_cmds=
  30581. - # Just being paranoid about ensuring that cc_basename is set.
  30582. - for cc_temp in $compiler""; do
  30583. - case $cc_temp in
  30584. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  30585. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  30586. - \-*) ;;
  30587. - *) break;;
  30588. - esac
  30589. -done
  30590. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  30591. -
  30592. - case $host_os in
  30593. - cygwin* | mingw* | pw32*)
  30594. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  30595. - # When not using gcc, we currently assume that we are using
  30596. - # Microsoft Visual C++.
  30597. - if test "$GCC" != yes; then
  30598. - with_gnu_ld=no
  30599. - fi
  30600. - ;;
  30601. - interix*)
  30602. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  30603. - with_gnu_ld=yes
  30604. - ;;
  30605. - openbsd*)
  30606. - with_gnu_ld=no
  30607. - ;;
  30608. - esac
  30609. -
  30610. - ld_shlibs_F77=yes
  30611. - if test "$with_gnu_ld" = yes; then
  30612. - # If archive_cmds runs LD, not CC, wlarc should be empty
  30613. - wlarc='${wl}'
  30614. -
  30615. - # Set some defaults for GNU ld with shared library support. These
  30616. - # are reset later if shared libraries are not supported. Putting them
  30617. - # here allows them to be overridden if necessary.
  30618. - runpath_var=LD_RUN_PATH
  30619. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  30620. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  30621. - # ancient GNU ld didn't support --whole-archive et. al.
  30622. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  30623. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  30624. - else
  30625. - whole_archive_flag_spec_F77=
  30626. - fi
  30627. - supports_anon_versioning=no
  30628. - case `$LD -v 2>/dev/null` in
  30629. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  30630. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  30631. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  30632. - *\ 2.11.*) ;; # other 2.11 versions
  30633. - *) supports_anon_versioning=yes ;;
  30634. - esac
  30635. -
  30636. - # See if GNU ld supports shared libraries.
  30637. - case $host_os in
  30638. - aix[3-9]*)
  30639. - # On AIX/PPC, the GNU linker is very broken
  30640. - if test "$host_cpu" != ia64; then
  30641. - ld_shlibs_F77=no
  30642. - cat <<EOF 1>&2
  30643. -
  30644. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  30645. -*** to be unable to reliably create shared libraries on AIX.
  30646. -*** Therefore, libtool is disabling shared libraries support. If you
  30647. -*** really care for shared libraries, you may want to modify your PATH
  30648. -*** so that a non-GNU linker is found, and then restart.
  30649. -
  30650. -EOF
  30651. - fi
  30652. - ;;
  30653. -
  30654. - amigaos*)
  30655. - 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)'
  30656. - hardcode_libdir_flag_spec_F77='-L$libdir'
  30657. - hardcode_minus_L_F77=yes
  30658. -
  30659. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  30660. - # that the semantics of dynamic libraries on AmigaOS, at least up
  30661. - # to version 4, is to share data among multiple programs linked
  30662. - # with the same dynamic library. Since this doesn't match the
  30663. - # behavior of shared libraries on other platforms, we can't use
  30664. - # them.
  30665. - ld_shlibs_F77=no
  30666. - ;;
  30667. -
  30668. - beos*)
  30669. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30670. - allow_undefined_flag_F77=unsupported
  30671. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  30672. - # support --undefined. This deserves some investigation. FIXME
  30673. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30674. - else
  30675. - ld_shlibs_F77=no
  30676. - fi
  30677. - ;;
  30678. -
  30679. - cygwin* | mingw* | pw32*)
  30680. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  30681. - # as there is no search path for DLLs.
  30682. - hardcode_libdir_flag_spec_F77='-L$libdir'
  30683. - allow_undefined_flag_F77=unsupported
  30684. - always_export_symbols_F77=no
  30685. - enable_shared_with_static_runtimes_F77=yes
  30686. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  30687. -
  30688. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  30689. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  30690. - # If the export-symbols file already is a .def file (1st line
  30691. - # is EXPORTS), use it as is; otherwise, prepend...
  30692. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  30693. - cp $export_symbols $output_objdir/$soname.def;
  30694. - else
  30695. - echo EXPORTS > $output_objdir/$soname.def;
  30696. - cat $export_symbols >> $output_objdir/$soname.def;
  30697. - fi~
  30698. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  30699. - else
  30700. - ld_shlibs_F77=no
  30701. - fi
  30702. - ;;
  30703. -
  30704. - interix[3-9]*)
  30705. - hardcode_direct_F77=no
  30706. - hardcode_shlibpath_var_F77=no
  30707. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  30708. - export_dynamic_flag_spec_F77='${wl}-E'
  30709. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  30710. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  30711. - # default) and relocated if they conflict, which is a slow very memory
  30712. - # consuming and fragmenting process. To avoid this, we pick a random,
  30713. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  30714. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  30715. - 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'
  30716. - 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'
  30717. - ;;
  30718. -
  30719. - gnu* | linux* | k*bsd*-gnu)
  30720. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30721. - tmp_addflag=
  30722. - case $cc_basename,$host_cpu in
  30723. - pgcc*) # Portland Group C compiler
  30724. - 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'
  30725. - tmp_addflag=' $pic_flag'
  30726. - ;;
  30727. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  30728. - 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'
  30729. - tmp_addflag=' $pic_flag -Mnomain' ;;
  30730. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  30731. - tmp_addflag=' -i_dynamic' ;;
  30732. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  30733. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  30734. - ifc* | ifort*) # Intel Fortran compiler
  30735. - tmp_addflag=' -nofor_main' ;;
  30736. - esac
  30737. - case `$CC -V 2>&1 | sed 5q` in
  30738. - *Sun\ C*) # Sun C 5.9
  30739. - 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'
  30740. - tmp_sharedflag='-G' ;;
  30741. - *Sun\ F*) # Sun Fortran 8.3
  30742. - tmp_sharedflag='-G' ;;
  30743. - *)
  30744. - tmp_sharedflag='-shared' ;;
  30745. - esac
  30746. - archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30747. -
  30748. - if test $supports_anon_versioning = yes; then
  30749. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  30750. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  30751. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  30752. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  30753. - fi
  30754. - else
  30755. - ld_shlibs_F77=no
  30756. - fi
  30757. - ;;
  30758. -
  30759. - netbsd*)
  30760. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  30761. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  30762. - wlarc=
  30763. - else
  30764. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30765. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30766. - fi
  30767. - ;;
  30768. -
  30769. - solaris*)
  30770. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  30771. - ld_shlibs_F77=no
  30772. - cat <<EOF 1>&2
  30773. -
  30774. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  30775. -*** create shared libraries on Solaris systems. Therefore, libtool
  30776. -*** is disabling shared libraries support. We urge you to upgrade GNU
  30777. -*** binutils to release 2.9.1 or newer. Another option is to modify
  30778. -*** your PATH or compiler configuration so that the native linker is
  30779. -*** used, and then restart.
  30780. -
  30781. -EOF
  30782. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30783. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30784. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30785. - else
  30786. - ld_shlibs_F77=no
  30787. - fi
  30788. - ;;
  30789. -
  30790. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  30791. - case `$LD -v 2>&1` in
  30792. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  30793. - ld_shlibs_F77=no
  30794. - cat <<_LT_EOF 1>&2
  30795. -
  30796. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  30797. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  30798. -*** is disabling shared libraries support. We urge you to upgrade GNU
  30799. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  30800. -*** your PATH or compiler configuration so that the native linker is
  30801. -*** used, and then restart.
  30802. -
  30803. -_LT_EOF
  30804. - ;;
  30805. - *)
  30806. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30807. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  30808. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  30809. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  30810. - else
  30811. - ld_shlibs_F77=no
  30812. - fi
  30813. - ;;
  30814. - esac
  30815. - ;;
  30816. -
  30817. - sunos4*)
  30818. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  30819. - wlarc=
  30820. - hardcode_direct_F77=yes
  30821. - hardcode_shlibpath_var_F77=no
  30822. - ;;
  30823. -
  30824. - *)
  30825. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30826. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30827. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30828. - else
  30829. - ld_shlibs_F77=no
  30830. - fi
  30831. - ;;
  30832. - esac
  30833. -
  30834. - if test "$ld_shlibs_F77" = no; then
  30835. - runpath_var=
  30836. - hardcode_libdir_flag_spec_F77=
  30837. - export_dynamic_flag_spec_F77=
  30838. - whole_archive_flag_spec_F77=
  30839. - fi
  30840. - else
  30841. - # PORTME fill in a description of your system's linker (not GNU ld)
  30842. - case $host_os in
  30843. - aix3*)
  30844. - allow_undefined_flag_F77=unsupported
  30845. - always_export_symbols_F77=yes
  30846. - 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'
  30847. - # Note: this linker hardcodes the directories in LIBPATH if there
  30848. - # are no directories specified by -L.
  30849. - hardcode_minus_L_F77=yes
  30850. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  30851. - # Neither direct hardcoding nor static linking is supported with a
  30852. - # broken collect2.
  30853. - hardcode_direct_F77=unsupported
  30854. - fi
  30855. - ;;
  30856. -
  30857. - aix[4-9]*)
  30858. - if test "$host_cpu" = ia64; then
  30859. - # On IA64, the linker does run time linking by default, so we don't
  30860. - # have to do anything special.
  30861. - aix_use_runtimelinking=no
  30862. - exp_sym_flag='-Bexport'
  30863. - no_entry_flag=""
  30864. - else
  30865. - # If we're using GNU nm, then we don't want the "-C" option.
  30866. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  30867. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  30868. - 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'
  30869. - else
  30870. - 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'
  30871. - fi
  30872. - aix_use_runtimelinking=no
  30873. -
  30874. - # Test if we are trying to use run time linking or normal
  30875. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  30876. - # need to do runtime linking.
  30877. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  30878. - for ld_flag in $LDFLAGS; do
  30879. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  30880. - aix_use_runtimelinking=yes
  30881. - break
  30882. - fi
  30883. - done
  30884. - ;;
  30885. - esac
  30886. -
  30887. - exp_sym_flag='-bexport'
  30888. - no_entry_flag='-bnoentry'
  30889. - fi
  30890. -
  30891. - # When large executables or shared objects are built, AIX ld can
  30892. - # have problems creating the table of contents. If linking a library
  30893. - # or program results in "error TOC overflow" add -mminimal-toc to
  30894. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  30895. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  30896. -
  30897. - archive_cmds_F77=''
  30898. - hardcode_direct_F77=yes
  30899. - hardcode_libdir_separator_F77=':'
  30900. - link_all_deplibs_F77=yes
  30901. -
  30902. - if test "$GCC" = yes; then
  30903. - case $host_os in aix4.[012]|aix4.[012].*)
  30904. - # We only want to do this on AIX 4.2 and lower, the check
  30905. - # below for broken collect2 doesn't work under 4.3+
  30906. - collect2name=`${CC} -print-prog-name=collect2`
  30907. - if test -f "$collect2name" && \
  30908. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  30909. - then
  30910. - # We have reworked collect2
  30911. - :
  30912. - else
  30913. - # We have old collect2
  30914. - hardcode_direct_F77=unsupported
  30915. - # It fails to find uninstalled libraries when the uninstalled
  30916. - # path is not listed in the libpath. Setting hardcode_minus_L
  30917. - # to unsupported forces relinking
  30918. - hardcode_minus_L_F77=yes
  30919. - hardcode_libdir_flag_spec_F77='-L$libdir'
  30920. - hardcode_libdir_separator_F77=
  30921. - fi
  30922. - ;;
  30923. - esac
  30924. - shared_flag='-shared'
  30925. - if test "$aix_use_runtimelinking" = yes; then
  30926. - shared_flag="$shared_flag "'${wl}-G'
  30927. - fi
  30928. - else
  30929. - # not using gcc
  30930. - if test "$host_cpu" = ia64; then
  30931. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  30932. - # chokes on -Wl,-G. The following line is correct:
  30933. - shared_flag='-G'
  30934. - else
  30935. - if test "$aix_use_runtimelinking" = yes; then
  30936. - shared_flag='${wl}-G'
  30937. - else
  30938. - shared_flag='${wl}-bM:SRE'
  30939. - fi
  30940. - fi
  30941. - fi
  30942. -
  30943. - # It seems that -bexpall does not export symbols beginning with
  30944. - # underscore (_), so it is better to generate a list of symbols to export.
  30945. - always_export_symbols_F77=yes
  30946. - if test "$aix_use_runtimelinking" = yes; then
  30947. - # Warning - without using the other runtime loading flags (-brtl),
  30948. - # -berok will link without error, but may produce a broken library.
  30949. - allow_undefined_flag_F77='-berok'
  30950. - # Determine the default libpath from the value encoded in an empty executable.
  30951. - cat >conftest.$ac_ext <<_ACEOF
  30952. - program main
  30953. -
  30954. - end
  30955. -_ACEOF
  30956. -rm -f conftest.$ac_objext conftest$ac_exeext
  30957. -if { (ac_try="$ac_link"
  30958. -case "(($ac_try" in
  30959. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30960. - *) ac_try_echo=$ac_try;;
  30961. -esac
  30962. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30963. -$as_echo "$ac_try_echo") >&5
  30964. - (eval "$ac_link") 2>conftest.er1
  30965. - ac_status=$?
  30966. - grep -v '^ *+' conftest.er1 >conftest.err
  30967. - rm -f conftest.er1
  30968. - cat conftest.err >&5
  30969. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30970. - (exit $ac_status); } && {
  30971. - test -z "$ac_f77_werror_flag" ||
  30972. - test ! -s conftest.err
  30973. - } && test -s conftest$ac_exeext && {
  30974. - test "$cross_compiling" = yes ||
  30975. - $as_test_x conftest$ac_exeext
  30976. - }; then
  30977. -
  30978. -lt_aix_libpath_sed='
  30979. - /Import File Strings/,/^$/ {
  30980. - /^0/ {
  30981. - s/^0 *\(.*\)$/\1/
  30982. - p
  30983. - }
  30984. - }'
  30985. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30986. -# Check for a 64-bit object if we didn't find anything.
  30987. -if test -z "$aix_libpath"; then
  30988. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30989. -fi
  30990. -else
  30991. - $as_echo "$as_me: failed program was:" >&5
  30992. -sed 's/^/| /' conftest.$ac_ext >&5
  30993. -
  30994. -
  30995. -fi
  30996. -
  30997. -rm -rf conftest.dSYM
  30998. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30999. - conftest$ac_exeext conftest.$ac_ext
  31000. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  31001. -
  31002. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  31003. - 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"
  31004. - else
  31005. - if test "$host_cpu" = ia64; then
  31006. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  31007. - allow_undefined_flag_F77="-z nodefs"
  31008. - 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"
  31009. - else
  31010. - # Determine the default libpath from the value encoded in an empty executable.
  31011. - cat >conftest.$ac_ext <<_ACEOF
  31012. - program main
  31013. -
  31014. - end
  31015. -_ACEOF
  31016. -rm -f conftest.$ac_objext conftest$ac_exeext
  31017. -if { (ac_try="$ac_link"
  31018. -case "(($ac_try" in
  31019. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31020. - *) ac_try_echo=$ac_try;;
  31021. -esac
  31022. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31023. -$as_echo "$ac_try_echo") >&5
  31024. - (eval "$ac_link") 2>conftest.er1
  31025. - ac_status=$?
  31026. - grep -v '^ *+' conftest.er1 >conftest.err
  31027. - rm -f conftest.er1
  31028. - cat conftest.err >&5
  31029. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31030. - (exit $ac_status); } && {
  31031. - test -z "$ac_f77_werror_flag" ||
  31032. - test ! -s conftest.err
  31033. - } && test -s conftest$ac_exeext && {
  31034. - test "$cross_compiling" = yes ||
  31035. - $as_test_x conftest$ac_exeext
  31036. - }; then
  31037. -
  31038. -lt_aix_libpath_sed='
  31039. - /Import File Strings/,/^$/ {
  31040. - /^0/ {
  31041. - s/^0 *\(.*\)$/\1/
  31042. - p
  31043. - }
  31044. - }'
  31045. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  31046. -# Check for a 64-bit object if we didn't find anything.
  31047. -if test -z "$aix_libpath"; then
  31048. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  31049. -fi
  31050. -else
  31051. - $as_echo "$as_me: failed program was:" >&5
  31052. -sed 's/^/| /' conftest.$ac_ext >&5
  31053. -
  31054. -
  31055. -fi
  31056. -
  31057. -rm -rf conftest.dSYM
  31058. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31059. - conftest$ac_exeext conftest.$ac_ext
  31060. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  31061. -
  31062. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  31063. - # Warning - without using the other run time loading flags,
  31064. - # -berok will link without error, but may produce a broken library.
  31065. - no_undefined_flag_F77=' ${wl}-bernotok'
  31066. - allow_undefined_flag_F77=' ${wl}-berok'
  31067. - # Exported symbols can be pulled into shared objects from archives
  31068. - whole_archive_flag_spec_F77='$convenience'
  31069. - archive_cmds_need_lc_F77=yes
  31070. - # This is similar to how AIX traditionally builds its shared libraries.
  31071. - 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'
  31072. - fi
  31073. - fi
  31074. - ;;
  31075. -
  31076. - amigaos*)
  31077. - 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)'
  31078. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31079. - hardcode_minus_L_F77=yes
  31080. - # see comment about different semantics on the GNU ld section
  31081. - ld_shlibs_F77=no
  31082. - ;;
  31083. -
  31084. - bsdi[45]*)
  31085. - export_dynamic_flag_spec_F77=-rdynamic
  31086. - ;;
  31087. -
  31088. - cygwin* | mingw* | pw32*)
  31089. - # When not using gcc, we currently assume that we are using
  31090. - # Microsoft Visual C++.
  31091. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  31092. - # no search path for DLLs.
  31093. - hardcode_libdir_flag_spec_F77=' '
  31094. - allow_undefined_flag_F77=unsupported
  31095. - # Tell ltmain to make .lib files, not .a files.
  31096. - libext=lib
  31097. - # Tell ltmain to make .dll files, not .so files.
  31098. - shrext_cmds=".dll"
  31099. - # FIXME: Setting linknames here is a bad hack.
  31100. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  31101. - # The linker will automatically build a .lib file if we build a DLL.
  31102. - old_archive_From_new_cmds_F77='true'
  31103. - # FIXME: Should let the user specify the lib program.
  31104. - old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  31105. - fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  31106. - enable_shared_with_static_runtimes_F77=yes
  31107. - ;;
  31108. -
  31109. - darwin* | rhapsody*)
  31110. - case $host_os in
  31111. - rhapsody* | darwin1.[012])
  31112. - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  31113. - ;;
  31114. - *) # Darwin 1.3 on
  31115. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  31116. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  31117. - else
  31118. - case ${MACOSX_DEPLOYMENT_TARGET} in
  31119. - 10.[012])
  31120. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  31121. - ;;
  31122. - 10.*)
  31123. - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  31124. - ;;
  31125. - esac
  31126. - fi
  31127. - ;;
  31128. - esac
  31129. - archive_cmds_need_lc_F77=no
  31130. - hardcode_direct_F77=no
  31131. - hardcode_automatic_F77=yes
  31132. - hardcode_shlibpath_var_F77=unsupported
  31133. - whole_archive_flag_spec_F77=''
  31134. - link_all_deplibs_F77=yes
  31135. - if test "$GCC" = yes ; then
  31136. - output_verbose_link_cmd='echo'
  31137. - 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}"
  31138. - module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  31139. - 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}"
  31140. - 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}"
  31141. - else
  31142. - case $cc_basename in
  31143. - xlc*)
  31144. - output_verbose_link_cmd='echo'
  31145. - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  31146. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  31147. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  31148. - 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}'
  31149. - 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}'
  31150. - ;;
  31151. - *)
  31152. - ld_shlibs_F77=no
  31153. - ;;
  31154. - esac
  31155. - fi
  31156. - ;;
  31157. -
  31158. - dgux*)
  31159. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31160. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31161. - hardcode_shlibpath_var_F77=no
  31162. - ;;
  31163. -
  31164. - freebsd1*)
  31165. - ld_shlibs_F77=no
  31166. - ;;
  31167. -
  31168. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  31169. - # support. Future versions do this automatically, but an explicit c++rt0.o
  31170. - # does not break anything, and helps significantly (at the cost of a little
  31171. - # extra space).
  31172. - freebsd2.2*)
  31173. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  31174. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31175. - hardcode_direct_F77=yes
  31176. - hardcode_shlibpath_var_F77=no
  31177. - ;;
  31178. -
  31179. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  31180. - freebsd2*)
  31181. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  31182. - hardcode_direct_F77=yes
  31183. - hardcode_minus_L_F77=yes
  31184. - hardcode_shlibpath_var_F77=no
  31185. - ;;
  31186. -
  31187. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  31188. - freebsd* | dragonfly*)
  31189. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  31190. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31191. - hardcode_direct_F77=yes
  31192. - hardcode_shlibpath_var_F77=no
  31193. - ;;
  31194. -
  31195. - hpux9*)
  31196. - if test "$GCC" = yes; then
  31197. - 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'
  31198. - else
  31199. - 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'
  31200. - fi
  31201. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  31202. - hardcode_libdir_separator_F77=:
  31203. - hardcode_direct_F77=yes
  31204. -
  31205. - # hardcode_minus_L: Not really in the search PATH,
  31206. - # but as the default location of the library.
  31207. - hardcode_minus_L_F77=yes
  31208. - export_dynamic_flag_spec_F77='${wl}-E'
  31209. - ;;
  31210. -
  31211. - hpux10*)
  31212. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  31213. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  31214. - else
  31215. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  31216. - fi
  31217. - if test "$with_gnu_ld" = no; then
  31218. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  31219. - hardcode_libdir_separator_F77=:
  31220. - hardcode_direct_F77=yes
  31221. - export_dynamic_flag_spec_F77='${wl}-E'
  31222. - # hardcode_minus_L: Not really in the search PATH,
  31223. - # but as the default location of the library.
  31224. - hardcode_minus_L_F77=yes
  31225. - fi
  31226. - ;;
  31227. - hpux11*)
  31228. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  31229. - case $host_cpu in
  31230. - hppa*64*)
  31231. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31232. - ;;
  31233. - ia64*)
  31234. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  31235. - ;;
  31236. - *)
  31237. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  31238. - ;;
  31239. - esac
  31240. - else
  31241. - case $host_cpu in
  31242. - hppa*64*)
  31243. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31244. - ;;
  31245. - ia64*)
  31246. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  31247. - ;;
  31248. - *)
  31249. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  31250. - ;;
  31251. - esac
  31252. - fi
  31253. - if test "$with_gnu_ld" = no; then
  31254. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  31255. - hardcode_libdir_separator_F77=:
  31256. - case $host_cpu in
  31257. - hppa*64*|ia64*)
  31258. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  31259. - hardcode_direct_F77=no
  31260. - hardcode_shlibpath_var_F77=no
  31261. - ;;
  31262. - *)
  31263. - hardcode_direct_F77=yes
  31264. - export_dynamic_flag_spec_F77='${wl}-E'
  31265. - # hardcode_minus_L: Not really in the search PATH,
  31266. - # but as the default location of the library.
  31267. - hardcode_minus_L_F77=yes
  31268. - ;;
  31269. - esac
  31270. - fi
  31271. - ;;
  31272. - irix5* | irix6* | nonstopux*)
  31273. - if test "$GCC" = yes; then
  31274. - 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'
  31275. - else
  31276. - 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'
  31277. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  31278. - fi
  31279. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  31280. - hardcode_libdir_separator_F77=:
  31281. - link_all_deplibs_F77=yes
  31282. - ;;
  31283. - netbsd*)
  31284. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  31285. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  31286. - else
  31287. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  31288. - fi
  31289. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31290. - hardcode_direct_F77=yes
  31291. - hardcode_shlibpath_var_F77=no
  31292. - ;;
  31293. - newsos6)
  31294. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31295. - hardcode_direct_F77=yes
  31296. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  31297. - hardcode_libdir_separator_F77=:
  31298. - hardcode_shlibpath_var_F77=no
  31299. - ;;
  31300. - openbsd*)
  31301. - if test -f /usr/libexec/ld.so; then
  31302. - hardcode_direct_F77=yes
  31303. - hardcode_shlibpath_var_F77=no
  31304. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  31305. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  31306. - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  31307. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  31308. - export_dynamic_flag_spec_F77='${wl}-E'
  31309. - else
  31310. - case $host_os in
  31311. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  31312. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  31313. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31314. - ;;
  31315. - *)
  31316. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  31317. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  31318. - ;;
  31319. - esac
  31320. - fi
  31321. - else
  31322. - ld_shlibs_F77=no
  31323. - fi
  31324. - ;;
  31325. - os2*)
  31326. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31327. - hardcode_minus_L_F77=yes
  31328. - allow_undefined_flag_F77=unsupported
  31329. - 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'
  31330. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  31331. - ;;
  31332. - osf3*)
  31333. - if test "$GCC" = yes; then
  31334. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  31335. - 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'
  31336. - else
  31337. - allow_undefined_flag_F77=' -expect_unresolved \*'
  31338. - 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'
  31339. - fi
  31340. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  31341. - hardcode_libdir_separator_F77=:
  31342. - ;;
  31343. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  31344. - if test "$GCC" = yes; then
  31345. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  31346. - 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'
  31347. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  31348. - else
  31349. - allow_undefined_flag_F77=' -expect_unresolved \*'
  31350. - 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'
  31351. - 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~
  31352. - $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'
  31353. - # Both c and cxx compiler support -rpath directly
  31354. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  31355. - fi
  31356. - hardcode_libdir_separator_F77=:
  31357. - ;;
  31358. - solaris*)
  31359. - no_undefined_flag_F77=' -z text'
  31360. - if test "$GCC" = yes; then
  31361. - wlarc='${wl}'
  31362. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31363. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  31364. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  31365. - else
  31366. - wlarc=''
  31367. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31368. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  31369. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  31370. - fi
  31371. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31372. - hardcode_shlibpath_var_F77=no
  31373. - case $host_os in
  31374. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  31375. - *)
  31376. - # The compiler driver will combine and reorder linker options,
  31377. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  31378. - # but is careful enough not to reorder.
  31379. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  31380. - if test "$GCC" = yes; then
  31381. - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  31382. - else
  31383. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  31384. - fi
  31385. - ;;
  31386. - esac
  31387. - link_all_deplibs_F77=yes
  31388. - ;;
  31389. - sunos4*)
  31390. - if test "x$host_vendor" = xsequent; then
  31391. - # Use $CC to link under sequent, because it throws in some extra .o
  31392. - # files that make .init and .fini sections work.
  31393. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  31394. - else
  31395. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  31396. - fi
  31397. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31398. - hardcode_direct_F77=yes
  31399. - hardcode_minus_L_F77=yes
  31400. - hardcode_shlibpath_var_F77=no
  31401. - ;;
  31402. - sysv4)
  31403. - case $host_vendor in
  31404. - sni)
  31405. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31406. - hardcode_direct_F77=yes # is this really true???
  31407. - ;;
  31408. - siemens)
  31409. - ## LD is ld it makes a PLAMLIB
  31410. - ## CC just makes a GrossModule.
  31411. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  31412. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  31413. - hardcode_direct_F77=no
  31414. - ;;
  31415. - motorola)
  31416. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31417. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  31418. - ;;
  31419. - esac
  31420. - runpath_var='LD_RUN_PATH'
  31421. - hardcode_shlibpath_var_F77=no
  31422. - ;;
  31423. - sysv4.3*)
  31424. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31425. - hardcode_shlibpath_var_F77=no
  31426. - export_dynamic_flag_spec_F77='-Bexport'
  31427. - ;;
  31428. - sysv4*MP*)
  31429. - if test -d /usr/nec; then
  31430. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31431. - hardcode_shlibpath_var_F77=no
  31432. - runpath_var=LD_RUN_PATH
  31433. - hardcode_runpath_var=yes
  31434. - ld_shlibs_F77=yes
  31435. - fi
  31436. - ;;
  31437. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  31438. - no_undefined_flag_F77='${wl}-z,text'
  31439. - archive_cmds_need_lc_F77=no
  31440. - hardcode_shlibpath_var_F77=no
  31441. - runpath_var='LD_RUN_PATH'
  31442. - if test "$GCC" = yes; then
  31443. - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31444. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31445. - else
  31446. - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31447. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31448. - fi
  31449. - ;;
  31450. - sysv5* | sco3.2v5* | sco5v6*)
  31451. - # Note: We can NOT use -z defs as we might desire, because we do not
  31452. - # link with -lc, and that would cause any symbols used from libc to
  31453. - # always be unresolved, which means just about no library would
  31454. - # ever link correctly. If we're not using GNU ld we use -z text
  31455. - # though, which does catch some bad symbols but isn't as heavy-handed
  31456. - # as -z defs.
  31457. - no_undefined_flag_F77='${wl}-z,text'
  31458. - allow_undefined_flag_F77='${wl}-z,nodefs'
  31459. - archive_cmds_need_lc_F77=no
  31460. - hardcode_shlibpath_var_F77=no
  31461. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  31462. - hardcode_libdir_separator_F77=':'
  31463. - link_all_deplibs_F77=yes
  31464. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  31465. - runpath_var='LD_RUN_PATH'
  31466. - if test "$GCC" = yes; then
  31467. - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31468. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31469. - else
  31470. - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31471. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31472. - fi
  31473. - ;;
  31474. - uts4*)
  31475. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31476. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31477. - hardcode_shlibpath_var_F77=no
  31478. - ;;
  31479. - *)
  31480. - ld_shlibs_F77=no
  31481. - ;;
  31482. - esac
  31483. - fi
  31484. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  31485. -$as_echo "$ld_shlibs_F77" >&6; }
  31486. -test "$ld_shlibs_F77" = no && can_build_shared=no
  31487. -#
  31488. -# Do we need to explicitly link libc?
  31489. -#
  31490. -case "x$archive_cmds_need_lc_F77" in
  31491. -x|xyes)
  31492. - # Assume -lc should be added
  31493. - archive_cmds_need_lc_F77=yes
  31494. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  31495. - case $archive_cmds_F77 in
  31496. - *'~'*)
  31497. - # FIXME: we may have to deal with multi-command sequences.
  31498. - ;;
  31499. - '$CC '*)
  31500. - # Test whether the compiler implicitly links with -lc since on some
  31501. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  31502. - # to ld, don't add -lc before -lgcc.
  31503. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  31504. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  31505. - $rm conftest*
  31506. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  31507. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  31508. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  31509. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  31510. - (eval $ac_compile) 2>&5
  31511. - ac_status=$?
  31512. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31513. - (exit $ac_status); } 2>conftest.err; then
  31514. - soname=conftest
  31515. - lib=conftest
  31516. - libobjs=conftest.$ac_objext
  31517. - deplibs=
  31518. - wl=$lt_prog_compiler_wl_F77
  31519. - pic_flag=$lt_prog_compiler_pic_F77
  31520. - compiler_flags=-v
  31521. - linker_flags=-v
  31522. - verstring=
  31523. - output_objdir=.
  31524. - libname=conftest
  31525. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  31526. - allow_undefined_flag_F77=
  31527. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  31528. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  31529. - ac_status=$?
  31530. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31531. - (exit $ac_status); }
  31532. - then
  31533. - archive_cmds_need_lc_F77=no
  31534. - else
  31535. - archive_cmds_need_lc_F77=yes
  31536. - fi
  31537. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  31538. - else
  31539. - cat conftest.err 1>&5
  31540. - fi
  31541. - $rm conftest*
  31542. - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  31543. -$as_echo "$archive_cmds_need_lc_F77" >&6; }
  31544. - ;;
  31545. - esac
  31546. +if test "$GCC" = yes; then
  31547. + case $host_os in
  31548. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  31549. + *) lt_awk_arg="/^libraries:/" ;;
  31550. + esac
  31551. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  31552. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  31553. + # if the path contains ";" then we assume it to be the separator
  31554. + # otherwise default to the standard path separator (i.e. ":") - it is
  31555. + # assumed that no part of a normal pathname contains ";" but that should
  31556. + # okay in the real world where ";" in dirpaths is itself problematic.
  31557. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  31558. + else
  31559. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  31560. fi
  31561. - ;;
  31562. -esac
  31563. -
  31564. -{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  31565. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  31566. + # Ok, now we have the path, separated by spaces, we can step through it
  31567. + # and add multilib dir if necessary.
  31568. + lt_tmp_lt_search_path_spec=
  31569. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  31570. + for lt_sys_path in $lt_search_path_spec; do
  31571. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  31572. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  31573. + else
  31574. + test -d "$lt_sys_path" && \
  31575. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  31576. + fi
  31577. + done
  31578. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  31579. +BEGIN {RS=" "; FS="/|\n";} {
  31580. + lt_foo="";
  31581. + lt_count=0;
  31582. + for (lt_i = NF; lt_i > 0; lt_i--) {
  31583. + if ($lt_i != "" && $lt_i != ".") {
  31584. + if ($lt_i == "..") {
  31585. + lt_count++;
  31586. + } else {
  31587. + if (lt_count == 0) {
  31588. + lt_foo="/" $lt_i lt_foo;
  31589. + } else {
  31590. + lt_count--;
  31591. + }
  31592. + }
  31593. + }
  31594. + }
  31595. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  31596. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  31597. +}'`
  31598. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  31599. +else
  31600. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  31601. +fi
  31602. library_names_spec=
  31603. libname_spec='lib$name'
  31604. soname_spec=
  31605. @@ -16007,7 +10273,6 @@
  31606. version_type=none
  31607. dynamic_linker="$host_os ld.so"
  31608. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  31609. -
  31610. need_lib_prefix=unknown
  31611. hardcode_into_libs=no
  31612. @@ -16044,7 +10309,7 @@
  31613. aix4 | aix4.[01] | aix4.[01].*)
  31614. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  31615. echo ' yes '
  31616. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  31617. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  31618. :
  31619. else
  31620. can_build_shared=no
  31621. @@ -16070,9 +10335,18 @@
  31622. ;;
  31623. amigaos*)
  31624. - library_names_spec='$libname.ixlibrary $libname.a'
  31625. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  31626. - 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'
  31627. + case $host_cpu in
  31628. + powerpc)
  31629. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  31630. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  31631. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31632. + ;;
  31633. + m68k)
  31634. + library_names_spec='$libname.ixlibrary $libname.a'
  31635. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  31636. + 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'
  31637. + ;;
  31638. + esac
  31639. ;;
  31640. beos*)
  31641. @@ -16095,25 +10369,28 @@
  31642. # libtool to hard-code these into programs
  31643. ;;
  31644. -cygwin* | mingw* | pw32*)
  31645. +cygwin* | mingw* | pw32* | cegcc*)
  31646. version_type=windows
  31647. shrext_cmds=".dll"
  31648. need_version=no
  31649. need_lib_prefix=no
  31650. case $GCC,$host_os in
  31651. - yes,cygwin* | yes,mingw* | yes,pw32*)
  31652. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  31653. library_names_spec='$libname.dll.a'
  31654. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  31655. postinstall_cmds='base_file=`basename \${file}`~
  31656. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  31657. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  31658. dldir=$destdir/`dirname \$dlpath`~
  31659. test -d \$dldir || mkdir -p \$dldir~
  31660. $install_prog $dir/$dlname \$dldir/$dlname~
  31661. - chmod a+x \$dldir/$dlname'
  31662. + chmod a+x \$dldir/$dlname~
  31663. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  31664. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  31665. + fi'
  31666. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  31667. dlpath=$dir/\$dldll~
  31668. - $rm \$dlpath'
  31669. + $RM \$dlpath'
  31670. shlibpath_overrides_runpath=yes
  31671. case $host_os in
  31672. @@ -16122,20 +10399,20 @@
  31673. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31674. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  31675. ;;
  31676. - mingw*)
  31677. + mingw* | cegcc*)
  31678. # MinGW DLLs use traditional 'lib' prefix
  31679. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31680. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  31681. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  31682. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  31683. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  31684. # It is most probably a Windows format PATH printed by
  31685. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  31686. # path with ; separators, and with drive letters. We can handle the
  31687. # drive letters (cygwin fileutils understands them), so leave them,
  31688. # especially as we might pass files found there to a mingw objdump,
  31689. # which wouldn't understand a cygwinified path. Ahh.
  31690. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  31691. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  31692. else
  31693. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  31694. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  31695. fi
  31696. ;;
  31697. pw32*)
  31698. @@ -16159,12 +10436,13 @@
  31699. version_type=darwin
  31700. need_lib_prefix=no
  31701. need_version=no
  31702. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  31703. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  31704. soname_spec='${libname}${release}${major}$shared_ext'
  31705. shlibpath_overrides_runpath=yes
  31706. shlibpath_var=DYLD_LIBRARY_PATH
  31707. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  31708. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  31709. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  31710. ;;
  31711. @@ -16257,18 +10535,18 @@
  31712. fi
  31713. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  31714. ;;
  31715. - hppa*64*)
  31716. - shrext_cmds='.sl'
  31717. - hardcode_into_libs=yes
  31718. - dynamic_linker="$host_os dld.sl"
  31719. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  31720. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  31721. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31722. - soname_spec='${libname}${release}${shared_ext}$major'
  31723. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  31724. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  31725. - ;;
  31726. - *)
  31727. + hppa*64*)
  31728. + shrext_cmds='.sl'
  31729. + hardcode_into_libs=yes
  31730. + dynamic_linker="$host_os dld.sl"
  31731. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  31732. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  31733. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31734. + soname_spec='${libname}${release}${shared_ext}$major'
  31735. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  31736. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  31737. + ;;
  31738. + *)
  31739. shrext_cmds='.sl'
  31740. dynamic_linker="$host_os dld.sl"
  31741. shlibpath_var=SHLIB_PATH
  31742. @@ -16336,7 +10614,7 @@
  31743. ;;
  31744. # This must be Linux ELF.
  31745. -linux* | k*bsd*-gnu)
  31746. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  31747. version_type=linux
  31748. need_lib_prefix=no
  31749. need_version=no
  31750. @@ -16345,17 +10623,41 @@
  31751. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  31752. shlibpath_var=LD_LIBRARY_PATH
  31753. shlibpath_overrides_runpath=no
  31754. + # Some binutils ld are patched to set DT_RUNPATH
  31755. + save_LDFLAGS=$LDFLAGS
  31756. + save_libdir=$libdir
  31757. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  31758. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  31759. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31760. +/* end confdefs.h. */
  31761. +
  31762. +int
  31763. +main ()
  31764. +{
  31765. +
  31766. + ;
  31767. + return 0;
  31768. +}
  31769. +_ACEOF
  31770. +if ac_fn_c_try_link "$LINENO"; then :
  31771. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  31772. + shlibpath_overrides_runpath=yes
  31773. +fi
  31774. +fi
  31775. +rm -f core conftest.err conftest.$ac_objext \
  31776. + conftest$ac_exeext conftest.$ac_ext
  31777. + LDFLAGS=$save_LDFLAGS
  31778. + libdir=$save_libdir
  31779. +
  31780. # This implies no fast_install, which is unacceptable.
  31781. # Some rework will be needed to allow for fast_install
  31782. # before this can be enabled.
  31783. hardcode_into_libs=yes
  31784. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  31785. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  31786. # Append ld.so.conf contents to the search path
  31787. if test -f /etc/ld.so.conf; then
  31788. - 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' ' '`
  31789. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  31790. + 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' ' '`
  31791. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  31792. fi
  31793. # We used to test for /lib/ld.so.1 and disable shared libraries on
  31794. @@ -16367,11 +10669,23 @@
  31795. dynamic_linker='GNU/Linux ld.so'
  31796. ;;
  31797. +netbsdelf*-gnu)
  31798. + version_type=linux
  31799. + need_lib_prefix=no
  31800. + need_version=no
  31801. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  31802. + soname_spec='${libname}${release}${shared_ext}$major'
  31803. + shlibpath_var=LD_LIBRARY_PATH
  31804. + shlibpath_overrides_runpath=no
  31805. + hardcode_into_libs=yes
  31806. + dynamic_linker='NetBSD ld.elf_so'
  31807. + ;;
  31808. +
  31809. netbsd*)
  31810. version_type=sunos
  31811. need_lib_prefix=no
  31812. need_version=no
  31813. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  31814. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  31815. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31816. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  31817. dynamic_linker='NetBSD (a.out) ld.so'
  31818. @@ -16392,14 +10706,16 @@
  31819. shlibpath_overrides_runpath=yes
  31820. ;;
  31821. -nto-qnx*)
  31822. - version_type=linux
  31823. +*nto* | *qnx*)
  31824. + version_type=qnx
  31825. need_lib_prefix=no
  31826. need_version=no
  31827. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31828. soname_spec='${libname}${release}${shared_ext}$major'
  31829. shlibpath_var=LD_LIBRARY_PATH
  31830. - shlibpath_overrides_runpath=yes
  31831. + shlibpath_overrides_runpath=no
  31832. + hardcode_into_libs=yes
  31833. + dynamic_linker='ldqnx.so'
  31834. ;;
  31835. openbsd*)
  31836. @@ -16408,13 +10724,13 @@
  31837. need_lib_prefix=no
  31838. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  31839. case $host_os in
  31840. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  31841. - *) need_version=no ;;
  31842. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  31843. + *) need_version=no ;;
  31844. esac
  31845. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31846. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  31847. shlibpath_var=LD_LIBRARY_PATH
  31848. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  31849. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  31850. case $host_os in
  31851. openbsd2.[89] | openbsd2.[89].*)
  31852. shlibpath_overrides_runpath=no
  31853. @@ -16486,7 +10802,6 @@
  31854. sni)
  31855. shlibpath_overrides_runpath=no
  31856. need_lib_prefix=no
  31857. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  31858. runpath_var=LD_RUN_PATH
  31859. ;;
  31860. siemens)
  31861. @@ -16517,13 +10832,12 @@
  31862. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  31863. soname_spec='${libname}${release}${shared_ext}$major'
  31864. shlibpath_var=LD_LIBRARY_PATH
  31865. + shlibpath_overrides_runpath=yes
  31866. hardcode_into_libs=yes
  31867. if test "$with_gnu_ld" = yes; then
  31868. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  31869. - shlibpath_overrides_runpath=no
  31870. else
  31871. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  31872. - shlibpath_overrides_runpath=yes
  31873. case $host_os in
  31874. sco3.2v5*)
  31875. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  31876. @@ -16533,6 +10847,17 @@
  31877. sys_lib_dlsearch_path_spec='/usr/lib'
  31878. ;;
  31879. +tpf*)
  31880. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  31881. + version_type=linux
  31882. + need_lib_prefix=no
  31883. + need_version=no
  31884. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31885. + shlibpath_var=LD_LIBRARY_PATH
  31886. + shlibpath_overrides_runpath=no
  31887. + hardcode_into_libs=yes
  31888. + ;;
  31889. +
  31890. uts4*)
  31891. version_type=linux
  31892. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31893. @@ -16544,513 +10869,795 @@
  31894. dynamic_linker=no
  31895. ;;
  31896. esac
  31897. -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  31898. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  31899. $as_echo "$dynamic_linker" >&6; }
  31900. test "$dynamic_linker" = no && can_build_shared=no
  31901. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  31902. - $as_echo_n "(cached) " >&6
  31903. -else
  31904. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  31905. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  31906. +if test "$GCC" = yes; then
  31907. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  31908. fi
  31909. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  31910. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  31911. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  31912. +fi
  31913. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  31914. - $as_echo_n "(cached) " >&6
  31915. -else
  31916. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  31917. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  31918. fi
  31919. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  31920. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  31921. -if test "$GCC" = yes; then
  31922. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  31923. -fi
  31924. -{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  31925. +
  31926. +
  31927. +
  31928. +
  31929. +
  31930. +
  31931. +
  31932. +
  31933. +
  31934. +
  31935. +
  31936. +
  31937. +
  31938. +
  31939. +
  31940. +
  31941. +
  31942. +
  31943. +
  31944. +
  31945. +
  31946. +
  31947. +
  31948. +
  31949. +
  31950. +
  31951. +
  31952. +
  31953. +
  31954. +
  31955. +
  31956. +
  31957. +
  31958. +
  31959. +
  31960. +
  31961. +
  31962. +
  31963. +
  31964. +
  31965. +
  31966. +
  31967. +
  31968. +
  31969. +
  31970. +
  31971. +
  31972. +
  31973. +
  31974. +
  31975. +
  31976. +
  31977. +
  31978. +
  31979. +
  31980. +
  31981. +
  31982. +
  31983. +
  31984. +
  31985. +
  31986. +
  31987. +
  31988. +
  31989. +
  31990. +
  31991. +
  31992. +
  31993. +
  31994. +
  31995. +
  31996. +
  31997. +
  31998. +
  31999. +
  32000. +
  32001. +
  32002. +
  32003. +
  32004. +
  32005. +
  32006. +
  32007. +
  32008. +
  32009. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  32010. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  32011. -hardcode_action_F77=
  32012. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  32013. - test -n "$runpath_var_F77" || \
  32014. - test "X$hardcode_automatic_F77" = "Xyes" ; then
  32015. +hardcode_action=
  32016. +if test -n "$hardcode_libdir_flag_spec" ||
  32017. + test -n "$runpath_var" ||
  32018. + test "X$hardcode_automatic" = "Xyes" ; then
  32019. - # We can hardcode non-existant directories.
  32020. - if test "$hardcode_direct_F77" != no &&
  32021. + # We can hardcode non-existent directories.
  32022. + if test "$hardcode_direct" != no &&
  32023. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  32024. # have to relink, otherwise we might link with an installed library
  32025. # when we should be linking with a yet-to-be-installed one
  32026. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  32027. - test "$hardcode_minus_L_F77" != no; then
  32028. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  32029. + test "$hardcode_minus_L" != no; then
  32030. # Linking always hardcodes the temporary library directory.
  32031. - hardcode_action_F77=relink
  32032. + hardcode_action=relink
  32033. else
  32034. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  32035. - hardcode_action_F77=immediate
  32036. + hardcode_action=immediate
  32037. fi
  32038. else
  32039. - # We cannot hardcode anything, or else we can only hardcode existing
  32040. - # directories.
  32041. - hardcode_action_F77=unsupported
  32042. + # We cannot hardcode anything, or else we can only hardcode existing
  32043. + # directories.
  32044. + hardcode_action=unsupported
  32045. +fi
  32046. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  32047. +$as_echo "$hardcode_action" >&6; }
  32048. +
  32049. +if test "$hardcode_action" = relink ||
  32050. + test "$inherit_rpath" = yes; then
  32051. + # Fast installation is not supported
  32052. + enable_fast_install=no
  32053. +elif test "$shlibpath_overrides_runpath" = yes ||
  32054. + test "$enable_shared" = no; then
  32055. + # Fast installation is not necessary
  32056. + enable_fast_install=needless
  32057. +fi
  32058. +
  32059. +
  32060. +
  32061. +
  32062. +
  32063. +
  32064. + if test "x$enable_dlopen" != xyes; then
  32065. + enable_dlopen=unknown
  32066. + enable_dlopen_self=unknown
  32067. + enable_dlopen_self_static=unknown
  32068. +else
  32069. + lt_cv_dlopen=no
  32070. + lt_cv_dlopen_libs=
  32071. +
  32072. + case $host_os in
  32073. + beos*)
  32074. + lt_cv_dlopen="load_add_on"
  32075. + lt_cv_dlopen_libs=
  32076. + lt_cv_dlopen_self=yes
  32077. + ;;
  32078. +
  32079. + mingw* | pw32* | cegcc*)
  32080. + lt_cv_dlopen="LoadLibrary"
  32081. + lt_cv_dlopen_libs=
  32082. + ;;
  32083. +
  32084. + cygwin*)
  32085. + lt_cv_dlopen="dlopen"
  32086. + lt_cv_dlopen_libs=
  32087. + ;;
  32088. +
  32089. + darwin*)
  32090. + # if libdl is installed we need to link against it
  32091. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  32092. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  32093. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  32094. + $as_echo_n "(cached) " >&6
  32095. +else
  32096. + ac_check_lib_save_LIBS=$LIBS
  32097. +LIBS="-ldl $LIBS"
  32098. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32099. +/* end confdefs.h. */
  32100. +
  32101. +/* Override any GCC internal prototype to avoid an error.
  32102. + Use char because int might match the return type of a GCC
  32103. + builtin and then its argument prototype would still apply. */
  32104. +#ifdef __cplusplus
  32105. +extern "C"
  32106. +#endif
  32107. +char dlopen ();
  32108. +int
  32109. +main ()
  32110. +{
  32111. +return dlopen ();
  32112. + ;
  32113. + return 0;
  32114. +}
  32115. +_ACEOF
  32116. +if ac_fn_c_try_link "$LINENO"; then :
  32117. + ac_cv_lib_dl_dlopen=yes
  32118. +else
  32119. + ac_cv_lib_dl_dlopen=no
  32120. fi
  32121. -{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  32122. -$as_echo "$hardcode_action_F77" >&6; }
  32123. -
  32124. -if test "$hardcode_action_F77" = relink; then
  32125. - # Fast installation is not supported
  32126. - enable_fast_install=no
  32127. -elif test "$shlibpath_overrides_runpath" = yes ||
  32128. - test "$enable_shared" = no; then
  32129. - # Fast installation is not necessary
  32130. - enable_fast_install=needless
  32131. +rm -f core conftest.err conftest.$ac_objext \
  32132. + conftest$ac_exeext conftest.$ac_ext
  32133. +LIBS=$ac_check_lib_save_LIBS
  32134. fi
  32135. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  32136. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  32137. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  32138. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  32139. +else
  32140. + lt_cv_dlopen="dyld"
  32141. + lt_cv_dlopen_libs=
  32142. + lt_cv_dlopen_self=yes
  32143. -# The else clause should only fire when bootstrapping the
  32144. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  32145. -# with your package, and you will get complaints that there are
  32146. -# no rules to generate ltmain.sh.
  32147. -if test -f "$ltmain"; then
  32148. - # See if we are running on zsh, and set the options which allow our commands through
  32149. - # without removal of \ escapes.
  32150. - if test -n "${ZSH_VERSION+set}" ; then
  32151. - setopt NO_GLOB_SUBST
  32152. - fi
  32153. - # Now quote all the things that may contain metacharacters while being
  32154. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  32155. - # variables and quote the copies for generation of the libtool script.
  32156. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  32157. - SED SHELL STRIP \
  32158. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  32159. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  32160. - deplibs_check_method reload_flag reload_cmds need_locks \
  32161. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  32162. - lt_cv_sys_global_symbol_to_c_name_address \
  32163. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  32164. - old_postinstall_cmds old_postuninstall_cmds \
  32165. - compiler_F77 \
  32166. - CC_F77 \
  32167. - LD_F77 \
  32168. - lt_prog_compiler_wl_F77 \
  32169. - lt_prog_compiler_pic_F77 \
  32170. - lt_prog_compiler_static_F77 \
  32171. - lt_prog_compiler_no_builtin_flag_F77 \
  32172. - export_dynamic_flag_spec_F77 \
  32173. - thread_safe_flag_spec_F77 \
  32174. - whole_archive_flag_spec_F77 \
  32175. - enable_shared_with_static_runtimes_F77 \
  32176. - old_archive_cmds_F77 \
  32177. - old_archive_from_new_cmds_F77 \
  32178. - predep_objects_F77 \
  32179. - postdep_objects_F77 \
  32180. - predeps_F77 \
  32181. - postdeps_F77 \
  32182. - compiler_lib_search_path_F77 \
  32183. - compiler_lib_search_dirs_F77 \
  32184. - archive_cmds_F77 \
  32185. - archive_expsym_cmds_F77 \
  32186. - postinstall_cmds_F77 \
  32187. - postuninstall_cmds_F77 \
  32188. - old_archive_from_expsyms_cmds_F77 \
  32189. - allow_undefined_flag_F77 \
  32190. - no_undefined_flag_F77 \
  32191. - export_symbols_cmds_F77 \
  32192. - hardcode_libdir_flag_spec_F77 \
  32193. - hardcode_libdir_flag_spec_ld_F77 \
  32194. - hardcode_libdir_separator_F77 \
  32195. - hardcode_automatic_F77 \
  32196. - module_cmds_F77 \
  32197. - module_expsym_cmds_F77 \
  32198. - lt_cv_prog_compiler_c_o_F77 \
  32199. - fix_srcfile_path_F77 \
  32200. - exclude_expsyms_F77 \
  32201. - include_expsyms_F77; do
  32202. -
  32203. - case $var in
  32204. - old_archive_cmds_F77 | \
  32205. - old_archive_from_new_cmds_F77 | \
  32206. - archive_cmds_F77 | \
  32207. - archive_expsym_cmds_F77 | \
  32208. - module_cmds_F77 | \
  32209. - module_expsym_cmds_F77 | \
  32210. - old_archive_from_expsyms_cmds_F77 | \
  32211. - export_symbols_cmds_F77 | \
  32212. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  32213. - postinstall_cmds | postuninstall_cmds | \
  32214. - old_postinstall_cmds | old_postuninstall_cmds | \
  32215. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  32216. - # Double-quote double-evaled strings.
  32217. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  32218. - ;;
  32219. - *)
  32220. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  32221. - ;;
  32222. - esac
  32223. - done
  32224. +fi
  32225. - case $lt_echo in
  32226. - *'\$0 --fallback-echo"')
  32227. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  32228. ;;
  32229. - esac
  32230. -
  32231. -cfgfile="$ofile"
  32232. -
  32233. - cat <<__EOF__ >> "$cfgfile"
  32234. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  32235. -
  32236. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  32237. -
  32238. -# Shell to use when invoking shell scripts.
  32239. -SHELL=$lt_SHELL
  32240. -# Whether or not to build shared libraries.
  32241. -build_libtool_libs=$enable_shared
  32242. -
  32243. -# Whether or not to build static libraries.
  32244. -build_old_libs=$enable_static
  32245. -
  32246. -# Whether or not to add -lc for building shared libraries.
  32247. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  32248. + *)
  32249. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  32250. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  32251. + lt_cv_dlopen="shl_load"
  32252. +else
  32253. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  32254. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  32255. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  32256. + $as_echo_n "(cached) " >&6
  32257. +else
  32258. + ac_check_lib_save_LIBS=$LIBS
  32259. +LIBS="-ldld $LIBS"
  32260. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32261. +/* end confdefs.h. */
  32262. -# Whether or not to disallow shared libs when runtime libs are static
  32263. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  32264. +/* Override any GCC internal prototype to avoid an error.
  32265. + Use char because int might match the return type of a GCC
  32266. + builtin and then its argument prototype would still apply. */
  32267. +#ifdef __cplusplus
  32268. +extern "C"
  32269. +#endif
  32270. +char shl_load ();
  32271. +int
  32272. +main ()
  32273. +{
  32274. +return shl_load ();
  32275. + ;
  32276. + return 0;
  32277. +}
  32278. +_ACEOF
  32279. +if ac_fn_c_try_link "$LINENO"; then :
  32280. + ac_cv_lib_dld_shl_load=yes
  32281. +else
  32282. + ac_cv_lib_dld_shl_load=no
  32283. +fi
  32284. +rm -f core conftest.err conftest.$ac_objext \
  32285. + conftest$ac_exeext conftest.$ac_ext
  32286. +LIBS=$ac_check_lib_save_LIBS
  32287. +fi
  32288. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  32289. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  32290. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  32291. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  32292. +else
  32293. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  32294. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  32295. + lt_cv_dlopen="dlopen"
  32296. +else
  32297. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  32298. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  32299. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  32300. + $as_echo_n "(cached) " >&6
  32301. +else
  32302. + ac_check_lib_save_LIBS=$LIBS
  32303. +LIBS="-ldl $LIBS"
  32304. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32305. +/* end confdefs.h. */
  32306. -# Whether or not to optimize for fast installation.
  32307. -fast_install=$enable_fast_install
  32308. +/* Override any GCC internal prototype to avoid an error.
  32309. + Use char because int might match the return type of a GCC
  32310. + builtin and then its argument prototype would still apply. */
  32311. +#ifdef __cplusplus
  32312. +extern "C"
  32313. +#endif
  32314. +char dlopen ();
  32315. +int
  32316. +main ()
  32317. +{
  32318. +return dlopen ();
  32319. + ;
  32320. + return 0;
  32321. +}
  32322. +_ACEOF
  32323. +if ac_fn_c_try_link "$LINENO"; then :
  32324. + ac_cv_lib_dl_dlopen=yes
  32325. +else
  32326. + ac_cv_lib_dl_dlopen=no
  32327. +fi
  32328. +rm -f core conftest.err conftest.$ac_objext \
  32329. + conftest$ac_exeext conftest.$ac_ext
  32330. +LIBS=$ac_check_lib_save_LIBS
  32331. +fi
  32332. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  32333. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  32334. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  32335. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  32336. +else
  32337. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  32338. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  32339. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  32340. + $as_echo_n "(cached) " >&6
  32341. +else
  32342. + ac_check_lib_save_LIBS=$LIBS
  32343. +LIBS="-lsvld $LIBS"
  32344. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32345. +/* end confdefs.h. */
  32346. -# The host system.
  32347. -host_alias=$host_alias
  32348. -host=$host
  32349. -host_os=$host_os
  32350. +/* Override any GCC internal prototype to avoid an error.
  32351. + Use char because int might match the return type of a GCC
  32352. + builtin and then its argument prototype would still apply. */
  32353. +#ifdef __cplusplus
  32354. +extern "C"
  32355. +#endif
  32356. +char dlopen ();
  32357. +int
  32358. +main ()
  32359. +{
  32360. +return dlopen ();
  32361. + ;
  32362. + return 0;
  32363. +}
  32364. +_ACEOF
  32365. +if ac_fn_c_try_link "$LINENO"; then :
  32366. + ac_cv_lib_svld_dlopen=yes
  32367. +else
  32368. + ac_cv_lib_svld_dlopen=no
  32369. +fi
  32370. +rm -f core conftest.err conftest.$ac_objext \
  32371. + conftest$ac_exeext conftest.$ac_ext
  32372. +LIBS=$ac_check_lib_save_LIBS
  32373. +fi
  32374. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  32375. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  32376. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  32377. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  32378. +else
  32379. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  32380. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  32381. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  32382. + $as_echo_n "(cached) " >&6
  32383. +else
  32384. + ac_check_lib_save_LIBS=$LIBS
  32385. +LIBS="-ldld $LIBS"
  32386. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32387. +/* end confdefs.h. */
  32388. -# The build system.
  32389. -build_alias=$build_alias
  32390. -build=$build
  32391. -build_os=$build_os
  32392. +/* Override any GCC internal prototype to avoid an error.
  32393. + Use char because int might match the return type of a GCC
  32394. + builtin and then its argument prototype would still apply. */
  32395. +#ifdef __cplusplus
  32396. +extern "C"
  32397. +#endif
  32398. +char dld_link ();
  32399. +int
  32400. +main ()
  32401. +{
  32402. +return dld_link ();
  32403. + ;
  32404. + return 0;
  32405. +}
  32406. +_ACEOF
  32407. +if ac_fn_c_try_link "$LINENO"; then :
  32408. + ac_cv_lib_dld_dld_link=yes
  32409. +else
  32410. + ac_cv_lib_dld_dld_link=no
  32411. +fi
  32412. +rm -f core conftest.err conftest.$ac_objext \
  32413. + conftest$ac_exeext conftest.$ac_ext
  32414. +LIBS=$ac_check_lib_save_LIBS
  32415. +fi
  32416. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  32417. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  32418. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  32419. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  32420. +fi
  32421. -# An echo program that does not interpret backslashes.
  32422. -echo=$lt_echo
  32423. -# The archiver.
  32424. -AR=$lt_AR
  32425. -AR_FLAGS=$lt_AR_FLAGS
  32426. +fi
  32427. -# A C compiler.
  32428. -LTCC=$lt_LTCC
  32429. -# LTCC compiler flags.
  32430. -LTCFLAGS=$lt_LTCFLAGS
  32431. +fi
  32432. -# A language-specific compiler.
  32433. -CC=$lt_compiler_F77
  32434. -# Is the compiler the GNU C compiler?
  32435. -with_gcc=$GCC_F77
  32436. +fi
  32437. -# An ERE matcher.
  32438. -EGREP=$lt_EGREP
  32439. -# The linker used to build libraries.
  32440. -LD=$lt_LD_F77
  32441. +fi
  32442. -# Whether we need hard or soft links.
  32443. -LN_S=$lt_LN_S
  32444. -# A BSD-compatible nm program.
  32445. -NM=$lt_NM
  32446. +fi
  32447. -# A symbol stripping program
  32448. -STRIP=$lt_STRIP
  32449. + ;;
  32450. + esac
  32451. -# Used to examine libraries when file_magic_cmd begins "file"
  32452. -MAGIC_CMD=$MAGIC_CMD
  32453. + if test "x$lt_cv_dlopen" != xno; then
  32454. + enable_dlopen=yes
  32455. + else
  32456. + enable_dlopen=no
  32457. + fi
  32458. -# Used on cygwin: DLL creation program.
  32459. -DLLTOOL="$DLLTOOL"
  32460. + case $lt_cv_dlopen in
  32461. + dlopen)
  32462. + save_CPPFLAGS="$CPPFLAGS"
  32463. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  32464. -# Used on cygwin: object dumper.
  32465. -OBJDUMP="$OBJDUMP"
  32466. + save_LDFLAGS="$LDFLAGS"
  32467. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  32468. -# Used on cygwin: assembler.
  32469. -AS="$AS"
  32470. + save_LIBS="$LIBS"
  32471. + LIBS="$lt_cv_dlopen_libs $LIBS"
  32472. -# The name of the directory that contains temporary libtool files.
  32473. -objdir=$objdir
  32474. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  32475. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  32476. +if test "${lt_cv_dlopen_self+set}" = set; then :
  32477. + $as_echo_n "(cached) " >&6
  32478. +else
  32479. + if test "$cross_compiling" = yes; then :
  32480. + lt_cv_dlopen_self=cross
  32481. +else
  32482. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  32483. + lt_status=$lt_dlunknown
  32484. + cat > conftest.$ac_ext <<_LT_EOF
  32485. +#line 11304 "configure"
  32486. +#include "confdefs.h"
  32487. -# How to create reloadable object files.
  32488. -reload_flag=$lt_reload_flag
  32489. -reload_cmds=$lt_reload_cmds
  32490. +#if HAVE_DLFCN_H
  32491. +#include <dlfcn.h>
  32492. +#endif
  32493. -# How to pass a linker flag through the compiler.
  32494. -wl=$lt_lt_prog_compiler_wl_F77
  32495. +#include <stdio.h>
  32496. -# Object file suffix (normally "o").
  32497. -objext="$ac_objext"
  32498. +#ifdef RTLD_GLOBAL
  32499. +# define LT_DLGLOBAL RTLD_GLOBAL
  32500. +#else
  32501. +# ifdef DL_GLOBAL
  32502. +# define LT_DLGLOBAL DL_GLOBAL
  32503. +# else
  32504. +# define LT_DLGLOBAL 0
  32505. +# endif
  32506. +#endif
  32507. -# Old archive suffix (normally "a").
  32508. -libext="$libext"
  32509. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  32510. + find out it does not work in some platform. */
  32511. +#ifndef LT_DLLAZY_OR_NOW
  32512. +# ifdef RTLD_LAZY
  32513. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  32514. +# else
  32515. +# ifdef DL_LAZY
  32516. +# define LT_DLLAZY_OR_NOW DL_LAZY
  32517. +# else
  32518. +# ifdef RTLD_NOW
  32519. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  32520. +# else
  32521. +# ifdef DL_NOW
  32522. +# define LT_DLLAZY_OR_NOW DL_NOW
  32523. +# else
  32524. +# define LT_DLLAZY_OR_NOW 0
  32525. +# endif
  32526. +# endif
  32527. +# endif
  32528. +# endif
  32529. +#endif
  32530. -# Shared library suffix (normally ".so").
  32531. -shrext_cmds='$shrext_cmds'
  32532. +void fnord() { int i=42;}
  32533. +int main ()
  32534. +{
  32535. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  32536. + int status = $lt_dlunknown;
  32537. -# Executable file suffix (normally "").
  32538. -exeext="$exeext"
  32539. + if (self)
  32540. + {
  32541. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  32542. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  32543. + /* dlclose (self); */
  32544. + }
  32545. + else
  32546. + puts (dlerror ());
  32547. -# Additional compiler flags for building library objects.
  32548. -pic_flag=$lt_lt_prog_compiler_pic_F77
  32549. -pic_mode=$pic_mode
  32550. + return status;
  32551. +}
  32552. +_LT_EOF
  32553. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  32554. + (eval $ac_link) 2>&5
  32555. + ac_status=$?
  32556. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  32557. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  32558. + (./conftest; exit; ) >&5 2>/dev/null
  32559. + lt_status=$?
  32560. + case x$lt_status in
  32561. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  32562. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  32563. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  32564. + esac
  32565. + else :
  32566. + # compilation failed
  32567. + lt_cv_dlopen_self=no
  32568. + fi
  32569. +fi
  32570. +rm -fr conftest*
  32571. -# What is the maximum length of a command?
  32572. -max_cmd_len=$lt_cv_sys_max_cmd_len
  32573. -# Does compiler simultaneously support -c and -o options?
  32574. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  32575. +fi
  32576. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  32577. +$as_echo "$lt_cv_dlopen_self" >&6; }
  32578. -# Must we lock files when doing compilation?
  32579. -need_locks=$lt_need_locks
  32580. + if test "x$lt_cv_dlopen_self" = xyes; then
  32581. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  32582. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  32583. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  32584. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  32585. + $as_echo_n "(cached) " >&6
  32586. +else
  32587. + if test "$cross_compiling" = yes; then :
  32588. + lt_cv_dlopen_self_static=cross
  32589. +else
  32590. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  32591. + lt_status=$lt_dlunknown
  32592. + cat > conftest.$ac_ext <<_LT_EOF
  32593. +#line 11400 "configure"
  32594. +#include "confdefs.h"
  32595. -# Do we need the lib prefix for modules?
  32596. -need_lib_prefix=$need_lib_prefix
  32597. +#if HAVE_DLFCN_H
  32598. +#include <dlfcn.h>
  32599. +#endif
  32600. -# Do we need a version for libraries?
  32601. -need_version=$need_version
  32602. +#include <stdio.h>
  32603. -# Whether dlopen is supported.
  32604. -dlopen_support=$enable_dlopen
  32605. +#ifdef RTLD_GLOBAL
  32606. +# define LT_DLGLOBAL RTLD_GLOBAL
  32607. +#else
  32608. +# ifdef DL_GLOBAL
  32609. +# define LT_DLGLOBAL DL_GLOBAL
  32610. +# else
  32611. +# define LT_DLGLOBAL 0
  32612. +# endif
  32613. +#endif
  32614. -# Whether dlopen of programs is supported.
  32615. -dlopen_self=$enable_dlopen_self
  32616. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  32617. + find out it does not work in some platform. */
  32618. +#ifndef LT_DLLAZY_OR_NOW
  32619. +# ifdef RTLD_LAZY
  32620. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  32621. +# else
  32622. +# ifdef DL_LAZY
  32623. +# define LT_DLLAZY_OR_NOW DL_LAZY
  32624. +# else
  32625. +# ifdef RTLD_NOW
  32626. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  32627. +# else
  32628. +# ifdef DL_NOW
  32629. +# define LT_DLLAZY_OR_NOW DL_NOW
  32630. +# else
  32631. +# define LT_DLLAZY_OR_NOW 0
  32632. +# endif
  32633. +# endif
  32634. +# endif
  32635. +# endif
  32636. +#endif
  32637. -# Whether dlopen of statically linked programs is supported.
  32638. -dlopen_self_static=$enable_dlopen_self_static
  32639. +void fnord() { int i=42;}
  32640. +int main ()
  32641. +{
  32642. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  32643. + int status = $lt_dlunknown;
  32644. -# Compiler flag to prevent dynamic linking.
  32645. -link_static_flag=$lt_lt_prog_compiler_static_F77
  32646. + if (self)
  32647. + {
  32648. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  32649. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  32650. + /* dlclose (self); */
  32651. + }
  32652. + else
  32653. + puts (dlerror ());
  32654. -# Compiler flag to turn off builtin functions.
  32655. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  32656. + return status;
  32657. +}
  32658. +_LT_EOF
  32659. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  32660. + (eval $ac_link) 2>&5
  32661. + ac_status=$?
  32662. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  32663. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  32664. + (./conftest; exit; ) >&5 2>/dev/null
  32665. + lt_status=$?
  32666. + case x$lt_status in
  32667. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  32668. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  32669. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  32670. + esac
  32671. + else :
  32672. + # compilation failed
  32673. + lt_cv_dlopen_self_static=no
  32674. + fi
  32675. +fi
  32676. +rm -fr conftest*
  32677. -# Compiler flag to allow reflexive dlopens.
  32678. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  32679. -# Compiler flag to generate shared objects directly from archives.
  32680. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  32681. +fi
  32682. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  32683. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  32684. + fi
  32685. -# Compiler flag to generate thread-safe objects.
  32686. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  32687. + CPPFLAGS="$save_CPPFLAGS"
  32688. + LDFLAGS="$save_LDFLAGS"
  32689. + LIBS="$save_LIBS"
  32690. + ;;
  32691. + esac
  32692. -# Library versioning type.
  32693. -version_type=$version_type
  32694. + case $lt_cv_dlopen_self in
  32695. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  32696. + *) enable_dlopen_self=unknown ;;
  32697. + esac
  32698. -# Format of library name prefix.
  32699. -libname_spec=$lt_libname_spec
  32700. + case $lt_cv_dlopen_self_static in
  32701. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  32702. + *) enable_dlopen_self_static=unknown ;;
  32703. + esac
  32704. +fi
  32705. -# List of archive names. First name is the real one, the rest are links.
  32706. -# The last name is the one that the linker finds with -lNAME.
  32707. -library_names_spec=$lt_library_names_spec
  32708. -# The coded name of the library, if different from the real name.
  32709. -soname_spec=$lt_soname_spec
  32710. -# Commands used to build and install an old-style archive.
  32711. -RANLIB=$lt_RANLIB
  32712. -old_archive_cmds=$lt_old_archive_cmds_F77
  32713. -old_postinstall_cmds=$lt_old_postinstall_cmds
  32714. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  32715. -# Create an old-style archive from a shared archive.
  32716. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  32717. -# Create a temporary old-style archive to link instead of a shared archive.
  32718. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  32719. -# Commands used to build and install a shared archive.
  32720. -archive_cmds=$lt_archive_cmds_F77
  32721. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  32722. -postinstall_cmds=$lt_postinstall_cmds
  32723. -postuninstall_cmds=$lt_postuninstall_cmds
  32724. -# Commands used to build a loadable module (assumed same as above if empty)
  32725. -module_cmds=$lt_module_cmds_F77
  32726. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  32727. -# Commands to strip libraries.
  32728. -old_striplib=$lt_old_striplib
  32729. -striplib=$lt_striplib
  32730. -# Dependencies to place before the objects being linked to create a
  32731. -# shared library.
  32732. -predep_objects=$lt_predep_objects_F77
  32733. -
  32734. -# Dependencies to place after the objects being linked to create a
  32735. -# shared library.
  32736. -postdep_objects=$lt_postdep_objects_F77
  32737. -
  32738. -# Dependencies to place before the objects being linked to create a
  32739. -# shared library.
  32740. -predeps=$lt_predeps_F77
  32741. -
  32742. -# Dependencies to place after the objects being linked to create a
  32743. -# shared library.
  32744. -postdeps=$lt_postdeps_F77
  32745. -
  32746. -# The directories searched by this compiler when creating a shared
  32747. -# library
  32748. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
  32749. -# The library search path used internally by the compiler when linking
  32750. -# a shared library.
  32751. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  32752. -# Method to check whether dependent libraries are shared objects.
  32753. -deplibs_check_method=$lt_deplibs_check_method
  32754. -# Command to use when deplibs_check_method == file_magic.
  32755. -file_magic_cmd=$lt_file_magic_cmd
  32756. -# Flag that allows shared libraries with undefined symbols to be built.
  32757. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  32758. -# Flag that forces no undefined symbols.
  32759. -no_undefined_flag=$lt_no_undefined_flag_F77
  32760. -# Commands used to finish a libtool library installation in a directory.
  32761. -finish_cmds=$lt_finish_cmds
  32762. -# Same as above, but a single script fragment to be evaled but not shown.
  32763. -finish_eval=$lt_finish_eval
  32764. -# Take the output of nm and produce a listing of raw symbols and C names.
  32765. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  32766. +striplib=
  32767. +old_striplib=
  32768. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  32769. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  32770. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  32771. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  32772. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  32773. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32774. +$as_echo "yes" >&6; }
  32775. +else
  32776. +# FIXME - insert some real tests, host_os isn't really good enough
  32777. + case $host_os in
  32778. + darwin*)
  32779. + if test -n "$STRIP" ; then
  32780. + striplib="$STRIP -x"
  32781. + old_striplib="$STRIP -S"
  32782. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32783. +$as_echo "yes" >&6; }
  32784. + else
  32785. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32786. +$as_echo "no" >&6; }
  32787. + fi
  32788. + ;;
  32789. + *)
  32790. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32791. +$as_echo "no" >&6; }
  32792. + ;;
  32793. + esac
  32794. +fi
  32795. -# Transform the output of nm in a proper C declaration
  32796. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  32797. -# Transform the output of nm in a C name address pair
  32798. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  32799. -# This is the shared library runtime path variable.
  32800. -runpath_var=$runpath_var
  32801. -# This is the shared library path variable.
  32802. -shlibpath_var=$shlibpath_var
  32803. -# Is shlibpath searched before the hard-coded library search path?
  32804. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  32805. -# How to hardcode a shared library path into an executable.
  32806. -hardcode_action=$hardcode_action_F77
  32807. -# Whether we should hardcode library paths into libraries.
  32808. -hardcode_into_libs=$hardcode_into_libs
  32809. -# Flag to hardcode \$libdir into a binary during linking.
  32810. -# This must work even if \$libdir does not exist.
  32811. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  32812. -# If ld is used when linking, flag to hardcode \$libdir into
  32813. -# a binary during linking. This must work even if \$libdir does
  32814. -# not exist.
  32815. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  32816. -
  32817. -# Whether we need a single -rpath flag with a separated argument.
  32818. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  32819. -
  32820. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  32821. -# resulting binary.
  32822. -hardcode_direct=$hardcode_direct_F77
  32823. -
  32824. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  32825. -# resulting binary.
  32826. -hardcode_minus_L=$hardcode_minus_L_F77
  32827. -
  32828. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  32829. -# the resulting binary.
  32830. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  32831. -
  32832. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  32833. -# and all subsequent libraries and executables linked against it.
  32834. -hardcode_automatic=$hardcode_automatic_F77
  32835. -# Variables whose values should be saved in libtool wrapper scripts and
  32836. -# restored at relink time.
  32837. -variables_saved_for_relink="$variables_saved_for_relink"
  32838. -# Whether libtool must link a program against all its dependency libraries.
  32839. -link_all_deplibs=$link_all_deplibs_F77
  32840. -# Compile-time system search path for libraries
  32841. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  32842. + # Report which library types will actually be built
  32843. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  32844. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  32845. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  32846. +$as_echo "$can_build_shared" >&6; }
  32847. -# Run-time system search path for libraries
  32848. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  32849. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  32850. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  32851. + test "$can_build_shared" = "no" && enable_shared=no
  32852. -# Fix the shell variable \$srcfile for the compiler.
  32853. -fix_srcfile_path=$lt_fix_srcfile_path
  32854. + # On AIX, shared libraries and static libraries use the same namespace, and
  32855. + # are all built from PIC.
  32856. + case $host_os in
  32857. + aix3*)
  32858. + test "$enable_shared" = yes && enable_static=no
  32859. + if test -n "$RANLIB"; then
  32860. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  32861. + postinstall_cmds='$RANLIB $lib'
  32862. + fi
  32863. + ;;
  32864. -# Set to yes if exported symbols are required.
  32865. -always_export_symbols=$always_export_symbols_F77
  32866. + aix[4-9]*)
  32867. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  32868. + test "$enable_shared" = yes && enable_static=no
  32869. + fi
  32870. + ;;
  32871. + esac
  32872. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  32873. +$as_echo "$enable_shared" >&6; }
  32874. -# The commands to list exported symbols.
  32875. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  32876. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  32877. +$as_echo_n "checking whether to build static libraries... " >&6; }
  32878. + # Make sure either enable_shared or enable_static is yes.
  32879. + test "$enable_shared" = yes || enable_static=yes
  32880. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  32881. +$as_echo "$enable_static" >&6; }
  32882. -# The commands to extract the exported symbol list from a shared archive.
  32883. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  32884. -# Symbols that should not be listed in the preloaded symbols.
  32885. -exclude_expsyms=$lt_exclude_expsyms_F77
  32886. -# Symbols that must always be exported.
  32887. -include_expsyms=$lt_include_expsyms_F77
  32888. -# ### END LIBTOOL TAG CONFIG: $tagname
  32889. +fi
  32890. +ac_ext=c
  32891. +ac_cpp='$CPP $CPPFLAGS'
  32892. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32893. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32894. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32895. -__EOF__
  32896. +CC="$lt_save_CC"
  32897. -else
  32898. - # If there is no Makefile yet, we rely on a make rule to execute
  32899. - # `config.status --recheck' to rerun these tests and create the
  32900. - # libtool script then.
  32901. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  32902. - if test -f "$ltmain_in"; then
  32903. - test -f Makefile && make "$ltmain"
  32904. - fi
  32905. -fi
  32906. +ac_ext=cpp
  32907. +ac_cpp='$CXXCPP $CPPFLAGS'
  32908. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32909. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32910. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  32911. +archive_cmds_need_lc_CXX=no
  32912. +allow_undefined_flag_CXX=
  32913. +always_export_symbols_CXX=no
  32914. +archive_expsym_cmds_CXX=
  32915. +compiler_needs_object_CXX=no
  32916. +export_dynamic_flag_spec_CXX=
  32917. +hardcode_direct_CXX=no
  32918. +hardcode_direct_absolute_CXX=no
  32919. +hardcode_libdir_flag_spec_CXX=
  32920. +hardcode_libdir_flag_spec_ld_CXX=
  32921. +hardcode_libdir_separator_CXX=
  32922. +hardcode_minus_L_CXX=no
  32923. +hardcode_shlibpath_var_CXX=unsupported
  32924. +hardcode_automatic_CXX=no
  32925. +inherit_rpath_CXX=no
  32926. +module_cmds_CXX=
  32927. +module_expsym_cmds_CXX=
  32928. +link_all_deplibs_CXX=unknown
  32929. +old_archive_cmds_CXX=$old_archive_cmds
  32930. +no_undefined_flag_CXX=
  32931. +whole_archive_flag_spec_CXX=
  32932. +enable_shared_with_static_runtimes_CXX=no
  32933. -ac_ext=c
  32934. -ac_cpp='$CPP $CPPFLAGS'
  32935. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32936. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32937. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32938. +# Source file extension for C++ test sources.
  32939. +ac_ext=cpp
  32940. -CC="$lt_save_CC"
  32941. +# Object file extension for compiled C++ test sources.
  32942. +objext=o
  32943. +objext_CXX=$objext
  32944. - else
  32945. - tagname=""
  32946. - fi
  32947. - ;;
  32948. +# No sense in running all these tests if we already determined that
  32949. +# the CXX compiler isn't working. Some variables (like enable_shared)
  32950. +# are currently assumed to apply to all compilers on this platform,
  32951. +# and will be corrupted by setting them based on a non-working compiler.
  32952. +if test "$_lt_caught_CXX_error" != yes; then
  32953. + # Code to be used in simple compile tests
  32954. + lt_simple_compile_test_code="int some_variable = 0;"
  32955. - GCJ)
  32956. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  32957. + # Code to be used in simple link tests
  32958. + lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  32959. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  32960. -# Source file extension for Java test sources.
  32961. -ac_ext=java
  32962. -# Object file extension for compiled Java test sources.
  32963. -objext=o
  32964. -objext_GCJ=$objext
  32965. -# Code to be used in simple compile tests
  32966. -lt_simple_compile_test_code="class foo {}"
  32967. -# Code to be used in simple link tests
  32968. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  32969. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  32970. # If no C compiler was specified, use CC.
  32971. LTCC=${LTCC-"$CC"}
  32972. @@ -17062,26 +11669,42 @@
  32973. compiler=$CC
  32974. -# save warnings/boilerplate of simple test code
  32975. -ac_outfile=conftest.$ac_objext
  32976. + # save warnings/boilerplate of simple test code
  32977. + ac_outfile=conftest.$ac_objext
  32978. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  32979. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  32980. _lt_compiler_boilerplate=`cat conftest.err`
  32981. -$rm conftest*
  32982. +$RM conftest*
  32983. -ac_outfile=conftest.$ac_objext
  32984. + ac_outfile=conftest.$ac_objext
  32985. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  32986. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  32987. _lt_linker_boilerplate=`cat conftest.err`
  32988. -$rm -r conftest*
  32989. +$RM -r conftest*
  32990. -# Allow CC to be a program name with arguments.
  32991. -lt_save_CC="$CC"
  32992. -CC=${GCJ-"gcj"}
  32993. -compiler=$CC
  32994. -compiler_GCJ=$CC
  32995. -for cc_temp in $compiler""; do
  32996. + # Allow CC to be a program name with arguments.
  32997. + lt_save_CC=$CC
  32998. + lt_save_LD=$LD
  32999. + lt_save_GCC=$GCC
  33000. + GCC=$GXX
  33001. + lt_save_with_gnu_ld=$with_gnu_ld
  33002. + lt_save_path_LD=$lt_cv_path_LD
  33003. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  33004. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  33005. + else
  33006. + $as_unset lt_cv_prog_gnu_ld
  33007. + fi
  33008. + if test -n "${lt_cv_path_LDCXX+set}"; then
  33009. + lt_cv_path_LD=$lt_cv_path_LDCXX
  33010. + else
  33011. + $as_unset lt_cv_path_LD
  33012. + fi
  33013. + test -z "${LDCXX+set}" || LD=$LDCXX
  33014. + CC=${CXX-"c++"}
  33015. + compiler=$CC
  33016. + compiler_CXX=$CC
  33017. + for cc_temp in $compiler""; do
  33018. case $cc_temp in
  33019. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  33020. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  33021. @@ -17089,7135 +11712,6392 @@
  33022. *) break;;
  33023. esac
  33024. done
  33025. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  33026. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  33027. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  33028. -archive_cmds_need_lc_GCJ=no
  33029. -
  33030. -old_archive_cmds_GCJ=$old_archive_cmds
  33031. + if test -n "$compiler"; then
  33032. + # We don't want -fno-exception when compiling C++ code, so set the
  33033. + # no_builtin_flag separately
  33034. + if test "$GXX" = yes; then
  33035. + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  33036. + else
  33037. + lt_prog_compiler_no_builtin_flag_CXX=
  33038. + fi
  33039. + if test "$GXX" = yes; then
  33040. + # Set up default GNU C++ configuration
  33041. -lt_prog_compiler_no_builtin_flag_GCJ=
  33042. -if test "$GCC" = yes; then
  33043. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  33044. +# Check whether --with-gnu-ld was given.
  33045. +if test "${with_gnu_ld+set}" = set; then :
  33046. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  33047. +else
  33048. + with_gnu_ld=no
  33049. +fi
  33050. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  33051. -$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  33052. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  33053. +ac_prog=ld
  33054. +if test "$GCC" = yes; then
  33055. + # Check if gcc -print-prog-name=ld gives a path.
  33056. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  33057. +$as_echo_n "checking for ld used by $CC... " >&6; }
  33058. + case $host in
  33059. + *-*-mingw*)
  33060. + # gcc leaves a trailing carriage return which upsets mingw
  33061. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  33062. + *)
  33063. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  33064. + esac
  33065. + case $ac_prog in
  33066. + # Accept absolute paths.
  33067. + [\\/]* | ?:[\\/]*)
  33068. + re_direlt='/[^/][^/]*/\.\./'
  33069. + # Canonicalize the pathname of ld
  33070. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  33071. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  33072. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  33073. + done
  33074. + test -z "$LD" && LD="$ac_prog"
  33075. + ;;
  33076. + "")
  33077. + # If it fails, then pretend we aren't using GCC.
  33078. + ac_prog=ld
  33079. + ;;
  33080. + *)
  33081. + # If it is relative, then search for the first ld in PATH.
  33082. + with_gnu_ld=unknown
  33083. + ;;
  33084. + esac
  33085. +elif test "$with_gnu_ld" = yes; then
  33086. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  33087. +$as_echo_n "checking for GNU ld... " >&6; }
  33088. +else
  33089. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  33090. +$as_echo_n "checking for non-GNU ld... " >&6; }
  33091. +fi
  33092. +if test "${lt_cv_path_LD+set}" = set; then :
  33093. $as_echo_n "(cached) " >&6
  33094. else
  33095. - lt_cv_prog_compiler_rtti_exceptions=no
  33096. - ac_outfile=conftest.$ac_objext
  33097. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33098. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  33099. - # Insert the option either (1) after the last *FLAGS variable, or
  33100. - # (2) before a word containing "conftest.", or (3) at the end.
  33101. - # Note that $ac_compile itself does not contain backslashes and begins
  33102. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  33103. - # The option is referenced via a variable to avoid confusing sed.
  33104. - lt_compile=`echo "$ac_compile" | $SED \
  33105. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33106. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33107. - -e 's:$: $lt_compiler_flag:'`
  33108. - (eval echo "\"\$as_me:17125: $lt_compile\"" >&5)
  33109. - (eval "$lt_compile" 2>conftest.err)
  33110. - ac_status=$?
  33111. - cat conftest.err >&5
  33112. - echo "$as_me:17129: \$? = $ac_status" >&5
  33113. - if (exit $ac_status) && test -s "$ac_outfile"; then
  33114. - # The compiler can only warn and ignore the option if not recognized
  33115. - # So say no if there are warnings other than the usual output.
  33116. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  33117. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  33118. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  33119. - lt_cv_prog_compiler_rtti_exceptions=yes
  33120. - fi
  33121. - fi
  33122. - $rm conftest*
  33123. -
  33124. + if test -z "$LD"; then
  33125. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  33126. + for ac_dir in $PATH; do
  33127. + IFS="$lt_save_ifs"
  33128. + test -z "$ac_dir" && ac_dir=.
  33129. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  33130. + lt_cv_path_LD="$ac_dir/$ac_prog"
  33131. + # Check to see if the program is GNU ld. I'd rather use --version,
  33132. + # but apparently some variants of GNU ld only accept -v.
  33133. + # Break only if it was the GNU/non-GNU ld that we prefer.
  33134. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  33135. + *GNU* | *'with BFD'*)
  33136. + test "$with_gnu_ld" != no && break
  33137. + ;;
  33138. + *)
  33139. + test "$with_gnu_ld" != yes && break
  33140. + ;;
  33141. + esac
  33142. + fi
  33143. + done
  33144. + IFS="$lt_save_ifs"
  33145. +else
  33146. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  33147. +fi
  33148. fi
  33149. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  33150. -$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  33151. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  33152. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  33153. +LD="$lt_cv_path_LD"
  33154. +if test -n "$LD"; then
  33155. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  33156. +$as_echo "$LD" >&6; }
  33157. else
  33158. - :
  33159. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33160. +$as_echo "no" >&6; }
  33161. fi
  33162. -
  33163. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  33164. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  33165. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  33166. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  33167. + $as_echo_n "(cached) " >&6
  33168. +else
  33169. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  33170. +case `$LD -v 2>&1 </dev/null` in
  33171. +*GNU* | *'with BFD'*)
  33172. + lt_cv_prog_gnu_ld=yes
  33173. + ;;
  33174. +*)
  33175. + lt_cv_prog_gnu_ld=no
  33176. + ;;
  33177. +esac
  33178. fi
  33179. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  33180. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  33181. +with_gnu_ld=$lt_cv_prog_gnu_ld
  33182. -lt_prog_compiler_wl_GCJ=
  33183. -lt_prog_compiler_pic_GCJ=
  33184. -lt_prog_compiler_static_GCJ=
  33185. -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  33186. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  33187. - if test "$GCC" = yes; then
  33188. - lt_prog_compiler_wl_GCJ='-Wl,'
  33189. - lt_prog_compiler_static_GCJ='-static'
  33190. - case $host_os in
  33191. - aix*)
  33192. - # All AIX code is PIC.
  33193. - if test "$host_cpu" = ia64; then
  33194. - # AIX 5 now supports IA64 processor
  33195. - lt_prog_compiler_static_GCJ='-Bstatic'
  33196. - fi
  33197. - ;;
  33198. - amigaos*)
  33199. - # FIXME: we need at least 68020 code to build shared libraries, but
  33200. - # adding the `-m68020' flag to GCC prevents building anything better,
  33201. - # like `-m68040'.
  33202. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  33203. - ;;
  33204. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  33205. - # PIC is the default for these OSes.
  33206. - ;;
  33207. - mingw* | cygwin* | pw32* | os2*)
  33208. - # This hack is so that the source file can tell whether it is being
  33209. - # built for inclusion in a dll (and should export symbols for example).
  33210. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  33211. - # (--disable-auto-import) libraries
  33212. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  33213. + # archiving commands below assume that GNU ld is being used.
  33214. + if test "$with_gnu_ld" = yes; then
  33215. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33216. + 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'
  33217. +
  33218. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  33219. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  33220. +
  33221. + # If archive_cmds runs LD, not CC, wlarc should be empty
  33222. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  33223. + # investigate it a little bit more. (MM)
  33224. + wlarc='${wl}'
  33225. +
  33226. + # ancient GNU ld didn't support --whole-archive et. al.
  33227. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  33228. + $GREP 'no-whole-archive' > /dev/null; then
  33229. + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  33230. + else
  33231. + whole_archive_flag_spec_CXX=
  33232. + fi
  33233. + else
  33234. + with_gnu_ld=no
  33235. + wlarc=
  33236. - ;;
  33237. + # A generic and very simple default shared library creation
  33238. + # command for GNU C++ for the case where it uses the native
  33239. + # linker, instead of GNU ld. If possible, this setting should
  33240. + # overridden to take advantage of the native linker features on
  33241. + # the platform it is being used on.
  33242. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  33243. + fi
  33244. - darwin* | rhapsody*)
  33245. - # PIC is the default on this platform
  33246. - # Common symbols not allowed in MH_DYLIB files
  33247. - lt_prog_compiler_pic_GCJ='-fno-common'
  33248. - ;;
  33249. + # Commands to make compiler produce verbose output that lists
  33250. + # what "hidden" libraries, object files and flags are used when
  33251. + # linking a shared library.
  33252. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  33253. - interix[3-9]*)
  33254. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  33255. - # Instead, we relocate shared libraries at runtime.
  33256. - ;;
  33257. + else
  33258. + GXX=no
  33259. + with_gnu_ld=no
  33260. + wlarc=
  33261. + fi
  33262. - msdosdjgpp*)
  33263. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  33264. - # on systems that don't support them.
  33265. - lt_prog_compiler_can_build_shared_GCJ=no
  33266. - enable_shared=no
  33267. - ;;
  33268. + # PORTME: fill in a description of your system's C++ link characteristics
  33269. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  33270. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  33271. + ld_shlibs_CXX=yes
  33272. + case $host_os in
  33273. + aix3*)
  33274. + # FIXME: insert proper C++ library support
  33275. + ld_shlibs_CXX=no
  33276. + ;;
  33277. + aix[4-9]*)
  33278. + if test "$host_cpu" = ia64; then
  33279. + # On IA64, the linker does run time linking by default, so we don't
  33280. + # have to do anything special.
  33281. + aix_use_runtimelinking=no
  33282. + exp_sym_flag='-Bexport'
  33283. + no_entry_flag=""
  33284. + else
  33285. + aix_use_runtimelinking=no
  33286. - sysv4*MP*)
  33287. - if test -d /usr/nec; then
  33288. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  33289. - fi
  33290. - ;;
  33291. + # Test if we are trying to use run time linking or normal
  33292. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  33293. + # need to do runtime linking.
  33294. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  33295. + for ld_flag in $LDFLAGS; do
  33296. + case $ld_flag in
  33297. + *-brtl*)
  33298. + aix_use_runtimelinking=yes
  33299. + break
  33300. + ;;
  33301. + esac
  33302. + done
  33303. + ;;
  33304. + esac
  33305. - hpux*)
  33306. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  33307. - # not for PA HP-UX.
  33308. - case $host_cpu in
  33309. - hppa*64*|ia64*)
  33310. - # +Z the default
  33311. - ;;
  33312. - *)
  33313. - lt_prog_compiler_pic_GCJ='-fPIC'
  33314. - ;;
  33315. - esac
  33316. - ;;
  33317. + exp_sym_flag='-bexport'
  33318. + no_entry_flag='-bnoentry'
  33319. + fi
  33320. - *)
  33321. - lt_prog_compiler_pic_GCJ='-fPIC'
  33322. - ;;
  33323. - esac
  33324. - else
  33325. - # PORTME Check for flag to pass linker flags through the system compiler.
  33326. - case $host_os in
  33327. - aix*)
  33328. - lt_prog_compiler_wl_GCJ='-Wl,'
  33329. - if test "$host_cpu" = ia64; then
  33330. - # AIX 5 now supports IA64 processor
  33331. - lt_prog_compiler_static_GCJ='-Bstatic'
  33332. - else
  33333. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  33334. - fi
  33335. - ;;
  33336. - darwin*)
  33337. - # PIC is the default on this platform
  33338. - # Common symbols not allowed in MH_DYLIB files
  33339. - case $cc_basename in
  33340. - xlc*)
  33341. - lt_prog_compiler_pic_GCJ='-qnocommon'
  33342. - lt_prog_compiler_wl_GCJ='-Wl,'
  33343. - ;;
  33344. - esac
  33345. - ;;
  33346. + # When large executables or shared objects are built, AIX ld can
  33347. + # have problems creating the table of contents. If linking a library
  33348. + # or program results in "error TOC overflow" add -mminimal-toc to
  33349. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  33350. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  33351. +
  33352. + archive_cmds_CXX=''
  33353. + hardcode_direct_CXX=yes
  33354. + hardcode_direct_absolute_CXX=yes
  33355. + hardcode_libdir_separator_CXX=':'
  33356. + link_all_deplibs_CXX=yes
  33357. + file_list_spec_CXX='${wl}-f,'
  33358. +
  33359. + if test "$GXX" = yes; then
  33360. + case $host_os in aix4.[012]|aix4.[012].*)
  33361. + # We only want to do this on AIX 4.2 and lower, the check
  33362. + # below for broken collect2 doesn't work under 4.3+
  33363. + collect2name=`${CC} -print-prog-name=collect2`
  33364. + if test -f "$collect2name" &&
  33365. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  33366. + then
  33367. + # We have reworked collect2
  33368. + :
  33369. + else
  33370. + # We have old collect2
  33371. + hardcode_direct_CXX=unsupported
  33372. + # It fails to find uninstalled libraries when the uninstalled
  33373. + # path is not listed in the libpath. Setting hardcode_minus_L
  33374. + # to unsupported forces relinking
  33375. + hardcode_minus_L_CXX=yes
  33376. + hardcode_libdir_flag_spec_CXX='-L$libdir'
  33377. + hardcode_libdir_separator_CXX=
  33378. + fi
  33379. + esac
  33380. + shared_flag='-shared'
  33381. + if test "$aix_use_runtimelinking" = yes; then
  33382. + shared_flag="$shared_flag "'${wl}-G'
  33383. + fi
  33384. + else
  33385. + # not using gcc
  33386. + if test "$host_cpu" = ia64; then
  33387. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  33388. + # chokes on -Wl,-G. The following line is correct:
  33389. + shared_flag='-G'
  33390. + else
  33391. + if test "$aix_use_runtimelinking" = yes; then
  33392. + shared_flag='${wl}-G'
  33393. + else
  33394. + shared_flag='${wl}-bM:SRE'
  33395. + fi
  33396. + fi
  33397. + fi
  33398. +
  33399. + export_dynamic_flag_spec_CXX='${wl}-bexpall'
  33400. + # It seems that -bexpall does not export symbols beginning with
  33401. + # underscore (_), so it is better to generate a list of symbols to
  33402. + # export.
  33403. + always_export_symbols_CXX=yes
  33404. + if test "$aix_use_runtimelinking" = yes; then
  33405. + # Warning - without using the other runtime loading flags (-brtl),
  33406. + # -berok will link without error, but may produce a broken library.
  33407. + allow_undefined_flag_CXX='-berok'
  33408. + # Determine the default libpath from the value encoded in an empty
  33409. + # executable.
  33410. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33411. +/* end confdefs.h. */
  33412. +
  33413. +int
  33414. +main ()
  33415. +{
  33416. +
  33417. + ;
  33418. + return 0;
  33419. +}
  33420. +_ACEOF
  33421. +if ac_fn_cxx_try_link "$LINENO"; then :
  33422. - mingw* | cygwin* | pw32* | os2*)
  33423. - # This hack is so that the source file can tell whether it is being
  33424. - # built for inclusion in a dll (and should export symbols for example).
  33425. +lt_aix_libpath_sed='
  33426. + /Import File Strings/,/^$/ {
  33427. + /^0/ {
  33428. + s/^0 *\(.*\)$/\1/
  33429. + p
  33430. + }
  33431. + }'
  33432. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  33433. +# Check for a 64-bit object if we didn't find anything.
  33434. +if test -z "$aix_libpath"; then
  33435. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  33436. +fi
  33437. +fi
  33438. +rm -f core conftest.err conftest.$ac_objext \
  33439. + conftest$ac_exeext conftest.$ac_ext
  33440. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  33441. - ;;
  33442. + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  33443. - hpux9* | hpux10* | hpux11*)
  33444. - lt_prog_compiler_wl_GCJ='-Wl,'
  33445. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  33446. - # not for PA HP-UX.
  33447. - case $host_cpu in
  33448. - hppa*64*|ia64*)
  33449. - # +Z the default
  33450. - ;;
  33451. - *)
  33452. - lt_prog_compiler_pic_GCJ='+Z'
  33453. - ;;
  33454. - esac
  33455. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  33456. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  33457. - ;;
  33458. + 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  33459. + else
  33460. + if test "$host_cpu" = ia64; then
  33461. + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  33462. + allow_undefined_flag_CXX="-z nodefs"
  33463. + 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"
  33464. + else
  33465. + # Determine the default libpath from the value encoded in an
  33466. + # empty executable.
  33467. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33468. +/* end confdefs.h. */
  33469. - irix5* | irix6* | nonstopux*)
  33470. - lt_prog_compiler_wl_GCJ='-Wl,'
  33471. - # PIC (with -KPIC) is the default.
  33472. - lt_prog_compiler_static_GCJ='-non_shared'
  33473. - ;;
  33474. +int
  33475. +main ()
  33476. +{
  33477. - newsos6)
  33478. - lt_prog_compiler_pic_GCJ='-KPIC'
  33479. - lt_prog_compiler_static_GCJ='-Bstatic'
  33480. - ;;
  33481. + ;
  33482. + return 0;
  33483. +}
  33484. +_ACEOF
  33485. +if ac_fn_cxx_try_link "$LINENO"; then :
  33486. - linux* | k*bsd*-gnu)
  33487. - case $cc_basename in
  33488. - icc* | ecc*)
  33489. - lt_prog_compiler_wl_GCJ='-Wl,'
  33490. - lt_prog_compiler_pic_GCJ='-KPIC'
  33491. - lt_prog_compiler_static_GCJ='-static'
  33492. +lt_aix_libpath_sed='
  33493. + /Import File Strings/,/^$/ {
  33494. + /^0/ {
  33495. + s/^0 *\(.*\)$/\1/
  33496. + p
  33497. + }
  33498. + }'
  33499. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  33500. +# Check for a 64-bit object if we didn't find anything.
  33501. +if test -z "$aix_libpath"; then
  33502. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  33503. +fi
  33504. +fi
  33505. +rm -f core conftest.err conftest.$ac_objext \
  33506. + conftest$ac_exeext conftest.$ac_ext
  33507. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  33508. +
  33509. + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  33510. + # Warning - without using the other run time loading flags,
  33511. + # -berok will link without error, but may produce a broken library.
  33512. + no_undefined_flag_CXX=' ${wl}-bernotok'
  33513. + allow_undefined_flag_CXX=' ${wl}-berok'
  33514. + # Exported symbols can be pulled into shared objects from archives
  33515. + whole_archive_flag_spec_CXX='$convenience'
  33516. + archive_cmds_need_lc_CXX=yes
  33517. + # This is similar to how AIX traditionally builds its shared
  33518. + # libraries.
  33519. + 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'
  33520. + fi
  33521. + fi
  33522. ;;
  33523. - pgcc* | pgf77* | pgf90* | pgf95*)
  33524. - # Portland Group compilers (*not* the Pentium gcc compiler,
  33525. - # which looks to be a dead project)
  33526. - lt_prog_compiler_wl_GCJ='-Wl,'
  33527. - lt_prog_compiler_pic_GCJ='-fpic'
  33528. - lt_prog_compiler_static_GCJ='-Bstatic'
  33529. +
  33530. + beos*)
  33531. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  33532. + allow_undefined_flag_CXX=unsupported
  33533. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  33534. + # support --undefined. This deserves some investigation. FIXME
  33535. + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33536. + else
  33537. + ld_shlibs_CXX=no
  33538. + fi
  33539. + ;;
  33540. +
  33541. + chorus*)
  33542. + case $cc_basename in
  33543. + *)
  33544. + # FIXME: insert proper C++ library support
  33545. + ld_shlibs_CXX=no
  33546. + ;;
  33547. + esac
  33548. ;;
  33549. - ccc*)
  33550. - lt_prog_compiler_wl_GCJ='-Wl,'
  33551. - # All Alpha code is PIC.
  33552. - lt_prog_compiler_static_GCJ='-non_shared'
  33553. +
  33554. + cygwin* | mingw* | pw32* | cegcc*)
  33555. + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  33556. + # as there is no search path for DLLs.
  33557. + hardcode_libdir_flag_spec_CXX='-L$libdir'
  33558. + allow_undefined_flag_CXX=unsupported
  33559. + always_export_symbols_CXX=no
  33560. + enable_shared_with_static_runtimes_CXX=yes
  33561. +
  33562. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  33563. + 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'
  33564. + # If the export-symbols file already is a .def file (1st line
  33565. + # is EXPORTS), use it as is; otherwise, prepend...
  33566. + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  33567. + cp $export_symbols $output_objdir/$soname.def;
  33568. + else
  33569. + echo EXPORTS > $output_objdir/$soname.def;
  33570. + cat $export_symbols >> $output_objdir/$soname.def;
  33571. + fi~
  33572. + $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'
  33573. + else
  33574. + ld_shlibs_CXX=no
  33575. + fi
  33576. ;;
  33577. - *)
  33578. - case `$CC -V 2>&1 | sed 5q` in
  33579. - *Sun\ C*)
  33580. - # Sun C 5.9
  33581. - lt_prog_compiler_pic_GCJ='-KPIC'
  33582. - lt_prog_compiler_static_GCJ='-Bstatic'
  33583. - lt_prog_compiler_wl_GCJ='-Wl,'
  33584. - ;;
  33585. - *Sun\ F*)
  33586. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  33587. - lt_prog_compiler_pic_GCJ='-KPIC'
  33588. - lt_prog_compiler_static_GCJ='-Bstatic'
  33589. - lt_prog_compiler_wl_GCJ=''
  33590. - ;;
  33591. - esac
  33592. - ;;
  33593. - esac
  33594. - ;;
  33595. + darwin* | rhapsody*)
  33596. - osf3* | osf4* | osf5*)
  33597. - lt_prog_compiler_wl_GCJ='-Wl,'
  33598. - # All OSF/1 code is PIC.
  33599. - lt_prog_compiler_static_GCJ='-non_shared'
  33600. - ;;
  33601. - rdos*)
  33602. - lt_prog_compiler_static_GCJ='-non_shared'
  33603. - ;;
  33604. + archive_cmds_need_lc_CXX=no
  33605. + hardcode_direct_CXX=no
  33606. + hardcode_automatic_CXX=yes
  33607. + hardcode_shlibpath_var_CXX=unsupported
  33608. + whole_archive_flag_spec_CXX=''
  33609. + link_all_deplibs_CXX=yes
  33610. + allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  33611. + case $cc_basename in
  33612. + ifort*) _lt_dar_can_shared=yes ;;
  33613. + *) _lt_dar_can_shared=$GCC ;;
  33614. + esac
  33615. + if test "$_lt_dar_can_shared" = "yes"; then
  33616. + output_verbose_link_cmd=echo
  33617. + 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}"
  33618. + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  33619. + 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}"
  33620. + 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}"
  33621. + if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  33622. + 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}"
  33623. + 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}"
  33624. + fi
  33625. - solaris*)
  33626. - lt_prog_compiler_pic_GCJ='-KPIC'
  33627. - lt_prog_compiler_static_GCJ='-Bstatic'
  33628. - case $cc_basename in
  33629. - f77* | f90* | f95*)
  33630. - lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  33631. - *)
  33632. - lt_prog_compiler_wl_GCJ='-Wl,';;
  33633. - esac
  33634. - ;;
  33635. + else
  33636. + ld_shlibs_CXX=no
  33637. + fi
  33638. - sunos4*)
  33639. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  33640. - lt_prog_compiler_pic_GCJ='-PIC'
  33641. - lt_prog_compiler_static_GCJ='-Bstatic'
  33642. - ;;
  33643. + ;;
  33644. - sysv4 | sysv4.2uw2* | sysv4.3*)
  33645. - lt_prog_compiler_wl_GCJ='-Wl,'
  33646. - lt_prog_compiler_pic_GCJ='-KPIC'
  33647. - lt_prog_compiler_static_GCJ='-Bstatic'
  33648. - ;;
  33649. + dgux*)
  33650. + case $cc_basename in
  33651. + ec++*)
  33652. + # FIXME: insert proper C++ library support
  33653. + ld_shlibs_CXX=no
  33654. + ;;
  33655. + ghcx*)
  33656. + # Green Hills C++ Compiler
  33657. + # FIXME: insert proper C++ library support
  33658. + ld_shlibs_CXX=no
  33659. + ;;
  33660. + *)
  33661. + # FIXME: insert proper C++ library support
  33662. + ld_shlibs_CXX=no
  33663. + ;;
  33664. + esac
  33665. + ;;
  33666. - sysv4*MP*)
  33667. - if test -d /usr/nec ;then
  33668. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  33669. - lt_prog_compiler_static_GCJ='-Bstatic'
  33670. - fi
  33671. - ;;
  33672. + freebsd[12]*)
  33673. + # C++ shared libraries reported to be fairly broken before
  33674. + # switch to ELF
  33675. + ld_shlibs_CXX=no
  33676. + ;;
  33677. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  33678. - lt_prog_compiler_wl_GCJ='-Wl,'
  33679. - lt_prog_compiler_pic_GCJ='-KPIC'
  33680. - lt_prog_compiler_static_GCJ='-Bstatic'
  33681. - ;;
  33682. + freebsd-elf*)
  33683. + archive_cmds_need_lc_CXX=no
  33684. + ;;
  33685. - unicos*)
  33686. - lt_prog_compiler_wl_GCJ='-Wl,'
  33687. - lt_prog_compiler_can_build_shared_GCJ=no
  33688. - ;;
  33689. + freebsd* | dragonfly*)
  33690. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  33691. + # conventions
  33692. + ld_shlibs_CXX=yes
  33693. + ;;
  33694. - uts4*)
  33695. - lt_prog_compiler_pic_GCJ='-pic'
  33696. - lt_prog_compiler_static_GCJ='-Bstatic'
  33697. - ;;
  33698. + gnu*)
  33699. + ;;
  33700. - *)
  33701. - lt_prog_compiler_can_build_shared_GCJ=no
  33702. - ;;
  33703. - esac
  33704. - fi
  33705. + hpux9*)
  33706. + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  33707. + hardcode_libdir_separator_CXX=:
  33708. + export_dynamic_flag_spec_CXX='${wl}-E'
  33709. + hardcode_direct_CXX=yes
  33710. + hardcode_minus_L_CXX=yes # Not in the search PATH,
  33711. + # but as the default
  33712. + # location of the library.
  33713. +
  33714. + case $cc_basename in
  33715. + CC*)
  33716. + # FIXME: insert proper C++ library support
  33717. + ld_shlibs_CXX=no
  33718. + ;;
  33719. + aCC*)
  33720. + 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'
  33721. + # Commands to make compiler produce verbose output that lists
  33722. + # what "hidden" libraries, object files and flags are used when
  33723. + # linking a shared library.
  33724. + #
  33725. + # There doesn't appear to be a way to prevent this compiler from
  33726. + # explicitly linking system object files so we need to strip them
  33727. + # from the output so that they don't get included in the library
  33728. + # dependencies.
  33729. + 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'
  33730. + ;;
  33731. + *)
  33732. + if test "$GXX" = yes; then
  33733. + 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'
  33734. + else
  33735. + # FIXME: insert proper C++ library support
  33736. + ld_shlibs_CXX=no
  33737. + fi
  33738. + ;;
  33739. + esac
  33740. + ;;
  33741. -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  33742. -$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
  33743. + hpux10*|hpux11*)
  33744. + if test $with_gnu_ld = no; then
  33745. + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  33746. + hardcode_libdir_separator_CXX=:
  33747. -#
  33748. -# Check to make sure the PIC flag actually works.
  33749. -#
  33750. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  33751. + case $host_cpu in
  33752. + hppa*64*|ia64*)
  33753. + ;;
  33754. + *)
  33755. + export_dynamic_flag_spec_CXX='${wl}-E'
  33756. + ;;
  33757. + esac
  33758. + fi
  33759. + case $host_cpu in
  33760. + hppa*64*|ia64*)
  33761. + hardcode_direct_CXX=no
  33762. + hardcode_shlibpath_var_CXX=no
  33763. + ;;
  33764. + *)
  33765. + hardcode_direct_CXX=yes
  33766. + hardcode_direct_absolute_CXX=yes
  33767. + hardcode_minus_L_CXX=yes # Not in the search PATH,
  33768. + # but as the default
  33769. + # location of the library.
  33770. + ;;
  33771. + esac
  33772. +
  33773. + case $cc_basename in
  33774. + CC*)
  33775. + # FIXME: insert proper C++ library support
  33776. + ld_shlibs_CXX=no
  33777. + ;;
  33778. + aCC*)
  33779. + case $host_cpu in
  33780. + hppa*64*)
  33781. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  33782. + ;;
  33783. + ia64*)
  33784. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  33785. + ;;
  33786. + *)
  33787. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  33788. + ;;
  33789. + esac
  33790. + # Commands to make compiler produce verbose output that lists
  33791. + # what "hidden" libraries, object files and flags are used when
  33792. + # linking a shared library.
  33793. + #
  33794. + # There doesn't appear to be a way to prevent this compiler from
  33795. + # explicitly linking system object files so we need to strip them
  33796. + # from the output so that they don't get included in the library
  33797. + # dependencies.
  33798. + 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'
  33799. + ;;
  33800. + *)
  33801. + if test "$GXX" = yes; then
  33802. + if test $with_gnu_ld = no; then
  33803. + case $host_cpu in
  33804. + hppa*64*)
  33805. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  33806. + ;;
  33807. + ia64*)
  33808. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  33809. + ;;
  33810. + *)
  33811. + 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'
  33812. + ;;
  33813. + esac
  33814. + fi
  33815. + else
  33816. + # FIXME: insert proper C++ library support
  33817. + ld_shlibs_CXX=no
  33818. + fi
  33819. + ;;
  33820. + esac
  33821. + ;;
  33822. -{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  33823. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
  33824. -if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
  33825. - $as_echo_n "(cached) " >&6
  33826. -else
  33827. - lt_cv_prog_compiler_pic_works_GCJ=no
  33828. - ac_outfile=conftest.$ac_objext
  33829. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33830. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  33831. - # Insert the option either (1) after the last *FLAGS variable, or
  33832. - # (2) before a word containing "conftest.", or (3) at the end.
  33833. - # Note that $ac_compile itself does not contain backslashes and begins
  33834. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  33835. - # The option is referenced via a variable to avoid confusing sed.
  33836. - lt_compile=`echo "$ac_compile" | $SED \
  33837. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33838. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33839. - -e 's:$: $lt_compiler_flag:'`
  33840. - (eval echo "\"\$as_me:17415: $lt_compile\"" >&5)
  33841. - (eval "$lt_compile" 2>conftest.err)
  33842. - ac_status=$?
  33843. - cat conftest.err >&5
  33844. - echo "$as_me:17419: \$? = $ac_status" >&5
  33845. - if (exit $ac_status) && test -s "$ac_outfile"; then
  33846. - # The compiler can only warn and ignore the option if not recognized
  33847. - # So say no if there are warnings other than the usual output.
  33848. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  33849. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  33850. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  33851. - lt_cv_prog_compiler_pic_works_GCJ=yes
  33852. - fi
  33853. - fi
  33854. - $rm conftest*
  33855. + interix[3-9]*)
  33856. + hardcode_direct_CXX=no
  33857. + hardcode_shlibpath_var_CXX=no
  33858. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  33859. + export_dynamic_flag_spec_CXX='${wl}-E'
  33860. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  33861. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  33862. + # default) and relocated if they conflict, which is a slow very memory
  33863. + # consuming and fragmenting process. To avoid this, we pick a random,
  33864. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  33865. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  33866. + 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'
  33867. + 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'
  33868. + ;;
  33869. + irix5* | irix6*)
  33870. + case $cc_basename in
  33871. + CC*)
  33872. + # SGI C++
  33873. + archive_cmds_CXX='$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'
  33874. +
  33875. + # Archives containing C++ object files must be created using
  33876. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  33877. + # necessary to make sure instantiated templates are included
  33878. + # in the archive.
  33879. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  33880. + ;;
  33881. + *)
  33882. + if test "$GXX" = yes; then
  33883. + if test "$with_gnu_ld" = no; then
  33884. + archive_cmds_CXX='$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'
  33885. + else
  33886. + archive_cmds_CXX='$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'
  33887. + fi
  33888. + fi
  33889. + link_all_deplibs_CXX=yes
  33890. + ;;
  33891. + esac
  33892. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  33893. + hardcode_libdir_separator_CXX=:
  33894. + inherit_rpath_CXX=yes
  33895. + ;;
  33896. -fi
  33897. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
  33898. -$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
  33899. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  33900. + case $cc_basename in
  33901. + KCC*)
  33902. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  33903. +
  33904. + # KCC will only create a shared library if the output file
  33905. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  33906. + # to its proper name (with version) after linking.
  33907. + 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'
  33908. + 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'
  33909. + # Commands to make compiler produce verbose output that lists
  33910. + # what "hidden" libraries, object files and flags are used when
  33911. + # linking a shared library.
  33912. + #
  33913. + # There doesn't appear to be a way to prevent this compiler from
  33914. + # explicitly linking system object files so we need to strip them
  33915. + # from the output so that they don't get included in the library
  33916. + # dependencies.
  33917. + 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'
  33918. +
  33919. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  33920. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  33921. +
  33922. + # Archives containing C++ object files must be created using
  33923. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  33924. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  33925. + ;;
  33926. + icpc* | ecpc* )
  33927. + # Intel C++
  33928. + with_gnu_ld=yes
  33929. + # version 8.0 and above of icpc choke on multiply defined symbols
  33930. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  33931. + # earlier do not add the objects themselves.
  33932. + case `$CC -V 2>&1` in
  33933. + *"Version 7."*)
  33934. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33935. + 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'
  33936. + ;;
  33937. + *) # Version 8.0 or newer
  33938. + tmp_idyn=
  33939. + case $host_cpu in
  33940. + ia64*) tmp_idyn=' -i_dynamic';;
  33941. + esac
  33942. + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33943. + 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'
  33944. + ;;
  33945. + esac
  33946. + archive_cmds_need_lc_CXX=no
  33947. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  33948. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  33949. + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  33950. + ;;
  33951. + pgCC* | pgcpp*)
  33952. + # Portland Group C++ compiler
  33953. + case `$CC -V` in
  33954. + *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  33955. + prelink_cmds_CXX='tpldir=Template.dir~
  33956. + rm -rf $tpldir~
  33957. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  33958. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  33959. + old_archive_cmds_CXX='tpldir=Template.dir~
  33960. + rm -rf $tpldir~
  33961. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  33962. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  33963. + $RANLIB $oldlib'
  33964. + archive_cmds_CXX='tpldir=Template.dir~
  33965. + rm -rf $tpldir~
  33966. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  33967. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  33968. + archive_expsym_cmds_CXX='tpldir=Template.dir~
  33969. + rm -rf $tpldir~
  33970. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  33971. + $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'
  33972. + ;;
  33973. + *) # Version 6 will use weak symbols
  33974. + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  33975. + 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'
  33976. + ;;
  33977. + esac
  33978. -if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
  33979. - case $lt_prog_compiler_pic_GCJ in
  33980. - "" | " "*) ;;
  33981. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  33982. - esac
  33983. -else
  33984. - lt_prog_compiler_pic_GCJ=
  33985. - lt_prog_compiler_can_build_shared_GCJ=no
  33986. -fi
  33987. + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  33988. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  33989. + 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'
  33990. + ;;
  33991. + cxx*)
  33992. + # Compaq C++
  33993. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33994. + 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'
  33995. -fi
  33996. -case $host_os in
  33997. - # For platforms which do not support PIC, -DPIC is meaningless:
  33998. - *djgpp*)
  33999. - lt_prog_compiler_pic_GCJ=
  34000. - ;;
  34001. - *)
  34002. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  34003. - ;;
  34004. -esac
  34005. + runpath_var=LD_RUN_PATH
  34006. + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  34007. + hardcode_libdir_separator_CXX=:
  34008. -#
  34009. -# Check to make sure the static flag actually works.
  34010. -#
  34011. -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  34012. -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  34013. -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  34014. -if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
  34015. - $as_echo_n "(cached) " >&6
  34016. -else
  34017. - lt_cv_prog_compiler_static_works_GCJ=no
  34018. - save_LDFLAGS="$LDFLAGS"
  34019. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  34020. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  34021. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  34022. - # The linker can only warn and ignore the option if not recognized
  34023. - # So say no if there are warnings
  34024. - if test -s conftest.err; then
  34025. - # Append any errors to the config.log.
  34026. - cat conftest.err 1>&5
  34027. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  34028. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  34029. - if diff conftest.exp conftest.er2 >/dev/null; then
  34030. - lt_cv_prog_compiler_static_works_GCJ=yes
  34031. - fi
  34032. - else
  34033. - lt_cv_prog_compiler_static_works_GCJ=yes
  34034. - fi
  34035. - fi
  34036. - $rm -r conftest*
  34037. - LDFLAGS="$save_LDFLAGS"
  34038. + # Commands to make compiler produce verbose output that lists
  34039. + # what "hidden" libraries, object files and flags are used when
  34040. + # linking a shared library.
  34041. + #
  34042. + # There doesn't appear to be a way to prevent this compiler from
  34043. + # explicitly linking system object files so we need to strip them
  34044. + # from the output so that they don't get included in the library
  34045. + # dependencies.
  34046. + 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'
  34047. + ;;
  34048. + xl*)
  34049. + # IBM XL 8.0 on PPC, with GNU ld
  34050. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  34051. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  34052. + archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34053. + if test "x$supports_anon_versioning" = xyes; then
  34054. + archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  34055. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  34056. + echo "local: *; };" >> $output_objdir/$libname.ver~
  34057. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  34058. + fi
  34059. + ;;
  34060. + *)
  34061. + case `$CC -V 2>&1 | sed 5q` in
  34062. + *Sun\ C*)
  34063. + # Sun C++ 5.9
  34064. + no_undefined_flag_CXX=' -zdefs'
  34065. + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  34066. + 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'
  34067. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  34068. + 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'
  34069. + compiler_needs_object_CXX=yes
  34070. +
  34071. + # Not sure whether something based on
  34072. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  34073. + # would be better.
  34074. + output_verbose_link_cmd='echo'
  34075. +
  34076. + # Archives containing C++ object files must be created using
  34077. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  34078. + # necessary to make sure instantiated templates are included
  34079. + # in the archive.
  34080. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  34081. + ;;
  34082. + esac
  34083. + ;;
  34084. + esac
  34085. + ;;
  34086. -fi
  34087. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
  34088. -$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
  34089. + lynxos*)
  34090. + # FIXME: insert proper C++ library support
  34091. + ld_shlibs_CXX=no
  34092. + ;;
  34093. -if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
  34094. - :
  34095. -else
  34096. - lt_prog_compiler_static_GCJ=
  34097. -fi
  34098. + m88k*)
  34099. + # FIXME: insert proper C++ library support
  34100. + ld_shlibs_CXX=no
  34101. + ;;
  34102. + mvs*)
  34103. + case $cc_basename in
  34104. + cxx*)
  34105. + # FIXME: insert proper C++ library support
  34106. + ld_shlibs_CXX=no
  34107. + ;;
  34108. + *)
  34109. + # FIXME: insert proper C++ library support
  34110. + ld_shlibs_CXX=no
  34111. + ;;
  34112. + esac
  34113. + ;;
  34114. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  34115. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  34116. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  34117. - $as_echo_n "(cached) " >&6
  34118. -else
  34119. - lt_cv_prog_compiler_c_o_GCJ=no
  34120. - $rm -r conftest 2>/dev/null
  34121. - mkdir conftest
  34122. - cd conftest
  34123. - mkdir out
  34124. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  34125. + netbsd*)
  34126. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  34127. + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  34128. + wlarc=
  34129. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  34130. + hardcode_direct_CXX=yes
  34131. + hardcode_shlibpath_var_CXX=no
  34132. + fi
  34133. + # Workaround some broken pre-1.5 toolchains
  34134. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  34135. + ;;
  34136. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  34137. - # Insert the option either (1) after the last *FLAGS variable, or
  34138. - # (2) before a word containing "conftest.", or (3) at the end.
  34139. - # Note that $ac_compile itself does not contain backslashes and begins
  34140. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  34141. - lt_compile=`echo "$ac_compile" | $SED \
  34142. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  34143. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  34144. - -e 's:$: $lt_compiler_flag:'`
  34145. - (eval echo "\"\$as_me:17519: $lt_compile\"" >&5)
  34146. - (eval "$lt_compile" 2>out/conftest.err)
  34147. - ac_status=$?
  34148. - cat out/conftest.err >&5
  34149. - echo "$as_me:17523: \$? = $ac_status" >&5
  34150. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  34151. - then
  34152. - # The compiler can only warn and ignore the option if not recognized
  34153. - # So say no if there are warnings
  34154. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  34155. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  34156. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  34157. - lt_cv_prog_compiler_c_o_GCJ=yes
  34158. - fi
  34159. - fi
  34160. - chmod u+w . 2>&5
  34161. - $rm conftest*
  34162. - # SGI C++ compiler will create directory out/ii_files/ for
  34163. - # template instantiation
  34164. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  34165. - $rm out/* && rmdir out
  34166. - cd ..
  34167. - rmdir conftest
  34168. - $rm conftest*
  34169. + *nto* | *qnx*)
  34170. + ld_shlibs_CXX=yes
  34171. + ;;
  34172. -fi
  34173. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  34174. -$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  34175. + openbsd2*)
  34176. + # C++ shared libraries are fairly broken
  34177. + ld_shlibs_CXX=no
  34178. + ;;
  34179. + openbsd*)
  34180. + if test -f /usr/libexec/ld.so; then
  34181. + hardcode_direct_CXX=yes
  34182. + hardcode_shlibpath_var_CXX=no
  34183. + hardcode_direct_absolute_CXX=yes
  34184. + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  34185. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  34186. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  34187. + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  34188. + export_dynamic_flag_spec_CXX='${wl}-E'
  34189. + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  34190. + fi
  34191. + output_verbose_link_cmd=echo
  34192. + else
  34193. + ld_shlibs_CXX=no
  34194. + fi
  34195. + ;;
  34196. -hard_links="nottested"
  34197. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  34198. - # do not overwrite the value of need_locks provided by the user
  34199. - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  34200. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  34201. - hard_links=yes
  34202. - $rm conftest*
  34203. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  34204. - touch conftest.a
  34205. - ln conftest.a conftest.b 2>&5 || hard_links=no
  34206. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  34207. - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  34208. -$as_echo "$hard_links" >&6; }
  34209. - if test "$hard_links" = no; then
  34210. - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  34211. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  34212. - need_locks=warn
  34213. - fi
  34214. -else
  34215. - need_locks=no
  34216. -fi
  34217. + osf3* | osf4* | osf5*)
  34218. + case $cc_basename in
  34219. + KCC*)
  34220. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  34221. +
  34222. + # KCC will only create a shared library if the output file
  34223. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  34224. + # to its proper name (with version) after linking.
  34225. + 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'
  34226. +
  34227. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  34228. + hardcode_libdir_separator_CXX=:
  34229. +
  34230. + # Archives containing C++ object files must be created using
  34231. + # the KAI C++ compiler.
  34232. + case $host in
  34233. + osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  34234. + *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  34235. + esac
  34236. + ;;
  34237. + RCC*)
  34238. + # Rational C++ 2.4.1
  34239. + # FIXME: insert proper C++ library support
  34240. + ld_shlibs_CXX=no
  34241. + ;;
  34242. + cxx*)
  34243. + case $host in
  34244. + osf3*)
  34245. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  34246. + archive_cmds_CXX='$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'
  34247. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  34248. + ;;
  34249. + *)
  34250. + allow_undefined_flag_CXX=' -expect_unresolved \*'
  34251. + archive_cmds_CXX='$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'
  34252. + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  34253. + echo "-hidden">> $lib.exp~
  34254. + $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~
  34255. + $RM $lib.exp'
  34256. + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  34257. + ;;
  34258. + esac
  34259. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  34260. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  34261. + hardcode_libdir_separator_CXX=:
  34262. - runpath_var=
  34263. - allow_undefined_flag_GCJ=
  34264. - enable_shared_with_static_runtimes_GCJ=no
  34265. - archive_cmds_GCJ=
  34266. - archive_expsym_cmds_GCJ=
  34267. - old_archive_From_new_cmds_GCJ=
  34268. - old_archive_from_expsyms_cmds_GCJ=
  34269. - export_dynamic_flag_spec_GCJ=
  34270. - whole_archive_flag_spec_GCJ=
  34271. - thread_safe_flag_spec_GCJ=
  34272. - hardcode_libdir_flag_spec_GCJ=
  34273. - hardcode_libdir_flag_spec_ld_GCJ=
  34274. - hardcode_libdir_separator_GCJ=
  34275. - hardcode_direct_GCJ=no
  34276. - hardcode_minus_L_GCJ=no
  34277. - hardcode_shlibpath_var_GCJ=unsupported
  34278. - link_all_deplibs_GCJ=unknown
  34279. - hardcode_automatic_GCJ=no
  34280. - module_cmds_GCJ=
  34281. - module_expsym_cmds_GCJ=
  34282. - always_export_symbols_GCJ=no
  34283. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  34284. - # include_expsyms should be a list of space-separated symbols to be *always*
  34285. - # included in the symbol list
  34286. - include_expsyms_GCJ=
  34287. - # exclude_expsyms can be an extended regexp of symbols to exclude
  34288. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  34289. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  34290. - # as well as any symbol that contains `d'.
  34291. - exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  34292. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  34293. - # platforms (ab)use it in PIC code, but their linkers get confused if
  34294. - # the symbol is explicitly referenced. Since portable code cannot
  34295. - # rely on this symbol name, it's probably fine to never include it in
  34296. - # preloaded symbol tables.
  34297. - # Exclude shared library initialization/finalization symbols.
  34298. - extract_expsyms_cmds=
  34299. - # Just being paranoid about ensuring that cc_basename is set.
  34300. - for cc_temp in $compiler""; do
  34301. - case $cc_temp in
  34302. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  34303. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  34304. - \-*) ;;
  34305. - *) break;;
  34306. - esac
  34307. -done
  34308. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  34309. + # Commands to make compiler produce verbose output that lists
  34310. + # what "hidden" libraries, object files and flags are used when
  34311. + # linking a shared library.
  34312. + #
  34313. + # There doesn't appear to be a way to prevent this compiler from
  34314. + # explicitly linking system object files so we need to strip them
  34315. + # from the output so that they don't get included in the library
  34316. + # dependencies.
  34317. + 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'
  34318. + ;;
  34319. + *)
  34320. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  34321. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  34322. + case $host in
  34323. + osf3*)
  34324. + 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  34325. + ;;
  34326. + *)
  34327. + 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  34328. + ;;
  34329. + esac
  34330. +
  34331. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  34332. + hardcode_libdir_separator_CXX=:
  34333. +
  34334. + # Commands to make compiler produce verbose output that lists
  34335. + # what "hidden" libraries, object files and flags are used when
  34336. + # linking a shared library.
  34337. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  34338. +
  34339. + else
  34340. + # FIXME: insert proper C++ library support
  34341. + ld_shlibs_CXX=no
  34342. + fi
  34343. + ;;
  34344. + esac
  34345. + ;;
  34346. - case $host_os in
  34347. - cygwin* | mingw* | pw32*)
  34348. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  34349. - # When not using gcc, we currently assume that we are using
  34350. - # Microsoft Visual C++.
  34351. - if test "$GCC" != yes; then
  34352. - with_gnu_ld=no
  34353. - fi
  34354. - ;;
  34355. - interix*)
  34356. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  34357. - with_gnu_ld=yes
  34358. - ;;
  34359. - openbsd*)
  34360. - with_gnu_ld=no
  34361. - ;;
  34362. - esac
  34363. + psos*)
  34364. + # FIXME: insert proper C++ library support
  34365. + ld_shlibs_CXX=no
  34366. + ;;
  34367. - ld_shlibs_GCJ=yes
  34368. - if test "$with_gnu_ld" = yes; then
  34369. - # If archive_cmds runs LD, not CC, wlarc should be empty
  34370. - wlarc='${wl}'
  34371. + sunos4*)
  34372. + case $cc_basename in
  34373. + CC*)
  34374. + # Sun C++ 4.x
  34375. + # FIXME: insert proper C++ library support
  34376. + ld_shlibs_CXX=no
  34377. + ;;
  34378. + lcc*)
  34379. + # Lucid
  34380. + # FIXME: insert proper C++ library support
  34381. + ld_shlibs_CXX=no
  34382. + ;;
  34383. + *)
  34384. + # FIXME: insert proper C++ library support
  34385. + ld_shlibs_CXX=no
  34386. + ;;
  34387. + esac
  34388. + ;;
  34389. - # Set some defaults for GNU ld with shared library support. These
  34390. - # are reset later if shared libraries are not supported. Putting them
  34391. - # here allows them to be overridden if necessary.
  34392. - runpath_var=LD_RUN_PATH
  34393. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  34394. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  34395. - # ancient GNU ld didn't support --whole-archive et. al.
  34396. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  34397. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  34398. - else
  34399. - whole_archive_flag_spec_GCJ=
  34400. - fi
  34401. - supports_anon_versioning=no
  34402. - case `$LD -v 2>/dev/null` in
  34403. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  34404. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  34405. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  34406. - *\ 2.11.*) ;; # other 2.11 versions
  34407. - *) supports_anon_versioning=yes ;;
  34408. - esac
  34409. + solaris*)
  34410. + case $cc_basename in
  34411. + CC*)
  34412. + # Sun C++ 4.2, 5.x and Centerline C++
  34413. + archive_cmds_need_lc_CXX=yes
  34414. + no_undefined_flag_CXX=' -zdefs'
  34415. + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  34416. + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  34417. + $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'
  34418. +
  34419. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  34420. + hardcode_shlibpath_var_CXX=no
  34421. + case $host_os in
  34422. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  34423. + *)
  34424. + # The compiler driver will combine and reorder linker options,
  34425. + # but understands `-z linker_flag'.
  34426. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  34427. + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  34428. + ;;
  34429. + esac
  34430. + link_all_deplibs_CXX=yes
  34431. - # See if GNU ld supports shared libraries.
  34432. - case $host_os in
  34433. - aix[3-9]*)
  34434. - # On AIX/PPC, the GNU linker is very broken
  34435. - if test "$host_cpu" != ia64; then
  34436. - ld_shlibs_GCJ=no
  34437. - cat <<EOF 1>&2
  34438. + output_verbose_link_cmd='echo'
  34439. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  34440. -*** to be unable to reliably create shared libraries on AIX.
  34441. -*** Therefore, libtool is disabling shared libraries support. If you
  34442. -*** really care for shared libraries, you may want to modify your PATH
  34443. -*** so that a non-GNU linker is found, and then restart.
  34444. + # Archives containing C++ object files must be created using
  34445. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  34446. + # necessary to make sure instantiated templates are included
  34447. + # in the archive.
  34448. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  34449. + ;;
  34450. + gcx*)
  34451. + # Green Hills C++ Compiler
  34452. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  34453. -EOF
  34454. - fi
  34455. - ;;
  34456. + # The C++ compiler must be used to create the archive.
  34457. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  34458. + ;;
  34459. + *)
  34460. + # GNU C++ compiler with Solaris linker
  34461. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  34462. + no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  34463. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  34464. + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  34465. + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  34466. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  34467. +
  34468. + # Commands to make compiler produce verbose output that lists
  34469. + # what "hidden" libraries, object files and flags are used when
  34470. + # linking a shared library.
  34471. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  34472. + else
  34473. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  34474. + # platform.
  34475. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  34476. + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  34477. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  34478. +
  34479. + # Commands to make compiler produce verbose output that lists
  34480. + # what "hidden" libraries, object files and flags are used when
  34481. + # linking a shared library.
  34482. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  34483. + fi
  34484. +
  34485. + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  34486. + case $host_os in
  34487. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  34488. + *)
  34489. + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  34490. + ;;
  34491. + esac
  34492. + fi
  34493. + ;;
  34494. + esac
  34495. + ;;
  34496. - amigaos*)
  34497. - 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)'
  34498. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  34499. - hardcode_minus_L_GCJ=yes
  34500. -
  34501. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  34502. - # that the semantics of dynamic libraries on AmigaOS, at least up
  34503. - # to version 4, is to share data among multiple programs linked
  34504. - # with the same dynamic library. Since this doesn't match the
  34505. - # behavior of shared libraries on other platforms, we can't use
  34506. - # them.
  34507. - ld_shlibs_GCJ=no
  34508. - ;;
  34509. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  34510. + no_undefined_flag_CXX='${wl}-z,text'
  34511. + archive_cmds_need_lc_CXX=no
  34512. + hardcode_shlibpath_var_CXX=no
  34513. + runpath_var='LD_RUN_PATH'
  34514. - beos*)
  34515. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34516. - allow_undefined_flag_GCJ=unsupported
  34517. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  34518. - # support --undefined. This deserves some investigation. FIXME
  34519. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34520. - else
  34521. - ld_shlibs_GCJ=no
  34522. - fi
  34523. + case $cc_basename in
  34524. + CC*)
  34525. + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34526. + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34527. + ;;
  34528. + *)
  34529. + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34530. + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34531. + ;;
  34532. + esac
  34533. ;;
  34534. - cygwin* | mingw* | pw32*)
  34535. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  34536. - # as there is no search path for DLLs.
  34537. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  34538. - allow_undefined_flag_GCJ=unsupported
  34539. - always_export_symbols_GCJ=no
  34540. - enable_shared_with_static_runtimes_GCJ=yes
  34541. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  34542. + sysv5* | sco3.2v5* | sco5v6*)
  34543. + # Note: We can NOT use -z defs as we might desire, because we do not
  34544. + # link with -lc, and that would cause any symbols used from libc to
  34545. + # always be unresolved, which means just about no library would
  34546. + # ever link correctly. If we're not using GNU ld we use -z text
  34547. + # though, which does catch some bad symbols but isn't as heavy-handed
  34548. + # as -z defs.
  34549. + no_undefined_flag_CXX='${wl}-z,text'
  34550. + allow_undefined_flag_CXX='${wl}-z,nodefs'
  34551. + archive_cmds_need_lc_CXX=no
  34552. + hardcode_shlibpath_var_CXX=no
  34553. + hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  34554. + hardcode_libdir_separator_CXX=':'
  34555. + link_all_deplibs_CXX=yes
  34556. + export_dynamic_flag_spec_CXX='${wl}-Bexport'
  34557. + runpath_var='LD_RUN_PATH'
  34558. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  34559. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  34560. - # If the export-symbols file already is a .def file (1st line
  34561. - # is EXPORTS), use it as is; otherwise, prepend...
  34562. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  34563. - cp $export_symbols $output_objdir/$soname.def;
  34564. - else
  34565. - echo EXPORTS > $output_objdir/$soname.def;
  34566. - cat $export_symbols >> $output_objdir/$soname.def;
  34567. - fi~
  34568. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  34569. - else
  34570. - ld_shlibs_GCJ=no
  34571. - fi
  34572. + case $cc_basename in
  34573. + CC*)
  34574. + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34575. + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34576. + ;;
  34577. + *)
  34578. + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34579. + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  34580. + ;;
  34581. + esac
  34582. ;;
  34583. - interix[3-9]*)
  34584. - hardcode_direct_GCJ=no
  34585. - hardcode_shlibpath_var_GCJ=no
  34586. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  34587. - export_dynamic_flag_spec_GCJ='${wl}-E'
  34588. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  34589. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  34590. - # default) and relocated if they conflict, which is a slow very memory
  34591. - # consuming and fragmenting process. To avoid this, we pick a random,
  34592. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  34593. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  34594. - 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'
  34595. - 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'
  34596. - ;;
  34597. + tandem*)
  34598. + case $cc_basename in
  34599. + NCC*)
  34600. + # NonStop-UX NCC 3.20
  34601. + # FIXME: insert proper C++ library support
  34602. + ld_shlibs_CXX=no
  34603. + ;;
  34604. + *)
  34605. + # FIXME: insert proper C++ library support
  34606. + ld_shlibs_CXX=no
  34607. + ;;
  34608. + esac
  34609. + ;;
  34610. - gnu* | linux* | k*bsd*-gnu)
  34611. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34612. - tmp_addflag=
  34613. - case $cc_basename,$host_cpu in
  34614. - pgcc*) # Portland Group C compiler
  34615. - 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'
  34616. - tmp_addflag=' $pic_flag'
  34617. - ;;
  34618. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  34619. - 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'
  34620. - tmp_addflag=' $pic_flag -Mnomain' ;;
  34621. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  34622. - tmp_addflag=' -i_dynamic' ;;
  34623. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  34624. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  34625. - ifc* | ifort*) # Intel Fortran compiler
  34626. - tmp_addflag=' -nofor_main' ;;
  34627. - esac
  34628. - case `$CC -V 2>&1 | sed 5q` in
  34629. - *Sun\ C*) # Sun C 5.9
  34630. - 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'
  34631. - tmp_sharedflag='-G' ;;
  34632. - *Sun\ F*) # Sun Fortran 8.3
  34633. - tmp_sharedflag='-G' ;;
  34634. - *)
  34635. - tmp_sharedflag='-shared' ;;
  34636. - esac
  34637. - archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34638. + vxworks*)
  34639. + # FIXME: insert proper C++ library support
  34640. + ld_shlibs_CXX=no
  34641. + ;;
  34642. - if test $supports_anon_versioning = yes; then
  34643. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  34644. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  34645. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  34646. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  34647. - fi
  34648. - else
  34649. - ld_shlibs_GCJ=no
  34650. - fi
  34651. - ;;
  34652. + *)
  34653. + # FIXME: insert proper C++ library support
  34654. + ld_shlibs_CXX=no
  34655. + ;;
  34656. + esac
  34657. - netbsd*)
  34658. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  34659. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  34660. - wlarc=
  34661. - else
  34662. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34663. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34664. - fi
  34665. - ;;
  34666. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  34667. +$as_echo "$ld_shlibs_CXX" >&6; }
  34668. + test "$ld_shlibs_CXX" = no && can_build_shared=no
  34669. - solaris*)
  34670. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  34671. - ld_shlibs_GCJ=no
  34672. - cat <<EOF 1>&2
  34673. + GCC_CXX="$GXX"
  34674. + LD_CXX="$LD"
  34675. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  34676. -*** create shared libraries on Solaris systems. Therefore, libtool
  34677. -*** is disabling shared libraries support. We urge you to upgrade GNU
  34678. -*** binutils to release 2.9.1 or newer. Another option is to modify
  34679. -*** your PATH or compiler configuration so that the native linker is
  34680. -*** used, and then restart.
  34681. + ## CAVEAT EMPTOR:
  34682. + ## There is no encapsulation within the following macros, do not change
  34683. + ## the running order or otherwise move them around unless you know exactly
  34684. + ## what you are doing...
  34685. + # Dependencies to place before and after the object being linked:
  34686. +predep_objects_CXX=
  34687. +postdep_objects_CXX=
  34688. +predeps_CXX=
  34689. +postdeps_CXX=
  34690. +compiler_lib_search_path_CXX=
  34691. -EOF
  34692. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34693. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34694. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34695. - else
  34696. - ld_shlibs_GCJ=no
  34697. - fi
  34698. - ;;
  34699. +cat > conftest.$ac_ext <<_LT_EOF
  34700. +class Foo
  34701. +{
  34702. +public:
  34703. + Foo (void) { a = 0; }
  34704. +private:
  34705. + int a;
  34706. +};
  34707. +_LT_EOF
  34708. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  34709. - case `$LD -v 2>&1` in
  34710. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  34711. - ld_shlibs_GCJ=no
  34712. - cat <<_LT_EOF 1>&2
  34713. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  34714. + (eval $ac_compile) 2>&5
  34715. + ac_status=$?
  34716. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34717. + test $ac_status = 0; }; then
  34718. + # Parse the compiler output and extract the necessary
  34719. + # objects, libraries and library flags.
  34720. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  34721. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  34722. -*** is disabling shared libraries support. We urge you to upgrade GNU
  34723. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  34724. -*** your PATH or compiler configuration so that the native linker is
  34725. -*** used, and then restart.
  34726. + # Sentinel used to keep track of whether or not we are before
  34727. + # the conftest object file.
  34728. + pre_test_object_deps_done=no
  34729. -_LT_EOF
  34730. - ;;
  34731. - *)
  34732. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34733. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  34734. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  34735. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  34736. - else
  34737. - ld_shlibs_GCJ=no
  34738. - fi
  34739. - ;;
  34740. - esac
  34741. - ;;
  34742. + for p in `eval "$output_verbose_link_cmd"`; do
  34743. + case $p in
  34744. - sunos4*)
  34745. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34746. - wlarc=
  34747. - hardcode_direct_GCJ=yes
  34748. - hardcode_shlibpath_var_GCJ=no
  34749. - ;;
  34750. + -L* | -R* | -l*)
  34751. + # Some compilers place space between "-{L,R}" and the path.
  34752. + # Remove the space.
  34753. + if test $p = "-L" ||
  34754. + test $p = "-R"; then
  34755. + prev=$p
  34756. + continue
  34757. + else
  34758. + prev=
  34759. + fi
  34760. - *)
  34761. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34762. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34763. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34764. - else
  34765. - ld_shlibs_GCJ=no
  34766. - fi
  34767. - ;;
  34768. - esac
  34769. + if test "$pre_test_object_deps_done" = no; then
  34770. + case $p in
  34771. + -L* | -R*)
  34772. + # Internal compiler library paths should come after those
  34773. + # provided the user. The postdeps already come after the
  34774. + # user supplied libs so there is no need to process them.
  34775. + if test -z "$compiler_lib_search_path_CXX"; then
  34776. + compiler_lib_search_path_CXX="${prev}${p}"
  34777. + else
  34778. + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  34779. + fi
  34780. + ;;
  34781. + # The "-l" case would never come before the object being
  34782. + # linked, so don't bother handling this case.
  34783. + esac
  34784. + else
  34785. + if test -z "$postdeps_CXX"; then
  34786. + postdeps_CXX="${prev}${p}"
  34787. + else
  34788. + postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  34789. + fi
  34790. + fi
  34791. + ;;
  34792. - if test "$ld_shlibs_GCJ" = no; then
  34793. - runpath_var=
  34794. - hardcode_libdir_flag_spec_GCJ=
  34795. - export_dynamic_flag_spec_GCJ=
  34796. - whole_archive_flag_spec_GCJ=
  34797. - fi
  34798. - else
  34799. - # PORTME fill in a description of your system's linker (not GNU ld)
  34800. - case $host_os in
  34801. - aix3*)
  34802. - allow_undefined_flag_GCJ=unsupported
  34803. - always_export_symbols_GCJ=yes
  34804. - 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'
  34805. - # Note: this linker hardcodes the directories in LIBPATH if there
  34806. - # are no directories specified by -L.
  34807. - hardcode_minus_L_GCJ=yes
  34808. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  34809. - # Neither direct hardcoding nor static linking is supported with a
  34810. - # broken collect2.
  34811. - hardcode_direct_GCJ=unsupported
  34812. - fi
  34813. - ;;
  34814. + *.$objext)
  34815. + # This assumes that the test object file only shows up
  34816. + # once in the compiler output.
  34817. + if test "$p" = "conftest.$objext"; then
  34818. + pre_test_object_deps_done=yes
  34819. + continue
  34820. + fi
  34821. - aix[4-9]*)
  34822. - if test "$host_cpu" = ia64; then
  34823. - # On IA64, the linker does run time linking by default, so we don't
  34824. - # have to do anything special.
  34825. - aix_use_runtimelinking=no
  34826. - exp_sym_flag='-Bexport'
  34827. - no_entry_flag=""
  34828. - else
  34829. - # If we're using GNU nm, then we don't want the "-C" option.
  34830. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  34831. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  34832. - 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'
  34833. - else
  34834. - 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'
  34835. - fi
  34836. - aix_use_runtimelinking=no
  34837. + if test "$pre_test_object_deps_done" = no; then
  34838. + if test -z "$predep_objects_CXX"; then
  34839. + predep_objects_CXX="$p"
  34840. + else
  34841. + predep_objects_CXX="$predep_objects_CXX $p"
  34842. + fi
  34843. + else
  34844. + if test -z "$postdep_objects_CXX"; then
  34845. + postdep_objects_CXX="$p"
  34846. + else
  34847. + postdep_objects_CXX="$postdep_objects_CXX $p"
  34848. + fi
  34849. + fi
  34850. + ;;
  34851. - # Test if we are trying to use run time linking or normal
  34852. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  34853. - # need to do runtime linking.
  34854. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  34855. - for ld_flag in $LDFLAGS; do
  34856. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  34857. - aix_use_runtimelinking=yes
  34858. - break
  34859. - fi
  34860. - done
  34861. - ;;
  34862. - esac
  34863. + *) ;; # Ignore the rest.
  34864. - exp_sym_flag='-bexport'
  34865. - no_entry_flag='-bnoentry'
  34866. - fi
  34867. + esac
  34868. + done
  34869. - # When large executables or shared objects are built, AIX ld can
  34870. - # have problems creating the table of contents. If linking a library
  34871. - # or program results in "error TOC overflow" add -mminimal-toc to
  34872. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  34873. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  34874. + # Clean up.
  34875. + rm -f a.out a.exe
  34876. +else
  34877. + echo "libtool.m4: error: problem compiling CXX test program"
  34878. +fi
  34879. - archive_cmds_GCJ=''
  34880. - hardcode_direct_GCJ=yes
  34881. - hardcode_libdir_separator_GCJ=':'
  34882. - link_all_deplibs_GCJ=yes
  34883. +$RM -f confest.$objext
  34884. - if test "$GCC" = yes; then
  34885. - case $host_os in aix4.[012]|aix4.[012].*)
  34886. - # We only want to do this on AIX 4.2 and lower, the check
  34887. - # below for broken collect2 doesn't work under 4.3+
  34888. - collect2name=`${CC} -print-prog-name=collect2`
  34889. - if test -f "$collect2name" && \
  34890. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  34891. - then
  34892. - # We have reworked collect2
  34893. - :
  34894. - else
  34895. - # We have old collect2
  34896. - hardcode_direct_GCJ=unsupported
  34897. - # It fails to find uninstalled libraries when the uninstalled
  34898. - # path is not listed in the libpath. Setting hardcode_minus_L
  34899. - # to unsupported forces relinking
  34900. - hardcode_minus_L_GCJ=yes
  34901. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  34902. - hardcode_libdir_separator_GCJ=
  34903. - fi
  34904. - ;;
  34905. - esac
  34906. - shared_flag='-shared'
  34907. - if test "$aix_use_runtimelinking" = yes; then
  34908. - shared_flag="$shared_flag "'${wl}-G'
  34909. - fi
  34910. - else
  34911. - # not using gcc
  34912. - if test "$host_cpu" = ia64; then
  34913. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  34914. - # chokes on -Wl,-G. The following line is correct:
  34915. - shared_flag='-G'
  34916. - else
  34917. - if test "$aix_use_runtimelinking" = yes; then
  34918. - shared_flag='${wl}-G'
  34919. - else
  34920. - shared_flag='${wl}-bM:SRE'
  34921. - fi
  34922. - fi
  34923. - fi
  34924. +# PORTME: override above test on systems where it is broken
  34925. +case $host_os in
  34926. +interix[3-9]*)
  34927. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  34928. + # hack all around it, let's just trust "g++" to DTRT.
  34929. + predep_objects_CXX=
  34930. + postdep_objects_CXX=
  34931. + postdeps_CXX=
  34932. + ;;
  34933. - # It seems that -bexpall does not export symbols beginning with
  34934. - # underscore (_), so it is better to generate a list of symbols to export.
  34935. - always_export_symbols_GCJ=yes
  34936. - if test "$aix_use_runtimelinking" = yes; then
  34937. - # Warning - without using the other runtime loading flags (-brtl),
  34938. - # -berok will link without error, but may produce a broken library.
  34939. - allow_undefined_flag_GCJ='-berok'
  34940. - # Determine the default libpath from the value encoded in an empty executable.
  34941. - cat >conftest.$ac_ext <<_ACEOF
  34942. -/* confdefs.h. */
  34943. -_ACEOF
  34944. -cat confdefs.h >>conftest.$ac_ext
  34945. -cat >>conftest.$ac_ext <<_ACEOF
  34946. -/* end confdefs.h. */
  34947. +linux*)
  34948. + case `$CC -V 2>&1 | sed 5q` in
  34949. + *Sun\ C*)
  34950. + # Sun C++ 5.9
  34951. -int
  34952. -main ()
  34953. -{
  34954. + # The more standards-conforming stlport4 library is
  34955. + # incompatible with the Cstd library. Avoid specifying
  34956. + # it if it's in CXXFLAGS. Ignore libCrun as
  34957. + # -library=stlport4 depends on it.
  34958. + case " $CXX $CXXFLAGS " in
  34959. + *" -library=stlport4 "*)
  34960. + solaris_use_stlport4=yes
  34961. + ;;
  34962. + esac
  34963. - ;
  34964. - return 0;
  34965. -}
  34966. -_ACEOF
  34967. -rm -f conftest.$ac_objext conftest$ac_exeext
  34968. -if { (ac_try="$ac_link"
  34969. -case "(($ac_try" in
  34970. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34971. - *) ac_try_echo=$ac_try;;
  34972. -esac
  34973. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34974. -$as_echo "$ac_try_echo") >&5
  34975. - (eval "$ac_link") 2>conftest.er1
  34976. - ac_status=$?
  34977. - grep -v '^ *+' conftest.er1 >conftest.err
  34978. - rm -f conftest.er1
  34979. - cat conftest.err >&5
  34980. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34981. - (exit $ac_status); } && {
  34982. - test -z "$ac_c_werror_flag" ||
  34983. - test ! -s conftest.err
  34984. - } && test -s conftest$ac_exeext && {
  34985. - test "$cross_compiling" = yes ||
  34986. - $as_test_x conftest$ac_exeext
  34987. - }; then
  34988. + if test "$solaris_use_stlport4" != yes; then
  34989. + postdeps_CXX='-library=Cstd -library=Crun'
  34990. + fi
  34991. + ;;
  34992. + esac
  34993. + ;;
  34994. -lt_aix_libpath_sed='
  34995. - /Import File Strings/,/^$/ {
  34996. - /^0/ {
  34997. - s/^0 *\(.*\)$/\1/
  34998. - p
  34999. - }
  35000. - }'
  35001. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  35002. -# Check for a 64-bit object if we didn't find anything.
  35003. -if test -z "$aix_libpath"; then
  35004. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  35005. -fi
  35006. -else
  35007. - $as_echo "$as_me: failed program was:" >&5
  35008. -sed 's/^/| /' conftest.$ac_ext >&5
  35009. +solaris*)
  35010. + case $cc_basename in
  35011. + CC*)
  35012. + # The more standards-conforming stlport4 library is
  35013. + # incompatible with the Cstd library. Avoid specifying
  35014. + # it if it's in CXXFLAGS. Ignore libCrun as
  35015. + # -library=stlport4 depends on it.
  35016. + case " $CXX $CXXFLAGS " in
  35017. + *" -library=stlport4 "*)
  35018. + solaris_use_stlport4=yes
  35019. + ;;
  35020. + esac
  35021. +
  35022. + # Adding this requires a known-good setup of shared libraries for
  35023. + # Sun compiler versions before 5.6, else PIC objects from an old
  35024. + # archive will be linked into the output, leading to subtle bugs.
  35025. + if test "$solaris_use_stlport4" != yes; then
  35026. + postdeps_CXX='-library=Cstd -library=Crun'
  35027. + fi
  35028. + ;;
  35029. + esac
  35030. + ;;
  35031. +esac
  35032. +case " $postdeps_CXX " in
  35033. +*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  35034. +esac
  35035. + compiler_lib_search_dirs_CXX=
  35036. +if test -n "${compiler_lib_search_path_CXX}"; then
  35037. + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  35038. fi
  35039. -rm -rf conftest.dSYM
  35040. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35041. - conftest$ac_exeext conftest.$ac_ext
  35042. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  35043. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  35044. - 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"
  35045. - else
  35046. - if test "$host_cpu" = ia64; then
  35047. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  35048. - allow_undefined_flag_GCJ="-z nodefs"
  35049. - 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"
  35050. - else
  35051. - # Determine the default libpath from the value encoded in an empty executable.
  35052. - cat >conftest.$ac_ext <<_ACEOF
  35053. -/* confdefs.h. */
  35054. -_ACEOF
  35055. -cat confdefs.h >>conftest.$ac_ext
  35056. -cat >>conftest.$ac_ext <<_ACEOF
  35057. -/* end confdefs.h. */
  35058. -int
  35059. -main ()
  35060. -{
  35061. - ;
  35062. - return 0;
  35063. -}
  35064. -_ACEOF
  35065. -rm -f conftest.$ac_objext conftest$ac_exeext
  35066. -if { (ac_try="$ac_link"
  35067. -case "(($ac_try" in
  35068. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35069. - *) ac_try_echo=$ac_try;;
  35070. -esac
  35071. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35072. -$as_echo "$ac_try_echo") >&5
  35073. - (eval "$ac_link") 2>conftest.er1
  35074. - ac_status=$?
  35075. - grep -v '^ *+' conftest.er1 >conftest.err
  35076. - rm -f conftest.er1
  35077. - cat conftest.err >&5
  35078. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35079. - (exit $ac_status); } && {
  35080. - test -z "$ac_c_werror_flag" ||
  35081. - test ! -s conftest.err
  35082. - } && test -s conftest$ac_exeext && {
  35083. - test "$cross_compiling" = yes ||
  35084. - $as_test_x conftest$ac_exeext
  35085. - }; then
  35086. -lt_aix_libpath_sed='
  35087. - /Import File Strings/,/^$/ {
  35088. - /^0/ {
  35089. - s/^0 *\(.*\)$/\1/
  35090. - p
  35091. - }
  35092. - }'
  35093. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  35094. -# Check for a 64-bit object if we didn't find anything.
  35095. -if test -z "$aix_libpath"; then
  35096. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  35097. -fi
  35098. -else
  35099. - $as_echo "$as_me: failed program was:" >&5
  35100. -sed 's/^/| /' conftest.$ac_ext >&5
  35101. -fi
  35102. -rm -rf conftest.dSYM
  35103. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35104. - conftest$ac_exeext conftest.$ac_ext
  35105. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  35106. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  35107. - # Warning - without using the other run time loading flags,
  35108. - # -berok will link without error, but may produce a broken library.
  35109. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  35110. - allow_undefined_flag_GCJ=' ${wl}-berok'
  35111. - # Exported symbols can be pulled into shared objects from archives
  35112. - whole_archive_flag_spec_GCJ='$convenience'
  35113. - archive_cmds_need_lc_GCJ=yes
  35114. - # This is similar to how AIX traditionally builds its shared libraries.
  35115. - 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'
  35116. - fi
  35117. - fi
  35118. - ;;
  35119. - amigaos*)
  35120. - 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)'
  35121. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35122. - hardcode_minus_L_GCJ=yes
  35123. - # see comment about different semantics on the GNU ld section
  35124. - ld_shlibs_GCJ=no
  35125. - ;;
  35126. - bsdi[45]*)
  35127. - export_dynamic_flag_spec_GCJ=-rdynamic
  35128. - ;;
  35129. - cygwin* | mingw* | pw32*)
  35130. - # When not using gcc, we currently assume that we are using
  35131. - # Microsoft Visual C++.
  35132. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  35133. - # no search path for DLLs.
  35134. - hardcode_libdir_flag_spec_GCJ=' '
  35135. - allow_undefined_flag_GCJ=unsupported
  35136. - # Tell ltmain to make .lib files, not .a files.
  35137. - libext=lib
  35138. - # Tell ltmain to make .dll files, not .so files.
  35139. - shrext_cmds=".dll"
  35140. - # FIXME: Setting linknames here is a bad hack.
  35141. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  35142. - # The linker will automatically build a .lib file if we build a DLL.
  35143. - old_archive_From_new_cmds_GCJ='true'
  35144. - # FIXME: Should let the user specify the lib program.
  35145. - old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  35146. - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  35147. - enable_shared_with_static_runtimes_GCJ=yes
  35148. - ;;
  35149. - darwin* | rhapsody*)
  35150. - case $host_os in
  35151. - rhapsody* | darwin1.[012])
  35152. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  35153. - ;;
  35154. - *) # Darwin 1.3 on
  35155. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  35156. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  35157. - else
  35158. - case ${MACOSX_DEPLOYMENT_TARGET} in
  35159. - 10.[012])
  35160. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  35161. - ;;
  35162. - 10.*)
  35163. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  35164. - ;;
  35165. - esac
  35166. - fi
  35167. - ;;
  35168. - esac
  35169. - archive_cmds_need_lc_GCJ=no
  35170. - hardcode_direct_GCJ=no
  35171. - hardcode_automatic_GCJ=yes
  35172. - hardcode_shlibpath_var_GCJ=unsupported
  35173. - whole_archive_flag_spec_GCJ=''
  35174. - link_all_deplibs_GCJ=yes
  35175. - if test "$GCC" = yes ; then
  35176. - output_verbose_link_cmd='echo'
  35177. - 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}"
  35178. - module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  35179. - 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}"
  35180. - 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}"
  35181. - else
  35182. - case $cc_basename in
  35183. - xlc*)
  35184. - output_verbose_link_cmd='echo'
  35185. - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  35186. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  35187. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  35188. - 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}'
  35189. - 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}'
  35190. - ;;
  35191. - *)
  35192. - ld_shlibs_GCJ=no
  35193. - ;;
  35194. - esac
  35195. - fi
  35196. - ;;
  35197. - dgux*)
  35198. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35199. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35200. - hardcode_shlibpath_var_GCJ=no
  35201. - ;;
  35202. - freebsd1*)
  35203. - ld_shlibs_GCJ=no
  35204. - ;;
  35205. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  35206. - # support. Future versions do this automatically, but an explicit c++rt0.o
  35207. - # does not break anything, and helps significantly (at the cost of a little
  35208. - # extra space).
  35209. - freebsd2.2*)
  35210. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  35211. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  35212. - hardcode_direct_GCJ=yes
  35213. - hardcode_shlibpath_var_GCJ=no
  35214. - ;;
  35215. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  35216. - freebsd2*)
  35217. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  35218. - hardcode_direct_GCJ=yes
  35219. - hardcode_minus_L_GCJ=yes
  35220. - hardcode_shlibpath_var_GCJ=no
  35221. - ;;
  35222. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  35223. - freebsd* | dragonfly*)
  35224. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  35225. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  35226. - hardcode_direct_GCJ=yes
  35227. - hardcode_shlibpath_var_GCJ=no
  35228. - ;;
  35229. - hpux9*)
  35230. - if test "$GCC" = yes; then
  35231. - 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'
  35232. - else
  35233. - 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'
  35234. - fi
  35235. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  35236. - hardcode_libdir_separator_GCJ=:
  35237. - hardcode_direct_GCJ=yes
  35238. - # hardcode_minus_L: Not really in the search PATH,
  35239. - # but as the default location of the library.
  35240. - hardcode_minus_L_GCJ=yes
  35241. - export_dynamic_flag_spec_GCJ='${wl}-E'
  35242. - ;;
  35243. - hpux10*)
  35244. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  35245. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  35246. - else
  35247. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  35248. - fi
  35249. - if test "$with_gnu_ld" = no; then
  35250. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  35251. - hardcode_libdir_separator_GCJ=:
  35252. - hardcode_direct_GCJ=yes
  35253. - export_dynamic_flag_spec_GCJ='${wl}-E'
  35254. - # hardcode_minus_L: Not really in the search PATH,
  35255. - # but as the default location of the library.
  35256. - hardcode_minus_L_GCJ=yes
  35257. - fi
  35258. - ;;
  35259. - hpux11*)
  35260. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  35261. - case $host_cpu in
  35262. - hppa*64*)
  35263. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35264. - ;;
  35265. - ia64*)
  35266. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  35267. - ;;
  35268. - *)
  35269. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  35270. - ;;
  35271. - esac
  35272. - else
  35273. - case $host_cpu in
  35274. - hppa*64*)
  35275. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35276. - ;;
  35277. - ia64*)
  35278. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  35279. - ;;
  35280. - *)
  35281. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  35282. - ;;
  35283. - esac
  35284. - fi
  35285. - if test "$with_gnu_ld" = no; then
  35286. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  35287. - hardcode_libdir_separator_GCJ=:
  35288. - case $host_cpu in
  35289. - hppa*64*|ia64*)
  35290. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  35291. - hardcode_direct_GCJ=no
  35292. - hardcode_shlibpath_var_GCJ=no
  35293. - ;;
  35294. - *)
  35295. - hardcode_direct_GCJ=yes
  35296. - export_dynamic_flag_spec_GCJ='${wl}-E'
  35297. - # hardcode_minus_L: Not really in the search PATH,
  35298. - # but as the default location of the library.
  35299. - hardcode_minus_L_GCJ=yes
  35300. - ;;
  35301. - esac
  35302. - fi
  35303. - ;;
  35304. - irix5* | irix6* | nonstopux*)
  35305. - if test "$GCC" = yes; then
  35306. - 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'
  35307. - else
  35308. - 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'
  35309. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  35310. - fi
  35311. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  35312. - hardcode_libdir_separator_GCJ=:
  35313. - link_all_deplibs_GCJ=yes
  35314. - ;;
  35315. - netbsd*)
  35316. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  35317. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  35318. - else
  35319. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  35320. - fi
  35321. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  35322. - hardcode_direct_GCJ=yes
  35323. - hardcode_shlibpath_var_GCJ=no
  35324. - ;;
  35325. - newsos6)
  35326. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35327. - hardcode_direct_GCJ=yes
  35328. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  35329. - hardcode_libdir_separator_GCJ=:
  35330. - hardcode_shlibpath_var_GCJ=no
  35331. - ;;
  35332. - openbsd*)
  35333. - if test -f /usr/libexec/ld.so; then
  35334. - hardcode_direct_GCJ=yes
  35335. - hardcode_shlibpath_var_GCJ=no
  35336. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  35337. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  35338. - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  35339. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  35340. - export_dynamic_flag_spec_GCJ='${wl}-E'
  35341. - else
  35342. - case $host_os in
  35343. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  35344. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  35345. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  35346. - ;;
  35347. - *)
  35348. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  35349. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  35350. - ;;
  35351. - esac
  35352. - fi
  35353. - else
  35354. - ld_shlibs_GCJ=no
  35355. - fi
  35356. - ;;
  35357. - os2*)
  35358. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35359. - hardcode_minus_L_GCJ=yes
  35360. - allow_undefined_flag_GCJ=unsupported
  35361. - 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'
  35362. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  35363. - ;;
  35364. + lt_prog_compiler_wl_CXX=
  35365. +lt_prog_compiler_pic_CXX=
  35366. +lt_prog_compiler_static_CXX=
  35367. - osf3*)
  35368. - if test "$GCC" = yes; then
  35369. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  35370. - 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'
  35371. - else
  35372. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  35373. - 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'
  35374. - fi
  35375. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  35376. - hardcode_libdir_separator_GCJ=:
  35377. - ;;
  35378. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  35379. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  35380. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  35381. - if test "$GCC" = yes; then
  35382. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  35383. - 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'
  35384. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  35385. - else
  35386. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  35387. - 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'
  35388. - 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~
  35389. - $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'
  35390. + # C++ specific cases for pic, static, wl, etc.
  35391. + if test "$GXX" = yes; then
  35392. + lt_prog_compiler_wl_CXX='-Wl,'
  35393. + lt_prog_compiler_static_CXX='-static'
  35394. - # Both c and cxx compiler support -rpath directly
  35395. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  35396. + case $host_os in
  35397. + aix*)
  35398. + # All AIX code is PIC.
  35399. + if test "$host_cpu" = ia64; then
  35400. + # AIX 5 now supports IA64 processor
  35401. + lt_prog_compiler_static_CXX='-Bstatic'
  35402. fi
  35403. - hardcode_libdir_separator_GCJ=:
  35404. ;;
  35405. - solaris*)
  35406. - no_undefined_flag_GCJ=' -z text'
  35407. - if test "$GCC" = yes; then
  35408. - wlarc='${wl}'
  35409. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35410. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  35411. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  35412. - else
  35413. - wlarc=''
  35414. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35415. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  35416. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  35417. - fi
  35418. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  35419. - hardcode_shlibpath_var_GCJ=no
  35420. - case $host_os in
  35421. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  35422. - *)
  35423. - # The compiler driver will combine and reorder linker options,
  35424. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  35425. - # but is careful enough not to reorder.
  35426. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  35427. - if test "$GCC" = yes; then
  35428. - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  35429. - else
  35430. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  35431. - fi
  35432. - ;;
  35433. + amigaos*)
  35434. + case $host_cpu in
  35435. + powerpc)
  35436. + # see comment about AmigaOS4 .so support
  35437. + lt_prog_compiler_pic_CXX='-fPIC'
  35438. + ;;
  35439. + m68k)
  35440. + # FIXME: we need at least 68020 code to build shared libraries, but
  35441. + # adding the `-m68020' flag to GCC prevents building anything better,
  35442. + # like `-m68040'.
  35443. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  35444. + ;;
  35445. esac
  35446. - link_all_deplibs_GCJ=yes
  35447. ;;
  35448. - sunos4*)
  35449. - if test "x$host_vendor" = xsequent; then
  35450. - # Use $CC to link under sequent, because it throws in some extra .o
  35451. - # files that make .init and .fini sections work.
  35452. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  35453. - else
  35454. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  35455. - fi
  35456. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35457. - hardcode_direct_GCJ=yes
  35458. - hardcode_minus_L_GCJ=yes
  35459. - hardcode_shlibpath_var_GCJ=no
  35460. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  35461. + # PIC is the default for these OSes.
  35462. ;;
  35463. -
  35464. - sysv4)
  35465. - case $host_vendor in
  35466. - sni)
  35467. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35468. - hardcode_direct_GCJ=yes # is this really true???
  35469. - ;;
  35470. - siemens)
  35471. - ## LD is ld it makes a PLAMLIB
  35472. - ## CC just makes a GrossModule.
  35473. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  35474. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  35475. - hardcode_direct_GCJ=no
  35476. - ;;
  35477. - motorola)
  35478. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35479. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  35480. - ;;
  35481. - esac
  35482. - runpath_var='LD_RUN_PATH'
  35483. - hardcode_shlibpath_var_GCJ=no
  35484. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  35485. + # This hack is so that the source file can tell whether it is being
  35486. + # built for inclusion in a dll (and should export symbols for example).
  35487. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  35488. + # (--disable-auto-import) libraries
  35489. + lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  35490. + ;;
  35491. + darwin* | rhapsody*)
  35492. + # PIC is the default on this platform
  35493. + # Common symbols not allowed in MH_DYLIB files
  35494. + lt_prog_compiler_pic_CXX='-fno-common'
  35495. + ;;
  35496. + *djgpp*)
  35497. + # DJGPP does not support shared libraries at all
  35498. + lt_prog_compiler_pic_CXX=
  35499. ;;
  35500. -
  35501. - sysv4.3*)
  35502. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35503. - hardcode_shlibpath_var_GCJ=no
  35504. - export_dynamic_flag_spec_GCJ='-Bexport'
  35505. + interix[3-9]*)
  35506. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  35507. + # Instead, we relocate shared libraries at runtime.
  35508. ;;
  35509. -
  35510. sysv4*MP*)
  35511. if test -d /usr/nec; then
  35512. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35513. - hardcode_shlibpath_var_GCJ=no
  35514. - runpath_var=LD_RUN_PATH
  35515. - hardcode_runpath_var=yes
  35516. - ld_shlibs_GCJ=yes
  35517. - fi
  35518. - ;;
  35519. -
  35520. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  35521. - no_undefined_flag_GCJ='${wl}-z,text'
  35522. - archive_cmds_need_lc_GCJ=no
  35523. - hardcode_shlibpath_var_GCJ=no
  35524. - runpath_var='LD_RUN_PATH'
  35525. -
  35526. - if test "$GCC" = yes; then
  35527. - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35528. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35529. - else
  35530. - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35531. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35532. + lt_prog_compiler_pic_CXX=-Kconform_pic
  35533. fi
  35534. ;;
  35535. -
  35536. - sysv5* | sco3.2v5* | sco5v6*)
  35537. - # Note: We can NOT use -z defs as we might desire, because we do not
  35538. - # link with -lc, and that would cause any symbols used from libc to
  35539. - # always be unresolved, which means just about no library would
  35540. - # ever link correctly. If we're not using GNU ld we use -z text
  35541. - # though, which does catch some bad symbols but isn't as heavy-handed
  35542. - # as -z defs.
  35543. - no_undefined_flag_GCJ='${wl}-z,text'
  35544. - allow_undefined_flag_GCJ='${wl}-z,nodefs'
  35545. - archive_cmds_need_lc_GCJ=no
  35546. - hardcode_shlibpath_var_GCJ=no
  35547. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  35548. - hardcode_libdir_separator_GCJ=':'
  35549. - link_all_deplibs_GCJ=yes
  35550. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  35551. - runpath_var='LD_RUN_PATH'
  35552. -
  35553. - if test "$GCC" = yes; then
  35554. - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35555. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35556. - else
  35557. - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35558. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35559. - fi
  35560. + hpux*)
  35561. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  35562. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  35563. + # sets the default TLS model and affects inlining.
  35564. + case $host_cpu in
  35565. + hppa*64*)
  35566. + ;;
  35567. + *)
  35568. + lt_prog_compiler_pic_CXX='-fPIC'
  35569. + ;;
  35570. + esac
  35571. ;;
  35572. -
  35573. - uts4*)
  35574. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35575. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35576. - hardcode_shlibpath_var_GCJ=no
  35577. + *qnx* | *nto*)
  35578. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  35579. + # it will coredump.
  35580. + lt_prog_compiler_pic_CXX='-fPIC -shared'
  35581. ;;
  35582. -
  35583. *)
  35584. - ld_shlibs_GCJ=no
  35585. + lt_prog_compiler_pic_CXX='-fPIC'
  35586. ;;
  35587. esac
  35588. - fi
  35589. -
  35590. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  35591. -$as_echo "$ld_shlibs_GCJ" >&6; }
  35592. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  35593. -
  35594. -#
  35595. -# Do we need to explicitly link libc?
  35596. -#
  35597. -case "x$archive_cmds_need_lc_GCJ" in
  35598. -x|xyes)
  35599. - # Assume -lc should be added
  35600. - archive_cmds_need_lc_GCJ=yes
  35601. -
  35602. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  35603. - case $archive_cmds_GCJ in
  35604. - *'~'*)
  35605. - # FIXME: we may have to deal with multi-command sequences.
  35606. - ;;
  35607. - '$CC '*)
  35608. - # Test whether the compiler implicitly links with -lc since on some
  35609. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  35610. - # to ld, don't add -lc before -lgcc.
  35611. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  35612. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  35613. - $rm conftest*
  35614. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  35615. -
  35616. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  35617. - (eval $ac_compile) 2>&5
  35618. - ac_status=$?
  35619. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35620. - (exit $ac_status); } 2>conftest.err; then
  35621. - soname=conftest
  35622. - lib=conftest
  35623. - libobjs=conftest.$ac_objext
  35624. - deplibs=
  35625. - wl=$lt_prog_compiler_wl_GCJ
  35626. - pic_flag=$lt_prog_compiler_pic_GCJ
  35627. - compiler_flags=-v
  35628. - linker_flags=-v
  35629. - verstring=
  35630. - output_objdir=.
  35631. - libname=conftest
  35632. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  35633. - allow_undefined_flag_GCJ=
  35634. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  35635. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  35636. - ac_status=$?
  35637. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35638. - (exit $ac_status); }
  35639. - then
  35640. - archive_cmds_need_lc_GCJ=no
  35641. - else
  35642. - archive_cmds_need_lc_GCJ=yes
  35643. - fi
  35644. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  35645. - else
  35646. - cat conftest.err 1>&5
  35647. - fi
  35648. - $rm conftest*
  35649. - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  35650. -$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
  35651. - ;;
  35652. + else
  35653. + case $host_os in
  35654. + aix[4-9]*)
  35655. + # All AIX code is PIC.
  35656. + if test "$host_cpu" = ia64; then
  35657. + # AIX 5 now supports IA64 processor
  35658. + lt_prog_compiler_static_CXX='-Bstatic'
  35659. + else
  35660. + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  35661. + fi
  35662. + ;;
  35663. + chorus*)
  35664. + case $cc_basename in
  35665. + cxch68*)
  35666. + # Green Hills C++ Compiler
  35667. + # _LT_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"
  35668. + ;;
  35669. + esac
  35670. + ;;
  35671. + dgux*)
  35672. + case $cc_basename in
  35673. + ec++*)
  35674. + lt_prog_compiler_pic_CXX='-KPIC'
  35675. + ;;
  35676. + ghcx*)
  35677. + # Green Hills C++ Compiler
  35678. + lt_prog_compiler_pic_CXX='-pic'
  35679. + ;;
  35680. + *)
  35681. + ;;
  35682. + esac
  35683. + ;;
  35684. + freebsd* | dragonfly*)
  35685. + # FreeBSD uses GNU C++
  35686. + ;;
  35687. + hpux9* | hpux10* | hpux11*)
  35688. + case $cc_basename in
  35689. + CC*)
  35690. + lt_prog_compiler_wl_CXX='-Wl,'
  35691. + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  35692. + if test "$host_cpu" != ia64; then
  35693. + lt_prog_compiler_pic_CXX='+Z'
  35694. + fi
  35695. + ;;
  35696. + aCC*)
  35697. + lt_prog_compiler_wl_CXX='-Wl,'
  35698. + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  35699. + case $host_cpu in
  35700. + hppa*64*|ia64*)
  35701. + # +Z the default
  35702. + ;;
  35703. + *)
  35704. + lt_prog_compiler_pic_CXX='+Z'
  35705. + ;;
  35706. + esac
  35707. + ;;
  35708. + *)
  35709. + ;;
  35710. + esac
  35711. + ;;
  35712. + interix*)
  35713. + # This is c89, which is MS Visual C++ (no shared libs)
  35714. + # Anyone wants to do a port?
  35715. + ;;
  35716. + irix5* | irix6* | nonstopux*)
  35717. + case $cc_basename in
  35718. + CC*)
  35719. + lt_prog_compiler_wl_CXX='-Wl,'
  35720. + lt_prog_compiler_static_CXX='-non_shared'
  35721. + # CC pic flag -KPIC is the default.
  35722. + ;;
  35723. + *)
  35724. + ;;
  35725. + esac
  35726. + ;;
  35727. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  35728. + case $cc_basename in
  35729. + KCC*)
  35730. + # KAI C++ Compiler
  35731. + lt_prog_compiler_wl_CXX='--backend -Wl,'
  35732. + lt_prog_compiler_pic_CXX='-fPIC'
  35733. + ;;
  35734. + ecpc* )
  35735. + # old Intel C++ for x86_64 which still supported -KPIC.
  35736. + lt_prog_compiler_wl_CXX='-Wl,'
  35737. + lt_prog_compiler_pic_CXX='-KPIC'
  35738. + lt_prog_compiler_static_CXX='-static'
  35739. + ;;
  35740. + icpc* )
  35741. + # Intel C++, used to be incompatible with GCC.
  35742. + # ICC 10 doesn't accept -KPIC any more.
  35743. + lt_prog_compiler_wl_CXX='-Wl,'
  35744. + lt_prog_compiler_pic_CXX='-fPIC'
  35745. + lt_prog_compiler_static_CXX='-static'
  35746. + ;;
  35747. + pgCC* | pgcpp*)
  35748. + # Portland Group C++ compiler
  35749. + lt_prog_compiler_wl_CXX='-Wl,'
  35750. + lt_prog_compiler_pic_CXX='-fpic'
  35751. + lt_prog_compiler_static_CXX='-Bstatic'
  35752. + ;;
  35753. + cxx*)
  35754. + # Compaq C++
  35755. + # Make sure the PIC flag is empty. It appears that all Alpha
  35756. + # Linux and Compaq Tru64 Unix objects are PIC.
  35757. + lt_prog_compiler_pic_CXX=
  35758. + lt_prog_compiler_static_CXX='-non_shared'
  35759. + ;;
  35760. + xlc* | xlC*)
  35761. + # IBM XL 8.0 on PPC
  35762. + lt_prog_compiler_wl_CXX='-Wl,'
  35763. + lt_prog_compiler_pic_CXX='-qpic'
  35764. + lt_prog_compiler_static_CXX='-qstaticlink'
  35765. + ;;
  35766. + *)
  35767. + case `$CC -V 2>&1 | sed 5q` in
  35768. + *Sun\ C*)
  35769. + # Sun C++ 5.9
  35770. + lt_prog_compiler_pic_CXX='-KPIC'
  35771. + lt_prog_compiler_static_CXX='-Bstatic'
  35772. + lt_prog_compiler_wl_CXX='-Qoption ld '
  35773. + ;;
  35774. + esac
  35775. + ;;
  35776. + esac
  35777. + ;;
  35778. + lynxos*)
  35779. + ;;
  35780. + m88k*)
  35781. + ;;
  35782. + mvs*)
  35783. + case $cc_basename in
  35784. + cxx*)
  35785. + lt_prog_compiler_pic_CXX='-W c,exportall'
  35786. + ;;
  35787. + *)
  35788. + ;;
  35789. + esac
  35790. + ;;
  35791. + netbsd* | netbsdelf*-gnu)
  35792. + ;;
  35793. + *qnx* | *nto*)
  35794. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  35795. + # it will coredump.
  35796. + lt_prog_compiler_pic_CXX='-fPIC -shared'
  35797. + ;;
  35798. + osf3* | osf4* | osf5*)
  35799. + case $cc_basename in
  35800. + KCC*)
  35801. + lt_prog_compiler_wl_CXX='--backend -Wl,'
  35802. + ;;
  35803. + RCC*)
  35804. + # Rational C++ 2.4.1
  35805. + lt_prog_compiler_pic_CXX='-pic'
  35806. + ;;
  35807. + cxx*)
  35808. + # Digital/Compaq C++
  35809. + lt_prog_compiler_wl_CXX='-Wl,'
  35810. + # Make sure the PIC flag is empty. It appears that all Alpha
  35811. + # Linux and Compaq Tru64 Unix objects are PIC.
  35812. + lt_prog_compiler_pic_CXX=
  35813. + lt_prog_compiler_static_CXX='-non_shared'
  35814. + ;;
  35815. + *)
  35816. + ;;
  35817. + esac
  35818. + ;;
  35819. + psos*)
  35820. + ;;
  35821. + solaris*)
  35822. + case $cc_basename in
  35823. + CC*)
  35824. + # Sun C++ 4.2, 5.x and Centerline C++
  35825. + lt_prog_compiler_pic_CXX='-KPIC'
  35826. + lt_prog_compiler_static_CXX='-Bstatic'
  35827. + lt_prog_compiler_wl_CXX='-Qoption ld '
  35828. + ;;
  35829. + gcx*)
  35830. + # Green Hills C++ Compiler
  35831. + lt_prog_compiler_pic_CXX='-PIC'
  35832. + ;;
  35833. + *)
  35834. + ;;
  35835. + esac
  35836. + ;;
  35837. + sunos4*)
  35838. + case $cc_basename in
  35839. + CC*)
  35840. + # Sun C++ 4.x
  35841. + lt_prog_compiler_pic_CXX='-pic'
  35842. + lt_prog_compiler_static_CXX='-Bstatic'
  35843. + ;;
  35844. + lcc*)
  35845. + # Lucid
  35846. + lt_prog_compiler_pic_CXX='-pic'
  35847. + ;;
  35848. + *)
  35849. + ;;
  35850. + esac
  35851. + ;;
  35852. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  35853. + case $cc_basename in
  35854. + CC*)
  35855. + lt_prog_compiler_wl_CXX='-Wl,'
  35856. + lt_prog_compiler_pic_CXX='-KPIC'
  35857. + lt_prog_compiler_static_CXX='-Bstatic'
  35858. + ;;
  35859. + esac
  35860. + ;;
  35861. + tandem*)
  35862. + case $cc_basename in
  35863. + NCC*)
  35864. + # NonStop-UX NCC 3.20
  35865. + lt_prog_compiler_pic_CXX='-KPIC'
  35866. + ;;
  35867. + *)
  35868. + ;;
  35869. + esac
  35870. + ;;
  35871. + vxworks*)
  35872. + ;;
  35873. + *)
  35874. + lt_prog_compiler_can_build_shared_CXX=no
  35875. + ;;
  35876. esac
  35877. fi
  35878. - ;;
  35879. -esac
  35880. -
  35881. -{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  35882. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  35883. -library_names_spec=
  35884. -libname_spec='lib$name'
  35885. -soname_spec=
  35886. -shrext_cmds=".so"
  35887. -postinstall_cmds=
  35888. -postuninstall_cmds=
  35889. -finish_cmds=
  35890. -finish_eval=
  35891. -shlibpath_var=
  35892. -shlibpath_overrides_runpath=unknown
  35893. -version_type=none
  35894. -dynamic_linker="$host_os ld.so"
  35895. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  35896. -
  35897. -need_lib_prefix=unknown
  35898. -hardcode_into_libs=no
  35899. -
  35900. -# when you set need_version to no, make sure it does not cause -set_version
  35901. -# flags to be left without arguments
  35902. -need_version=unknown
  35903. case $host_os in
  35904. -aix3*)
  35905. - version_type=linux
  35906. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  35907. - shlibpath_var=LIBPATH
  35908. -
  35909. - # AIX 3 has no versioning support, so we append a major version to the name.
  35910. - soname_spec='${libname}${release}${shared_ext}$major'
  35911. - ;;
  35912. + # For platforms which do not support PIC, -DPIC is meaningless:
  35913. + *djgpp*)
  35914. + lt_prog_compiler_pic_CXX=
  35915. + ;;
  35916. + *)
  35917. + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  35918. + ;;
  35919. +esac
  35920. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  35921. +$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  35922. -aix[4-9]*)
  35923. - version_type=linux
  35924. - need_lib_prefix=no
  35925. - need_version=no
  35926. - hardcode_into_libs=yes
  35927. - if test "$host_cpu" = ia64; then
  35928. - # AIX 5 supports IA64
  35929. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  35930. - shlibpath_var=LD_LIBRARY_PATH
  35931. - else
  35932. - # With GCC up to 2.95.x, collect2 would create an import file
  35933. - # for dependence libraries. The import file would start with
  35934. - # the line `#! .'. This would cause the generated library to
  35935. - # depend on `.', always an invalid library. This was fixed in
  35936. - # development snapshots of GCC prior to 3.0.
  35937. - case $host_os in
  35938. - aix4 | aix4.[01] | aix4.[01].*)
  35939. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  35940. - echo ' yes '
  35941. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  35942. - :
  35943. - else
  35944. - can_build_shared=no
  35945. - fi
  35946. - ;;
  35947. - esac
  35948. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  35949. - # soname into executable. Probably we can add versioning support to
  35950. - # collect2, so additional links can be useful in future.
  35951. - if test "$aix_use_runtimelinking" = yes; then
  35952. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  35953. - # instead of lib<name>.a to let people know that these are not
  35954. - # typical AIX shared libraries.
  35955. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35956. - else
  35957. - # We preserve .a as extension for shared libraries through AIX4.2
  35958. - # and later when we are not doing run time linking.
  35959. - library_names_spec='${libname}${release}.a $libname.a'
  35960. - soname_spec='${libname}${release}${shared_ext}$major'
  35961. - fi
  35962. - shlibpath_var=LIBPATH
  35963. - fi
  35964. - ;;
  35965. -amigaos*)
  35966. - library_names_spec='$libname.ixlibrary $libname.a'
  35967. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  35968. - 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'
  35969. - ;;
  35970. -beos*)
  35971. - library_names_spec='${libname}${shared_ext}'
  35972. - dynamic_linker="$host_os ld.so"
  35973. - shlibpath_var=LIBRARY_PATH
  35974. - ;;
  35975. +#
  35976. +# Check to make sure the PIC flag actually works.
  35977. +#
  35978. +if test -n "$lt_prog_compiler_pic_CXX"; then
  35979. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  35980. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  35981. +if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  35982. + $as_echo_n "(cached) " >&6
  35983. +else
  35984. + lt_cv_prog_compiler_pic_works_CXX=no
  35985. + ac_outfile=conftest.$ac_objext
  35986. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  35987. + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  35988. + # Insert the option either (1) after the last *FLAGS variable, or
  35989. + # (2) before a word containing "conftest.", or (3) at the end.
  35990. + # Note that $ac_compile itself does not contain backslashes and begins
  35991. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  35992. + # The option is referenced via a variable to avoid confusing sed.
  35993. + lt_compile=`echo "$ac_compile" | $SED \
  35994. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  35995. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  35996. + -e 's:$: $lt_compiler_flag:'`
  35997. + (eval echo "\"\$as_me:13356: $lt_compile\"" >&5)
  35998. + (eval "$lt_compile" 2>conftest.err)
  35999. + ac_status=$?
  36000. + cat conftest.err >&5
  36001. + echo "$as_me:13360: \$? = $ac_status" >&5
  36002. + if (exit $ac_status) && test -s "$ac_outfile"; then
  36003. + # The compiler can only warn and ignore the option if not recognized
  36004. + # So say no if there are warnings other than the usual output.
  36005. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  36006. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  36007. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  36008. + lt_cv_prog_compiler_pic_works_CXX=yes
  36009. + fi
  36010. + fi
  36011. + $RM conftest*
  36012. -bsdi[45]*)
  36013. - version_type=linux
  36014. - need_version=no
  36015. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36016. - soname_spec='${libname}${release}${shared_ext}$major'
  36017. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  36018. - shlibpath_var=LD_LIBRARY_PATH
  36019. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  36020. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  36021. - # the default ld.so.conf also contains /usr/contrib/lib and
  36022. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  36023. - # libtool to hard-code these into programs
  36024. - ;;
  36025. +fi
  36026. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  36027. +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  36028. -cygwin* | mingw* | pw32*)
  36029. - version_type=windows
  36030. - shrext_cmds=".dll"
  36031. - need_version=no
  36032. - need_lib_prefix=no
  36033. +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  36034. + case $lt_prog_compiler_pic_CXX in
  36035. + "" | " "*) ;;
  36036. + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  36037. + esac
  36038. +else
  36039. + lt_prog_compiler_pic_CXX=
  36040. + lt_prog_compiler_can_build_shared_CXX=no
  36041. +fi
  36042. - case $GCC,$host_os in
  36043. - yes,cygwin* | yes,mingw* | yes,pw32*)
  36044. - library_names_spec='$libname.dll.a'
  36045. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  36046. - postinstall_cmds='base_file=`basename \${file}`~
  36047. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  36048. - dldir=$destdir/`dirname \$dlpath`~
  36049. - test -d \$dldir || mkdir -p \$dldir~
  36050. - $install_prog $dir/$dlname \$dldir/$dlname~
  36051. - chmod a+x \$dldir/$dlname'
  36052. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  36053. - dlpath=$dir/\$dldll~
  36054. - $rm \$dlpath'
  36055. - shlibpath_overrides_runpath=yes
  36056. +fi
  36057. - case $host_os in
  36058. - cygwin*)
  36059. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  36060. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36061. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  36062. - ;;
  36063. - mingw*)
  36064. - # MinGW DLLs use traditional 'lib' prefix
  36065. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36066. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36067. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  36068. - # It is most probably a Windows format PATH printed by
  36069. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  36070. - # path with ; separators, and with drive letters. We can handle the
  36071. - # drive letters (cygwin fileutils understands them), so leave them,
  36072. - # especially as we might pass files found there to a mingw objdump,
  36073. - # which wouldn't understand a cygwinified path. Ahh.
  36074. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  36075. - else
  36076. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36077. - fi
  36078. - ;;
  36079. - pw32*)
  36080. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  36081. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36082. - ;;
  36083. - esac
  36084. - ;;
  36085. - *)
  36086. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  36087. - ;;
  36088. - esac
  36089. - dynamic_linker='Win32 ld.exe'
  36090. - # FIXME: first we should search . and the directory the executable is in
  36091. - shlibpath_var=PATH
  36092. - ;;
  36093. -darwin* | rhapsody*)
  36094. - dynamic_linker="$host_os dyld"
  36095. - version_type=darwin
  36096. - need_lib_prefix=no
  36097. - need_version=no
  36098. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  36099. - soname_spec='${libname}${release}${major}$shared_ext'
  36100. - shlibpath_overrides_runpath=yes
  36101. - shlibpath_var=DYLD_LIBRARY_PATH
  36102. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  36103. +#
  36104. +# Check to make sure the static flag actually works.
  36105. +#
  36106. +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  36107. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  36108. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  36109. +if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  36110. + $as_echo_n "(cached) " >&6
  36111. +else
  36112. + lt_cv_prog_compiler_static_works_CXX=no
  36113. + save_LDFLAGS="$LDFLAGS"
  36114. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  36115. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  36116. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  36117. + # The linker can only warn and ignore the option if not recognized
  36118. + # So say no if there are warnings
  36119. + if test -s conftest.err; then
  36120. + # Append any errors to the config.log.
  36121. + cat conftest.err 1>&5
  36122. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  36123. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  36124. + if diff conftest.exp conftest.er2 >/dev/null; then
  36125. + lt_cv_prog_compiler_static_works_CXX=yes
  36126. + fi
  36127. + else
  36128. + lt_cv_prog_compiler_static_works_CXX=yes
  36129. + fi
  36130. + fi
  36131. + $RM -r conftest*
  36132. + LDFLAGS="$save_LDFLAGS"
  36133. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  36134. - ;;
  36135. +fi
  36136. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  36137. +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  36138. -dgux*)
  36139. - version_type=linux
  36140. - need_lib_prefix=no
  36141. - need_version=no
  36142. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  36143. - soname_spec='${libname}${release}${shared_ext}$major'
  36144. - shlibpath_var=LD_LIBRARY_PATH
  36145. - ;;
  36146. +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  36147. + :
  36148. +else
  36149. + lt_prog_compiler_static_CXX=
  36150. +fi
  36151. -freebsd1*)
  36152. - dynamic_linker=no
  36153. - ;;
  36154. -freebsd* | dragonfly*)
  36155. - # DragonFly does not have aout. When/if they implement a new
  36156. - # versioning mechanism, adjust this.
  36157. - if test -x /usr/bin/objformat; then
  36158. - objformat=`/usr/bin/objformat`
  36159. - else
  36160. - case $host_os in
  36161. - freebsd[123]*) objformat=aout ;;
  36162. - *) objformat=elf ;;
  36163. - esac
  36164. - fi
  36165. - version_type=freebsd-$objformat
  36166. - case $version_type in
  36167. - freebsd-elf*)
  36168. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  36169. - need_version=no
  36170. - need_lib_prefix=no
  36171. - ;;
  36172. - freebsd-*)
  36173. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  36174. - need_version=yes
  36175. - ;;
  36176. - esac
  36177. - shlibpath_var=LD_LIBRARY_PATH
  36178. - case $host_os in
  36179. - freebsd2*)
  36180. - shlibpath_overrides_runpath=yes
  36181. - ;;
  36182. - freebsd3.[01]* | freebsdelf3.[01]*)
  36183. - shlibpath_overrides_runpath=yes
  36184. - hardcode_into_libs=yes
  36185. - ;;
  36186. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  36187. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  36188. - shlibpath_overrides_runpath=no
  36189. - hardcode_into_libs=yes
  36190. - ;;
  36191. - *) # from 4.6 on, and DragonFly
  36192. - shlibpath_overrides_runpath=yes
  36193. - hardcode_into_libs=yes
  36194. - ;;
  36195. - esac
  36196. - ;;
  36197. -gnu*)
  36198. - version_type=linux
  36199. - need_lib_prefix=no
  36200. - need_version=no
  36201. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  36202. - soname_spec='${libname}${release}${shared_ext}$major'
  36203. - shlibpath_var=LD_LIBRARY_PATH
  36204. - hardcode_into_libs=yes
  36205. - ;;
  36206. -hpux9* | hpux10* | hpux11*)
  36207. - # Give a soname corresponding to the major version so that dld.sl refuses to
  36208. - # link against other versions.
  36209. - version_type=sunos
  36210. - need_lib_prefix=no
  36211. - need_version=no
  36212. - case $host_cpu in
  36213. - ia64*)
  36214. - shrext_cmds='.so'
  36215. - hardcode_into_libs=yes
  36216. - dynamic_linker="$host_os dld.so"
  36217. - shlibpath_var=LD_LIBRARY_PATH
  36218. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  36219. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36220. - soname_spec='${libname}${release}${shared_ext}$major'
  36221. - if test "X$HPUX_IA64_MODE" = X32; then
  36222. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  36223. - else
  36224. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  36225. - fi
  36226. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  36227. - ;;
  36228. - hppa*64*)
  36229. - shrext_cmds='.sl'
  36230. - hardcode_into_libs=yes
  36231. - dynamic_linker="$host_os dld.sl"
  36232. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  36233. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  36234. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36235. - soname_spec='${libname}${release}${shared_ext}$major'
  36236. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  36237. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  36238. - ;;
  36239. - *)
  36240. - shrext_cmds='.sl'
  36241. - dynamic_linker="$host_os dld.sl"
  36242. - shlibpath_var=SHLIB_PATH
  36243. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  36244. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36245. - soname_spec='${libname}${release}${shared_ext}$major'
  36246. - ;;
  36247. - esac
  36248. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  36249. - postinstall_cmds='chmod 555 $lib'
  36250. - ;;
  36251. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  36252. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  36253. +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  36254. + $as_echo_n "(cached) " >&6
  36255. +else
  36256. + lt_cv_prog_compiler_c_o_CXX=no
  36257. + $RM -r conftest 2>/dev/null
  36258. + mkdir conftest
  36259. + cd conftest
  36260. + mkdir out
  36261. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  36262. -interix[3-9]*)
  36263. - version_type=linux
  36264. - need_lib_prefix=no
  36265. - need_version=no
  36266. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  36267. - soname_spec='${libname}${release}${shared_ext}$major'
  36268. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  36269. - shlibpath_var=LD_LIBRARY_PATH
  36270. - shlibpath_overrides_runpath=no
  36271. - hardcode_into_libs=yes
  36272. - ;;
  36273. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  36274. + # Insert the option either (1) after the last *FLAGS variable, or
  36275. + # (2) before a word containing "conftest.", or (3) at the end.
  36276. + # Note that $ac_compile itself does not contain backslashes and begins
  36277. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  36278. + lt_compile=`echo "$ac_compile" | $SED \
  36279. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  36280. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  36281. + -e 's:$: $lt_compiler_flag:'`
  36282. + (eval echo "\"\$as_me:13455: $lt_compile\"" >&5)
  36283. + (eval "$lt_compile" 2>out/conftest.err)
  36284. + ac_status=$?
  36285. + cat out/conftest.err >&5
  36286. + echo "$as_me:13459: \$? = $ac_status" >&5
  36287. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  36288. + then
  36289. + # The compiler can only warn and ignore the option if not recognized
  36290. + # So say no if there are warnings
  36291. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  36292. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  36293. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  36294. + lt_cv_prog_compiler_c_o_CXX=yes
  36295. + fi
  36296. + fi
  36297. + chmod u+w . 2>&5
  36298. + $RM conftest*
  36299. + # SGI C++ compiler will create directory out/ii_files/ for
  36300. + # template instantiation
  36301. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  36302. + $RM out/* && rmdir out
  36303. + cd ..
  36304. + $RM -r conftest
  36305. + $RM conftest*
  36306. -irix5* | irix6* | nonstopux*)
  36307. - case $host_os in
  36308. - nonstopux*) version_type=nonstopux ;;
  36309. - *)
  36310. - if test "$lt_cv_prog_gnu_ld" = yes; then
  36311. - version_type=linux
  36312. - else
  36313. - version_type=irix
  36314. - fi ;;
  36315. - esac
  36316. - need_lib_prefix=no
  36317. - need_version=no
  36318. - soname_spec='${libname}${release}${shared_ext}$major'
  36319. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  36320. - case $host_os in
  36321. - irix5* | nonstopux*)
  36322. - libsuff= shlibsuff=
  36323. - ;;
  36324. - *)
  36325. - case $LD in # libtool.m4 will add one of these switches to LD
  36326. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  36327. - libsuff= shlibsuff= libmagic=32-bit;;
  36328. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  36329. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  36330. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  36331. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  36332. - *) libsuff= shlibsuff= libmagic=never-match;;
  36333. - esac
  36334. - ;;
  36335. - esac
  36336. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  36337. - shlibpath_overrides_runpath=no
  36338. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  36339. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  36340. - hardcode_into_libs=yes
  36341. - ;;
  36342. +fi
  36343. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  36344. +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  36345. -# No shared lib support for Linux oldld, aout, or coff.
  36346. -linux*oldld* | linux*aout* | linux*coff*)
  36347. - dynamic_linker=no
  36348. - ;;
  36349. -# This must be Linux ELF.
  36350. -linux* | k*bsd*-gnu)
  36351. - version_type=linux
  36352. - need_lib_prefix=no
  36353. - need_version=no
  36354. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36355. - soname_spec='${libname}${release}${shared_ext}$major'
  36356. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  36357. - shlibpath_var=LD_LIBRARY_PATH
  36358. - shlibpath_overrides_runpath=no
  36359. - # This implies no fast_install, which is unacceptable.
  36360. - # Some rework will be needed to allow for fast_install
  36361. - # before this can be enabled.
  36362. - hardcode_into_libs=yes
  36363. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  36364. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  36365. - # Append ld.so.conf contents to the search path
  36366. - if test -f /etc/ld.so.conf; then
  36367. - 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' ' '`
  36368. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  36369. - fi
  36370. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  36371. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  36372. +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  36373. + $as_echo_n "(cached) " >&6
  36374. +else
  36375. + lt_cv_prog_compiler_c_o_CXX=no
  36376. + $RM -r conftest 2>/dev/null
  36377. + mkdir conftest
  36378. + cd conftest
  36379. + mkdir out
  36380. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  36381. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  36382. - # powerpc, because MkLinux only supported shared libraries with the
  36383. - # GNU dynamic linker. Since this was broken with cross compilers,
  36384. - # most powerpc-linux boxes support dynamic linking these days and
  36385. - # people can always --disable-shared, the test was removed, and we
  36386. - # assume the GNU/Linux dynamic linker is in use.
  36387. - dynamic_linker='GNU/Linux ld.so'
  36388. - ;;
  36389. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  36390. + # Insert the option either (1) after the last *FLAGS variable, or
  36391. + # (2) before a word containing "conftest.", or (3) at the end.
  36392. + # Note that $ac_compile itself does not contain backslashes and begins
  36393. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  36394. + lt_compile=`echo "$ac_compile" | $SED \
  36395. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  36396. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  36397. + -e 's:$: $lt_compiler_flag:'`
  36398. + (eval echo "\"\$as_me:13507: $lt_compile\"" >&5)
  36399. + (eval "$lt_compile" 2>out/conftest.err)
  36400. + ac_status=$?
  36401. + cat out/conftest.err >&5
  36402. + echo "$as_me:13511: \$? = $ac_status" >&5
  36403. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  36404. + then
  36405. + # The compiler can only warn and ignore the option if not recognized
  36406. + # So say no if there are warnings
  36407. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  36408. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  36409. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  36410. + lt_cv_prog_compiler_c_o_CXX=yes
  36411. + fi
  36412. + fi
  36413. + chmod u+w . 2>&5
  36414. + $RM conftest*
  36415. + # SGI C++ compiler will create directory out/ii_files/ for
  36416. + # template instantiation
  36417. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  36418. + $RM out/* && rmdir out
  36419. + cd ..
  36420. + $RM -r conftest
  36421. + $RM conftest*
  36422. +
  36423. +fi
  36424. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  36425. +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  36426. -netbsd*)
  36427. - version_type=sunos
  36428. - need_lib_prefix=no
  36429. - need_version=no
  36430. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  36431. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36432. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  36433. - dynamic_linker='NetBSD (a.out) ld.so'
  36434. - else
  36435. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  36436. - soname_spec='${libname}${release}${shared_ext}$major'
  36437. - dynamic_linker='NetBSD ld.elf_so'
  36438. - fi
  36439. - shlibpath_var=LD_LIBRARY_PATH
  36440. - shlibpath_overrides_runpath=yes
  36441. - hardcode_into_libs=yes
  36442. - ;;
  36443. -newsos6)
  36444. - version_type=linux
  36445. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36446. - shlibpath_var=LD_LIBRARY_PATH
  36447. - shlibpath_overrides_runpath=yes
  36448. - ;;
  36449. -nto-qnx*)
  36450. - version_type=linux
  36451. - need_lib_prefix=no
  36452. - need_version=no
  36453. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36454. - soname_spec='${libname}${release}${shared_ext}$major'
  36455. - shlibpath_var=LD_LIBRARY_PATH
  36456. - shlibpath_overrides_runpath=yes
  36457. - ;;
  36458. -openbsd*)
  36459. - version_type=sunos
  36460. - sys_lib_dlsearch_path_spec="/usr/lib"
  36461. - need_lib_prefix=no
  36462. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  36463. - case $host_os in
  36464. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  36465. - *) need_version=no ;;
  36466. - esac
  36467. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36468. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  36469. - shlibpath_var=LD_LIBRARY_PATH
  36470. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  36471. - case $host_os in
  36472. - openbsd2.[89] | openbsd2.[89].*)
  36473. - shlibpath_overrides_runpath=no
  36474. - ;;
  36475. - *)
  36476. - shlibpath_overrides_runpath=yes
  36477. - ;;
  36478. - esac
  36479. - else
  36480. - shlibpath_overrides_runpath=yes
  36481. +hard_links="nottested"
  36482. +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  36483. + # do not overwrite the value of need_locks provided by the user
  36484. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  36485. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  36486. + hard_links=yes
  36487. + $RM conftest*
  36488. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  36489. + touch conftest.a
  36490. + ln conftest.a conftest.b 2>&5 || hard_links=no
  36491. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  36492. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  36493. +$as_echo "$hard_links" >&6; }
  36494. + if test "$hard_links" = no; then
  36495. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  36496. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  36497. + need_locks=warn
  36498. fi
  36499. - ;;
  36500. +else
  36501. + need_locks=no
  36502. +fi
  36503. -os2*)
  36504. - libname_spec='$name'
  36505. - shrext_cmds=".dll"
  36506. - need_lib_prefix=no
  36507. - library_names_spec='$libname${shared_ext} $libname.a'
  36508. - dynamic_linker='OS/2 ld.exe'
  36509. - shlibpath_var=LIBPATH
  36510. - ;;
  36511. -osf3* | osf4* | osf5*)
  36512. - version_type=osf
  36513. - need_lib_prefix=no
  36514. - need_version=no
  36515. - soname_spec='${libname}${release}${shared_ext}$major'
  36516. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36517. - shlibpath_var=LD_LIBRARY_PATH
  36518. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  36519. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  36520. - ;;
  36521. -rdos*)
  36522. - dynamic_linker=no
  36523. - ;;
  36524. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  36525. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  36526. -solaris*)
  36527. - version_type=linux
  36528. - need_lib_prefix=no
  36529. - need_version=no
  36530. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36531. - soname_spec='${libname}${release}${shared_ext}$major'
  36532. - shlibpath_var=LD_LIBRARY_PATH
  36533. - shlibpath_overrides_runpath=yes
  36534. - hardcode_into_libs=yes
  36535. - # ldd complains unless libraries are executable
  36536. - postinstall_cmds='chmod +x $lib'
  36537. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  36538. + case $host_os in
  36539. + aix[4-9]*)
  36540. + # If we're using GNU nm, then we don't want the "-C" option.
  36541. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  36542. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  36543. + 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'
  36544. + else
  36545. + 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'
  36546. + fi
  36547. + ;;
  36548. + pw32*)
  36549. + export_symbols_cmds_CXX="$ltdll_cmds"
  36550. ;;
  36551. -
  36552. -sunos4*)
  36553. - version_type=sunos
  36554. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36555. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  36556. - shlibpath_var=LD_LIBRARY_PATH
  36557. - shlibpath_overrides_runpath=yes
  36558. - if test "$with_gnu_ld" = yes; then
  36559. - need_lib_prefix=no
  36560. - fi
  36561. - need_version=yes
  36562. + cygwin* | mingw* | cegcc*)
  36563. + 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'
  36564. ;;
  36565. -
  36566. -sysv4 | sysv4.3*)
  36567. - version_type=linux
  36568. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36569. - soname_spec='${libname}${release}${shared_ext}$major'
  36570. - shlibpath_var=LD_LIBRARY_PATH
  36571. - case $host_vendor in
  36572. - sni)
  36573. - shlibpath_overrides_runpath=no
  36574. - need_lib_prefix=no
  36575. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  36576. - runpath_var=LD_RUN_PATH
  36577. - ;;
  36578. - siemens)
  36579. - need_lib_prefix=no
  36580. - ;;
  36581. - motorola)
  36582. - need_lib_prefix=no
  36583. - need_version=no
  36584. - shlibpath_overrides_runpath=no
  36585. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  36586. - ;;
  36587. - esac
  36588. + linux* | k*bsd*-gnu)
  36589. + link_all_deplibs_CXX=no
  36590. ;;
  36591. -
  36592. -sysv4*MP*)
  36593. - if test -d /usr/nec ;then
  36594. - version_type=linux
  36595. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  36596. - soname_spec='$libname${shared_ext}.$major'
  36597. - shlibpath_var=LD_LIBRARY_PATH
  36598. - fi
  36599. + *)
  36600. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  36601. ;;
  36602. + esac
  36603. + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  36604. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  36605. - version_type=freebsd-elf
  36606. - need_lib_prefix=no
  36607. - need_version=no
  36608. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  36609. - soname_spec='${libname}${release}${shared_ext}$major'
  36610. - shlibpath_var=LD_LIBRARY_PATH
  36611. - hardcode_into_libs=yes
  36612. - if test "$with_gnu_ld" = yes; then
  36613. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  36614. - shlibpath_overrides_runpath=no
  36615. - else
  36616. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  36617. - shlibpath_overrides_runpath=yes
  36618. - case $host_os in
  36619. - sco3.2v5*)
  36620. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  36621. - ;;
  36622. - esac
  36623. - fi
  36624. - sys_lib_dlsearch_path_spec='/usr/lib'
  36625. - ;;
  36626. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  36627. +$as_echo "$ld_shlibs_CXX" >&6; }
  36628. +test "$ld_shlibs_CXX" = no && can_build_shared=no
  36629. -uts4*)
  36630. - version_type=linux
  36631. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36632. - soname_spec='${libname}${release}${shared_ext}$major'
  36633. - shlibpath_var=LD_LIBRARY_PATH
  36634. - ;;
  36635. +with_gnu_ld_CXX=$with_gnu_ld
  36636. -*)
  36637. - dynamic_linker=no
  36638. - ;;
  36639. -esac
  36640. -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  36641. -$as_echo "$dynamic_linker" >&6; }
  36642. -test "$dynamic_linker" = no && can_build_shared=no
  36643. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  36644. - $as_echo_n "(cached) " >&6
  36645. -else
  36646. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  36647. -fi
  36648. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  36649. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  36650. - $as_echo_n "(cached) " >&6
  36651. -else
  36652. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  36653. -fi
  36654. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  36655. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  36656. -if test "$GCC" = yes; then
  36657. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  36658. -fi
  36659. -{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  36660. -$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  36661. -hardcode_action_GCJ=
  36662. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  36663. - test -n "$runpath_var_GCJ" || \
  36664. - test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  36665. +#
  36666. +# Do we need to explicitly link libc?
  36667. +#
  36668. +case "x$archive_cmds_need_lc_CXX" in
  36669. +x|xyes)
  36670. + # Assume -lc should be added
  36671. + archive_cmds_need_lc_CXX=yes
  36672. +
  36673. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  36674. + case $archive_cmds_CXX in
  36675. + *'~'*)
  36676. + # FIXME: we may have to deal with multi-command sequences.
  36677. + ;;
  36678. + '$CC '*)
  36679. + # Test whether the compiler implicitly links with -lc since on some
  36680. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  36681. + # to ld, don't add -lc before -lgcc.
  36682. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  36683. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  36684. + $RM conftest*
  36685. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  36686. +
  36687. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  36688. + (eval $ac_compile) 2>&5
  36689. + ac_status=$?
  36690. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36691. + test $ac_status = 0; } 2>conftest.err; then
  36692. + soname=conftest
  36693. + lib=conftest
  36694. + libobjs=conftest.$ac_objext
  36695. + deplibs=
  36696. + wl=$lt_prog_compiler_wl_CXX
  36697. + pic_flag=$lt_prog_compiler_pic_CXX
  36698. + compiler_flags=-v
  36699. + linker_flags=-v
  36700. + verstring=
  36701. + output_objdir=.
  36702. + libname=conftest
  36703. + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  36704. + allow_undefined_flag_CXX=
  36705. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  36706. + (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  36707. + ac_status=$?
  36708. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36709. + test $ac_status = 0; }
  36710. + then
  36711. + archive_cmds_need_lc_CXX=no
  36712. + else
  36713. + archive_cmds_need_lc_CXX=yes
  36714. + fi
  36715. + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  36716. + else
  36717. + cat conftest.err 1>&5
  36718. + fi
  36719. + $RM conftest*
  36720. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  36721. +$as_echo "$archive_cmds_need_lc_CXX" >&6; }
  36722. + ;;
  36723. + esac
  36724. + fi
  36725. + ;;
  36726. +esac
  36727. +
  36728. - # We can hardcode non-existant directories.
  36729. - if test "$hardcode_direct_GCJ" != no &&
  36730. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  36731. - # have to relink, otherwise we might link with an installed library
  36732. - # when we should be linking with a yet-to-be-installed one
  36733. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  36734. - test "$hardcode_minus_L_GCJ" != no; then
  36735. - # Linking always hardcodes the temporary library directory.
  36736. - hardcode_action_GCJ=relink
  36737. - else
  36738. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  36739. - hardcode_action_GCJ=immediate
  36740. - fi
  36741. -else
  36742. - # We cannot hardcode anything, or else we can only hardcode existing
  36743. - # directories.
  36744. - hardcode_action_GCJ=unsupported
  36745. -fi
  36746. -{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  36747. -$as_echo "$hardcode_action_GCJ" >&6; }
  36748. -if test "$hardcode_action_GCJ" = relink; then
  36749. - # Fast installation is not supported
  36750. - enable_fast_install=no
  36751. -elif test "$shlibpath_overrides_runpath" = yes ||
  36752. - test "$enable_shared" = no; then
  36753. - # Fast installation is not necessary
  36754. - enable_fast_install=needless
  36755. -fi
  36756. -# The else clause should only fire when bootstrapping the
  36757. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  36758. -# with your package, and you will get complaints that there are
  36759. -# no rules to generate ltmain.sh.
  36760. -if test -f "$ltmain"; then
  36761. - # See if we are running on zsh, and set the options which allow our commands through
  36762. - # without removal of \ escapes.
  36763. - if test -n "${ZSH_VERSION+set}" ; then
  36764. - setopt NO_GLOB_SUBST
  36765. - fi
  36766. - # Now quote all the things that may contain metacharacters while being
  36767. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  36768. - # variables and quote the copies for generation of the libtool script.
  36769. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  36770. - SED SHELL STRIP \
  36771. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  36772. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  36773. - deplibs_check_method reload_flag reload_cmds need_locks \
  36774. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  36775. - lt_cv_sys_global_symbol_to_c_name_address \
  36776. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  36777. - old_postinstall_cmds old_postuninstall_cmds \
  36778. - compiler_GCJ \
  36779. - CC_GCJ \
  36780. - LD_GCJ \
  36781. - lt_prog_compiler_wl_GCJ \
  36782. - lt_prog_compiler_pic_GCJ \
  36783. - lt_prog_compiler_static_GCJ \
  36784. - lt_prog_compiler_no_builtin_flag_GCJ \
  36785. - export_dynamic_flag_spec_GCJ \
  36786. - thread_safe_flag_spec_GCJ \
  36787. - whole_archive_flag_spec_GCJ \
  36788. - enable_shared_with_static_runtimes_GCJ \
  36789. - old_archive_cmds_GCJ \
  36790. - old_archive_from_new_cmds_GCJ \
  36791. - predep_objects_GCJ \
  36792. - postdep_objects_GCJ \
  36793. - predeps_GCJ \
  36794. - postdeps_GCJ \
  36795. - compiler_lib_search_path_GCJ \
  36796. - compiler_lib_search_dirs_GCJ \
  36797. - archive_cmds_GCJ \
  36798. - archive_expsym_cmds_GCJ \
  36799. - postinstall_cmds_GCJ \
  36800. - postuninstall_cmds_GCJ \
  36801. - old_archive_from_expsyms_cmds_GCJ \
  36802. - allow_undefined_flag_GCJ \
  36803. - no_undefined_flag_GCJ \
  36804. - export_symbols_cmds_GCJ \
  36805. - hardcode_libdir_flag_spec_GCJ \
  36806. - hardcode_libdir_flag_spec_ld_GCJ \
  36807. - hardcode_libdir_separator_GCJ \
  36808. - hardcode_automatic_GCJ \
  36809. - module_cmds_GCJ \
  36810. - module_expsym_cmds_GCJ \
  36811. - lt_cv_prog_compiler_c_o_GCJ \
  36812. - fix_srcfile_path_GCJ \
  36813. - exclude_expsyms_GCJ \
  36814. - include_expsyms_GCJ; do
  36815. -
  36816. - case $var in
  36817. - old_archive_cmds_GCJ | \
  36818. - old_archive_from_new_cmds_GCJ | \
  36819. - archive_cmds_GCJ | \
  36820. - archive_expsym_cmds_GCJ | \
  36821. - module_cmds_GCJ | \
  36822. - module_expsym_cmds_GCJ | \
  36823. - old_archive_from_expsyms_cmds_GCJ | \
  36824. - export_symbols_cmds_GCJ | \
  36825. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  36826. - postinstall_cmds | postuninstall_cmds | \
  36827. - old_postinstall_cmds | old_postuninstall_cmds | \
  36828. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  36829. - # Double-quote double-evaled strings.
  36830. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  36831. - ;;
  36832. - *)
  36833. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  36834. - ;;
  36835. - esac
  36836. - done
  36837. - case $lt_echo in
  36838. - *'\$0 --fallback-echo"')
  36839. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  36840. - ;;
  36841. - esac
  36842. -cfgfile="$ofile"
  36843. - cat <<__EOF__ >> "$cfgfile"
  36844. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  36845. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  36846. -# Shell to use when invoking shell scripts.
  36847. -SHELL=$lt_SHELL
  36848. -# Whether or not to build shared libraries.
  36849. -build_libtool_libs=$enable_shared
  36850. -# Whether or not to build static libraries.
  36851. -build_old_libs=$enable_static
  36852. -# Whether or not to add -lc for building shared libraries.
  36853. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  36854. -# Whether or not to disallow shared libs when runtime libs are static
  36855. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  36856. -# Whether or not to optimize for fast installation.
  36857. -fast_install=$enable_fast_install
  36858. -# The host system.
  36859. -host_alias=$host_alias
  36860. -host=$host
  36861. -host_os=$host_os
  36862. -# The build system.
  36863. -build_alias=$build_alias
  36864. -build=$build
  36865. -build_os=$build_os
  36866. -# An echo program that does not interpret backslashes.
  36867. -echo=$lt_echo
  36868. -# The archiver.
  36869. -AR=$lt_AR
  36870. -AR_FLAGS=$lt_AR_FLAGS
  36871. -# A C compiler.
  36872. -LTCC=$lt_LTCC
  36873. -# LTCC compiler flags.
  36874. -LTCFLAGS=$lt_LTCFLAGS
  36875. -# A language-specific compiler.
  36876. -CC=$lt_compiler_GCJ
  36877. -# Is the compiler the GNU C compiler?
  36878. -with_gcc=$GCC_GCJ
  36879. -# An ERE matcher.
  36880. -EGREP=$lt_EGREP
  36881. -# The linker used to build libraries.
  36882. -LD=$lt_LD_GCJ
  36883. -# Whether we need hard or soft links.
  36884. -LN_S=$lt_LN_S
  36885. -# A BSD-compatible nm program.
  36886. -NM=$lt_NM
  36887. -# A symbol stripping program
  36888. -STRIP=$lt_STRIP
  36889. -# Used to examine libraries when file_magic_cmd begins "file"
  36890. -MAGIC_CMD=$MAGIC_CMD
  36891. -# Used on cygwin: DLL creation program.
  36892. -DLLTOOL="$DLLTOOL"
  36893. -# Used on cygwin: object dumper.
  36894. -OBJDUMP="$OBJDUMP"
  36895. -# Used on cygwin: assembler.
  36896. -AS="$AS"
  36897. -# The name of the directory that contains temporary libtool files.
  36898. -objdir=$objdir
  36899. -# How to create reloadable object files.
  36900. -reload_flag=$lt_reload_flag
  36901. -reload_cmds=$lt_reload_cmds
  36902. -# How to pass a linker flag through the compiler.
  36903. -wl=$lt_lt_prog_compiler_wl_GCJ
  36904. -# Object file suffix (normally "o").
  36905. -objext="$ac_objext"
  36906. -# Old archive suffix (normally "a").
  36907. -libext="$libext"
  36908. -# Shared library suffix (normally ".so").
  36909. -shrext_cmds='$shrext_cmds'
  36910. -# Executable file suffix (normally "").
  36911. -exeext="$exeext"
  36912. -# Additional compiler flags for building library objects.
  36913. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  36914. -pic_mode=$pic_mode
  36915. -# What is the maximum length of a command?
  36916. -max_cmd_len=$lt_cv_sys_max_cmd_len
  36917. -# Does compiler simultaneously support -c and -o options?
  36918. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  36919. -# Must we lock files when doing compilation?
  36920. -need_locks=$lt_need_locks
  36921. -# Do we need the lib prefix for modules?
  36922. -need_lib_prefix=$need_lib_prefix
  36923. -# Do we need a version for libraries?
  36924. -need_version=$need_version
  36925. -# Whether dlopen is supported.
  36926. -dlopen_support=$enable_dlopen
  36927. -# Whether dlopen of programs is supported.
  36928. -dlopen_self=$enable_dlopen_self
  36929. -# Whether dlopen of statically linked programs is supported.
  36930. -dlopen_self_static=$enable_dlopen_self_static
  36931. -# Compiler flag to prevent dynamic linking.
  36932. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  36933. -# Compiler flag to turn off builtin functions.
  36934. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  36935. -# Compiler flag to allow reflexive dlopens.
  36936. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  36937. -# Compiler flag to generate shared objects directly from archives.
  36938. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  36939. -# Compiler flag to generate thread-safe objects.
  36940. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  36941. -# Library versioning type.
  36942. -version_type=$version_type
  36943. -# Format of library name prefix.
  36944. -libname_spec=$lt_libname_spec
  36945. -# List of archive names. First name is the real one, the rest are links.
  36946. -# The last name is the one that the linker finds with -lNAME.
  36947. -library_names_spec=$lt_library_names_spec
  36948. -# The coded name of the library, if different from the real name.
  36949. -soname_spec=$lt_soname_spec
  36950. -# Commands used to build and install an old-style archive.
  36951. -RANLIB=$lt_RANLIB
  36952. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  36953. -old_postinstall_cmds=$lt_old_postinstall_cmds
  36954. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  36955. -# Create an old-style archive from a shared archive.
  36956. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  36957. -# Create a temporary old-style archive to link instead of a shared archive.
  36958. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  36959. -# Commands used to build and install a shared archive.
  36960. -archive_cmds=$lt_archive_cmds_GCJ
  36961. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  36962. -postinstall_cmds=$lt_postinstall_cmds
  36963. -postuninstall_cmds=$lt_postuninstall_cmds
  36964. -# Commands used to build a loadable module (assumed same as above if empty)
  36965. -module_cmds=$lt_module_cmds_GCJ
  36966. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  36967. -# Commands to strip libraries.
  36968. -old_striplib=$lt_old_striplib
  36969. -striplib=$lt_striplib
  36970. -# Dependencies to place before the objects being linked to create a
  36971. -# shared library.
  36972. -predep_objects=$lt_predep_objects_GCJ
  36973. -
  36974. -# Dependencies to place after the objects being linked to create a
  36975. -# shared library.
  36976. -postdep_objects=$lt_postdep_objects_GCJ
  36977. -
  36978. -# Dependencies to place before the objects being linked to create a
  36979. -# shared library.
  36980. -predeps=$lt_predeps_GCJ
  36981. -
  36982. -# Dependencies to place after the objects being linked to create a
  36983. -# shared library.
  36984. -postdeps=$lt_postdeps_GCJ
  36985. -
  36986. -# The directories searched by this compiler when creating a shared
  36987. -# library
  36988. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
  36989. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  36990. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  36991. -# The library search path used internally by the compiler when linking
  36992. -# a shared library.
  36993. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  36994. +library_names_spec=
  36995. +libname_spec='lib$name'
  36996. +soname_spec=
  36997. +shrext_cmds=".so"
  36998. +postinstall_cmds=
  36999. +postuninstall_cmds=
  37000. +finish_cmds=
  37001. +finish_eval=
  37002. +shlibpath_var=
  37003. +shlibpath_overrides_runpath=unknown
  37004. +version_type=none
  37005. +dynamic_linker="$host_os ld.so"
  37006. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  37007. +need_lib_prefix=unknown
  37008. +hardcode_into_libs=no
  37009. -# Method to check whether dependent libraries are shared objects.
  37010. -deplibs_check_method=$lt_deplibs_check_method
  37011. +# when you set need_version to no, make sure it does not cause -set_version
  37012. +# flags to be left without arguments
  37013. +need_version=unknown
  37014. -# Command to use when deplibs_check_method == file_magic.
  37015. -file_magic_cmd=$lt_file_magic_cmd
  37016. +case $host_os in
  37017. +aix3*)
  37018. + version_type=linux
  37019. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  37020. + shlibpath_var=LIBPATH
  37021. -# Flag that allows shared libraries with undefined symbols to be built.
  37022. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  37023. + # AIX 3 has no versioning support, so we append a major version to the name.
  37024. + soname_spec='${libname}${release}${shared_ext}$major'
  37025. + ;;
  37026. -# Flag that forces no undefined symbols.
  37027. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  37028. +aix[4-9]*)
  37029. + version_type=linux
  37030. + need_lib_prefix=no
  37031. + need_version=no
  37032. + hardcode_into_libs=yes
  37033. + if test "$host_cpu" = ia64; then
  37034. + # AIX 5 supports IA64
  37035. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  37036. + shlibpath_var=LD_LIBRARY_PATH
  37037. + else
  37038. + # With GCC up to 2.95.x, collect2 would create an import file
  37039. + # for dependence libraries. The import file would start with
  37040. + # the line `#! .'. This would cause the generated library to
  37041. + # depend on `.', always an invalid library. This was fixed in
  37042. + # development snapshots of GCC prior to 3.0.
  37043. + case $host_os in
  37044. + aix4 | aix4.[01] | aix4.[01].*)
  37045. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  37046. + echo ' yes '
  37047. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  37048. + :
  37049. + else
  37050. + can_build_shared=no
  37051. + fi
  37052. + ;;
  37053. + esac
  37054. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  37055. + # soname into executable. Probably we can add versioning support to
  37056. + # collect2, so additional links can be useful in future.
  37057. + if test "$aix_use_runtimelinking" = yes; then
  37058. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  37059. + # instead of lib<name>.a to let people know that these are not
  37060. + # typical AIX shared libraries.
  37061. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37062. + else
  37063. + # We preserve .a as extension for shared libraries through AIX4.2
  37064. + # and later when we are not doing run time linking.
  37065. + library_names_spec='${libname}${release}.a $libname.a'
  37066. + soname_spec='${libname}${release}${shared_ext}$major'
  37067. + fi
  37068. + shlibpath_var=LIBPATH
  37069. + fi
  37070. + ;;
  37071. -# Commands used to finish a libtool library installation in a directory.
  37072. -finish_cmds=$lt_finish_cmds
  37073. +amigaos*)
  37074. + case $host_cpu in
  37075. + powerpc)
  37076. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  37077. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  37078. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37079. + ;;
  37080. + m68k)
  37081. + library_names_spec='$libname.ixlibrary $libname.a'
  37082. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  37083. + 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'
  37084. + ;;
  37085. + esac
  37086. + ;;
  37087. -# Same as above, but a single script fragment to be evaled but not shown.
  37088. -finish_eval=$lt_finish_eval
  37089. +beos*)
  37090. + library_names_spec='${libname}${shared_ext}'
  37091. + dynamic_linker="$host_os ld.so"
  37092. + shlibpath_var=LIBRARY_PATH
  37093. + ;;
  37094. -# Take the output of nm and produce a listing of raw symbols and C names.
  37095. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  37096. +bsdi[45]*)
  37097. + version_type=linux
  37098. + need_version=no
  37099. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37100. + soname_spec='${libname}${release}${shared_ext}$major'
  37101. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  37102. + shlibpath_var=LD_LIBRARY_PATH
  37103. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  37104. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  37105. + # the default ld.so.conf also contains /usr/contrib/lib and
  37106. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  37107. + # libtool to hard-code these into programs
  37108. + ;;
  37109. -# Transform the output of nm in a proper C declaration
  37110. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  37111. +cygwin* | mingw* | pw32* | cegcc*)
  37112. + version_type=windows
  37113. + shrext_cmds=".dll"
  37114. + need_version=no
  37115. + need_lib_prefix=no
  37116. -# Transform the output of nm in a C name address pair
  37117. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  37118. + case $GCC,$host_os in
  37119. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  37120. + library_names_spec='$libname.dll.a'
  37121. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  37122. + postinstall_cmds='base_file=`basename \${file}`~
  37123. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  37124. + dldir=$destdir/`dirname \$dlpath`~
  37125. + test -d \$dldir || mkdir -p \$dldir~
  37126. + $install_prog $dir/$dlname \$dldir/$dlname~
  37127. + chmod a+x \$dldir/$dlname~
  37128. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  37129. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  37130. + fi'
  37131. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  37132. + dlpath=$dir/\$dldll~
  37133. + $RM \$dlpath'
  37134. + shlibpath_overrides_runpath=yes
  37135. +
  37136. + case $host_os in
  37137. + cygwin*)
  37138. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  37139. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  37140. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  37141. + ;;
  37142. + mingw* | cegcc*)
  37143. + # MinGW DLLs use traditional 'lib' prefix
  37144. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  37145. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  37146. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  37147. + # It is most probably a Windows format PATH printed by
  37148. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  37149. + # path with ; separators, and with drive letters. We can handle the
  37150. + # drive letters (cygwin fileutils understands them), so leave them,
  37151. + # especially as we might pass files found there to a mingw objdump,
  37152. + # which wouldn't understand a cygwinified path. Ahh.
  37153. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  37154. + else
  37155. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  37156. + fi
  37157. + ;;
  37158. + pw32*)
  37159. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  37160. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  37161. + ;;
  37162. + esac
  37163. + ;;
  37164. +
  37165. + *)
  37166. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  37167. + ;;
  37168. + esac
  37169. + dynamic_linker='Win32 ld.exe'
  37170. + # FIXME: first we should search . and the directory the executable is in
  37171. + shlibpath_var=PATH
  37172. + ;;
  37173. -# This is the shared library runtime path variable.
  37174. -runpath_var=$runpath_var
  37175. +darwin* | rhapsody*)
  37176. + dynamic_linker="$host_os dyld"
  37177. + version_type=darwin
  37178. + need_lib_prefix=no
  37179. + need_version=no
  37180. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  37181. + soname_spec='${libname}${release}${major}$shared_ext'
  37182. + shlibpath_overrides_runpath=yes
  37183. + shlibpath_var=DYLD_LIBRARY_PATH
  37184. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  37185. -# This is the shared library path variable.
  37186. -shlibpath_var=$shlibpath_var
  37187. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  37188. + ;;
  37189. -# Is shlibpath searched before the hard-coded library search path?
  37190. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  37191. +dgux*)
  37192. + version_type=linux
  37193. + need_lib_prefix=no
  37194. + need_version=no
  37195. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  37196. + soname_spec='${libname}${release}${shared_ext}$major'
  37197. + shlibpath_var=LD_LIBRARY_PATH
  37198. + ;;
  37199. -# How to hardcode a shared library path into an executable.
  37200. -hardcode_action=$hardcode_action_GCJ
  37201. +freebsd1*)
  37202. + dynamic_linker=no
  37203. + ;;
  37204. -# Whether we should hardcode library paths into libraries.
  37205. -hardcode_into_libs=$hardcode_into_libs
  37206. +freebsd* | dragonfly*)
  37207. + # DragonFly does not have aout. When/if they implement a new
  37208. + # versioning mechanism, adjust this.
  37209. + if test -x /usr/bin/objformat; then
  37210. + objformat=`/usr/bin/objformat`
  37211. + else
  37212. + case $host_os in
  37213. + freebsd[123]*) objformat=aout ;;
  37214. + *) objformat=elf ;;
  37215. + esac
  37216. + fi
  37217. + version_type=freebsd-$objformat
  37218. + case $version_type in
  37219. + freebsd-elf*)
  37220. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  37221. + need_version=no
  37222. + need_lib_prefix=no
  37223. + ;;
  37224. + freebsd-*)
  37225. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  37226. + need_version=yes
  37227. + ;;
  37228. + esac
  37229. + shlibpath_var=LD_LIBRARY_PATH
  37230. + case $host_os in
  37231. + freebsd2*)
  37232. + shlibpath_overrides_runpath=yes
  37233. + ;;
  37234. + freebsd3.[01]* | freebsdelf3.[01]*)
  37235. + shlibpath_overrides_runpath=yes
  37236. + hardcode_into_libs=yes
  37237. + ;;
  37238. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  37239. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  37240. + shlibpath_overrides_runpath=no
  37241. + hardcode_into_libs=yes
  37242. + ;;
  37243. + *) # from 4.6 on, and DragonFly
  37244. + shlibpath_overrides_runpath=yes
  37245. + hardcode_into_libs=yes
  37246. + ;;
  37247. + esac
  37248. + ;;
  37249. -# Flag to hardcode \$libdir into a binary during linking.
  37250. -# This must work even if \$libdir does not exist.
  37251. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  37252. +gnu*)
  37253. + version_type=linux
  37254. + need_lib_prefix=no
  37255. + need_version=no
  37256. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  37257. + soname_spec='${libname}${release}${shared_ext}$major'
  37258. + shlibpath_var=LD_LIBRARY_PATH
  37259. + hardcode_into_libs=yes
  37260. + ;;
  37261. -# If ld is used when linking, flag to hardcode \$libdir into
  37262. -# a binary during linking. This must work even if \$libdir does
  37263. -# not exist.
  37264. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  37265. -
  37266. -# Whether we need a single -rpath flag with a separated argument.
  37267. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  37268. -
  37269. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  37270. -# resulting binary.
  37271. -hardcode_direct=$hardcode_direct_GCJ
  37272. -
  37273. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  37274. -# resulting binary.
  37275. -hardcode_minus_L=$hardcode_minus_L_GCJ
  37276. -
  37277. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  37278. -# the resulting binary.
  37279. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  37280. -
  37281. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  37282. -# and all subsequent libraries and executables linked against it.
  37283. -hardcode_automatic=$hardcode_automatic_GCJ
  37284. +hpux9* | hpux10* | hpux11*)
  37285. + # Give a soname corresponding to the major version so that dld.sl refuses to
  37286. + # link against other versions.
  37287. + version_type=sunos
  37288. + need_lib_prefix=no
  37289. + need_version=no
  37290. + case $host_cpu in
  37291. + ia64*)
  37292. + shrext_cmds='.so'
  37293. + hardcode_into_libs=yes
  37294. + dynamic_linker="$host_os dld.so"
  37295. + shlibpath_var=LD_LIBRARY_PATH
  37296. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  37297. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37298. + soname_spec='${libname}${release}${shared_ext}$major'
  37299. + if test "X$HPUX_IA64_MODE" = X32; then
  37300. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  37301. + else
  37302. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  37303. + fi
  37304. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  37305. + ;;
  37306. + hppa*64*)
  37307. + shrext_cmds='.sl'
  37308. + hardcode_into_libs=yes
  37309. + dynamic_linker="$host_os dld.sl"
  37310. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  37311. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  37312. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37313. + soname_spec='${libname}${release}${shared_ext}$major'
  37314. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  37315. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  37316. + ;;
  37317. + *)
  37318. + shrext_cmds='.sl'
  37319. + dynamic_linker="$host_os dld.sl"
  37320. + shlibpath_var=SHLIB_PATH
  37321. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  37322. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37323. + soname_spec='${libname}${release}${shared_ext}$major'
  37324. + ;;
  37325. + esac
  37326. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  37327. + postinstall_cmds='chmod 555 $lib'
  37328. + ;;
  37329. -# Variables whose values should be saved in libtool wrapper scripts and
  37330. -# restored at relink time.
  37331. -variables_saved_for_relink="$variables_saved_for_relink"
  37332. +interix[3-9]*)
  37333. + version_type=linux
  37334. + need_lib_prefix=no
  37335. + need_version=no
  37336. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  37337. + soname_spec='${libname}${release}${shared_ext}$major'
  37338. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  37339. + shlibpath_var=LD_LIBRARY_PATH
  37340. + shlibpath_overrides_runpath=no
  37341. + hardcode_into_libs=yes
  37342. + ;;
  37343. -# Whether libtool must link a program against all its dependency libraries.
  37344. -link_all_deplibs=$link_all_deplibs_GCJ
  37345. +irix5* | irix6* | nonstopux*)
  37346. + case $host_os in
  37347. + nonstopux*) version_type=nonstopux ;;
  37348. + *)
  37349. + if test "$lt_cv_prog_gnu_ld" = yes; then
  37350. + version_type=linux
  37351. + else
  37352. + version_type=irix
  37353. + fi ;;
  37354. + esac
  37355. + need_lib_prefix=no
  37356. + need_version=no
  37357. + soname_spec='${libname}${release}${shared_ext}$major'
  37358. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  37359. + case $host_os in
  37360. + irix5* | nonstopux*)
  37361. + libsuff= shlibsuff=
  37362. + ;;
  37363. + *)
  37364. + case $LD in # libtool.m4 will add one of these switches to LD
  37365. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  37366. + libsuff= shlibsuff= libmagic=32-bit;;
  37367. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  37368. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  37369. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  37370. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  37371. + *) libsuff= shlibsuff= libmagic=never-match;;
  37372. + esac
  37373. + ;;
  37374. + esac
  37375. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  37376. + shlibpath_overrides_runpath=no
  37377. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  37378. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  37379. + hardcode_into_libs=yes
  37380. + ;;
  37381. -# Compile-time system search path for libraries
  37382. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  37383. +# No shared lib support for Linux oldld, aout, or coff.
  37384. +linux*oldld* | linux*aout* | linux*coff*)
  37385. + dynamic_linker=no
  37386. + ;;
  37387. -# Run-time system search path for libraries
  37388. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  37389. +# This must be Linux ELF.
  37390. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  37391. + version_type=linux
  37392. + need_lib_prefix=no
  37393. + need_version=no
  37394. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37395. + soname_spec='${libname}${release}${shared_ext}$major'
  37396. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  37397. + shlibpath_var=LD_LIBRARY_PATH
  37398. + shlibpath_overrides_runpath=no
  37399. + # Some binutils ld are patched to set DT_RUNPATH
  37400. + save_LDFLAGS=$LDFLAGS
  37401. + save_libdir=$libdir
  37402. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  37403. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  37404. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37405. +/* end confdefs.h. */
  37406. -# Fix the shell variable \$srcfile for the compiler.
  37407. -fix_srcfile_path=$lt_fix_srcfile_path
  37408. +int
  37409. +main ()
  37410. +{
  37411. -# Set to yes if exported symbols are required.
  37412. -always_export_symbols=$always_export_symbols_GCJ
  37413. + ;
  37414. + return 0;
  37415. +}
  37416. +_ACEOF
  37417. +if ac_fn_cxx_try_link "$LINENO"; then :
  37418. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  37419. + shlibpath_overrides_runpath=yes
  37420. +fi
  37421. +fi
  37422. +rm -f core conftest.err conftest.$ac_objext \
  37423. + conftest$ac_exeext conftest.$ac_ext
  37424. + LDFLAGS=$save_LDFLAGS
  37425. + libdir=$save_libdir
  37426. -# The commands to list exported symbols.
  37427. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  37428. + # This implies no fast_install, which is unacceptable.
  37429. + # Some rework will be needed to allow for fast_install
  37430. + # before this can be enabled.
  37431. + hardcode_into_libs=yes
  37432. -# The commands to extract the exported symbol list from a shared archive.
  37433. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  37434. + # Append ld.so.conf contents to the search path
  37435. + if test -f /etc/ld.so.conf; then
  37436. + 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' ' '`
  37437. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  37438. + fi
  37439. -# Symbols that should not be listed in the preloaded symbols.
  37440. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  37441. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  37442. + # powerpc, because MkLinux only supported shared libraries with the
  37443. + # GNU dynamic linker. Since this was broken with cross compilers,
  37444. + # most powerpc-linux boxes support dynamic linking these days and
  37445. + # people can always --disable-shared, the test was removed, and we
  37446. + # assume the GNU/Linux dynamic linker is in use.
  37447. + dynamic_linker='GNU/Linux ld.so'
  37448. + ;;
  37449. -# Symbols that must always be exported.
  37450. -include_expsyms=$lt_include_expsyms_GCJ
  37451. +netbsdelf*-gnu)
  37452. + version_type=linux
  37453. + need_lib_prefix=no
  37454. + need_version=no
  37455. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  37456. + soname_spec='${libname}${release}${shared_ext}$major'
  37457. + shlibpath_var=LD_LIBRARY_PATH
  37458. + shlibpath_overrides_runpath=no
  37459. + hardcode_into_libs=yes
  37460. + dynamic_linker='NetBSD ld.elf_so'
  37461. + ;;
  37462. -# ### END LIBTOOL TAG CONFIG: $tagname
  37463. +netbsd*)
  37464. + version_type=sunos
  37465. + need_lib_prefix=no
  37466. + need_version=no
  37467. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  37468. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  37469. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  37470. + dynamic_linker='NetBSD (a.out) ld.so'
  37471. + else
  37472. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  37473. + soname_spec='${libname}${release}${shared_ext}$major'
  37474. + dynamic_linker='NetBSD ld.elf_so'
  37475. + fi
  37476. + shlibpath_var=LD_LIBRARY_PATH
  37477. + shlibpath_overrides_runpath=yes
  37478. + hardcode_into_libs=yes
  37479. + ;;
  37480. -__EOF__
  37481. +newsos6)
  37482. + version_type=linux
  37483. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37484. + shlibpath_var=LD_LIBRARY_PATH
  37485. + shlibpath_overrides_runpath=yes
  37486. + ;;
  37487. +*nto* | *qnx*)
  37488. + version_type=qnx
  37489. + need_lib_prefix=no
  37490. + need_version=no
  37491. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37492. + soname_spec='${libname}${release}${shared_ext}$major'
  37493. + shlibpath_var=LD_LIBRARY_PATH
  37494. + shlibpath_overrides_runpath=no
  37495. + hardcode_into_libs=yes
  37496. + dynamic_linker='ldqnx.so'
  37497. + ;;
  37498. -else
  37499. - # If there is no Makefile yet, we rely on a make rule to execute
  37500. - # `config.status --recheck' to rerun these tests and create the
  37501. - # libtool script then.
  37502. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  37503. - if test -f "$ltmain_in"; then
  37504. - test -f Makefile && make "$ltmain"
  37505. +openbsd*)
  37506. + version_type=sunos
  37507. + sys_lib_dlsearch_path_spec="/usr/lib"
  37508. + need_lib_prefix=no
  37509. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  37510. + case $host_os in
  37511. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  37512. + *) need_version=no ;;
  37513. + esac
  37514. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  37515. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  37516. + shlibpath_var=LD_LIBRARY_PATH
  37517. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  37518. + case $host_os in
  37519. + openbsd2.[89] | openbsd2.[89].*)
  37520. + shlibpath_overrides_runpath=no
  37521. + ;;
  37522. + *)
  37523. + shlibpath_overrides_runpath=yes
  37524. + ;;
  37525. + esac
  37526. + else
  37527. + shlibpath_overrides_runpath=yes
  37528. fi
  37529. -fi
  37530. + ;;
  37531. +os2*)
  37532. + libname_spec='$name'
  37533. + shrext_cmds=".dll"
  37534. + need_lib_prefix=no
  37535. + library_names_spec='$libname${shared_ext} $libname.a'
  37536. + dynamic_linker='OS/2 ld.exe'
  37537. + shlibpath_var=LIBPATH
  37538. + ;;
  37539. -ac_ext=c
  37540. -ac_cpp='$CPP $CPPFLAGS'
  37541. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37542. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37543. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37544. +osf3* | osf4* | osf5*)
  37545. + version_type=osf
  37546. + need_lib_prefix=no
  37547. + need_version=no
  37548. + soname_spec='${libname}${release}${shared_ext}$major'
  37549. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37550. + shlibpath_var=LD_LIBRARY_PATH
  37551. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  37552. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  37553. + ;;
  37554. -CC="$lt_save_CC"
  37555. +rdos*)
  37556. + dynamic_linker=no
  37557. + ;;
  37558. - else
  37559. - tagname=""
  37560. - fi
  37561. - ;;
  37562. +solaris*)
  37563. + version_type=linux
  37564. + need_lib_prefix=no
  37565. + need_version=no
  37566. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37567. + soname_spec='${libname}${release}${shared_ext}$major'
  37568. + shlibpath_var=LD_LIBRARY_PATH
  37569. + shlibpath_overrides_runpath=yes
  37570. + hardcode_into_libs=yes
  37571. + # ldd complains unless libraries are executable
  37572. + postinstall_cmds='chmod +x $lib'
  37573. + ;;
  37574. - RC)
  37575. +sunos4*)
  37576. + version_type=sunos
  37577. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  37578. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  37579. + shlibpath_var=LD_LIBRARY_PATH
  37580. + shlibpath_overrides_runpath=yes
  37581. + if test "$with_gnu_ld" = yes; then
  37582. + need_lib_prefix=no
  37583. + fi
  37584. + need_version=yes
  37585. + ;;
  37586. +sysv4 | sysv4.3*)
  37587. + version_type=linux
  37588. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37589. + soname_spec='${libname}${release}${shared_ext}$major'
  37590. + shlibpath_var=LD_LIBRARY_PATH
  37591. + case $host_vendor in
  37592. + sni)
  37593. + shlibpath_overrides_runpath=no
  37594. + need_lib_prefix=no
  37595. + runpath_var=LD_RUN_PATH
  37596. + ;;
  37597. + siemens)
  37598. + need_lib_prefix=no
  37599. + ;;
  37600. + motorola)
  37601. + need_lib_prefix=no
  37602. + need_version=no
  37603. + shlibpath_overrides_runpath=no
  37604. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  37605. + ;;
  37606. + esac
  37607. + ;;
  37608. -# Source file extension for RC test sources.
  37609. -ac_ext=rc
  37610. +sysv4*MP*)
  37611. + if test -d /usr/nec ;then
  37612. + version_type=linux
  37613. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  37614. + soname_spec='$libname${shared_ext}.$major'
  37615. + shlibpath_var=LD_LIBRARY_PATH
  37616. + fi
  37617. + ;;
  37618. -# Object file extension for compiled RC test sources.
  37619. -objext=o
  37620. -objext_RC=$objext
  37621. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  37622. + version_type=freebsd-elf
  37623. + need_lib_prefix=no
  37624. + need_version=no
  37625. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  37626. + soname_spec='${libname}${release}${shared_ext}$major'
  37627. + shlibpath_var=LD_LIBRARY_PATH
  37628. + shlibpath_overrides_runpath=yes
  37629. + hardcode_into_libs=yes
  37630. + if test "$with_gnu_ld" = yes; then
  37631. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  37632. + else
  37633. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  37634. + case $host_os in
  37635. + sco3.2v5*)
  37636. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  37637. + ;;
  37638. + esac
  37639. + fi
  37640. + sys_lib_dlsearch_path_spec='/usr/lib'
  37641. + ;;
  37642. -# Code to be used in simple compile tests
  37643. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  37644. +tpf*)
  37645. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  37646. + version_type=linux
  37647. + need_lib_prefix=no
  37648. + need_version=no
  37649. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37650. + shlibpath_var=LD_LIBRARY_PATH
  37651. + shlibpath_overrides_runpath=no
  37652. + hardcode_into_libs=yes
  37653. + ;;
  37654. -# Code to be used in simple link tests
  37655. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  37656. +uts4*)
  37657. + version_type=linux
  37658. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37659. + soname_spec='${libname}${release}${shared_ext}$major'
  37660. + shlibpath_var=LD_LIBRARY_PATH
  37661. + ;;
  37662. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  37663. +*)
  37664. + dynamic_linker=no
  37665. + ;;
  37666. +esac
  37667. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  37668. +$as_echo "$dynamic_linker" >&6; }
  37669. +test "$dynamic_linker" = no && can_build_shared=no
  37670. -# If no C compiler was specified, use CC.
  37671. -LTCC=${LTCC-"$CC"}
  37672. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  37673. +if test "$GCC" = yes; then
  37674. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  37675. +fi
  37676. -# If no C compiler flags were specified, use CFLAGS.
  37677. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  37678. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  37679. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  37680. +fi
  37681. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  37682. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  37683. +fi
  37684. -# Allow CC to be a program name with arguments.
  37685. -compiler=$CC
  37686. -# save warnings/boilerplate of simple test code
  37687. -ac_outfile=conftest.$ac_objext
  37688. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  37689. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  37690. -_lt_compiler_boilerplate=`cat conftest.err`
  37691. -$rm conftest*
  37692. -ac_outfile=conftest.$ac_objext
  37693. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  37694. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  37695. -_lt_linker_boilerplate=`cat conftest.err`
  37696. -$rm -r conftest*
  37697. -# Allow CC to be a program name with arguments.
  37698. -lt_save_CC="$CC"
  37699. -CC=${RC-"windres"}
  37700. -compiler=$CC
  37701. -compiler_RC=$CC
  37702. -for cc_temp in $compiler""; do
  37703. - case $cc_temp in
  37704. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  37705. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  37706. - \-*) ;;
  37707. - *) break;;
  37708. - esac
  37709. -done
  37710. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  37711. -lt_cv_prog_compiler_c_o_RC=yes
  37712. -# The else clause should only fire when bootstrapping the
  37713. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  37714. -# with your package, and you will get complaints that there are
  37715. -# no rules to generate ltmain.sh.
  37716. -if test -f "$ltmain"; then
  37717. - # See if we are running on zsh, and set the options which allow our commands through
  37718. - # without removal of \ escapes.
  37719. - if test -n "${ZSH_VERSION+set}" ; then
  37720. - setopt NO_GLOB_SUBST
  37721. - fi
  37722. - # Now quote all the things that may contain metacharacters while being
  37723. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  37724. - # variables and quote the copies for generation of the libtool script.
  37725. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  37726. - SED SHELL STRIP \
  37727. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  37728. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  37729. - deplibs_check_method reload_flag reload_cmds need_locks \
  37730. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  37731. - lt_cv_sys_global_symbol_to_c_name_address \
  37732. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  37733. - old_postinstall_cmds old_postuninstall_cmds \
  37734. - compiler_RC \
  37735. - CC_RC \
  37736. - LD_RC \
  37737. - lt_prog_compiler_wl_RC \
  37738. - lt_prog_compiler_pic_RC \
  37739. - lt_prog_compiler_static_RC \
  37740. - lt_prog_compiler_no_builtin_flag_RC \
  37741. - export_dynamic_flag_spec_RC \
  37742. - thread_safe_flag_spec_RC \
  37743. - whole_archive_flag_spec_RC \
  37744. - enable_shared_with_static_runtimes_RC \
  37745. - old_archive_cmds_RC \
  37746. - old_archive_from_new_cmds_RC \
  37747. - predep_objects_RC \
  37748. - postdep_objects_RC \
  37749. - predeps_RC \
  37750. - postdeps_RC \
  37751. - compiler_lib_search_path_RC \
  37752. - compiler_lib_search_dirs_RC \
  37753. - archive_cmds_RC \
  37754. - archive_expsym_cmds_RC \
  37755. - postinstall_cmds_RC \
  37756. - postuninstall_cmds_RC \
  37757. - old_archive_from_expsyms_cmds_RC \
  37758. - allow_undefined_flag_RC \
  37759. - no_undefined_flag_RC \
  37760. - export_symbols_cmds_RC \
  37761. - hardcode_libdir_flag_spec_RC \
  37762. - hardcode_libdir_flag_spec_ld_RC \
  37763. - hardcode_libdir_separator_RC \
  37764. - hardcode_automatic_RC \
  37765. - module_cmds_RC \
  37766. - module_expsym_cmds_RC \
  37767. - lt_cv_prog_compiler_c_o_RC \
  37768. - fix_srcfile_path_RC \
  37769. - exclude_expsyms_RC \
  37770. - include_expsyms_RC; do
  37771. -
  37772. - case $var in
  37773. - old_archive_cmds_RC | \
  37774. - old_archive_from_new_cmds_RC | \
  37775. - archive_cmds_RC | \
  37776. - archive_expsym_cmds_RC | \
  37777. - module_cmds_RC | \
  37778. - module_expsym_cmds_RC | \
  37779. - old_archive_from_expsyms_cmds_RC | \
  37780. - export_symbols_cmds_RC | \
  37781. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  37782. - postinstall_cmds | postuninstall_cmds | \
  37783. - old_postinstall_cmds | old_postuninstall_cmds | \
  37784. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  37785. - # Double-quote double-evaled strings.
  37786. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  37787. - ;;
  37788. - *)
  37789. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  37790. - ;;
  37791. - esac
  37792. - done
  37793. - case $lt_echo in
  37794. - *'\$0 --fallback-echo"')
  37795. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  37796. - ;;
  37797. - esac
  37798. -cfgfile="$ofile"
  37799. - cat <<__EOF__ >> "$cfgfile"
  37800. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  37801. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  37802. -# Shell to use when invoking shell scripts.
  37803. -SHELL=$lt_SHELL
  37804. -# Whether or not to build shared libraries.
  37805. -build_libtool_libs=$enable_shared
  37806. -# Whether or not to build static libraries.
  37807. -build_old_libs=$enable_static
  37808. -# Whether or not to add -lc for building shared libraries.
  37809. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  37810. -# Whether or not to disallow shared libs when runtime libs are static
  37811. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  37812. -# Whether or not to optimize for fast installation.
  37813. -fast_install=$enable_fast_install
  37814. -# The host system.
  37815. -host_alias=$host_alias
  37816. -host=$host
  37817. -host_os=$host_os
  37818. -# The build system.
  37819. -build_alias=$build_alias
  37820. -build=$build
  37821. -build_os=$build_os
  37822. -# An echo program that does not interpret backslashes.
  37823. -echo=$lt_echo
  37824. -# The archiver.
  37825. -AR=$lt_AR
  37826. -AR_FLAGS=$lt_AR_FLAGS
  37827. -# A C compiler.
  37828. -LTCC=$lt_LTCC
  37829. -# LTCC compiler flags.
  37830. -LTCFLAGS=$lt_LTCFLAGS
  37831. -# A language-specific compiler.
  37832. -CC=$lt_compiler_RC
  37833. -# Is the compiler the GNU C compiler?
  37834. -with_gcc=$GCC_RC
  37835. -# An ERE matcher.
  37836. -EGREP=$lt_EGREP
  37837. -# The linker used to build libraries.
  37838. -LD=$lt_LD_RC
  37839. -# Whether we need hard or soft links.
  37840. -LN_S=$lt_LN_S
  37841. -# A BSD-compatible nm program.
  37842. -NM=$lt_NM
  37843. -# A symbol stripping program
  37844. -STRIP=$lt_STRIP
  37845. -# Used to examine libraries when file_magic_cmd begins "file"
  37846. -MAGIC_CMD=$MAGIC_CMD
  37847. -# Used on cygwin: DLL creation program.
  37848. -DLLTOOL="$DLLTOOL"
  37849. -# Used on cygwin: object dumper.
  37850. -OBJDUMP="$OBJDUMP"
  37851. -# Used on cygwin: assembler.
  37852. -AS="$AS"
  37853. -# The name of the directory that contains temporary libtool files.
  37854. -objdir=$objdir
  37855. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  37856. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  37857. +hardcode_action_CXX=
  37858. +if test -n "$hardcode_libdir_flag_spec_CXX" ||
  37859. + test -n "$runpath_var_CXX" ||
  37860. + test "X$hardcode_automatic_CXX" = "Xyes" ; then
  37861. -# How to create reloadable object files.
  37862. -reload_flag=$lt_reload_flag
  37863. -reload_cmds=$lt_reload_cmds
  37864. + # We can hardcode non-existent directories.
  37865. + if test "$hardcode_direct_CXX" != no &&
  37866. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  37867. + # have to relink, otherwise we might link with an installed library
  37868. + # when we should be linking with a yet-to-be-installed one
  37869. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  37870. + test "$hardcode_minus_L_CXX" != no; then
  37871. + # Linking always hardcodes the temporary library directory.
  37872. + hardcode_action_CXX=relink
  37873. + else
  37874. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  37875. + hardcode_action_CXX=immediate
  37876. + fi
  37877. +else
  37878. + # We cannot hardcode anything, or else we can only hardcode existing
  37879. + # directories.
  37880. + hardcode_action_CXX=unsupported
  37881. +fi
  37882. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  37883. +$as_echo "$hardcode_action_CXX" >&6; }
  37884. -# How to pass a linker flag through the compiler.
  37885. -wl=$lt_lt_prog_compiler_wl_RC
  37886. +if test "$hardcode_action_CXX" = relink ||
  37887. + test "$inherit_rpath_CXX" = yes; then
  37888. + # Fast installation is not supported
  37889. + enable_fast_install=no
  37890. +elif test "$shlibpath_overrides_runpath" = yes ||
  37891. + test "$enable_shared" = no; then
  37892. + # Fast installation is not necessary
  37893. + enable_fast_install=needless
  37894. +fi
  37895. -# Object file suffix (normally "o").
  37896. -objext="$ac_objext"
  37897. -# Old archive suffix (normally "a").
  37898. -libext="$libext"
  37899. -# Shared library suffix (normally ".so").
  37900. -shrext_cmds='$shrext_cmds'
  37901. -# Executable file suffix (normally "").
  37902. -exeext="$exeext"
  37903. -# Additional compiler flags for building library objects.
  37904. -pic_flag=$lt_lt_prog_compiler_pic_RC
  37905. -pic_mode=$pic_mode
  37906. -# What is the maximum length of a command?
  37907. -max_cmd_len=$lt_cv_sys_max_cmd_len
  37908. -# Does compiler simultaneously support -c and -o options?
  37909. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  37910. + fi # test -n "$compiler"
  37911. -# Must we lock files when doing compilation?
  37912. -need_locks=$lt_need_locks
  37913. + CC=$lt_save_CC
  37914. + LDCXX=$LD
  37915. + LD=$lt_save_LD
  37916. + GCC=$lt_save_GCC
  37917. + with_gnu_ld=$lt_save_with_gnu_ld
  37918. + lt_cv_path_LDCXX=$lt_cv_path_LD
  37919. + lt_cv_path_LD=$lt_save_path_LD
  37920. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  37921. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  37922. +fi # test "$_lt_caught_CXX_error" != yes
  37923. -# Do we need the lib prefix for modules?
  37924. -need_lib_prefix=$need_lib_prefix
  37925. +ac_ext=c
  37926. +ac_cpp='$CPP $CPPFLAGS'
  37927. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37928. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37929. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37930. -# Do we need a version for libraries?
  37931. -need_version=$need_version
  37932. -# Whether dlopen is supported.
  37933. -dlopen_support=$enable_dlopen
  37934. -# Whether dlopen of programs is supported.
  37935. -dlopen_self=$enable_dlopen_self
  37936. -# Whether dlopen of statically linked programs is supported.
  37937. -dlopen_self_static=$enable_dlopen_self_static
  37938. -# Compiler flag to prevent dynamic linking.
  37939. -link_static_flag=$lt_lt_prog_compiler_static_RC
  37940. -# Compiler flag to turn off builtin functions.
  37941. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  37942. -# Compiler flag to allow reflexive dlopens.
  37943. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  37944. -# Compiler flag to generate shared objects directly from archives.
  37945. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  37946. -# Compiler flag to generate thread-safe objects.
  37947. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  37948. -# Library versioning type.
  37949. -version_type=$version_type
  37950. -# Format of library name prefix.
  37951. -libname_spec=$lt_libname_spec
  37952. -# List of archive names. First name is the real one, the rest are links.
  37953. -# The last name is the one that the linker finds with -lNAME.
  37954. -library_names_spec=$lt_library_names_spec
  37955. -# The coded name of the library, if different from the real name.
  37956. -soname_spec=$lt_soname_spec
  37957. + ac_config_commands="$ac_config_commands libtool"
  37958. -# Commands used to build and install an old-style archive.
  37959. -RANLIB=$lt_RANLIB
  37960. -old_archive_cmds=$lt_old_archive_cmds_RC
  37961. -old_postinstall_cmds=$lt_old_postinstall_cmds
  37962. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  37963. -# Create an old-style archive from a shared archive.
  37964. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  37965. -# Create a temporary old-style archive to link instead of a shared archive.
  37966. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  37967. -# Commands used to build and install a shared archive.
  37968. -archive_cmds=$lt_archive_cmds_RC
  37969. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  37970. -postinstall_cmds=$lt_postinstall_cmds
  37971. -postuninstall_cmds=$lt_postuninstall_cmds
  37972. +# Only expand once:
  37973. -# Commands used to build a loadable module (assumed same as above if empty)
  37974. -module_cmds=$lt_module_cmds_RC
  37975. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  37976. -# Commands to strip libraries.
  37977. -old_striplib=$lt_old_striplib
  37978. -striplib=$lt_striplib
  37979. -# Dependencies to place before the objects being linked to create a
  37980. -# shared library.
  37981. -predep_objects=$lt_predep_objects_RC
  37982. -
  37983. -# Dependencies to place after the objects being linked to create a
  37984. -# shared library.
  37985. -postdep_objects=$lt_postdep_objects_RC
  37986. -
  37987. -# Dependencies to place before the objects being linked to create a
  37988. -# shared library.
  37989. -predeps=$lt_predeps_RC
  37990. -
  37991. -# Dependencies to place after the objects being linked to create a
  37992. -# shared library.
  37993. -postdeps=$lt_postdeps_RC
  37994. -
  37995. -# The directories searched by this compiler when creating a shared
  37996. -# library
  37997. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  37998. +test_gcc_flag() {
  37999. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38000. +/* end confdefs.h. */
  38001. +int main(int argc, char*argv) {}
  38002. +_ACEOF
  38003. + $CC -c conftest.c $CFLAGS "$1" -o conftest.o > /dev/null 2> /dev/null
  38004. + ret=$?
  38005. + rm -f conftest.o
  38006. + return $ret
  38007. +}
  38008. -# The library search path used internally by the compiler when linking
  38009. -# a shared library.
  38010. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  38011. +# If using GCC specify some additional parameters
  38012. +if test "x$GCC" = "xyes" ; then
  38013. + # We use gnu99 instead of c99 because many have interpreted the standard
  38014. + # in a way that int64_t isn't defined on non-64 bit platforms.
  38015. + DESIRED_FLAGS="-std=gnu99 -Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter -ffast-math"
  38016. -# Method to check whether dependent libraries are shared objects.
  38017. -deplibs_check_method=$lt_deplibs_check_method
  38018. + for flag in $DESIRED_FLAGS ; do
  38019. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $flag" >&5
  38020. +$as_echo_n "checking whether $CC accepts $flag... " >&6; }
  38021. + if test_gcc_flag $flag ; then
  38022. + CFLAGS="$CFLAGS $flag"
  38023. + CXXFLAGS="$CXXFLAGS $flag"
  38024. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38025. +$as_echo "yes" >&6; }
  38026. + else
  38027. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38028. +$as_echo "no" >&6; }
  38029. + fi
  38030. + done
  38031. +fi
  38032. -# Command to use when deplibs_check_method == file_magic.
  38033. -file_magic_cmd=$lt_file_magic_cmd
  38034. +# Checks for header files.
  38035. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  38036. +$as_echo_n "checking for ANSI C header files... " >&6; }
  38037. +if test "${ac_cv_header_stdc+set}" = set; then :
  38038. + $as_echo_n "(cached) " >&6
  38039. +else
  38040. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38041. +/* end confdefs.h. */
  38042. +#include <stdlib.h>
  38043. +#include <stdarg.h>
  38044. +#include <string.h>
  38045. +#include <float.h>
  38046. -# Flag that allows shared libraries with undefined symbols to be built.
  38047. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  38048. +int
  38049. +main ()
  38050. +{
  38051. -# Flag that forces no undefined symbols.
  38052. -no_undefined_flag=$lt_no_undefined_flag_RC
  38053. + ;
  38054. + return 0;
  38055. +}
  38056. +_ACEOF
  38057. +if ac_fn_c_try_compile "$LINENO"; then :
  38058. + ac_cv_header_stdc=yes
  38059. +else
  38060. + ac_cv_header_stdc=no
  38061. +fi
  38062. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38063. -# Commands used to finish a libtool library installation in a directory.
  38064. -finish_cmds=$lt_finish_cmds
  38065. +if test $ac_cv_header_stdc = yes; then
  38066. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  38067. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38068. +/* end confdefs.h. */
  38069. +#include <string.h>
  38070. -# Same as above, but a single script fragment to be evaled but not shown.
  38071. -finish_eval=$lt_finish_eval
  38072. +_ACEOF
  38073. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  38074. + $EGREP "memchr" >/dev/null 2>&1; then :
  38075. -# Take the output of nm and produce a listing of raw symbols and C names.
  38076. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  38077. +else
  38078. + ac_cv_header_stdc=no
  38079. +fi
  38080. +rm -f conftest*
  38081. -# Transform the output of nm in a proper C declaration
  38082. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  38083. +fi
  38084. -# Transform the output of nm in a C name address pair
  38085. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  38086. +if test $ac_cv_header_stdc = yes; then
  38087. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  38088. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38089. +/* end confdefs.h. */
  38090. +#include <stdlib.h>
  38091. -# This is the shared library runtime path variable.
  38092. -runpath_var=$runpath_var
  38093. +_ACEOF
  38094. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  38095. + $EGREP "free" >/dev/null 2>&1; then :
  38096. -# This is the shared library path variable.
  38097. -shlibpath_var=$shlibpath_var
  38098. +else
  38099. + ac_cv_header_stdc=no
  38100. +fi
  38101. +rm -f conftest*
  38102. -# Is shlibpath searched before the hard-coded library search path?
  38103. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  38104. +fi
  38105. -# How to hardcode a shared library path into an executable.
  38106. -hardcode_action=$hardcode_action_RC
  38107. +if test $ac_cv_header_stdc = yes; then
  38108. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  38109. + if test "$cross_compiling" = yes; then :
  38110. + :
  38111. +else
  38112. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38113. +/* end confdefs.h. */
  38114. +#include <ctype.h>
  38115. +#include <stdlib.h>
  38116. +#if ((' ' & 0x0FF) == 0x020)
  38117. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  38118. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  38119. +#else
  38120. +# define ISLOWER(c) \
  38121. + (('a' <= (c) && (c) <= 'i') \
  38122. + || ('j' <= (c) && (c) <= 'r') \
  38123. + || ('s' <= (c) && (c) <= 'z'))
  38124. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  38125. +#endif
  38126. -# Whether we should hardcode library paths into libraries.
  38127. -hardcode_into_libs=$hardcode_into_libs
  38128. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  38129. +int
  38130. +main ()
  38131. +{
  38132. + int i;
  38133. + for (i = 0; i < 256; i++)
  38134. + if (XOR (islower (i), ISLOWER (i))
  38135. + || toupper (i) != TOUPPER (i))
  38136. + return 2;
  38137. + return 0;
  38138. +}
  38139. +_ACEOF
  38140. +if ac_fn_c_try_run "$LINENO"; then :
  38141. -# Flag to hardcode \$libdir into a binary during linking.
  38142. -# This must work even if \$libdir does not exist.
  38143. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  38144. +else
  38145. + ac_cv_header_stdc=no
  38146. +fi
  38147. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  38148. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  38149. +fi
  38150. -# If ld is used when linking, flag to hardcode \$libdir into
  38151. -# a binary during linking. This must work even if \$libdir does
  38152. -# not exist.
  38153. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  38154. -
  38155. -# Whether we need a single -rpath flag with a separated argument.
  38156. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  38157. -
  38158. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  38159. -# resulting binary.
  38160. -hardcode_direct=$hardcode_direct_RC
  38161. -
  38162. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  38163. -# resulting binary.
  38164. -hardcode_minus_L=$hardcode_minus_L_RC
  38165. -
  38166. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  38167. -# the resulting binary.
  38168. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  38169. -
  38170. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  38171. -# and all subsequent libraries and executables linked against it.
  38172. -hardcode_automatic=$hardcode_automatic_RC
  38173. +fi
  38174. +fi
  38175. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  38176. +$as_echo "$ac_cv_header_stdc" >&6; }
  38177. +if test $ac_cv_header_stdc = yes; then
  38178. -# Variables whose values should be saved in libtool wrapper scripts and
  38179. -# restored at relink time.
  38180. -variables_saved_for_relink="$variables_saved_for_relink"
  38181. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  38182. -# Whether libtool must link a program against all its dependency libraries.
  38183. -link_all_deplibs=$link_all_deplibs_RC
  38184. +fi
  38185. -# Compile-time system search path for libraries
  38186. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  38187. +for ac_header in fcntl.h limits.h stdlib.h string.h syslog.h unistd.h sys/ioctl.h sys/time.h
  38188. +do :
  38189. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  38190. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  38191. +eval as_val=\$$as_ac_Header
  38192. + if test "x$as_val" = x""yes; then :
  38193. + cat >>confdefs.h <<_ACEOF
  38194. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  38195. +_ACEOF
  38196. -# Run-time system search path for libraries
  38197. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  38198. +fi
  38199. -# Fix the shell variable \$srcfile for the compiler.
  38200. -fix_srcfile_path=$lt_fix_srcfile_path
  38201. +done
  38202. -# Set to yes if exported symbols are required.
  38203. -always_export_symbols=$always_export_symbols_RC
  38204. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  38205. +$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  38206. +if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  38207. + $as_echo_n "(cached) " >&6
  38208. +else
  38209. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38210. +/* end confdefs.h. */
  38211. +#include <sys/types.h>
  38212. +#include <sys/wait.h>
  38213. +#ifndef WEXITSTATUS
  38214. +# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  38215. +#endif
  38216. +#ifndef WIFEXITED
  38217. +# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  38218. +#endif
  38219. -# The commands to list exported symbols.
  38220. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  38221. +int
  38222. +main ()
  38223. +{
  38224. + int s;
  38225. + wait (&s);
  38226. + s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  38227. + ;
  38228. + return 0;
  38229. +}
  38230. +_ACEOF
  38231. +if ac_fn_c_try_compile "$LINENO"; then :
  38232. + ac_cv_header_sys_wait_h=yes
  38233. +else
  38234. + ac_cv_header_sys_wait_h=no
  38235. +fi
  38236. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38237. +fi
  38238. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  38239. +$as_echo "$ac_cv_header_sys_wait_h" >&6; }
  38240. +if test $ac_cv_header_sys_wait_h = yes; then
  38241. -# The commands to extract the exported symbol list from a shared archive.
  38242. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  38243. +$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  38244. -# Symbols that should not be listed in the preloaded symbols.
  38245. -exclude_expsyms=$lt_exclude_expsyms_RC
  38246. +fi
  38247. -# Symbols that must always be exported.
  38248. -include_expsyms=$lt_include_expsyms_RC
  38249. -# ### END LIBTOOL TAG CONFIG: $tagname
  38250. +# Checks for typedefs, structures, and compiler characteristics.
  38251. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  38252. +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  38253. +if test "${ac_cv_c_const+set}" = set; then :
  38254. + $as_echo_n "(cached) " >&6
  38255. +else
  38256. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38257. +/* end confdefs.h. */
  38258. -__EOF__
  38259. +int
  38260. +main ()
  38261. +{
  38262. +/* FIXME: Include the comments suggested by Paul. */
  38263. +#ifndef __cplusplus
  38264. + /* Ultrix mips cc rejects this. */
  38265. + typedef int charset[2];
  38266. + const charset cs;
  38267. + /* SunOS 4.1.1 cc rejects this. */
  38268. + char const *const *pcpcc;
  38269. + char **ppc;
  38270. + /* NEC SVR4.0.2 mips cc rejects this. */
  38271. + struct point {int x, y;};
  38272. + static struct point const zero = {0,0};
  38273. + /* AIX XL C 1.02.0.0 rejects this.
  38274. + It does not let you subtract one const X* pointer from another in
  38275. + an arm of an if-expression whose if-part is not a constant
  38276. + expression */
  38277. + const char *g = "string";
  38278. + pcpcc = &g + (g ? g-g : 0);
  38279. + /* HPUX 7.0 cc rejects these. */
  38280. + ++pcpcc;
  38281. + ppc = (char**) pcpcc;
  38282. + pcpcc = (char const *const *) ppc;
  38283. + { /* SCO 3.2v4 cc rejects this. */
  38284. + char *t;
  38285. + char const *s = 0 ? (char *) 0 : (char const *) 0;
  38286. + *t++ = 0;
  38287. + if (s) return 0;
  38288. + }
  38289. + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  38290. + int x[] = {25, 17};
  38291. + const int *foo = &x[0];
  38292. + ++foo;
  38293. + }
  38294. + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  38295. + typedef const int *iptr;
  38296. + iptr p = 0;
  38297. + ++p;
  38298. + }
  38299. + { /* AIX XL C 1.02.0.0 rejects this saying
  38300. + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  38301. + struct s { int j; const int *ap[3]; };
  38302. + struct s *b; b->j = 5;
  38303. + }
  38304. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  38305. + const int foo = 10;
  38306. + if (!foo) return 0;
  38307. + }
  38308. + return !cs[0] && !zero.x;
  38309. +#endif
  38310. + ;
  38311. + return 0;
  38312. +}
  38313. +_ACEOF
  38314. +if ac_fn_c_try_compile "$LINENO"; then :
  38315. + ac_cv_c_const=yes
  38316. else
  38317. - # If there is no Makefile yet, we rely on a make rule to execute
  38318. - # `config.status --recheck' to rerun these tests and create the
  38319. - # libtool script then.
  38320. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  38321. - if test -f "$ltmain_in"; then
  38322. - test -f Makefile && make "$ltmain"
  38323. - fi
  38324. + ac_cv_c_const=no
  38325. fi
  38326. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38327. +fi
  38328. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  38329. +$as_echo "$ac_cv_c_const" >&6; }
  38330. +if test $ac_cv_c_const = no; then
  38331. +$as_echo "#define const /**/" >>confdefs.h
  38332. -ac_ext=c
  38333. -ac_cpp='$CPP $CPPFLAGS'
  38334. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38335. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38336. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38337. -
  38338. -CC="$lt_save_CC"
  38339. +fi
  38340. - ;;
  38341. +ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  38342. +if test "x$ac_cv_type_pid_t" = x""yes; then :
  38343. - *)
  38344. - { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  38345. -$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  38346. - { (exit 1); exit 1; }; }
  38347. - ;;
  38348. - esac
  38349. +else
  38350. - # Append the new tag name to the list of available tags.
  38351. - if test -n "$tagname" ; then
  38352. - available_tags="$available_tags $tagname"
  38353. - fi
  38354. - fi
  38355. - done
  38356. - IFS="$lt_save_ifs"
  38357. +cat >>confdefs.h <<_ACEOF
  38358. +#define pid_t int
  38359. +_ACEOF
  38360. - # Now substitute the updated list of available tags.
  38361. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  38362. - mv "${ofile}T" "$ofile"
  38363. - chmod +x "$ofile"
  38364. - else
  38365. - rm -f "${ofile}T"
  38366. - { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  38367. -$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  38368. - { (exit 1); exit 1; }; }
  38369. - fi
  38370. fi
  38371. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  38372. +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  38373. +if test "${ac_cv_header_time+set}" = set; then :
  38374. + $as_echo_n "(cached) " >&6
  38375. +else
  38376. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38377. +/* end confdefs.h. */
  38378. +#include <sys/types.h>
  38379. +#include <sys/time.h>
  38380. +#include <time.h>
  38381. +int
  38382. +main ()
  38383. +{
  38384. +if ((struct tm *) 0)
  38385. +return 0;
  38386. + ;
  38387. + return 0;
  38388. +}
  38389. +_ACEOF
  38390. +if ac_fn_c_try_compile "$LINENO"; then :
  38391. + ac_cv_header_time=yes
  38392. +else
  38393. + ac_cv_header_time=no
  38394. +fi
  38395. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38396. +fi
  38397. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  38398. +$as_echo "$ac_cv_header_time" >&6; }
  38399. +if test $ac_cv_header_time = yes; then
  38400. -# This can be used to rebuild libtool when needed
  38401. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  38402. -
  38403. -# Always use our own libtool.
  38404. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  38405. -
  38406. -# Prevent multiple expansion
  38407. -
  38408. +$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  38409. +fi
  38410. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  38411. +$as_echo_n "checking for working volatile... " >&6; }
  38412. +if test "${ac_cv_c_volatile+set}" = set; then :
  38413. + $as_echo_n "(cached) " >&6
  38414. +else
  38415. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38416. +/* end confdefs.h. */
  38417. +int
  38418. +main ()
  38419. +{
  38420. +volatile int x;
  38421. +int * volatile y = (int *) 0;
  38422. +return !x && !y;
  38423. + ;
  38424. + return 0;
  38425. +}
  38426. +_ACEOF
  38427. +if ac_fn_c_try_compile "$LINENO"; then :
  38428. + ac_cv_c_volatile=yes
  38429. +else
  38430. + ac_cv_c_volatile=no
  38431. +fi
  38432. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38433. +fi
  38434. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  38435. +$as_echo "$ac_cv_c_volatile" >&6; }
  38436. +if test $ac_cv_c_volatile = no; then
  38437. +$as_echo "#define volatile /**/" >>confdefs.h
  38438. +fi
  38439. +# Checks for library functions.
  38440. +for ac_header in vfork.h
  38441. +do :
  38442. + ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  38443. +if test "x$ac_cv_header_vfork_h" = x""yes; then :
  38444. + cat >>confdefs.h <<_ACEOF
  38445. +#define HAVE_VFORK_H 1
  38446. +_ACEOF
  38447. +fi
  38448. +done
  38449. +for ac_func in fork vfork
  38450. +do :
  38451. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  38452. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  38453. +eval as_val=\$$as_ac_var
  38454. + if test "x$as_val" = x""yes; then :
  38455. + cat >>confdefs.h <<_ACEOF
  38456. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  38457. +_ACEOF
  38458. +fi
  38459. +done
  38460. +if test "x$ac_cv_func_fork" = xyes; then
  38461. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  38462. +$as_echo_n "checking for working fork... " >&6; }
  38463. +if test "${ac_cv_func_fork_works+set}" = set; then :
  38464. + $as_echo_n "(cached) " >&6
  38465. +else
  38466. + if test "$cross_compiling" = yes; then :
  38467. + ac_cv_func_fork_works=cross
  38468. +else
  38469. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38470. +/* end confdefs.h. */
  38471. +$ac_includes_default
  38472. +int
  38473. +main ()
  38474. +{
  38475. + /* By Ruediger Kuhlmann. */
  38476. + return fork () < 0;
  38477. + ;
  38478. + return 0;
  38479. +}
  38480. +_ACEOF
  38481. +if ac_fn_c_try_run "$LINENO"; then :
  38482. + ac_cv_func_fork_works=yes
  38483. +else
  38484. + ac_cv_func_fork_works=no
  38485. +fi
  38486. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  38487. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  38488. +fi
  38489. +fi
  38490. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  38491. +$as_echo "$ac_cv_func_fork_works" >&6; }
  38492. +else
  38493. + ac_cv_func_fork_works=$ac_cv_func_fork
  38494. +fi
  38495. +if test "x$ac_cv_func_fork_works" = xcross; then
  38496. + case $host in
  38497. + *-*-amigaos* | *-*-msdosdjgpp*)
  38498. + # Override, as these systems have only a dummy fork() stub
  38499. + ac_cv_func_fork_works=no
  38500. + ;;
  38501. + *)
  38502. + ac_cv_func_fork_works=yes
  38503. + ;;
  38504. + esac
  38505. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  38506. +$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  38507. +fi
  38508. +ac_cv_func_vfork_works=$ac_cv_func_vfork
  38509. +if test "x$ac_cv_func_vfork" = xyes; then
  38510. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  38511. +$as_echo_n "checking for working vfork... " >&6; }
  38512. +if test "${ac_cv_func_vfork_works+set}" = set; then :
  38513. + $as_echo_n "(cached) " >&6
  38514. +else
  38515. + if test "$cross_compiling" = yes; then :
  38516. + ac_cv_func_vfork_works=cross
  38517. +else
  38518. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38519. +/* end confdefs.h. */
  38520. +/* Thanks to Paul Eggert for this test. */
  38521. +$ac_includes_default
  38522. +#include <sys/wait.h>
  38523. +#ifdef HAVE_VFORK_H
  38524. +# include <vfork.h>
  38525. +#endif
  38526. +/* On some sparc systems, changes by the child to local and incoming
  38527. + argument registers are propagated back to the parent. The compiler
  38528. + is told about this with #include <vfork.h>, but some compilers
  38529. + (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  38530. + static variable whose address is put into a register that is
  38531. + clobbered by the vfork. */
  38532. +static void
  38533. +#ifdef __cplusplus
  38534. +sparc_address_test (int arg)
  38535. +# else
  38536. +sparc_address_test (arg) int arg;
  38537. +#endif
  38538. +{
  38539. + static pid_t child;
  38540. + if (!child) {
  38541. + child = vfork ();
  38542. + if (child < 0) {
  38543. + perror ("vfork");
  38544. + _exit(2);
  38545. + }
  38546. + if (!child) {
  38547. + arg = getpid();
  38548. + write(-1, "", 0);
  38549. + _exit (arg);
  38550. + }
  38551. + }
  38552. +}
  38553. +int
  38554. +main ()
  38555. +{
  38556. + pid_t parent = getpid ();
  38557. + pid_t child;
  38558. + sparc_address_test (0);
  38559. -test_gcc_flag() {
  38560. - cat >conftest.$ac_ext <<_ACEOF
  38561. -int main(int argc, char*argv) {}
  38562. -_ACEOF
  38563. - $CC -c conftest.c $CFLAGS "$1" -o conftest.o > /dev/null 2> /dev/null
  38564. - ret=$?
  38565. - rm -f conftest.o
  38566. - return $ret
  38567. -}
  38568. + child = vfork ();
  38569. -# If using GCC specify some additional parameters
  38570. -if test "x$GCC" = "xyes" ; then
  38571. - # We use gnu99 instead of c99 because many have interpreted the standard
  38572. - # in a way that int64_t isn't defined on non-64 bit platforms.
  38573. - DESIRED_FLAGS="-std=gnu99 -Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter -ffast-math"
  38574. + if (child == 0) {
  38575. + /* Here is another test for sparc vfork register problems. This
  38576. + test uses lots of local variables, at least as many local
  38577. + variables as main has allocated so far including compiler
  38578. + temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  38579. + 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  38580. + reuse the register of parent for one of the local variables,
  38581. + since it will think that parent can't possibly be used any more
  38582. + in this routine. Assigning to the local variable will thus
  38583. + munge parent in the parent process. */
  38584. + pid_t
  38585. + p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  38586. + p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  38587. + /* Convince the compiler that p..p7 are live; otherwise, it might
  38588. + use the same hardware register for all 8 local variables. */
  38589. + if (p != p1 || p != p2 || p != p3 || p != p4
  38590. + || p != p5 || p != p6 || p != p7)
  38591. + _exit(1);
  38592. - for flag in $DESIRED_FLAGS ; do
  38593. - { $as_echo "$as_me:$LINENO: checking whether $CC accepts $flag" >&5
  38594. -$as_echo_n "checking whether $CC accepts $flag... " >&6; }
  38595. - if test_gcc_flag $flag ; then
  38596. - CFLAGS="$CFLAGS $flag"
  38597. - CXXFLAGS="$CXXFLAGS $flag"
  38598. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  38599. -$as_echo "yes" >&6; }
  38600. - else
  38601. - { $as_echo "$as_me:$LINENO: result: no" >&5
  38602. -$as_echo "no" >&6; }
  38603. - fi
  38604. - done
  38605. -fi
  38606. + /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  38607. + from child file descriptors. If the child closes a descriptor
  38608. + before it execs or exits, this munges the parent's descriptor
  38609. + as well. Test for this by closing stdout in the child. */
  38610. + _exit(close(fileno(stdout)) != 0);
  38611. + } else {
  38612. + int status;
  38613. + struct stat st;
  38614. -# Checks for header files.
  38615. -{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  38616. -$as_echo_n "checking for ANSI C header files... " >&6; }
  38617. -if test "${ac_cv_header_stdc+set}" = set; then
  38618. - $as_echo_n "(cached) " >&6
  38619. -else
  38620. - cat >conftest.$ac_ext <<_ACEOF
  38621. -/* confdefs.h. */
  38622. -_ACEOF
  38623. -cat confdefs.h >>conftest.$ac_ext
  38624. -cat >>conftest.$ac_ext <<_ACEOF
  38625. -/* end confdefs.h. */
  38626. -#include <stdlib.h>
  38627. -#include <stdarg.h>
  38628. -#include <string.h>
  38629. -#include <float.h>
  38630. + while (wait(&status) != child)
  38631. + ;
  38632. + return (
  38633. + /* Was there some problem with vforking? */
  38634. + child < 0
  38635. -int
  38636. -main ()
  38637. -{
  38638. + /* Did the child fail? (This shouldn't happen.) */
  38639. + || status
  38640. - ;
  38641. - return 0;
  38642. + /* Did the vfork/compiler bug occur? */
  38643. + || parent != getpid()
  38644. +
  38645. + /* Did the file descriptor bug occur? */
  38646. + || fstat(fileno(stdout), &st) != 0
  38647. + );
  38648. + }
  38649. }
  38650. _ACEOF
  38651. -rm -f conftest.$ac_objext
  38652. -if { (ac_try="$ac_compile"
  38653. -case "(($ac_try" in
  38654. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38655. - *) ac_try_echo=$ac_try;;
  38656. -esac
  38657. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38658. -$as_echo "$ac_try_echo") >&5
  38659. - (eval "$ac_compile") 2>conftest.er1
  38660. - ac_status=$?
  38661. - grep -v '^ *+' conftest.er1 >conftest.err
  38662. - rm -f conftest.er1
  38663. - cat conftest.err >&5
  38664. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38665. - (exit $ac_status); } && {
  38666. - test -z "$ac_c_werror_flag" ||
  38667. - test ! -s conftest.err
  38668. - } && test -s conftest.$ac_objext; then
  38669. - ac_cv_header_stdc=yes
  38670. +if ac_fn_c_try_run "$LINENO"; then :
  38671. + ac_cv_func_vfork_works=yes
  38672. else
  38673. - $as_echo "$as_me: failed program was:" >&5
  38674. -sed 's/^/| /' conftest.$ac_ext >&5
  38675. + ac_cv_func_vfork_works=no
  38676. +fi
  38677. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  38678. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  38679. +fi
  38680. - ac_cv_header_stdc=no
  38681. fi
  38682. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  38683. +$as_echo "$ac_cv_func_vfork_works" >&6; }
  38684. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38685. +fi;
  38686. +if test "x$ac_cv_func_fork_works" = xcross; then
  38687. + ac_cv_func_vfork_works=$ac_cv_func_vfork
  38688. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  38689. +$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  38690. +fi
  38691. -if test $ac_cv_header_stdc = yes; then
  38692. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  38693. - cat >conftest.$ac_ext <<_ACEOF
  38694. -/* confdefs.h. */
  38695. -_ACEOF
  38696. -cat confdefs.h >>conftest.$ac_ext
  38697. -cat >>conftest.$ac_ext <<_ACEOF
  38698. -/* end confdefs.h. */
  38699. -#include <string.h>
  38700. +if test "x$ac_cv_func_vfork_works" = xyes; then
  38701. +
  38702. +$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  38703. -_ACEOF
  38704. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  38705. - $EGREP "memchr" >/dev/null 2>&1; then
  38706. - :
  38707. else
  38708. - ac_cv_header_stdc=no
  38709. +
  38710. +$as_echo "#define vfork fork" >>confdefs.h
  38711. +
  38712. fi
  38713. -rm -f conftest*
  38714. +if test "x$ac_cv_func_fork_works" = xyes; then
  38715. +
  38716. +$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  38717. fi
  38718. -if test $ac_cv_header_stdc = yes; then
  38719. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  38720. - cat >conftest.$ac_ext <<_ACEOF
  38721. -/* confdefs.h. */
  38722. +for ac_header in sys/select.h sys/socket.h
  38723. +do :
  38724. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  38725. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  38726. +eval as_val=\$$as_ac_Header
  38727. + if test "x$as_val" = x""yes; then :
  38728. + cat >>confdefs.h <<_ACEOF
  38729. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  38730. _ACEOF
  38731. -cat confdefs.h >>conftest.$ac_ext
  38732. -cat >>conftest.$ac_ext <<_ACEOF
  38733. -/* end confdefs.h. */
  38734. -#include <stdlib.h>
  38735. -_ACEOF
  38736. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  38737. - $EGREP "free" >/dev/null 2>&1; then
  38738. - :
  38739. -else
  38740. - ac_cv_header_stdc=no
  38741. fi
  38742. -rm -f conftest*
  38743. -fi
  38744. +done
  38745. -if test $ac_cv_header_stdc = yes; then
  38746. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  38747. - if test "$cross_compiling" = yes; then
  38748. - :
  38749. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  38750. +$as_echo_n "checking types of arguments for select... " >&6; }
  38751. +if test "${ac_cv_func_select_args+set}" = set; then :
  38752. + $as_echo_n "(cached) " >&6
  38753. else
  38754. - cat >conftest.$ac_ext <<_ACEOF
  38755. -/* confdefs.h. */
  38756. -_ACEOF
  38757. -cat confdefs.h >>conftest.$ac_ext
  38758. -cat >>conftest.$ac_ext <<_ACEOF
  38759. + for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  38760. + for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  38761. + for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  38762. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38763. /* end confdefs.h. */
  38764. -#include <ctype.h>
  38765. -#include <stdlib.h>
  38766. -#if ((' ' & 0x0FF) == 0x020)
  38767. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  38768. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  38769. -#else
  38770. -# define ISLOWER(c) \
  38771. - (('a' <= (c) && (c) <= 'i') \
  38772. - || ('j' <= (c) && (c) <= 'r') \
  38773. - || ('s' <= (c) && (c) <= 'z'))
  38774. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  38775. +$ac_includes_default
  38776. +#ifdef HAVE_SYS_SELECT_H
  38777. +# include <sys/select.h>
  38778. +#endif
  38779. +#ifdef HAVE_SYS_SOCKET_H
  38780. +# include <sys/socket.h>
  38781. #endif
  38782. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  38783. int
  38784. main ()
  38785. {
  38786. - int i;
  38787. - for (i = 0; i < 256; i++)
  38788. - if (XOR (islower (i), ISLOWER (i))
  38789. - || toupper (i) != TOUPPER (i))
  38790. - return 2;
  38791. +extern int select ($ac_arg1,
  38792. + $ac_arg234, $ac_arg234, $ac_arg234,
  38793. + $ac_arg5);
  38794. + ;
  38795. return 0;
  38796. }
  38797. _ACEOF
  38798. -rm -f conftest$ac_exeext
  38799. -if { (ac_try="$ac_link"
  38800. -case "(($ac_try" in
  38801. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38802. - *) ac_try_echo=$ac_try;;
  38803. -esac
  38804. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38805. -$as_echo "$ac_try_echo") >&5
  38806. - (eval "$ac_link") 2>&5
  38807. - ac_status=$?
  38808. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38809. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  38810. - { (case "(($ac_try" in
  38811. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38812. - *) ac_try_echo=$ac_try;;
  38813. -esac
  38814. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38815. -$as_echo "$ac_try_echo") >&5
  38816. - (eval "$ac_try") 2>&5
  38817. - ac_status=$?
  38818. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38819. - (exit $ac_status); }; }; then
  38820. - :
  38821. -else
  38822. - $as_echo "$as_me: program exited with status $ac_status" >&5
  38823. -$as_echo "$as_me: failed program was:" >&5
  38824. -sed 's/^/| /' conftest.$ac_ext >&5
  38825. -
  38826. -( exit $ac_status )
  38827. -ac_cv_header_stdc=no
  38828. -fi
  38829. -rm -rf conftest.dSYM
  38830. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  38831. +if ac_fn_c_try_compile "$LINENO"; then :
  38832. + ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  38833. fi
  38834. -
  38835. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38836. + done
  38837. + done
  38838. +done
  38839. +# Provide a safe default value.
  38840. +: ${ac_cv_func_select_args='int,int *,struct timeval *'}
  38841. fi
  38842. -fi
  38843. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  38844. -$as_echo "$ac_cv_header_stdc" >&6; }
  38845. -if test $ac_cv_header_stdc = yes; then
  38846. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  38847. +$as_echo "$ac_cv_func_select_args" >&6; }
  38848. +ac_save_IFS=$IFS; IFS=','
  38849. +set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  38850. +IFS=$ac_save_IFS
  38851. +shift
  38852. -cat >>confdefs.h <<\_ACEOF
  38853. -#define STDC_HEADERS 1
  38854. +cat >>confdefs.h <<_ACEOF
  38855. +#define SELECT_TYPE_ARG1 $1
  38856. _ACEOF
  38857. -fi
  38858. -
  38859. +cat >>confdefs.h <<_ACEOF
  38860. +#define SELECT_TYPE_ARG234 ($2)
  38861. +_ACEOF
  38862. +cat >>confdefs.h <<_ACEOF
  38863. +#define SELECT_TYPE_ARG5 ($3)
  38864. +_ACEOF
  38865. +rm -f conftest*
  38866. +for ac_func in vprintf
  38867. +do :
  38868. + ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  38869. +if test "x$ac_cv_func_vprintf" = x""yes; then :
  38870. + cat >>confdefs.h <<_ACEOF
  38871. +#define HAVE_VPRINTF 1
  38872. +_ACEOF
  38873. +ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  38874. +if test "x$ac_cv_func__doprnt" = x""yes; then :
  38875. +$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  38876. -for ac_header in fcntl.h limits.h stdlib.h string.h syslog.h unistd.h sys/ioctl.h sys/time.h
  38877. -do
  38878. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  38879. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38880. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  38881. -$as_echo_n "checking for $ac_header... " >&6; }
  38882. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38883. - $as_echo_n "(cached) " >&6
  38884. fi
  38885. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  38886. - $as_echo "$as_val"'`
  38887. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  38888. -$as_echo "$ac_res" >&6; }
  38889. -else
  38890. - # Is the header compilable?
  38891. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  38892. -$as_echo_n "checking $ac_header usability... " >&6; }
  38893. -cat >conftest.$ac_ext <<_ACEOF
  38894. -/* confdefs.h. */
  38895. -_ACEOF
  38896. -cat confdefs.h >>conftest.$ac_ext
  38897. -cat >>conftest.$ac_ext <<_ACEOF
  38898. -/* end confdefs.h. */
  38899. -$ac_includes_default
  38900. -#include <$ac_header>
  38901. -_ACEOF
  38902. -rm -f conftest.$ac_objext
  38903. -if { (ac_try="$ac_compile"
  38904. -case "(($ac_try" in
  38905. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38906. - *) ac_try_echo=$ac_try;;
  38907. -esac
  38908. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38909. -$as_echo "$ac_try_echo") >&5
  38910. - (eval "$ac_compile") 2>conftest.er1
  38911. - ac_status=$?
  38912. - grep -v '^ *+' conftest.er1 >conftest.err
  38913. - rm -f conftest.er1
  38914. - cat conftest.err >&5
  38915. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38916. - (exit $ac_status); } && {
  38917. - test -z "$ac_c_werror_flag" ||
  38918. - test ! -s conftest.err
  38919. - } && test -s conftest.$ac_objext; then
  38920. - ac_header_compiler=yes
  38921. -else
  38922. - $as_echo "$as_me: failed program was:" >&5
  38923. -sed 's/^/| /' conftest.$ac_ext >&5
  38924. - ac_header_compiler=no
  38925. fi
  38926. +done
  38927. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38928. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  38929. -$as_echo "$ac_header_compiler" >&6; }
  38930. -# Is the header present?
  38931. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  38932. -$as_echo_n "checking $ac_header presence... " >&6; }
  38933. -cat >conftest.$ac_ext <<_ACEOF
  38934. -/* confdefs.h. */
  38935. -_ACEOF
  38936. -cat confdefs.h >>conftest.$ac_ext
  38937. -cat >>conftest.$ac_ext <<_ACEOF
  38938. -/* end confdefs.h. */
  38939. -#include <$ac_header>
  38940. +for ac_func in select strerror dup2 memset strrchr asprintf
  38941. +do :
  38942. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  38943. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  38944. +eval as_val=\$$as_ac_var
  38945. + if test "x$as_val" = x""yes; then :
  38946. + cat >>confdefs.h <<_ACEOF
  38947. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  38948. _ACEOF
  38949. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  38950. -case "(($ac_try" in
  38951. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38952. - *) ac_try_echo=$ac_try;;
  38953. -esac
  38954. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38955. -$as_echo "$ac_try_echo") >&5
  38956. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  38957. - ac_status=$?
  38958. - grep -v '^ *+' conftest.er1 >conftest.err
  38959. - rm -f conftest.er1
  38960. - cat conftest.err >&5
  38961. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38962. - (exit $ac_status); } >/dev/null && {
  38963. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  38964. - test ! -s conftest.err
  38965. - }; then
  38966. - ac_header_preproc=yes
  38967. -else
  38968. - $as_echo "$as_me: failed program was:" >&5
  38969. -sed 's/^/| /' conftest.$ac_ext >&5
  38970. - ac_header_preproc=no
  38971. fi
  38972. +done
  38973. -rm -f conftest.err conftest.$ac_ext
  38974. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  38975. -$as_echo "$ac_header_preproc" >&6; }
  38976. +ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  38977. +if test "x$ac_cv_type_mode_t" = x""yes; then :
  38978. -# So? What about this header?
  38979. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  38980. - yes:no: )
  38981. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  38982. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  38983. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  38984. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  38985. - ac_header_preproc=yes
  38986. - ;;
  38987. - no:yes:* )
  38988. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  38989. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  38990. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  38991. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  38992. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  38993. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  38994. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  38995. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  38996. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  38997. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  38998. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  38999. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  39000. - ( cat <<\_ASBOX
  39001. -## ---------------------------------------------- ##
  39002. -## Report this to mzqnrzba (at) 0pointer (dot) de ##
  39003. -## ---------------------------------------------- ##
  39004. -_ASBOX
  39005. - ) | sed "s/^/$as_me: WARNING: /" >&2
  39006. - ;;
  39007. -esac
  39008. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  39009. -$as_echo_n "checking for $ac_header... " >&6; }
  39010. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39011. - $as_echo_n "(cached) " >&6
  39012. else
  39013. - eval "$as_ac_Header=\$ac_header_preproc"
  39014. -fi
  39015. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  39016. - $as_echo "$as_val"'`
  39017. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  39018. -$as_echo "$ac_res" >&6; }
  39019. +
  39020. +cat >>confdefs.h <<_ACEOF
  39021. +#define mode_t int
  39022. +_ACEOF
  39023. fi
  39024. -if test `eval 'as_val=${'$as_ac_Header'}
  39025. - $as_echo "$as_val"'` = yes; then
  39026. - cat >>confdefs.h <<_ACEOF
  39027. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  39028. +
  39029. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
  39030. +$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
  39031. +if test "${ac_cv_func_setpgrp_void+set}" = set; then :
  39032. + $as_echo_n "(cached) " >&6
  39033. +else
  39034. + if test "$cross_compiling" = yes; then :
  39035. + as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
  39036. +else
  39037. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39038. +/* end confdefs.h. */
  39039. +$ac_includes_default
  39040. +int
  39041. +main ()
  39042. +{
  39043. +/* If this system has a BSD-style setpgrp which takes arguments,
  39044. + setpgrp(1, 1) will fail with ESRCH and return -1, in that case
  39045. + exit successfully. */
  39046. + return setpgrp (1,1) != -1;
  39047. + ;
  39048. + return 0;
  39049. +}
  39050. _ACEOF
  39051. +if ac_fn_c_try_run "$LINENO"; then :
  39052. + ac_cv_func_setpgrp_void=no
  39053. +else
  39054. + ac_cv_func_setpgrp_void=yes
  39055. +fi
  39056. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  39057. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  39058. +fi
  39059. fi
  39060. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
  39061. +$as_echo "$ac_cv_func_setpgrp_void" >&6; }
  39062. +if test $ac_cv_func_setpgrp_void = yes; then
  39063. -done
  39064. +$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
  39065. -{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  39066. -$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  39067. -if test "${ac_cv_header_sys_wait_h+set}" = set; then
  39068. +fi
  39069. +
  39070. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  39071. +$as_echo_n "checking return type of signal handlers... " >&6; }
  39072. +if test "${ac_cv_type_signal+set}" = set; then :
  39073. $as_echo_n "(cached) " >&6
  39074. else
  39075. - cat >conftest.$ac_ext <<_ACEOF
  39076. -/* confdefs.h. */
  39077. -_ACEOF
  39078. -cat confdefs.h >>conftest.$ac_ext
  39079. -cat >>conftest.$ac_ext <<_ACEOF
  39080. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39081. /* end confdefs.h. */
  39082. #include <sys/types.h>
  39083. -#include <sys/wait.h>
  39084. -#ifndef WEXITSTATUS
  39085. -# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  39086. -#endif
  39087. -#ifndef WIFEXITED
  39088. -# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  39089. -#endif
  39090. +#include <signal.h>
  39091. int
  39092. main ()
  39093. {
  39094. - int s;
  39095. - wait (&s);
  39096. - s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  39097. +return *(signal (0, 0)) (0) == 1;
  39098. ;
  39099. return 0;
  39100. }
  39101. _ACEOF
  39102. -rm -f conftest.$ac_objext
  39103. -if { (ac_try="$ac_compile"
  39104. -case "(($ac_try" in
  39105. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39106. - *) ac_try_echo=$ac_try;;
  39107. -esac
  39108. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39109. -$as_echo "$ac_try_echo") >&5
  39110. - (eval "$ac_compile") 2>conftest.er1
  39111. - ac_status=$?
  39112. - grep -v '^ *+' conftest.er1 >conftest.err
  39113. - rm -f conftest.er1
  39114. - cat conftest.err >&5
  39115. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39116. - (exit $ac_status); } && {
  39117. - test -z "$ac_c_werror_flag" ||
  39118. - test ! -s conftest.err
  39119. - } && test -s conftest.$ac_objext; then
  39120. - ac_cv_header_sys_wait_h=yes
  39121. +if ac_fn_c_try_compile "$LINENO"; then :
  39122. + ac_cv_type_signal=int
  39123. else
  39124. - $as_echo "$as_me: failed program was:" >&5
  39125. -sed 's/^/| /' conftest.$ac_ext >&5
  39126. -
  39127. - ac_cv_header_sys_wait_h=no
  39128. + ac_cv_type_signal=void
  39129. fi
  39130. -
  39131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39132. fi
  39133. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  39134. -$as_echo "$ac_cv_header_sys_wait_h" >&6; }
  39135. -if test $ac_cv_header_sys_wait_h = yes; then
  39136. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  39137. +$as_echo "$ac_cv_type_signal" >&6; }
  39138. +
  39139. +cat >>confdefs.h <<_ACEOF
  39140. +#define RETSIGTYPE $ac_cv_type_signal
  39141. +_ACEOF
  39142. +
  39143. -cat >>confdefs.h <<\_ACEOF
  39144. -#define HAVE_SYS_WAIT_H 1
  39145. +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  39146. +if test "x$ac_cv_type_size_t" = x""yes; then :
  39147. +
  39148. +else
  39149. +
  39150. +cat >>confdefs.h <<_ACEOF
  39151. +#define size_t unsigned int
  39152. _ACEOF
  39153. fi
  39154. -# Checks for typedefs, structures, and compiler characteristics.
  39155. -{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  39156. -$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  39157. -if test "${ac_cv_c_const+set}" = set; then
  39158. +# Check whether --enable-largefile was given.
  39159. +if test "${enable_largefile+set}" = set; then :
  39160. + enableval=$enable_largefile;
  39161. +fi
  39162. +
  39163. +if test "$enable_largefile" != no; then
  39164. +
  39165. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  39166. +$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  39167. +if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  39168. $as_echo_n "(cached) " >&6
  39169. else
  39170. - cat >conftest.$ac_ext <<_ACEOF
  39171. -/* confdefs.h. */
  39172. -_ACEOF
  39173. -cat confdefs.h >>conftest.$ac_ext
  39174. -cat >>conftest.$ac_ext <<_ACEOF
  39175. + ac_cv_sys_largefile_CC=no
  39176. + if test "$GCC" != yes; then
  39177. + ac_save_CC=$CC
  39178. + while :; do
  39179. + # IRIX 6.2 and later do not support large files by default,
  39180. + # so use the C compiler's -n32 option if that helps.
  39181. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39182. /* end confdefs.h. */
  39183. -
  39184. +#include <sys/types.h>
  39185. + /* Check that off_t can represent 2**63 - 1 correctly.
  39186. + We can't simply define LARGE_OFF_T to be 9223372036854775807,
  39187. + since some C++ compilers masquerading as C compilers
  39188. + incorrectly reject 9223372036854775807. */
  39189. +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  39190. + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  39191. + && LARGE_OFF_T % 2147483647 == 1)
  39192. + ? 1 : -1];
  39193. int
  39194. main ()
  39195. {
  39196. -/* FIXME: Include the comments suggested by Paul. */
  39197. -#ifndef __cplusplus
  39198. - /* Ultrix mips cc rejects this. */
  39199. - typedef int charset[2];
  39200. - const charset cs;
  39201. - /* SunOS 4.1.1 cc rejects this. */
  39202. - char const *const *pcpcc;
  39203. - char **ppc;
  39204. - /* NEC SVR4.0.2 mips cc rejects this. */
  39205. - struct point {int x, y;};
  39206. - static struct point const zero = {0,0};
  39207. - /* AIX XL C 1.02.0.0 rejects this.
  39208. - It does not let you subtract one const X* pointer from another in
  39209. - an arm of an if-expression whose if-part is not a constant
  39210. - expression */
  39211. - const char *g = "string";
  39212. - pcpcc = &g + (g ? g-g : 0);
  39213. - /* HPUX 7.0 cc rejects these. */
  39214. - ++pcpcc;
  39215. - ppc = (char**) pcpcc;
  39216. - pcpcc = (char const *const *) ppc;
  39217. - { /* SCO 3.2v4 cc rejects this. */
  39218. - char *t;
  39219. - char const *s = 0 ? (char *) 0 : (char const *) 0;
  39220. -
  39221. - *t++ = 0;
  39222. - if (s) return 0;
  39223. - }
  39224. - { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  39225. - int x[] = {25, 17};
  39226. - const int *foo = &x[0];
  39227. - ++foo;
  39228. - }
  39229. - { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  39230. - typedef const int *iptr;
  39231. - iptr p = 0;
  39232. - ++p;
  39233. - }
  39234. - { /* AIX XL C 1.02.0.0 rejects this saying
  39235. - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  39236. - struct s { int j; const int *ap[3]; };
  39237. - struct s *b; b->j = 5;
  39238. - }
  39239. - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  39240. - const int foo = 10;
  39241. - if (!foo) return 0;
  39242. - }
  39243. - return !cs[0] && !zero.x;
  39244. -#endif
  39245. ;
  39246. return 0;
  39247. }
  39248. _ACEOF
  39249. -rm -f conftest.$ac_objext
  39250. -if { (ac_try="$ac_compile"
  39251. -case "(($ac_try" in
  39252. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39253. - *) ac_try_echo=$ac_try;;
  39254. -esac
  39255. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39256. -$as_echo "$ac_try_echo") >&5
  39257. - (eval "$ac_compile") 2>conftest.er1
  39258. - ac_status=$?
  39259. - grep -v '^ *+' conftest.er1 >conftest.err
  39260. - rm -f conftest.er1
  39261. - cat conftest.err >&5
  39262. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39263. - (exit $ac_status); } && {
  39264. - test -z "$ac_c_werror_flag" ||
  39265. - test ! -s conftest.err
  39266. - } && test -s conftest.$ac_objext; then
  39267. - ac_cv_c_const=yes
  39268. -else
  39269. - $as_echo "$as_me: failed program was:" >&5
  39270. -sed 's/^/| /' conftest.$ac_ext >&5
  39271. -
  39272. - ac_cv_c_const=no
  39273. + if ac_fn_c_try_compile "$LINENO"; then :
  39274. + break
  39275. fi
  39276. -
  39277. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39278. +rm -f core conftest.err conftest.$ac_objext
  39279. + CC="$CC -n32"
  39280. + if ac_fn_c_try_compile "$LINENO"; then :
  39281. + ac_cv_sys_largefile_CC=' -n32'; break
  39282. fi
  39283. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  39284. -$as_echo "$ac_cv_c_const" >&6; }
  39285. -if test $ac_cv_c_const = no; then
  39286. -
  39287. -cat >>confdefs.h <<\_ACEOF
  39288. -#define const /**/
  39289. -_ACEOF
  39290. -
  39291. +rm -f core conftest.err conftest.$ac_objext
  39292. + break
  39293. + done
  39294. + CC=$ac_save_CC
  39295. + rm -f conftest.$ac_ext
  39296. + fi
  39297. fi
  39298. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  39299. +$as_echo "$ac_cv_sys_largefile_CC" >&6; }
  39300. + if test "$ac_cv_sys_largefile_CC" != no; then
  39301. + CC=$CC$ac_cv_sys_largefile_CC
  39302. + fi
  39303. -{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
  39304. -$as_echo_n "checking for pid_t... " >&6; }
  39305. -if test "${ac_cv_type_pid_t+set}" = set; then
  39306. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  39307. +$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  39308. +if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  39309. $as_echo_n "(cached) " >&6
  39310. else
  39311. - ac_cv_type_pid_t=no
  39312. -cat >conftest.$ac_ext <<_ACEOF
  39313. -/* confdefs.h. */
  39314. -_ACEOF
  39315. -cat confdefs.h >>conftest.$ac_ext
  39316. -cat >>conftest.$ac_ext <<_ACEOF
  39317. + while :; do
  39318. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39319. /* end confdefs.h. */
  39320. -$ac_includes_default
  39321. +#include <sys/types.h>
  39322. + /* Check that off_t can represent 2**63 - 1 correctly.
  39323. + We can't simply define LARGE_OFF_T to be 9223372036854775807,
  39324. + since some C++ compilers masquerading as C compilers
  39325. + incorrectly reject 9223372036854775807. */
  39326. +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  39327. + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  39328. + && LARGE_OFF_T % 2147483647 == 1)
  39329. + ? 1 : -1];
  39330. int
  39331. main ()
  39332. {
  39333. -if (sizeof (pid_t))
  39334. - return 0;
  39335. +
  39336. ;
  39337. return 0;
  39338. }
  39339. _ACEOF
  39340. -rm -f conftest.$ac_objext
  39341. -if { (ac_try="$ac_compile"
  39342. -case "(($ac_try" in
  39343. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39344. - *) ac_try_echo=$ac_try;;
  39345. -esac
  39346. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39347. -$as_echo "$ac_try_echo") >&5
  39348. - (eval "$ac_compile") 2>conftest.er1
  39349. - ac_status=$?
  39350. - grep -v '^ *+' conftest.er1 >conftest.err
  39351. - rm -f conftest.er1
  39352. - cat conftest.err >&5
  39353. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39354. - (exit $ac_status); } && {
  39355. - test -z "$ac_c_werror_flag" ||
  39356. - test ! -s conftest.err
  39357. - } && test -s conftest.$ac_objext; then
  39358. - cat >conftest.$ac_ext <<_ACEOF
  39359. -/* confdefs.h. */
  39360. -_ACEOF
  39361. -cat confdefs.h >>conftest.$ac_ext
  39362. -cat >>conftest.$ac_ext <<_ACEOF
  39363. +if ac_fn_c_try_compile "$LINENO"; then :
  39364. + ac_cv_sys_file_offset_bits=no; break
  39365. +fi
  39366. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39367. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39368. /* end confdefs.h. */
  39369. -$ac_includes_default
  39370. +#define _FILE_OFFSET_BITS 64
  39371. +#include <sys/types.h>
  39372. + /* Check that off_t can represent 2**63 - 1 correctly.
  39373. + We can't simply define LARGE_OFF_T to be 9223372036854775807,
  39374. + since some C++ compilers masquerading as C compilers
  39375. + incorrectly reject 9223372036854775807. */
  39376. +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  39377. + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  39378. + && LARGE_OFF_T % 2147483647 == 1)
  39379. + ? 1 : -1];
  39380. int
  39381. main ()
  39382. {
  39383. -if (sizeof ((pid_t)))
  39384. - return 0;
  39385. +
  39386. ;
  39387. return 0;
  39388. }
  39389. _ACEOF
  39390. -rm -f conftest.$ac_objext
  39391. -if { (ac_try="$ac_compile"
  39392. -case "(($ac_try" in
  39393. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39394. - *) ac_try_echo=$ac_try;;
  39395. -esac
  39396. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39397. -$as_echo "$ac_try_echo") >&5
  39398. - (eval "$ac_compile") 2>conftest.er1
  39399. - ac_status=$?
  39400. - grep -v '^ *+' conftest.er1 >conftest.err
  39401. - rm -f conftest.er1
  39402. - cat conftest.err >&5
  39403. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39404. - (exit $ac_status); } && {
  39405. - test -z "$ac_c_werror_flag" ||
  39406. - test ! -s conftest.err
  39407. - } && test -s conftest.$ac_objext; then
  39408. - :
  39409. -else
  39410. - $as_echo "$as_me: failed program was:" >&5
  39411. -sed 's/^/| /' conftest.$ac_ext >&5
  39412. -
  39413. - ac_cv_type_pid_t=yes
  39414. -fi
  39415. -
  39416. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39417. -else
  39418. - $as_echo "$as_me: failed program was:" >&5
  39419. -sed 's/^/| /' conftest.$ac_ext >&5
  39420. -
  39421. -
  39422. +if ac_fn_c_try_compile "$LINENO"; then :
  39423. + ac_cv_sys_file_offset_bits=64; break
  39424. fi
  39425. -
  39426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39427. + ac_cv_sys_file_offset_bits=unknown
  39428. + break
  39429. +done
  39430. fi
  39431. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  39432. -$as_echo "$ac_cv_type_pid_t" >&6; }
  39433. -if test $ac_cv_type_pid_t = yes; then
  39434. - :
  39435. -else
  39436. -
  39437. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  39438. +$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  39439. +case $ac_cv_sys_file_offset_bits in #(
  39440. + no | unknown) ;;
  39441. + *)
  39442. cat >>confdefs.h <<_ACEOF
  39443. -#define pid_t int
  39444. +#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  39445. _ACEOF
  39446. -
  39447. -fi
  39448. -
  39449. -{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  39450. -$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  39451. -if test "${ac_cv_header_time+set}" = set; then
  39452. +;;
  39453. +esac
  39454. +rm -rf conftest*
  39455. + if test $ac_cv_sys_file_offset_bits = unknown; then
  39456. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  39457. +$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  39458. +if test "${ac_cv_sys_large_files+set}" = set; then :
  39459. $as_echo_n "(cached) " >&6
  39460. else
  39461. - cat >conftest.$ac_ext <<_ACEOF
  39462. -/* confdefs.h. */
  39463. -_ACEOF
  39464. -cat confdefs.h >>conftest.$ac_ext
  39465. -cat >>conftest.$ac_ext <<_ACEOF
  39466. + while :; do
  39467. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39468. /* end confdefs.h. */
  39469. #include <sys/types.h>
  39470. -#include <sys/time.h>
  39471. -#include <time.h>
  39472. -
  39473. + /* Check that off_t can represent 2**63 - 1 correctly.
  39474. + We can't simply define LARGE_OFF_T to be 9223372036854775807,
  39475. + since some C++ compilers masquerading as C compilers
  39476. + incorrectly reject 9223372036854775807. */
  39477. +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  39478. + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  39479. + && LARGE_OFF_T % 2147483647 == 1)
  39480. + ? 1 : -1];
  39481. int
  39482. main ()
  39483. -{
  39484. -if ((struct tm *) 0)
  39485. -return 0;
  39486. +{
  39487. +
  39488. ;
  39489. return 0;
  39490. }
  39491. _ACEOF
  39492. -rm -f conftest.$ac_objext
  39493. -if { (ac_try="$ac_compile"
  39494. -case "(($ac_try" in
  39495. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39496. - *) ac_try_echo=$ac_try;;
  39497. -esac
  39498. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39499. -$as_echo "$ac_try_echo") >&5
  39500. - (eval "$ac_compile") 2>conftest.er1
  39501. - ac_status=$?
  39502. - grep -v '^ *+' conftest.er1 >conftest.err
  39503. - rm -f conftest.er1
  39504. - cat conftest.err >&5
  39505. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39506. - (exit $ac_status); } && {
  39507. - test -z "$ac_c_werror_flag" ||
  39508. - test ! -s conftest.err
  39509. - } && test -s conftest.$ac_objext; then
  39510. - ac_cv_header_time=yes
  39511. -else
  39512. - $as_echo "$as_me: failed program was:" >&5
  39513. -sed 's/^/| /' conftest.$ac_ext >&5
  39514. -
  39515. - ac_cv_header_time=no
  39516. +if ac_fn_c_try_compile "$LINENO"; then :
  39517. + ac_cv_sys_large_files=no; break
  39518. fi
  39519. -
  39520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39521. -fi
  39522. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  39523. -$as_echo "$ac_cv_header_time" >&6; }
  39524. -if test $ac_cv_header_time = yes; then
  39525. -
  39526. -cat >>confdefs.h <<\_ACEOF
  39527. -#define TIME_WITH_SYS_TIME 1
  39528. -_ACEOF
  39529. -
  39530. -fi
  39531. -
  39532. -{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
  39533. -$as_echo_n "checking for working volatile... " >&6; }
  39534. -if test "${ac_cv_c_volatile+set}" = set; then
  39535. - $as_echo_n "(cached) " >&6
  39536. -else
  39537. - cat >conftest.$ac_ext <<_ACEOF
  39538. -/* confdefs.h. */
  39539. -_ACEOF
  39540. -cat confdefs.h >>conftest.$ac_ext
  39541. -cat >>conftest.$ac_ext <<_ACEOF
  39542. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39543. /* end confdefs.h. */
  39544. -
  39545. +#define _LARGE_FILES 1
  39546. +#include <sys/types.h>
  39547. + /* Check that off_t can represent 2**63 - 1 correctly.
  39548. + We can't simply define LARGE_OFF_T to be 9223372036854775807,
  39549. + since some C++ compilers masquerading as C compilers
  39550. + incorrectly reject 9223372036854775807. */
  39551. +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  39552. + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  39553. + && LARGE_OFF_T % 2147483647 == 1)
  39554. + ? 1 : -1];
  39555. int
  39556. main ()
  39557. {
  39558. -volatile int x;
  39559. -int * volatile y = (int *) 0;
  39560. -return !x && !y;
  39561. ;
  39562. return 0;
  39563. }
  39564. _ACEOF
  39565. -rm -f conftest.$ac_objext
  39566. -if { (ac_try="$ac_compile"
  39567. -case "(($ac_try" in
  39568. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39569. - *) ac_try_echo=$ac_try;;
  39570. -esac
  39571. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39572. -$as_echo "$ac_try_echo") >&5
  39573. - (eval "$ac_compile") 2>conftest.er1
  39574. - ac_status=$?
  39575. - grep -v '^ *+' conftest.er1 >conftest.err
  39576. - rm -f conftest.er1
  39577. - cat conftest.err >&5
  39578. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39579. - (exit $ac_status); } && {
  39580. - test -z "$ac_c_werror_flag" ||
  39581. - test ! -s conftest.err
  39582. - } && test -s conftest.$ac_objext; then
  39583. - ac_cv_c_volatile=yes
  39584. -else
  39585. - $as_echo "$as_me: failed program was:" >&5
  39586. -sed 's/^/| /' conftest.$ac_ext >&5
  39587. -
  39588. - ac_cv_c_volatile=no
  39589. +if ac_fn_c_try_compile "$LINENO"; then :
  39590. + ac_cv_sys_large_files=1; break
  39591. fi
  39592. -
  39593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39594. + ac_cv_sys_large_files=unknown
  39595. + break
  39596. +done
  39597. fi
  39598. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  39599. -$as_echo "$ac_cv_c_volatile" >&6; }
  39600. -if test $ac_cv_c_volatile = no; then
  39601. -
  39602. -cat >>confdefs.h <<\_ACEOF
  39603. -#define volatile /**/
  39604. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  39605. +$as_echo "$ac_cv_sys_large_files" >&6; }
  39606. +case $ac_cv_sys_large_files in #(
  39607. + no | unknown) ;;
  39608. + *)
  39609. +cat >>confdefs.h <<_ACEOF
  39610. +#define _LARGE_FILES $ac_cv_sys_large_files
  39611. _ACEOF
  39612. -
  39613. +;;
  39614. +esac
  39615. +rm -rf conftest*
  39616. + fi
  39617. fi
  39618. -# Checks for library functions.
  39619. -
  39620. -for ac_header in vfork.h
  39621. -do
  39622. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  39623. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39624. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  39625. -$as_echo_n "checking for $ac_header... " >&6; }
  39626. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39627. - $as_echo_n "(cached) " >&6
  39628. -fi
  39629. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  39630. - $as_echo "$as_val"'`
  39631. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  39632. -$as_echo "$ac_res" >&6; }
  39633. -else
  39634. - # Is the header compilable?
  39635. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  39636. -$as_echo_n "checking $ac_header usability... " >&6; }
  39637. -cat >conftest.$ac_ext <<_ACEOF
  39638. -/* confdefs.h. */
  39639. -_ACEOF
  39640. -cat confdefs.h >>conftest.$ac_ext
  39641. -cat >>conftest.$ac_ext <<_ACEOF
  39642. -/* end confdefs.h. */
  39643. -$ac_includes_default
  39644. -#include <$ac_header>
  39645. -_ACEOF
  39646. -rm -f conftest.$ac_objext
  39647. -if { (ac_try="$ac_compile"
  39648. -case "(($ac_try" in
  39649. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39650. - *) ac_try_echo=$ac_try;;
  39651. +# LYNX documentation generation
  39652. +# Check whether --enable-lynx was given.
  39653. +if test "${enable_lynx+set}" = set; then :
  39654. + enableval=$enable_lynx; case "${enableval}" in
  39655. + yes) lynx=yes ;;
  39656. + no) lynx=no ;;
  39657. + *) as_fn_error "bad value ${enableval} for --disable-lynx" "$LINENO" 5 ;;
  39658. esac
  39659. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39660. -$as_echo "$ac_try_echo") >&5
  39661. - (eval "$ac_compile") 2>conftest.er1
  39662. - ac_status=$?
  39663. - grep -v '^ *+' conftest.er1 >conftest.err
  39664. - rm -f conftest.er1
  39665. - cat conftest.err >&5
  39666. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39667. - (exit $ac_status); } && {
  39668. - test -z "$ac_c_werror_flag" ||
  39669. - test ! -s conftest.err
  39670. - } && test -s conftest.$ac_objext; then
  39671. - ac_header_compiler=yes
  39672. else
  39673. - $as_echo "$as_me: failed program was:" >&5
  39674. -sed 's/^/| /' conftest.$ac_ext >&5
  39675. -
  39676. - ac_header_compiler=no
  39677. + lynx=yes
  39678. fi
  39679. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39680. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  39681. -$as_echo "$ac_header_compiler" >&6; }
  39682. -# Is the header present?
  39683. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  39684. -$as_echo_n "checking $ac_header presence... " >&6; }
  39685. -cat >conftest.$ac_ext <<_ACEOF
  39686. -/* confdefs.h. */
  39687. -_ACEOF
  39688. -cat confdefs.h >>conftest.$ac_ext
  39689. -cat >>conftest.$ac_ext <<_ACEOF
  39690. -/* end confdefs.h. */
  39691. -#include <$ac_header>
  39692. -_ACEOF
  39693. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  39694. -case "(($ac_try" in
  39695. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39696. - *) ac_try_echo=$ac_try;;
  39697. -esac
  39698. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39699. -$as_echo "$ac_try_echo") >&5
  39700. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  39701. - ac_status=$?
  39702. - grep -v '^ *+' conftest.er1 >conftest.err
  39703. - rm -f conftest.er1
  39704. - cat conftest.err >&5
  39705. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39706. - (exit $ac_status); } >/dev/null && {
  39707. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  39708. - test ! -s conftest.err
  39709. - }; then
  39710. - ac_header_preproc=yes
  39711. +if test x$lynx = xyes ; then
  39712. + # Extract the first word of "lynx", so it can be a program name with args.
  39713. +set dummy lynx; ac_word=$2
  39714. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  39715. +$as_echo_n "checking for $ac_word... " >&6; }
  39716. +if test "${ac_cv_prog_have_lynx+set}" = set; then :
  39717. + $as_echo_n "(cached) " >&6
  39718. else
  39719. - $as_echo "$as_me: failed program was:" >&5
  39720. -sed 's/^/| /' conftest.$ac_ext >&5
  39721. + if test -n "$have_lynx"; then
  39722. + ac_cv_prog_have_lynx="$have_lynx" # Let the user override the test.
  39723. +else
  39724. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  39725. +for as_dir in $PATH
  39726. +do
  39727. + IFS=$as_save_IFS
  39728. + test -z "$as_dir" && as_dir=.
  39729. + for ac_exec_ext in '' $ac_executable_extensions; do
  39730. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  39731. + ac_cv_prog_have_lynx="yes"
  39732. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  39733. + break 2
  39734. + fi
  39735. +done
  39736. + done
  39737. +IFS=$as_save_IFS
  39738. - ac_header_preproc=no
  39739. + test -z "$ac_cv_prog_have_lynx" && ac_cv_prog_have_lynx="no"
  39740. fi
  39741. -
  39742. -rm -f conftest.err conftest.$ac_ext
  39743. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  39744. -$as_echo "$ac_header_preproc" >&6; }
  39745. -
  39746. -# So? What about this header?
  39747. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  39748. - yes:no: )
  39749. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  39750. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  39751. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  39752. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  39753. - ac_header_preproc=yes
  39754. - ;;
  39755. - no:yes:* )
  39756. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  39757. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  39758. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  39759. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  39760. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  39761. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  39762. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  39763. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  39764. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  39765. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  39766. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  39767. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  39768. - ( cat <<\_ASBOX
  39769. -## ---------------------------------------------- ##
  39770. -## Report this to mzqnrzba (at) 0pointer (dot) de ##
  39771. -## ---------------------------------------------- ##
  39772. -_ASBOX
  39773. - ) | sed "s/^/$as_me: WARNING: /" >&2
  39774. - ;;
  39775. -esac
  39776. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  39777. -$as_echo_n "checking for $ac_header... " >&6; }
  39778. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39779. - $as_echo_n "(cached) " >&6
  39780. +fi
  39781. +have_lynx=$ac_cv_prog_have_lynx
  39782. +if test -n "$have_lynx"; then
  39783. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_lynx" >&5
  39784. +$as_echo "$have_lynx" >&6; }
  39785. else
  39786. - eval "$as_ac_Header=\$ac_header_preproc"
  39787. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39788. +$as_echo "no" >&6; }
  39789. fi
  39790. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  39791. - $as_echo "$as_val"'`
  39792. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  39793. -$as_echo "$ac_res" >&6; }
  39794. +
  39795. +
  39796. + if test x$have_lynx = xno ; then
  39797. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** lynx not found, plain text README will not be built ***" >&5
  39798. +$as_echo "$as_me: WARNING: *** lynx not found, plain text README will not be built ***" >&2;}
  39799. + fi
  39800. fi
  39801. -if test `eval 'as_val=${'$as_ac_Header'}
  39802. - $as_echo "$as_val"'` = yes; then
  39803. - cat >>confdefs.h <<_ACEOF
  39804. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  39805. -_ACEOF
  39806. + if test "x$lynx" = xyes; then
  39807. + USE_LYNX_TRUE=
  39808. + USE_LYNX_FALSE='#'
  39809. +else
  39810. + USE_LYNX_TRUE='#'
  39811. + USE_LYNX_FALSE=
  39812. fi
  39813. -done
  39814. +ac_config_files="$ac_config_files libdaemon/Makefile Makefile doc/Makefile doc/README.html doc/doxygen.conf examples/Makefile libdaemon.pc"
  39815. +cat >confcache <<\_ACEOF
  39816. +# This file is a shell script that caches the results of configure
  39817. +# tests run on this system so they can be shared between configure
  39818. +# scripts and configure runs, see configure's option --config-cache.
  39819. +# It is not useful on other systems. If it contains results you don't
  39820. +# want to keep, you may remove or edit it.
  39821. +#
  39822. +# config.status only pays attention to the cache file if you give it
  39823. +# the --recheck option to rerun configure.
  39824. +#
  39825. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  39826. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  39827. +# following values.
  39828. -for ac_func in fork vfork
  39829. -do
  39830. -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  39831. -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  39832. -$as_echo_n "checking for $ac_func... " >&6; }
  39833. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  39834. - $as_echo_n "(cached) " >&6
  39835. -else
  39836. - cat >conftest.$ac_ext <<_ACEOF
  39837. -/* confdefs.h. */
  39838. _ACEOF
  39839. -cat confdefs.h >>conftest.$ac_ext
  39840. -cat >>conftest.$ac_ext <<_ACEOF
  39841. -/* end confdefs.h. */
  39842. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  39843. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  39844. -#define $ac_func innocuous_$ac_func
  39845. -/* System header to define __stub macros and hopefully few prototypes,
  39846. - which can conflict with char $ac_func (); below.
  39847. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  39848. - <limits.h> exists even on freestanding compilers. */
  39849. +# The following way of writing the cache mishandles newlines in values,
  39850. +# but we know of no workaround that is simple, portable, and efficient.
  39851. +# So, we kill variables containing newlines.
  39852. +# Ultrix sh set writes to stderr and can't be redirected directly,
  39853. +# and sets the high bit in the cache file unless we assign to the vars.
  39854. +(
  39855. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  39856. + eval ac_val=\$$ac_var
  39857. + case $ac_val in #(
  39858. + *${as_nl}*)
  39859. + case $ac_var in #(
  39860. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  39861. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  39862. + esac
  39863. + case $ac_var in #(
  39864. + _ | IFS | as_nl) ;; #(
  39865. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  39866. + *) { eval $ac_var=; unset $ac_var;} ;;
  39867. + esac ;;
  39868. + esac
  39869. + done
  39870. +
  39871. + (set) 2>&1 |
  39872. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  39873. + *${as_nl}ac_space=\ *)
  39874. + # `set' does not quote correctly, so add quotes: double-quote
  39875. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  39876. + sed -n \
  39877. + "s/'/'\\\\''/g;
  39878. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  39879. + ;; #(
  39880. + *)
  39881. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  39882. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  39883. + ;;
  39884. + esac |
  39885. + sort
  39886. +) |
  39887. + sed '
  39888. + /^ac_cv_env_/b end
  39889. + t clear
  39890. + :clear
  39891. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  39892. + t end
  39893. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  39894. + :end' >>confcache
  39895. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  39896. + if test -w "$cache_file"; then
  39897. + test "x$cache_file" != "x/dev/null" &&
  39898. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  39899. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  39900. + cat confcache >$cache_file
  39901. + else
  39902. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  39903. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  39904. + fi
  39905. +fi
  39906. +rm -f confcache
  39907. +
  39908. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  39909. +# Let make expand exec_prefix.
  39910. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  39911. +
  39912. +DEFS=-DHAVE_CONFIG_H
  39913. -#ifdef __STDC__
  39914. -# include <limits.h>
  39915. -#else
  39916. -# include <assert.h>
  39917. -#endif
  39918. +ac_libobjs=
  39919. +ac_ltlibobjs=
  39920. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  39921. + # 1. Remove the extension, and $U if already installed.
  39922. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  39923. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  39924. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  39925. + # will be set to the directory where LIBOBJS objects are built.
  39926. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  39927. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  39928. +done
  39929. +LIBOBJS=$ac_libobjs
  39930. -#undef $ac_func
  39931. +LTLIBOBJS=$ac_ltlibobjs
  39932. -/* Override any GCC internal prototype to avoid an error.
  39933. - Use char because int might match the return type of a GCC
  39934. - builtin and then its argument prototype would still apply. */
  39935. -#ifdef __cplusplus
  39936. -extern "C"
  39937. -#endif
  39938. -char $ac_func ();
  39939. -/* The GNU C library defines this for functions which it implements
  39940. - to always fail with ENOSYS. Some functions are actually named
  39941. - something starting with __ and the normal name is an alias. */
  39942. -#if defined __stub_$ac_func || defined __stub___$ac_func
  39943. -choke me
  39944. -#endif
  39945. -int
  39946. -main ()
  39947. -{
  39948. -return $ac_func ();
  39949. - ;
  39950. - return 0;
  39951. -}
  39952. -_ACEOF
  39953. -rm -f conftest.$ac_objext conftest$ac_exeext
  39954. -if { (ac_try="$ac_link"
  39955. -case "(($ac_try" in
  39956. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39957. - *) ac_try_echo=$ac_try;;
  39958. -esac
  39959. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39960. -$as_echo "$ac_try_echo") >&5
  39961. - (eval "$ac_link") 2>conftest.er1
  39962. - ac_status=$?
  39963. - grep -v '^ *+' conftest.er1 >conftest.err
  39964. - rm -f conftest.er1
  39965. - cat conftest.err >&5
  39966. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39967. - (exit $ac_status); } && {
  39968. - test -z "$ac_c_werror_flag" ||
  39969. - test ! -s conftest.err
  39970. - } && test -s conftest$ac_exeext && {
  39971. - test "$cross_compiling" = yes ||
  39972. - $as_test_x conftest$ac_exeext
  39973. - }; then
  39974. - eval "$as_ac_var=yes"
  39975. + if test -n "$EXEEXT"; then
  39976. + am__EXEEXT_TRUE=
  39977. + am__EXEEXT_FALSE='#'
  39978. else
  39979. - $as_echo "$as_me: failed program was:" >&5
  39980. -sed 's/^/| /' conftest.$ac_ext >&5
  39981. -
  39982. - eval "$as_ac_var=no"
  39983. + am__EXEEXT_TRUE='#'
  39984. + am__EXEEXT_FALSE=
  39985. fi
  39986. -rm -rf conftest.dSYM
  39987. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  39988. - conftest$ac_exeext conftest.$ac_ext
  39989. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  39990. + as_fn_error "conditional \"AMDEP\" was never defined.
  39991. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  39992. fi
  39993. -ac_res=`eval 'as_val=${'$as_ac_var'}
  39994. - $as_echo "$as_val"'`
  39995. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  39996. -$as_echo "$ac_res" >&6; }
  39997. -if test `eval 'as_val=${'$as_ac_var'}
  39998. - $as_echo "$as_val"'` = yes; then
  39999. - cat >>confdefs.h <<_ACEOF
  40000. -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  40001. -_ACEOF
  40002. -
  40003. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  40004. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  40005. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  40006. +fi
  40007. +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  40008. + as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  40009. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  40010. +fi
  40011. +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  40012. + as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  40013. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  40014. +fi
  40015. +if test -z "${USE_LYNX_TRUE}" && test -z "${USE_LYNX_FALSE}"; then
  40016. + as_fn_error "conditional \"USE_LYNX\" was never defined.
  40017. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  40018. fi
  40019. -done
  40020. -if test "x$ac_cv_func_fork" = xyes; then
  40021. - { $as_echo "$as_me:$LINENO: checking for working fork" >&5
  40022. -$as_echo_n "checking for working fork... " >&6; }
  40023. -if test "${ac_cv_func_fork_works+set}" = set; then
  40024. - $as_echo_n "(cached) " >&6
  40025. -else
  40026. - if test "$cross_compiling" = yes; then
  40027. - ac_cv_func_fork_works=cross
  40028. -else
  40029. - cat >conftest.$ac_ext <<_ACEOF
  40030. -/* confdefs.h. */
  40031. -_ACEOF
  40032. -cat confdefs.h >>conftest.$ac_ext
  40033. -cat >>conftest.$ac_ext <<_ACEOF
  40034. -/* end confdefs.h. */
  40035. -$ac_includes_default
  40036. -int
  40037. -main ()
  40038. -{
  40039. +: ${CONFIG_STATUS=./config.status}
  40040. +ac_write_fail=0
  40041. +ac_clean_files_save=$ac_clean_files
  40042. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  40043. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  40044. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  40045. +as_write_fail=0
  40046. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  40047. +#! $SHELL
  40048. +# Generated by $as_me.
  40049. +# Run this file to recreate the current configuration.
  40050. +# Compiler output produced by configure, useful for debugging
  40051. +# configure, is in config.log if it exists.
  40052. - /* By Ruediger Kuhlmann. */
  40053. - return fork () < 0;
  40054. +debug=false
  40055. +ac_cs_recheck=false
  40056. +ac_cs_silent=false
  40057. - ;
  40058. - return 0;
  40059. -}
  40060. -_ACEOF
  40061. -rm -f conftest$ac_exeext
  40062. -if { (ac_try="$ac_link"
  40063. -case "(($ac_try" in
  40064. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40065. - *) ac_try_echo=$ac_try;;
  40066. -esac
  40067. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40068. -$as_echo "$ac_try_echo") >&5
  40069. - (eval "$ac_link") 2>&5
  40070. - ac_status=$?
  40071. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40072. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  40073. - { (case "(($ac_try" in
  40074. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40075. - *) ac_try_echo=$ac_try;;
  40076. -esac
  40077. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40078. -$as_echo "$ac_try_echo") >&5
  40079. - (eval "$ac_try") 2>&5
  40080. - ac_status=$?
  40081. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40082. - (exit $ac_status); }; }; then
  40083. - ac_cv_func_fork_works=yes
  40084. +SHELL=\${CONFIG_SHELL-$SHELL}
  40085. +export SHELL
  40086. +_ASEOF
  40087. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  40088. +## -------------------- ##
  40089. +## M4sh Initialization. ##
  40090. +## -------------------- ##
  40091. +
  40092. +# Be more Bourne compatible
  40093. +DUALCASE=1; export DUALCASE # for MKS sh
  40094. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  40095. + emulate sh
  40096. + NULLCMD=:
  40097. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  40098. + # is contrary to our usage. Disable this feature.
  40099. + alias -g '${1+"$@"}'='"$@"'
  40100. + setopt NO_GLOB_SUBST
  40101. else
  40102. - $as_echo "$as_me: program exited with status $ac_status" >&5
  40103. -$as_echo "$as_me: failed program was:" >&5
  40104. -sed 's/^/| /' conftest.$ac_ext >&5
  40105. + case `(set -o) 2>/dev/null` in #(
  40106. + *posix*) :
  40107. + set -o posix ;; #(
  40108. + *) :
  40109. + ;;
  40110. +esac
  40111. +fi
  40112. -( exit $ac_status )
  40113. -ac_cv_func_fork_works=no
  40114. +
  40115. +as_nl='
  40116. +'
  40117. +export as_nl
  40118. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  40119. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40120. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  40121. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40122. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  40123. +# but without wasting forks for bash or zsh.
  40124. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  40125. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  40126. + as_echo='print -r --'
  40127. + as_echo_n='print -rn --'
  40128. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  40129. + as_echo='printf %s\n'
  40130. + as_echo_n='printf %s'
  40131. +else
  40132. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  40133. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  40134. + as_echo_n='/usr/ucb/echo -n'
  40135. + else
  40136. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  40137. + as_echo_n_body='eval
  40138. + arg=$1;
  40139. + case $arg in #(
  40140. + *"$as_nl"*)
  40141. + expr "X$arg" : "X\\(.*\\)$as_nl";
  40142. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  40143. + esac;
  40144. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  40145. + '
  40146. + export as_echo_n_body
  40147. + as_echo_n='sh -c $as_echo_n_body as_echo'
  40148. + fi
  40149. + export as_echo_body
  40150. + as_echo='sh -c $as_echo_body as_echo'
  40151. fi
  40152. -rm -rf conftest.dSYM
  40153. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  40154. +
  40155. +# The user is always right.
  40156. +if test "${PATH_SEPARATOR+set}" != set; then
  40157. + PATH_SEPARATOR=:
  40158. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  40159. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  40160. + PATH_SEPARATOR=';'
  40161. + }
  40162. fi
  40163. -fi
  40164. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  40165. -$as_echo "$ac_cv_func_fork_works" >&6; }
  40166. +# IFS
  40167. +# We need space, tab and new line, in precisely that order. Quoting is
  40168. +# there to prevent editors from complaining about space-tab.
  40169. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  40170. +# splitting by setting IFS to empty value.)
  40171. +IFS=" "" $as_nl"
  40172. -else
  40173. - ac_cv_func_fork_works=$ac_cv_func_fork
  40174. +# Find who we are. Look in the path if we contain no directory separator.
  40175. +case $0 in #((
  40176. + *[\\/]* ) as_myself=$0 ;;
  40177. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  40178. +for as_dir in $PATH
  40179. +do
  40180. + IFS=$as_save_IFS
  40181. + test -z "$as_dir" && as_dir=.
  40182. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  40183. + done
  40184. +IFS=$as_save_IFS
  40185. +
  40186. + ;;
  40187. +esac
  40188. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  40189. +# in which case we are not to be found in the path.
  40190. +if test "x$as_myself" = x; then
  40191. + as_myself=$0
  40192. fi
  40193. -if test "x$ac_cv_func_fork_works" = xcross; then
  40194. - case $host in
  40195. - *-*-amigaos* | *-*-msdosdjgpp*)
  40196. - # Override, as these systems have only a dummy fork() stub
  40197. - ac_cv_func_fork_works=no
  40198. - ;;
  40199. - *)
  40200. - ac_cv_func_fork_works=yes
  40201. - ;;
  40202. - esac
  40203. - { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  40204. -$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  40205. +if test ! -f "$as_myself"; then
  40206. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  40207. + exit 1
  40208. fi
  40209. -ac_cv_func_vfork_works=$ac_cv_func_vfork
  40210. -if test "x$ac_cv_func_vfork" = xyes; then
  40211. - { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
  40212. -$as_echo_n "checking for working vfork... " >&6; }
  40213. -if test "${ac_cv_func_vfork_works+set}" = set; then
  40214. - $as_echo_n "(cached) " >&6
  40215. -else
  40216. - if test "$cross_compiling" = yes; then
  40217. - ac_cv_func_vfork_works=cross
  40218. -else
  40219. - cat >conftest.$ac_ext <<_ACEOF
  40220. -/* confdefs.h. */
  40221. -_ACEOF
  40222. -cat confdefs.h >>conftest.$ac_ext
  40223. -cat >>conftest.$ac_ext <<_ACEOF
  40224. -/* end confdefs.h. */
  40225. -/* Thanks to Paul Eggert for this test. */
  40226. -$ac_includes_default
  40227. -#include <sys/wait.h>
  40228. -#ifdef HAVE_VFORK_H
  40229. -# include <vfork.h>
  40230. -#endif
  40231. -/* On some sparc systems, changes by the child to local and incoming
  40232. - argument registers are propagated back to the parent. The compiler
  40233. - is told about this with #include <vfork.h>, but some compilers
  40234. - (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  40235. - static variable whose address is put into a register that is
  40236. - clobbered by the vfork. */
  40237. -static void
  40238. -#ifdef __cplusplus
  40239. -sparc_address_test (int arg)
  40240. -# else
  40241. -sparc_address_test (arg) int arg;
  40242. -#endif
  40243. -{
  40244. - static pid_t child;
  40245. - if (!child) {
  40246. - child = vfork ();
  40247. - if (child < 0) {
  40248. - perror ("vfork");
  40249. - _exit(2);
  40250. - }
  40251. - if (!child) {
  40252. - arg = getpid();
  40253. - write(-1, "", 0);
  40254. - _exit (arg);
  40255. - }
  40256. - }
  40257. -}
  40258. -
  40259. -int
  40260. -main ()
  40261. -{
  40262. - pid_t parent = getpid ();
  40263. - pid_t child;
  40264. - sparc_address_test (0);
  40265. +# Unset variables that we do not need and which cause bugs (e.g. in
  40266. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  40267. +# suppresses any "Segmentation fault" message there. '((' could
  40268. +# trigger a bug in pdksh 5.2.14.
  40269. +for as_var in BASH_ENV ENV MAIL MAILPATH
  40270. +do eval test x\${$as_var+set} = xset \
  40271. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  40272. +done
  40273. +PS1='$ '
  40274. +PS2='> '
  40275. +PS4='+ '
  40276. - child = vfork ();
  40277. +# NLS nuisances.
  40278. +LC_ALL=C
  40279. +export LC_ALL
  40280. +LANGUAGE=C
  40281. +export LANGUAGE
  40282. - if (child == 0) {
  40283. - /* Here is another test for sparc vfork register problems. This
  40284. - test uses lots of local variables, at least as many local
  40285. - variables as main has allocated so far including compiler
  40286. - temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  40287. - 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  40288. - reuse the register of parent for one of the local variables,
  40289. - since it will think that parent can't possibly be used any more
  40290. - in this routine. Assigning to the local variable will thus
  40291. - munge parent in the parent process. */
  40292. - pid_t
  40293. - p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  40294. - p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  40295. - /* Convince the compiler that p..p7 are live; otherwise, it might
  40296. - use the same hardware register for all 8 local variables. */
  40297. - if (p != p1 || p != p2 || p != p3 || p != p4
  40298. - || p != p5 || p != p6 || p != p7)
  40299. - _exit(1);
  40300. +# CDPATH.
  40301. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  40302. - /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  40303. - from child file descriptors. If the child closes a descriptor
  40304. - before it execs or exits, this munges the parent's descriptor
  40305. - as well. Test for this by closing stdout in the child. */
  40306. - _exit(close(fileno(stdout)) != 0);
  40307. - } else {
  40308. - int status;
  40309. - struct stat st;
  40310. - while (wait(&status) != child)
  40311. - ;
  40312. - return (
  40313. - /* Was there some problem with vforking? */
  40314. - child < 0
  40315. +# as_fn_error ERROR [LINENO LOG_FD]
  40316. +# ---------------------------------
  40317. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  40318. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  40319. +# script with status $?, using 1 if that was 0.
  40320. +as_fn_error ()
  40321. +{
  40322. + as_status=$?; test $as_status -eq 0 && as_status=1
  40323. + if test "$3"; then
  40324. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  40325. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  40326. + fi
  40327. + $as_echo "$as_me: error: $1" >&2
  40328. + as_fn_exit $as_status
  40329. +} # as_fn_error
  40330. - /* Did the child fail? (This shouldn't happen.) */
  40331. - || status
  40332. - /* Did the vfork/compiler bug occur? */
  40333. - || parent != getpid()
  40334. +# as_fn_set_status STATUS
  40335. +# -----------------------
  40336. +# Set $? to STATUS, without forking.
  40337. +as_fn_set_status ()
  40338. +{
  40339. + return $1
  40340. +} # as_fn_set_status
  40341. - /* Did the file descriptor bug occur? */
  40342. - || fstat(fileno(stdout), &st) != 0
  40343. - );
  40344. - }
  40345. +# as_fn_exit STATUS
  40346. +# -----------------
  40347. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  40348. +as_fn_exit ()
  40349. +{
  40350. + set +e
  40351. + as_fn_set_status $1
  40352. + exit $1
  40353. +} # as_fn_exit
  40354. +
  40355. +# as_fn_unset VAR
  40356. +# ---------------
  40357. +# Portably unset VAR.
  40358. +as_fn_unset ()
  40359. +{
  40360. + { eval $1=; unset $1;}
  40361. }
  40362. -_ACEOF
  40363. -rm -f conftest$ac_exeext
  40364. -if { (ac_try="$ac_link"
  40365. -case "(($ac_try" in
  40366. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40367. - *) ac_try_echo=$ac_try;;
  40368. -esac
  40369. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40370. -$as_echo "$ac_try_echo") >&5
  40371. - (eval "$ac_link") 2>&5
  40372. - ac_status=$?
  40373. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40374. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  40375. - { (case "(($ac_try" in
  40376. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40377. - *) ac_try_echo=$ac_try;;
  40378. -esac
  40379. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40380. -$as_echo "$ac_try_echo") >&5
  40381. - (eval "$ac_try") 2>&5
  40382. - ac_status=$?
  40383. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40384. - (exit $ac_status); }; }; then
  40385. - ac_cv_func_vfork_works=yes
  40386. +as_unset=as_fn_unset
  40387. +# as_fn_append VAR VALUE
  40388. +# ----------------------
  40389. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  40390. +# advantage of any shell optimizations that allow amortized linear growth over
  40391. +# repeated appends, instead of the typical quadratic growth present in naive
  40392. +# implementations.
  40393. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  40394. + eval 'as_fn_append ()
  40395. + {
  40396. + eval $1+=\$2
  40397. + }'
  40398. else
  40399. - $as_echo "$as_me: program exited with status $ac_status" >&5
  40400. -$as_echo "$as_me: failed program was:" >&5
  40401. -sed 's/^/| /' conftest.$ac_ext >&5
  40402. + as_fn_append ()
  40403. + {
  40404. + eval $1=\$$1\$2
  40405. + }
  40406. +fi # as_fn_append
  40407. -( exit $ac_status )
  40408. -ac_cv_func_vfork_works=no
  40409. -fi
  40410. -rm -rf conftest.dSYM
  40411. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  40412. -fi
  40413. +# as_fn_arith ARG...
  40414. +# ------------------
  40415. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  40416. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  40417. +# must be portable across $(()) and expr.
  40418. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  40419. + eval 'as_fn_arith ()
  40420. + {
  40421. + as_val=$(( $* ))
  40422. + }'
  40423. +else
  40424. + as_fn_arith ()
  40425. + {
  40426. + as_val=`expr "$@" || test $? -eq 1`
  40427. + }
  40428. +fi # as_fn_arith
  40429. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  40430. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  40431. + as_expr=expr
  40432. +else
  40433. + as_expr=false
  40434. fi
  40435. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  40436. -$as_echo "$ac_cv_func_vfork_works" >&6; }
  40437. -fi;
  40438. -if test "x$ac_cv_func_fork_works" = xcross; then
  40439. - ac_cv_func_vfork_works=$ac_cv_func_vfork
  40440. - { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  40441. -$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  40442. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  40443. + as_basename=basename
  40444. +else
  40445. + as_basename=false
  40446. fi
  40447. -if test "x$ac_cv_func_vfork_works" = xyes; then
  40448. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  40449. + as_dirname=dirname
  40450. +else
  40451. + as_dirname=false
  40452. +fi
  40453. -cat >>confdefs.h <<\_ACEOF
  40454. -#define HAVE_WORKING_VFORK 1
  40455. -_ACEOF
  40456. +as_me=`$as_basename -- "$0" ||
  40457. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  40458. + X"$0" : 'X\(//\)$' \| \
  40459. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  40460. +$as_echo X/"$0" |
  40461. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  40462. + s//\1/
  40463. + q
  40464. + }
  40465. + /^X\/\(\/\/\)$/{
  40466. + s//\1/
  40467. + q
  40468. + }
  40469. + /^X\/\(\/\).*/{
  40470. + s//\1/
  40471. + q
  40472. + }
  40473. + s/.*/./; q'`
  40474. -else
  40475. +# Avoid depending upon Character Ranges.
  40476. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  40477. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  40478. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  40479. +as_cr_digits='0123456789'
  40480. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  40481. -cat >>confdefs.h <<\_ACEOF
  40482. -#define vfork fork
  40483. -_ACEOF
  40484. +ECHO_C= ECHO_N= ECHO_T=
  40485. +case `echo -n x` in #(((((
  40486. +-n*)
  40487. + case `echo 'xy\c'` in
  40488. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  40489. + xy) ECHO_C='\c';;
  40490. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  40491. + ECHO_T=' ';;
  40492. + esac;;
  40493. +*)
  40494. + ECHO_N='-n';;
  40495. +esac
  40496. +rm -f conf$$ conf$$.exe conf$$.file
  40497. +if test -d conf$$.dir; then
  40498. + rm -f conf$$.dir/conf$$.file
  40499. +else
  40500. + rm -f conf$$.dir
  40501. + mkdir conf$$.dir 2>/dev/null
  40502. fi
  40503. -if test "x$ac_cv_func_fork_works" = xyes; then
  40504. +if (echo >conf$$.file) 2>/dev/null; then
  40505. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  40506. + as_ln_s='ln -s'
  40507. + # ... but there are two gotchas:
  40508. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  40509. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  40510. + # In both cases, we have to default to `cp -p'.
  40511. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  40512. + as_ln_s='cp -p'
  40513. + elif ln conf$$.file conf$$ 2>/dev/null; then
  40514. + as_ln_s=ln
  40515. + else
  40516. + as_ln_s='cp -p'
  40517. + fi
  40518. +else
  40519. + as_ln_s='cp -p'
  40520. +fi
  40521. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  40522. +rmdir conf$$.dir 2>/dev/null
  40523. -cat >>confdefs.h <<\_ACEOF
  40524. -#define HAVE_WORKING_FORK 1
  40525. -_ACEOF
  40526. -fi
  40527. +# as_fn_mkdir_p
  40528. +# -------------
  40529. +# Create "$as_dir" as a directory, including parents if necessary.
  40530. +as_fn_mkdir_p ()
  40531. +{
  40532. + case $as_dir in #(
  40533. + -*) as_dir=./$as_dir;;
  40534. + esac
  40535. + test -d "$as_dir" || eval $as_mkdir_p || {
  40536. + as_dirs=
  40537. + while :; do
  40538. + case $as_dir in #(
  40539. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  40540. + *) as_qdir=$as_dir;;
  40541. + esac
  40542. + as_dirs="'$as_qdir' $as_dirs"
  40543. + as_dir=`$as_dirname -- "$as_dir" ||
  40544. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40545. + X"$as_dir" : 'X\(//\)[^/]' \| \
  40546. + X"$as_dir" : 'X\(//\)$' \| \
  40547. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  40548. +$as_echo X"$as_dir" |
  40549. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  40550. + s//\1/
  40551. + q
  40552. + }
  40553. + /^X\(\/\/\)[^/].*/{
  40554. + s//\1/
  40555. + q
  40556. + }
  40557. + /^X\(\/\/\)$/{
  40558. + s//\1/
  40559. + q
  40560. + }
  40561. + /^X\(\/\).*/{
  40562. + s//\1/
  40563. + q
  40564. + }
  40565. + s/.*/./; q'`
  40566. + test -d "$as_dir" && break
  40567. + done
  40568. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  40569. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  40570. -for ac_header in sys/select.h sys/socket.h
  40571. -do
  40572. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  40573. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  40574. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  40575. -$as_echo_n "checking for $ac_header... " >&6; }
  40576. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  40577. - $as_echo_n "(cached) " >&6
  40578. -fi
  40579. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  40580. - $as_echo "$as_val"'`
  40581. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  40582. -$as_echo "$ac_res" >&6; }
  40583. +} # as_fn_mkdir_p
  40584. +if mkdir -p . 2>/dev/null; then
  40585. + as_mkdir_p='mkdir -p "$as_dir"'
  40586. else
  40587. - # Is the header compilable?
  40588. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  40589. -$as_echo_n "checking $ac_header usability... " >&6; }
  40590. -cat >conftest.$ac_ext <<_ACEOF
  40591. -/* confdefs.h. */
  40592. -_ACEOF
  40593. -cat confdefs.h >>conftest.$ac_ext
  40594. -cat >>conftest.$ac_ext <<_ACEOF
  40595. -/* end confdefs.h. */
  40596. -$ac_includes_default
  40597. -#include <$ac_header>
  40598. -_ACEOF
  40599. -rm -f conftest.$ac_objext
  40600. -if { (ac_try="$ac_compile"
  40601. -case "(($ac_try" in
  40602. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40603. - *) ac_try_echo=$ac_try;;
  40604. -esac
  40605. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40606. -$as_echo "$ac_try_echo") >&5
  40607. - (eval "$ac_compile") 2>conftest.er1
  40608. - ac_status=$?
  40609. - grep -v '^ *+' conftest.er1 >conftest.err
  40610. - rm -f conftest.er1
  40611. - cat conftest.err >&5
  40612. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40613. - (exit $ac_status); } && {
  40614. - test -z "$ac_c_werror_flag" ||
  40615. - test ! -s conftest.err
  40616. - } && test -s conftest.$ac_objext; then
  40617. - ac_header_compiler=yes
  40618. + test -d ./-p && rmdir ./-p
  40619. + as_mkdir_p=false
  40620. +fi
  40621. +
  40622. +if test -x / >/dev/null 2>&1; then
  40623. + as_test_x='test -x'
  40624. else
  40625. - $as_echo "$as_me: failed program was:" >&5
  40626. -sed 's/^/| /' conftest.$ac_ext >&5
  40627. + if ls -dL / >/dev/null 2>&1; then
  40628. + as_ls_L_option=L
  40629. + else
  40630. + as_ls_L_option=
  40631. + fi
  40632. + as_test_x='
  40633. + eval sh -c '\''
  40634. + if test -d "$1"; then
  40635. + test -d "$1/.";
  40636. + else
  40637. + case $1 in #(
  40638. + -*)set "./$1";;
  40639. + esac;
  40640. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  40641. + ???[sx]*):;;*)false;;esac;fi
  40642. + '\'' sh
  40643. + '
  40644. +fi
  40645. +as_executable_p=$as_test_x
  40646. +
  40647. +# Sed expression to map a string onto a valid CPP name.
  40648. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  40649. +
  40650. +# Sed expression to map a string onto a valid variable name.
  40651. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  40652. +
  40653. +
  40654. +exec 6>&1
  40655. +## ----------------------------------- ##
  40656. +## Main body of $CONFIG_STATUS script. ##
  40657. +## ----------------------------------- ##
  40658. +_ASEOF
  40659. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  40660. +
  40661. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40662. +# Save the log message, to keep $0 and so on meaningful, and to
  40663. +# report actual input values of CONFIG_FILES etc. instead of their
  40664. +# values after options handling.
  40665. +ac_log="
  40666. +This file was extended by libdaemon $as_me 0.13, which was
  40667. +generated by GNU Autoconf 2.65. Invocation command line was
  40668. - ac_header_compiler=no
  40669. -fi
  40670. + CONFIG_FILES = $CONFIG_FILES
  40671. + CONFIG_HEADERS = $CONFIG_HEADERS
  40672. + CONFIG_LINKS = $CONFIG_LINKS
  40673. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  40674. + $ $0 $@
  40675. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40676. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  40677. -$as_echo "$ac_header_compiler" >&6; }
  40678. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  40679. +"
  40680. -# Is the header present?
  40681. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  40682. -$as_echo_n "checking $ac_header presence... " >&6; }
  40683. -cat >conftest.$ac_ext <<_ACEOF
  40684. -/* confdefs.h. */
  40685. _ACEOF
  40686. -cat confdefs.h >>conftest.$ac_ext
  40687. -cat >>conftest.$ac_ext <<_ACEOF
  40688. -/* end confdefs.h. */
  40689. -#include <$ac_header>
  40690. -_ACEOF
  40691. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  40692. -case "(($ac_try" in
  40693. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40694. - *) ac_try_echo=$ac_try;;
  40695. -esac
  40696. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40697. -$as_echo "$ac_try_echo") >&5
  40698. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  40699. - ac_status=$?
  40700. - grep -v '^ *+' conftest.er1 >conftest.err
  40701. - rm -f conftest.er1
  40702. - cat conftest.err >&5
  40703. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40704. - (exit $ac_status); } >/dev/null && {
  40705. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  40706. - test ! -s conftest.err
  40707. - }; then
  40708. - ac_header_preproc=yes
  40709. -else
  40710. - $as_echo "$as_me: failed program was:" >&5
  40711. -sed 's/^/| /' conftest.$ac_ext >&5
  40712. -
  40713. - ac_header_preproc=no
  40714. -fi
  40715. -
  40716. -rm -f conftest.err conftest.$ac_ext
  40717. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  40718. -$as_echo "$ac_header_preproc" >&6; }
  40719. -# So? What about this header?
  40720. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  40721. - yes:no: )
  40722. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  40723. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  40724. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  40725. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  40726. - ac_header_preproc=yes
  40727. - ;;
  40728. - no:yes:* )
  40729. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  40730. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  40731. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  40732. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  40733. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  40734. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  40735. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  40736. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  40737. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  40738. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  40739. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  40740. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  40741. - ( cat <<\_ASBOX
  40742. -## ---------------------------------------------- ##
  40743. -## Report this to mzqnrzba (at) 0pointer (dot) de ##
  40744. -## ---------------------------------------------- ##
  40745. -_ASBOX
  40746. - ) | sed "s/^/$as_me: WARNING: /" >&2
  40747. - ;;
  40748. +case $ac_config_files in *"
  40749. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  40750. esac
  40751. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  40752. -$as_echo_n "checking for $ac_header... " >&6; }
  40753. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  40754. - $as_echo_n "(cached) " >&6
  40755. -else
  40756. - eval "$as_ac_Header=\$ac_header_preproc"
  40757. -fi
  40758. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  40759. - $as_echo "$as_val"'`
  40760. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  40761. -$as_echo "$ac_res" >&6; }
  40762. -fi
  40763. -if test `eval 'as_val=${'$as_ac_Header'}
  40764. - $as_echo "$as_val"'` = yes; then
  40765. - cat >>confdefs.h <<_ACEOF
  40766. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  40767. -_ACEOF
  40768. +case $ac_config_headers in *"
  40769. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  40770. +esac
  40771. -fi
  40772. -done
  40773. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  40774. +# Files that config.status was made for.
  40775. +config_files="$ac_config_files"
  40776. +config_headers="$ac_config_headers"
  40777. +config_commands="$ac_config_commands"
  40778. -{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
  40779. -$as_echo_n "checking types of arguments for select... " >&6; }
  40780. -if test "${ac_cv_func_select_args+set}" = set; then
  40781. - $as_echo_n "(cached) " >&6
  40782. -else
  40783. - for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  40784. - for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  40785. - for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  40786. - cat >conftest.$ac_ext <<_ACEOF
  40787. -/* confdefs.h. */
  40788. _ACEOF
  40789. -cat confdefs.h >>conftest.$ac_ext
  40790. -cat >>conftest.$ac_ext <<_ACEOF
  40791. -/* end confdefs.h. */
  40792. -$ac_includes_default
  40793. -#ifdef HAVE_SYS_SELECT_H
  40794. -# include <sys/select.h>
  40795. -#endif
  40796. -#ifdef HAVE_SYS_SOCKET_H
  40797. -# include <sys/socket.h>
  40798. -#endif
  40799. -int
  40800. -main ()
  40801. -{
  40802. -extern int select ($ac_arg1,
  40803. - $ac_arg234, $ac_arg234, $ac_arg234,
  40804. - $ac_arg5);
  40805. - ;
  40806. - return 0;
  40807. -}
  40808. -_ACEOF
  40809. -rm -f conftest.$ac_objext
  40810. -if { (ac_try="$ac_compile"
  40811. -case "(($ac_try" in
  40812. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40813. - *) ac_try_echo=$ac_try;;
  40814. -esac
  40815. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40816. -$as_echo "$ac_try_echo") >&5
  40817. - (eval "$ac_compile") 2>conftest.er1
  40818. - ac_status=$?
  40819. - grep -v '^ *+' conftest.er1 >conftest.err
  40820. - rm -f conftest.er1
  40821. - cat conftest.err >&5
  40822. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40823. - (exit $ac_status); } && {
  40824. - test -z "$ac_c_werror_flag" ||
  40825. - test ! -s conftest.err
  40826. - } && test -s conftest.$ac_objext; then
  40827. - ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  40828. -else
  40829. - $as_echo "$as_me: failed program was:" >&5
  40830. -sed 's/^/| /' conftest.$ac_ext >&5
  40831. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40832. +ac_cs_usage="\
  40833. +\`$as_me' instantiates files and other configuration actions
  40834. +from templates according to the current configuration. Unless the files
  40835. +and actions are specified as TAGs, all are instantiated by default.
  40836. +Usage: $0 [OPTION]... [TAG]...
  40837. -fi
  40838. + -h, --help print this help, then exit
  40839. + -V, --version print version number and configuration settings, then exit
  40840. + --config print configuration, then exit
  40841. + -q, --quiet, --silent
  40842. + do not print progress messages
  40843. + -d, --debug don't remove temporary files
  40844. + --recheck update $as_me by reconfiguring in the same conditions
  40845. + --file=FILE[:TEMPLATE]
  40846. + instantiate the configuration file FILE
  40847. + --header=FILE[:TEMPLATE]
  40848. + instantiate the configuration header FILE
  40849. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40850. - done
  40851. - done
  40852. -done
  40853. -# Provide a safe default value.
  40854. -: ${ac_cv_func_select_args='int,int *,struct timeval *'}
  40855. +Configuration files:
  40856. +$config_files
  40857. -fi
  40858. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  40859. -$as_echo "$ac_cv_func_select_args" >&6; }
  40860. -ac_save_IFS=$IFS; IFS=','
  40861. -set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  40862. -IFS=$ac_save_IFS
  40863. -shift
  40864. +Configuration headers:
  40865. +$config_headers
  40866. -cat >>confdefs.h <<_ACEOF
  40867. -#define SELECT_TYPE_ARG1 $1
  40868. -_ACEOF
  40869. +Configuration commands:
  40870. +$config_commands
  40871. +Report bugs to <mzqnrzba (at) 0pointer (dot) de>."
  40872. -cat >>confdefs.h <<_ACEOF
  40873. -#define SELECT_TYPE_ARG234 ($2)
  40874. _ACEOF
  40875. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  40876. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  40877. +ac_cs_version="\\
  40878. +libdaemon config.status 0.13
  40879. +configured by $0, generated by GNU Autoconf 2.65,
  40880. + with options \\"\$ac_cs_config\\"
  40881. +Copyright (C) 2009 Free Software Foundation, Inc.
  40882. +This config.status script is free software; the Free Software Foundation
  40883. +gives unlimited permission to copy, distribute and modify it."
  40884. -cat >>confdefs.h <<_ACEOF
  40885. -#define SELECT_TYPE_ARG5 ($3)
  40886. +ac_pwd='$ac_pwd'
  40887. +srcdir='$srcdir'
  40888. +INSTALL='$INSTALL'
  40889. +MKDIR_P='$MKDIR_P'
  40890. +AWK='$AWK'
  40891. +test -n "\$AWK" || AWK=awk
  40892. _ACEOF
  40893. -rm -f conftest*
  40894. -
  40895. -
  40896. -for ac_func in vprintf
  40897. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40898. +# The default lists apply if the user does not specify any file.
  40899. +ac_need_defaults=:
  40900. +while test $# != 0
  40901. do
  40902. -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  40903. -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  40904. -$as_echo_n "checking for $ac_func... " >&6; }
  40905. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  40906. - $as_echo_n "(cached) " >&6
  40907. -else
  40908. - cat >conftest.$ac_ext <<_ACEOF
  40909. -/* confdefs.h. */
  40910. -_ACEOF
  40911. -cat confdefs.h >>conftest.$ac_ext
  40912. -cat >>conftest.$ac_ext <<_ACEOF
  40913. -/* end confdefs.h. */
  40914. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  40915. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  40916. -#define $ac_func innocuous_$ac_func
  40917. + case $1 in
  40918. + --*=*)
  40919. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  40920. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  40921. + ac_shift=:
  40922. + ;;
  40923. + *)
  40924. + ac_option=$1
  40925. + ac_optarg=$2
  40926. + ac_shift=shift
  40927. + ;;
  40928. + esac
  40929. -/* System header to define __stub macros and hopefully few prototypes,
  40930. - which can conflict with char $ac_func (); below.
  40931. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  40932. - <limits.h> exists even on freestanding compilers. */
  40933. + case $ac_option in
  40934. + # Handling of the options.
  40935. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  40936. + ac_cs_recheck=: ;;
  40937. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  40938. + $as_echo "$ac_cs_version"; exit ;;
  40939. + --config | --confi | --conf | --con | --co | --c )
  40940. + $as_echo "$ac_cs_config"; exit ;;
  40941. + --debug | --debu | --deb | --de | --d | -d )
  40942. + debug=: ;;
  40943. + --file | --fil | --fi | --f )
  40944. + $ac_shift
  40945. + case $ac_optarg in
  40946. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  40947. + esac
  40948. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  40949. + ac_need_defaults=false;;
  40950. + --header | --heade | --head | --hea )
  40951. + $ac_shift
  40952. + case $ac_optarg in
  40953. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  40954. + esac
  40955. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  40956. + ac_need_defaults=false;;
  40957. + --he | --h)
  40958. + # Conflict between --help and --header
  40959. + as_fn_error "ambiguous option: \`$1'
  40960. +Try \`$0 --help' for more information.";;
  40961. + --help | --hel | -h )
  40962. + $as_echo "$ac_cs_usage"; exit ;;
  40963. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  40964. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  40965. + ac_cs_silent=: ;;
  40966. -#ifdef __STDC__
  40967. -# include <limits.h>
  40968. -#else
  40969. -# include <assert.h>
  40970. -#endif
  40971. + # This is an error.
  40972. + -*) as_fn_error "unrecognized option: \`$1'
  40973. +Try \`$0 --help' for more information." ;;
  40974. -#undef $ac_func
  40975. + *) as_fn_append ac_config_targets " $1"
  40976. + ac_need_defaults=false ;;
  40977. -/* Override any GCC internal prototype to avoid an error.
  40978. - Use char because int might match the return type of a GCC
  40979. - builtin and then its argument prototype would still apply. */
  40980. -#ifdef __cplusplus
  40981. -extern "C"
  40982. -#endif
  40983. -char $ac_func ();
  40984. -/* The GNU C library defines this for functions which it implements
  40985. - to always fail with ENOSYS. Some functions are actually named
  40986. - something starting with __ and the normal name is an alias. */
  40987. -#if defined __stub_$ac_func || defined __stub___$ac_func
  40988. -choke me
  40989. -#endif
  40990. + esac
  40991. + shift
  40992. +done
  40993. -int
  40994. -main ()
  40995. -{
  40996. -return $ac_func ();
  40997. - ;
  40998. - return 0;
  40999. -}
  41000. -_ACEOF
  41001. -rm -f conftest.$ac_objext conftest$ac_exeext
  41002. -if { (ac_try="$ac_link"
  41003. -case "(($ac_try" in
  41004. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41005. - *) ac_try_echo=$ac_try;;
  41006. -esac
  41007. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41008. -$as_echo "$ac_try_echo") >&5
  41009. - (eval "$ac_link") 2>conftest.er1
  41010. - ac_status=$?
  41011. - grep -v '^ *+' conftest.er1 >conftest.err
  41012. - rm -f conftest.er1
  41013. - cat conftest.err >&5
  41014. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41015. - (exit $ac_status); } && {
  41016. - test -z "$ac_c_werror_flag" ||
  41017. - test ! -s conftest.err
  41018. - } && test -s conftest$ac_exeext && {
  41019. - test "$cross_compiling" = yes ||
  41020. - $as_test_x conftest$ac_exeext
  41021. - }; then
  41022. - eval "$as_ac_var=yes"
  41023. -else
  41024. - $as_echo "$as_me: failed program was:" >&5
  41025. -sed 's/^/| /' conftest.$ac_ext >&5
  41026. +ac_configure_extra_args=
  41027. - eval "$as_ac_var=no"
  41028. +if $ac_cs_silent; then
  41029. + exec 6>/dev/null
  41030. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  41031. fi
  41032. -rm -rf conftest.dSYM
  41033. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  41034. - conftest$ac_exeext conftest.$ac_ext
  41035. +_ACEOF
  41036. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41037. +if \$ac_cs_recheck; then
  41038. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  41039. + shift
  41040. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  41041. + CONFIG_SHELL='$SHELL'
  41042. + export CONFIG_SHELL
  41043. + exec "\$@"
  41044. fi
  41045. -ac_res=`eval 'as_val=${'$as_ac_var'}
  41046. - $as_echo "$as_val"'`
  41047. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  41048. -$as_echo "$ac_res" >&6; }
  41049. -if test `eval 'as_val=${'$as_ac_var'}
  41050. - $as_echo "$as_val"'` = yes; then
  41051. - cat >>confdefs.h <<_ACEOF
  41052. -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  41053. +
  41054. _ACEOF
  41055. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41056. +exec 5>>config.log
  41057. +{
  41058. + echo
  41059. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  41060. +## Running $as_me. ##
  41061. +_ASBOX
  41062. + $as_echo "$ac_log"
  41063. +} >&5
  41064. -{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  41065. -$as_echo_n "checking for _doprnt... " >&6; }
  41066. -if test "${ac_cv_func__doprnt+set}" = set; then
  41067. - $as_echo_n "(cached) " >&6
  41068. -else
  41069. - cat >conftest.$ac_ext <<_ACEOF
  41070. -/* confdefs.h. */
  41071. _ACEOF
  41072. -cat confdefs.h >>conftest.$ac_ext
  41073. -cat >>conftest.$ac_ext <<_ACEOF
  41074. -/* end confdefs.h. */
  41075. -/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  41076. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  41077. -#define _doprnt innocuous__doprnt
  41078. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41079. +#
  41080. +# INIT-COMMANDS
  41081. +#
  41082. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  41083. -/* System header to define __stub macros and hopefully few prototypes,
  41084. - which can conflict with char _doprnt (); below.
  41085. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  41086. - <limits.h> exists even on freestanding compilers. */
  41087. -#ifdef __STDC__
  41088. -# include <limits.h>
  41089. -#else
  41090. -# include <assert.h>
  41091. -#endif
  41092. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  41093. +# if CDPATH is set.
  41094. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  41095. -#undef _doprnt
  41096. +sed_quote_subst='$sed_quote_subst'
  41097. +double_quote_subst='$double_quote_subst'
  41098. +delay_variable_subst='$delay_variable_subst'
  41099. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  41100. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  41101. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  41102. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  41103. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  41104. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  41105. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  41106. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  41107. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  41108. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  41109. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  41110. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  41111. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  41112. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  41113. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  41114. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  41115. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  41116. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  41117. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  41118. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  41119. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  41120. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  41121. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  41122. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  41123. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  41124. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  41125. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  41126. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41127. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  41128. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  41129. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  41130. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  41131. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  41132. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  41133. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  41134. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41135. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41136. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41137. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  41138. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  41139. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  41140. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  41141. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  41142. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  41143. +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"`'
  41144. +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"`'
  41145. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  41146. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  41147. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  41148. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  41149. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  41150. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  41151. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  41152. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  41153. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  41154. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  41155. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  41156. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  41157. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  41158. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  41159. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  41160. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  41161. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41162. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41163. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  41164. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  41165. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41166. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41167. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  41168. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41169. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41170. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41171. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41172. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41173. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41174. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  41175. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  41176. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  41177. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41178. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  41179. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  41180. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  41181. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  41182. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  41183. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  41184. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  41185. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  41186. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  41187. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  41188. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  41189. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41190. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  41191. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  41192. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41193. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41194. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  41195. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  41196. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  41197. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  41198. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  41199. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  41200. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  41201. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41202. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41203. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41204. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41205. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41206. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41207. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  41208. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  41209. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41210. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41211. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  41212. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  41213. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  41214. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  41215. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  41216. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  41217. +compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  41218. +predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  41219. +postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  41220. +predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  41221. +postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  41222. +compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  41223. +LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41224. +old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41225. +compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41226. +GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41227. +lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41228. +lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41229. +lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41230. +lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41231. +lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41232. +archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41233. +enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41234. +export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41235. +whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41236. +compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41237. +old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41238. +old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41239. +archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41240. +archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41241. +module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41242. +module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41243. +with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41244. +allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41245. +no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41246. +hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41247. +hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41248. +hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41249. +hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41250. +hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41251. +hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41252. +hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41253. +hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41254. +inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41255. +link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41256. +fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41257. +always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41258. +export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41259. +exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41260. +include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41261. +prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41262. +file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41263. +hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41264. +compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41265. +predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41266. +postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41267. +predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41268. +postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41269. +compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  41270. +
  41271. +LTCC='$LTCC'
  41272. +LTCFLAGS='$LTCFLAGS'
  41273. +compiler='$compiler_DEFAULT'
  41274. +
  41275. +# Quote evaled strings.
  41276. +for var in SED \
  41277. +GREP \
  41278. +EGREP \
  41279. +FGREP \
  41280. +LD \
  41281. +NM \
  41282. +LN_S \
  41283. +lt_SP2NL \
  41284. +lt_NL2SP \
  41285. +reload_flag \
  41286. +OBJDUMP \
  41287. +deplibs_check_method \
  41288. +file_magic_cmd \
  41289. +AR \
  41290. +AR_FLAGS \
  41291. +STRIP \
  41292. +RANLIB \
  41293. +CC \
  41294. +CFLAGS \
  41295. +compiler \
  41296. +lt_cv_sys_global_symbol_pipe \
  41297. +lt_cv_sys_global_symbol_to_cdecl \
  41298. +lt_cv_sys_global_symbol_to_c_name_address \
  41299. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  41300. +SHELL \
  41301. +ECHO \
  41302. +lt_prog_compiler_no_builtin_flag \
  41303. +lt_prog_compiler_wl \
  41304. +lt_prog_compiler_pic \
  41305. +lt_prog_compiler_static \
  41306. +lt_cv_prog_compiler_c_o \
  41307. +need_locks \
  41308. +DSYMUTIL \
  41309. +NMEDIT \
  41310. +LIPO \
  41311. +OTOOL \
  41312. +OTOOL64 \
  41313. +shrext_cmds \
  41314. +export_dynamic_flag_spec \
  41315. +whole_archive_flag_spec \
  41316. +compiler_needs_object \
  41317. +with_gnu_ld \
  41318. +allow_undefined_flag \
  41319. +no_undefined_flag \
  41320. +hardcode_libdir_flag_spec \
  41321. +hardcode_libdir_flag_spec_ld \
  41322. +hardcode_libdir_separator \
  41323. +fix_srcfile_path \
  41324. +exclude_expsyms \
  41325. +include_expsyms \
  41326. +file_list_spec \
  41327. +variables_saved_for_relink \
  41328. +libname_spec \
  41329. +library_names_spec \
  41330. +soname_spec \
  41331. +finish_eval \
  41332. +old_striplib \
  41333. +striplib \
  41334. +compiler_lib_search_dirs \
  41335. +predep_objects \
  41336. +postdep_objects \
  41337. +predeps \
  41338. +postdeps \
  41339. +compiler_lib_search_path \
  41340. +LD_CXX \
  41341. +compiler_CXX \
  41342. +lt_prog_compiler_no_builtin_flag_CXX \
  41343. +lt_prog_compiler_wl_CXX \
  41344. +lt_prog_compiler_pic_CXX \
  41345. +lt_prog_compiler_static_CXX \
  41346. +lt_cv_prog_compiler_c_o_CXX \
  41347. +export_dynamic_flag_spec_CXX \
  41348. +whole_archive_flag_spec_CXX \
  41349. +compiler_needs_object_CXX \
  41350. +with_gnu_ld_CXX \
  41351. +allow_undefined_flag_CXX \
  41352. +no_undefined_flag_CXX \
  41353. +hardcode_libdir_flag_spec_CXX \
  41354. +hardcode_libdir_flag_spec_ld_CXX \
  41355. +hardcode_libdir_separator_CXX \
  41356. +fix_srcfile_path_CXX \
  41357. +exclude_expsyms_CXX \
  41358. +include_expsyms_CXX \
  41359. +file_list_spec_CXX \
  41360. +compiler_lib_search_dirs_CXX \
  41361. +predep_objects_CXX \
  41362. +postdep_objects_CXX \
  41363. +predeps_CXX \
  41364. +postdeps_CXX \
  41365. +compiler_lib_search_path_CXX; do
  41366. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  41367. + *[\\\\\\\`\\"\\\$]*)
  41368. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  41369. + ;;
  41370. + *)
  41371. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  41372. + ;;
  41373. + esac
  41374. +done
  41375. -/* Override any GCC internal prototype to avoid an error.
  41376. - Use char because int might match the return type of a GCC
  41377. - builtin and then its argument prototype would still apply. */
  41378. -#ifdef __cplusplus
  41379. -extern "C"
  41380. -#endif
  41381. -char _doprnt ();
  41382. -/* The GNU C library defines this for functions which it implements
  41383. - to always fail with ENOSYS. Some functions are actually named
  41384. - something starting with __ and the normal name is an alias. */
  41385. -#if defined __stub__doprnt || defined __stub____doprnt
  41386. -choke me
  41387. -#endif
  41388. +# Double-quote double-evaled strings.
  41389. +for var in reload_cmds \
  41390. +old_postinstall_cmds \
  41391. +old_postuninstall_cmds \
  41392. +old_archive_cmds \
  41393. +extract_expsyms_cmds \
  41394. +old_archive_from_new_cmds \
  41395. +old_archive_from_expsyms_cmds \
  41396. +archive_cmds \
  41397. +archive_expsym_cmds \
  41398. +module_cmds \
  41399. +module_expsym_cmds \
  41400. +export_symbols_cmds \
  41401. +prelink_cmds \
  41402. +postinstall_cmds \
  41403. +postuninstall_cmds \
  41404. +finish_cmds \
  41405. +sys_lib_search_path_spec \
  41406. +sys_lib_dlsearch_path_spec \
  41407. +old_archive_cmds_CXX \
  41408. +old_archive_from_new_cmds_CXX \
  41409. +old_archive_from_expsyms_cmds_CXX \
  41410. +archive_cmds_CXX \
  41411. +archive_expsym_cmds_CXX \
  41412. +module_cmds_CXX \
  41413. +module_expsym_cmds_CXX \
  41414. +export_symbols_cmds_CXX \
  41415. +prelink_cmds_CXX; do
  41416. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  41417. + *[\\\\\\\`\\"\\\$]*)
  41418. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  41419. + ;;
  41420. + *)
  41421. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  41422. + ;;
  41423. + esac
  41424. +done
  41425. -int
  41426. -main ()
  41427. -{
  41428. -return _doprnt ();
  41429. - ;
  41430. - return 0;
  41431. -}
  41432. -_ACEOF
  41433. -rm -f conftest.$ac_objext conftest$ac_exeext
  41434. -if { (ac_try="$ac_link"
  41435. -case "(($ac_try" in
  41436. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41437. - *) ac_try_echo=$ac_try;;
  41438. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  41439. +case \$lt_ECHO in
  41440. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  41441. + ;;
  41442. esac
  41443. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41444. -$as_echo "$ac_try_echo") >&5
  41445. - (eval "$ac_link") 2>conftest.er1
  41446. - ac_status=$?
  41447. - grep -v '^ *+' conftest.er1 >conftest.err
  41448. - rm -f conftest.er1
  41449. - cat conftest.err >&5
  41450. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41451. - (exit $ac_status); } && {
  41452. - test -z "$ac_c_werror_flag" ||
  41453. - test ! -s conftest.err
  41454. - } && test -s conftest$ac_exeext && {
  41455. - test "$cross_compiling" = yes ||
  41456. - $as_test_x conftest$ac_exeext
  41457. - }; then
  41458. - ac_cv_func__doprnt=yes
  41459. -else
  41460. - $as_echo "$as_me: failed program was:" >&5
  41461. -sed 's/^/| /' conftest.$ac_ext >&5
  41462. - ac_cv_func__doprnt=no
  41463. -fi
  41464. +ac_aux_dir='$ac_aux_dir'
  41465. +xsi_shell='$xsi_shell'
  41466. +lt_shell_append='$lt_shell_append'
  41467. -rm -rf conftest.dSYM
  41468. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  41469. - conftest$ac_exeext conftest.$ac_ext
  41470. +# See if we are running on zsh, and set the options which allow our
  41471. +# commands through without removal of \ escapes INIT.
  41472. +if test -n "\${ZSH_VERSION+set}" ; then
  41473. + setopt NO_GLOB_SUBST
  41474. fi
  41475. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  41476. -$as_echo "$ac_cv_func__doprnt" >&6; }
  41477. -if test $ac_cv_func__doprnt = yes; then
  41478. -
  41479. -cat >>confdefs.h <<\_ACEOF
  41480. -#define HAVE_DOPRNT 1
  41481. -_ACEOF
  41482. -fi
  41483. -fi
  41484. -done
  41485. + PACKAGE='$PACKAGE'
  41486. + VERSION='$VERSION'
  41487. + TIMESTAMP='$TIMESTAMP'
  41488. + RM='$RM'
  41489. + ofile='$ofile'
  41490. +_ACEOF
  41491. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41492. -for ac_func in select strerror dup2 memset strrchr asprintf
  41493. +# Handling of arguments.
  41494. +for ac_config_target in $ac_config_targets
  41495. do
  41496. -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  41497. -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  41498. -$as_echo_n "checking for $ac_func... " >&6; }
  41499. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  41500. - $as_echo_n "(cached) " >&6
  41501. -else
  41502. - cat >conftest.$ac_ext <<_ACEOF
  41503. -/* confdefs.h. */
  41504. -_ACEOF
  41505. -cat confdefs.h >>conftest.$ac_ext
  41506. -cat >>conftest.$ac_ext <<_ACEOF
  41507. -/* end confdefs.h. */
  41508. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  41509. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  41510. -#define $ac_func innocuous_$ac_func
  41511. -
  41512. -/* System header to define __stub macros and hopefully few prototypes,
  41513. - which can conflict with char $ac_func (); below.
  41514. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  41515. - <limits.h> exists even on freestanding compilers. */
  41516. + case $ac_config_target in
  41517. + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  41518. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  41519. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  41520. + "libdaemon/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/Makefile" ;;
  41521. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  41522. + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  41523. + "doc/README.html") CONFIG_FILES="$CONFIG_FILES doc/README.html" ;;
  41524. + "doc/doxygen.conf") CONFIG_FILES="$CONFIG_FILES doc/doxygen.conf" ;;
  41525. + "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  41526. + "libdaemon.pc") CONFIG_FILES="$CONFIG_FILES libdaemon.pc" ;;
  41527. -#ifdef __STDC__
  41528. -# include <limits.h>
  41529. -#else
  41530. -# include <assert.h>
  41531. -#endif
  41532. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  41533. + esac
  41534. +done
  41535. -#undef $ac_func
  41536. -/* Override any GCC internal prototype to avoid an error.
  41537. - Use char because int might match the return type of a GCC
  41538. - builtin and then its argument prototype would still apply. */
  41539. -#ifdef __cplusplus
  41540. -extern "C"
  41541. -#endif
  41542. -char $ac_func ();
  41543. -/* The GNU C library defines this for functions which it implements
  41544. - to always fail with ENOSYS. Some functions are actually named
  41545. - something starting with __ and the normal name is an alias. */
  41546. -#if defined __stub_$ac_func || defined __stub___$ac_func
  41547. -choke me
  41548. -#endif
  41549. +# If the user did not use the arguments to specify the items to instantiate,
  41550. +# then the envvar interface is used. Set only those that are not.
  41551. +# We use the long form for the default assignment because of an extremely
  41552. +# bizarre bug on SunOS 4.1.3.
  41553. +if $ac_need_defaults; then
  41554. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  41555. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  41556. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  41557. +fi
  41558. -int
  41559. -main ()
  41560. +# Have a temporary directory for convenience. Make it in the build tree
  41561. +# simply because there is no reason against having it here, and in addition,
  41562. +# creating and moving files from /tmp can sometimes cause problems.
  41563. +# Hook for its removal unless debugging.
  41564. +# Note that there is a small window in which the directory will not be cleaned:
  41565. +# after its creation but before its name has been assigned to `$tmp'.
  41566. +$debug ||
  41567. {
  41568. -return $ac_func ();
  41569. - ;
  41570. - return 0;
  41571. + tmp=
  41572. + trap 'exit_status=$?
  41573. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  41574. +' 0
  41575. + trap 'as_fn_exit 1' 1 2 13 15
  41576. }
  41577. -_ACEOF
  41578. -rm -f conftest.$ac_objext conftest$ac_exeext
  41579. -if { (ac_try="$ac_link"
  41580. -case "(($ac_try" in
  41581. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41582. - *) ac_try_echo=$ac_try;;
  41583. -esac
  41584. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41585. -$as_echo "$ac_try_echo") >&5
  41586. - (eval "$ac_link") 2>conftest.er1
  41587. - ac_status=$?
  41588. - grep -v '^ *+' conftest.er1 >conftest.err
  41589. - rm -f conftest.er1
  41590. - cat conftest.err >&5
  41591. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41592. - (exit $ac_status); } && {
  41593. - test -z "$ac_c_werror_flag" ||
  41594. - test ! -s conftest.err
  41595. - } && test -s conftest$ac_exeext && {
  41596. - test "$cross_compiling" = yes ||
  41597. - $as_test_x conftest$ac_exeext
  41598. - }; then
  41599. - eval "$as_ac_var=yes"
  41600. -else
  41601. - $as_echo "$as_me: failed program was:" >&5
  41602. -sed 's/^/| /' conftest.$ac_ext >&5
  41603. +# Create a (secure) tmp directory for tmp files.
  41604. +
  41605. +{
  41606. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  41607. + test -n "$tmp" && test -d "$tmp"
  41608. +} ||
  41609. +{
  41610. + tmp=./conf$$-$RANDOM
  41611. + (umask 077 && mkdir "$tmp")
  41612. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  41613. +
  41614. +# Set up the scripts for CONFIG_FILES section.
  41615. +# No need to generate them if there are no CONFIG_FILES.
  41616. +# This happens for instance with `./config.status config.h'.
  41617. +if test -n "$CONFIG_FILES"; then
  41618. - eval "$as_ac_var=no"
  41619. -fi
  41620. -rm -rf conftest.dSYM
  41621. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  41622. - conftest$ac_exeext conftest.$ac_ext
  41623. +ac_cr=`echo X | tr X '\015'`
  41624. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  41625. +# But we know of no other shell where ac_cr would be empty at this
  41626. +# point, so we can use a bashism as a fallback.
  41627. +if test "x$ac_cr" = x; then
  41628. + eval ac_cr=\$\'\\r\'
  41629. fi
  41630. -ac_res=`eval 'as_val=${'$as_ac_var'}
  41631. - $as_echo "$as_val"'`
  41632. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  41633. -$as_echo "$ac_res" >&6; }
  41634. -if test `eval 'as_val=${'$as_ac_var'}
  41635. - $as_echo "$as_val"'` = yes; then
  41636. - cat >>confdefs.h <<_ACEOF
  41637. -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  41638. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  41639. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  41640. + ac_cs_awk_cr='\r'
  41641. +else
  41642. + ac_cs_awk_cr=$ac_cr
  41643. +fi
  41644. +
  41645. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  41646. _ACEOF
  41647. -fi
  41648. +
  41649. +{
  41650. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  41651. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  41652. + echo "_ACEOF"
  41653. +} >conf$$subs.sh ||
  41654. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  41655. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  41656. +ac_delim='%!_!# '
  41657. +for ac_last_try in false false false false false :; do
  41658. + . ./conf$$subs.sh ||
  41659. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  41660. +
  41661. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  41662. + if test $ac_delim_n = $ac_delim_num; then
  41663. + break
  41664. + elif $ac_last_try; then
  41665. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  41666. + else
  41667. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  41668. + fi
  41669. done
  41670. +rm -f conf$$subs.sh
  41671. -{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
  41672. -$as_echo_n "checking for mode_t... " >&6; }
  41673. -if test "${ac_cv_type_mode_t+set}" = set; then
  41674. - $as_echo_n "(cached) " >&6
  41675. -else
  41676. - ac_cv_type_mode_t=no
  41677. -cat >conftest.$ac_ext <<_ACEOF
  41678. -/* confdefs.h. */
  41679. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41680. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  41681. _ACEOF
  41682. -cat confdefs.h >>conftest.$ac_ext
  41683. -cat >>conftest.$ac_ext <<_ACEOF
  41684. -/* end confdefs.h. */
  41685. -$ac_includes_default
  41686. -int
  41687. -main ()
  41688. -{
  41689. -if (sizeof (mode_t))
  41690. - return 0;
  41691. - ;
  41692. - return 0;
  41693. +sed -n '
  41694. +h
  41695. +s/^/S["/; s/!.*/"]=/
  41696. +p
  41697. +g
  41698. +s/^[^!]*!//
  41699. +:repl
  41700. +t repl
  41701. +s/'"$ac_delim"'$//
  41702. +t delim
  41703. +:nl
  41704. +h
  41705. +s/\(.\{148\}\)..*/\1/
  41706. +t more1
  41707. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  41708. +p
  41709. +n
  41710. +b repl
  41711. +:more1
  41712. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  41713. +p
  41714. +g
  41715. +s/.\{148\}//
  41716. +t nl
  41717. +:delim
  41718. +h
  41719. +s/\(.\{148\}\)..*/\1/
  41720. +t more2
  41721. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  41722. +p
  41723. +b
  41724. +:more2
  41725. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  41726. +p
  41727. +g
  41728. +s/.\{148\}//
  41729. +t delim
  41730. +' <conf$$subs.awk | sed '
  41731. +/^[^""]/{
  41732. + N
  41733. + s/\n//
  41734. +}
  41735. +' >>$CONFIG_STATUS || ac_write_fail=1
  41736. +rm -f conf$$subs.awk
  41737. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41738. +_ACAWK
  41739. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  41740. + for (key in S) S_is_set[key] = 1
  41741. + FS = ""
  41742. +
  41743. }
  41744. -_ACEOF
  41745. -rm -f conftest.$ac_objext
  41746. -if { (ac_try="$ac_compile"
  41747. -case "(($ac_try" in
  41748. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41749. - *) ac_try_echo=$ac_try;;
  41750. -esac
  41751. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41752. -$as_echo "$ac_try_echo") >&5
  41753. - (eval "$ac_compile") 2>conftest.er1
  41754. - ac_status=$?
  41755. - grep -v '^ *+' conftest.er1 >conftest.err
  41756. - rm -f conftest.er1
  41757. - cat conftest.err >&5
  41758. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41759. - (exit $ac_status); } && {
  41760. - test -z "$ac_c_werror_flag" ||
  41761. - test ! -s conftest.err
  41762. - } && test -s conftest.$ac_objext; then
  41763. - cat >conftest.$ac_ext <<_ACEOF
  41764. -/* confdefs.h. */
  41765. -_ACEOF
  41766. -cat confdefs.h >>conftest.$ac_ext
  41767. -cat >>conftest.$ac_ext <<_ACEOF
  41768. -/* end confdefs.h. */
  41769. -$ac_includes_default
  41770. -int
  41771. -main ()
  41772. {
  41773. -if (sizeof ((mode_t)))
  41774. - return 0;
  41775. - ;
  41776. - return 0;
  41777. + line = $ 0
  41778. + nfields = split(line, field, "@")
  41779. + substed = 0
  41780. + len = length(field[1])
  41781. + for (i = 2; i < nfields; i++) {
  41782. + key = field[i]
  41783. + keylen = length(key)
  41784. + if (S_is_set[key]) {
  41785. + value = S[key]
  41786. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  41787. + len += length(value) + length(field[++i])
  41788. + substed = 1
  41789. + } else
  41790. + len += 1 + keylen
  41791. + }
  41792. +
  41793. + print line
  41794. }
  41795. +
  41796. +_ACAWK
  41797. _ACEOF
  41798. -rm -f conftest.$ac_objext
  41799. -if { (ac_try="$ac_compile"
  41800. -case "(($ac_try" in
  41801. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41802. - *) ac_try_echo=$ac_try;;
  41803. -esac
  41804. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41805. -$as_echo "$ac_try_echo") >&5
  41806. - (eval "$ac_compile") 2>conftest.er1
  41807. - ac_status=$?
  41808. - grep -v '^ *+' conftest.er1 >conftest.err
  41809. - rm -f conftest.er1
  41810. - cat conftest.err >&5
  41811. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41812. - (exit $ac_status); } && {
  41813. - test -z "$ac_c_werror_flag" ||
  41814. - test ! -s conftest.err
  41815. - } && test -s conftest.$ac_objext; then
  41816. - :
  41817. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41818. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  41819. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  41820. else
  41821. - $as_echo "$as_me: failed program was:" >&5
  41822. -sed 's/^/| /' conftest.$ac_ext >&5
  41823. + cat
  41824. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  41825. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  41826. +_ACEOF
  41827. - ac_cv_type_mode_t=yes
  41828. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  41829. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  41830. +# trailing colons and then remove the whole line if VPATH becomes empty
  41831. +# (actually we leave an empty line to preserve line numbers).
  41832. +if test "x$srcdir" = x.; then
  41833. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  41834. +s/:*\$(srcdir):*/:/
  41835. +s/:*\${srcdir}:*/:/
  41836. +s/:*@srcdir@:*/:/
  41837. +s/^\([^=]*=[ ]*\):*/\1/
  41838. +s/:*$//
  41839. +s/^[^=]*=[ ]*$//
  41840. +}'
  41841. fi
  41842. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41843. -else
  41844. - $as_echo "$as_me: failed program was:" >&5
  41845. -sed 's/^/| /' conftest.$ac_ext >&5
  41846. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41847. +fi # test -n "$CONFIG_FILES"
  41848. +# Set up the scripts for CONFIG_HEADERS section.
  41849. +# No need to generate them if there are no CONFIG_HEADERS.
  41850. +# This happens for instance with `./config.status Makefile'.
  41851. +if test -n "$CONFIG_HEADERS"; then
  41852. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  41853. +BEGIN {
  41854. +_ACEOF
  41855. -fi
  41856. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  41857. +# here-document in config.status, that substitutes the proper values into
  41858. +# config.h.in to produce config.h.
  41859. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41860. -fi
  41861. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  41862. -$as_echo "$ac_cv_type_mode_t" >&6; }
  41863. -if test $ac_cv_type_mode_t = yes; then
  41864. - :
  41865. -else
  41866. +# Create a delimiter string that does not exist in confdefs.h, to ease
  41867. +# handling of long lines.
  41868. +ac_delim='%!_!# '
  41869. +for ac_last_try in false false :; do
  41870. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  41871. + if test -z "$ac_t"; then
  41872. + break
  41873. + elif $ac_last_try; then
  41874. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  41875. + else
  41876. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  41877. + fi
  41878. +done
  41879. -cat >>confdefs.h <<_ACEOF
  41880. -#define mode_t int
  41881. -_ACEOF
  41882. +# For the awk script, D is an array of macro values keyed by name,
  41883. +# likewise P contains macro parameters if any. Preserve backslash
  41884. +# newline sequences.
  41885. -fi
  41886. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  41887. +sed -n '
  41888. +s/.\{148\}/&'"$ac_delim"'/g
  41889. +t rset
  41890. +:rset
  41891. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  41892. +t def
  41893. +d
  41894. +:def
  41895. +s/\\$//
  41896. +t bsnl
  41897. +s/["\\]/\\&/g
  41898. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  41899. +D["\1"]=" \3"/p
  41900. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  41901. +d
  41902. +:bsnl
  41903. +s/["\\]/\\&/g
  41904. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  41905. +D["\1"]=" \3\\\\\\n"\\/p
  41906. +t cont
  41907. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  41908. +t cont
  41909. +d
  41910. +:cont
  41911. +n
  41912. +s/.\{148\}/&'"$ac_delim"'/g
  41913. +t clear
  41914. +:clear
  41915. +s/\\$//
  41916. +t bsnlc
  41917. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  41918. +d
  41919. +:bsnlc
  41920. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  41921. +b cont
  41922. +' <confdefs.h | sed '
  41923. +s/'"$ac_delim"'/"\\\
  41924. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  41925. -{ $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
  41926. -$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
  41927. -if test "${ac_cv_func_setpgrp_void+set}" = set; then
  41928. - $as_echo_n "(cached) " >&6
  41929. -else
  41930. - if test "$cross_compiling" = yes; then
  41931. - { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
  41932. -$as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
  41933. - { (exit 1); exit 1; }; }
  41934. -else
  41935. - cat >conftest.$ac_ext <<_ACEOF
  41936. -/* confdefs.h. */
  41937. -_ACEOF
  41938. -cat confdefs.h >>conftest.$ac_ext
  41939. -cat >>conftest.$ac_ext <<_ACEOF
  41940. -/* end confdefs.h. */
  41941. -$ac_includes_default
  41942. -int
  41943. -main ()
  41944. -{
  41945. -/* If this system has a BSD-style setpgrp which takes arguments,
  41946. - setpgrp(1, 1) will fail with ESRCH and return -1, in that case
  41947. - exit successfully. */
  41948. - return setpgrp (1,1) != -1;
  41949. - ;
  41950. - return 0;
  41951. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41952. + for (key in D) D_is_set[key] = 1
  41953. + FS = ""
  41954. +}
  41955. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  41956. + line = \$ 0
  41957. + split(line, arg, " ")
  41958. + if (arg[1] == "#") {
  41959. + defundef = arg[2]
  41960. + mac1 = arg[3]
  41961. + } else {
  41962. + defundef = substr(arg[1], 2)
  41963. + mac1 = arg[2]
  41964. + }
  41965. + split(mac1, mac2, "(") #)
  41966. + macro = mac2[1]
  41967. + prefix = substr(line, 1, index(line, defundef) - 1)
  41968. + if (D_is_set[macro]) {
  41969. + # Preserve the white space surrounding the "#".
  41970. + print prefix "define", macro P[macro] D[macro]
  41971. + next
  41972. + } else {
  41973. + # Replace #undef with comments. This is necessary, for example,
  41974. + # in the case of _POSIX_SOURCE, which is predefined and required
  41975. + # on some systems where configure will not decide to define it.
  41976. + if (defundef == "undef") {
  41977. + print "/*", prefix defundef, macro, "*/"
  41978. + next
  41979. + }
  41980. + }
  41981. }
  41982. +{ print }
  41983. +_ACAWK
  41984. _ACEOF
  41985. -rm -f conftest$ac_exeext
  41986. -if { (ac_try="$ac_link"
  41987. -case "(($ac_try" in
  41988. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41989. - *) ac_try_echo=$ac_try;;
  41990. -esac
  41991. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41992. -$as_echo "$ac_try_echo") >&5
  41993. - (eval "$ac_link") 2>&5
  41994. - ac_status=$?
  41995. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41996. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  41997. - { (case "(($ac_try" in
  41998. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41999. - *) ac_try_echo=$ac_try;;
  42000. -esac
  42001. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42002. -$as_echo "$ac_try_echo") >&5
  42003. - (eval "$ac_try") 2>&5
  42004. - ac_status=$?
  42005. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42006. - (exit $ac_status); }; }; then
  42007. - ac_cv_func_setpgrp_void=no
  42008. -else
  42009. - $as_echo "$as_me: program exited with status $ac_status" >&5
  42010. -$as_echo "$as_me: failed program was:" >&5
  42011. -sed 's/^/| /' conftest.$ac_ext >&5
  42012. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42013. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  42014. +fi # test -n "$CONFIG_HEADERS"
  42015. -( exit $ac_status )
  42016. -ac_cv_func_setpgrp_void=yes
  42017. -fi
  42018. -rm -rf conftest.dSYM
  42019. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  42020. -fi
  42021. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  42022. +shift
  42023. +for ac_tag
  42024. +do
  42025. + case $ac_tag in
  42026. + :[FHLC]) ac_mode=$ac_tag; continue;;
  42027. + esac
  42028. + case $ac_mode$ac_tag in
  42029. + :[FHL]*:*);;
  42030. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  42031. + :[FH]-) ac_tag=-:-;;
  42032. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  42033. + esac
  42034. + ac_save_IFS=$IFS
  42035. + IFS=:
  42036. + set x $ac_tag
  42037. + IFS=$ac_save_IFS
  42038. + shift
  42039. + ac_file=$1
  42040. + shift
  42041. +
  42042. + case $ac_mode in
  42043. + :L) ac_source=$1;;
  42044. + :[FH])
  42045. + ac_file_inputs=
  42046. + for ac_f
  42047. + do
  42048. + case $ac_f in
  42049. + -) ac_f="$tmp/stdin";;
  42050. + *) # Look for the file first in the build tree, then in the source tree
  42051. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  42052. + # because $ac_f cannot contain `:'.
  42053. + test -f "$ac_f" ||
  42054. + case $ac_f in
  42055. + [\\/$]*) false;;
  42056. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  42057. + esac ||
  42058. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  42059. + esac
  42060. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  42061. + as_fn_append ac_file_inputs " '$ac_f'"
  42062. + done
  42063. -fi
  42064. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
  42065. -$as_echo "$ac_cv_func_setpgrp_void" >&6; }
  42066. -if test $ac_cv_func_setpgrp_void = yes; then
  42067. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  42068. + # use $as_me), people would be surprised to read:
  42069. + # /* config.h. Generated by config.status. */
  42070. + configure_input='Generated from '`
  42071. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  42072. + `' by configure.'
  42073. + if test x"$ac_file" != x-; then
  42074. + configure_input="$ac_file. $configure_input"
  42075. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  42076. +$as_echo "$as_me: creating $ac_file" >&6;}
  42077. + fi
  42078. + # Neutralize special characters interpreted by sed in replacement strings.
  42079. + case $configure_input in #(
  42080. + *\&* | *\|* | *\\* )
  42081. + ac_sed_conf_input=`$as_echo "$configure_input" |
  42082. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  42083. + *) ac_sed_conf_input=$configure_input;;
  42084. + esac
  42085. -cat >>confdefs.h <<\_ACEOF
  42086. -#define SETPGRP_VOID 1
  42087. -_ACEOF
  42088. + case $ac_tag in
  42089. + *:-:* | *:-) cat >"$tmp/stdin" \
  42090. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  42091. + esac
  42092. + ;;
  42093. + esac
  42094. -fi
  42095. + ac_dir=`$as_dirname -- "$ac_file" ||
  42096. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42097. + X"$ac_file" : 'X\(//\)[^/]' \| \
  42098. + X"$ac_file" : 'X\(//\)$' \| \
  42099. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  42100. +$as_echo X"$ac_file" |
  42101. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42102. + s//\1/
  42103. + q
  42104. + }
  42105. + /^X\(\/\/\)[^/].*/{
  42106. + s//\1/
  42107. + q
  42108. + }
  42109. + /^X\(\/\/\)$/{
  42110. + s//\1/
  42111. + q
  42112. + }
  42113. + /^X\(\/\).*/{
  42114. + s//\1/
  42115. + q
  42116. + }
  42117. + s/.*/./; q'`
  42118. + as_dir="$ac_dir"; as_fn_mkdir_p
  42119. + ac_builddir=.
  42120. -{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  42121. -$as_echo_n "checking return type of signal handlers... " >&6; }
  42122. -if test "${ac_cv_type_signal+set}" = set; then
  42123. - $as_echo_n "(cached) " >&6
  42124. -else
  42125. - cat >conftest.$ac_ext <<_ACEOF
  42126. -/* confdefs.h. */
  42127. -_ACEOF
  42128. -cat confdefs.h >>conftest.$ac_ext
  42129. -cat >>conftest.$ac_ext <<_ACEOF
  42130. -/* end confdefs.h. */
  42131. -#include <sys/types.h>
  42132. -#include <signal.h>
  42133. +case "$ac_dir" in
  42134. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  42135. +*)
  42136. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  42137. + # A ".." for each directory in $ac_dir_suffix.
  42138. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  42139. + case $ac_top_builddir_sub in
  42140. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  42141. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  42142. + esac ;;
  42143. +esac
  42144. +ac_abs_top_builddir=$ac_pwd
  42145. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  42146. +# for backward compatibility:
  42147. +ac_top_builddir=$ac_top_build_prefix
  42148. -int
  42149. -main ()
  42150. -{
  42151. -return *(signal (0, 0)) (0) == 1;
  42152. - ;
  42153. - return 0;
  42154. -}
  42155. -_ACEOF
  42156. -rm -f conftest.$ac_objext
  42157. -if { (ac_try="$ac_compile"
  42158. -case "(($ac_try" in
  42159. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42160. - *) ac_try_echo=$ac_try;;
  42161. +case $srcdir in
  42162. + .) # We are building in place.
  42163. + ac_srcdir=.
  42164. + ac_top_srcdir=$ac_top_builddir_sub
  42165. + ac_abs_top_srcdir=$ac_pwd ;;
  42166. + [\\/]* | ?:[\\/]* ) # Absolute name.
  42167. + ac_srcdir=$srcdir$ac_dir_suffix;
  42168. + ac_top_srcdir=$srcdir
  42169. + ac_abs_top_srcdir=$srcdir ;;
  42170. + *) # Relative name.
  42171. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  42172. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  42173. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  42174. esac
  42175. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42176. -$as_echo "$ac_try_echo") >&5
  42177. - (eval "$ac_compile") 2>conftest.er1
  42178. - ac_status=$?
  42179. - grep -v '^ *+' conftest.er1 >conftest.err
  42180. - rm -f conftest.er1
  42181. - cat conftest.err >&5
  42182. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42183. - (exit $ac_status); } && {
  42184. - test -z "$ac_c_werror_flag" ||
  42185. - test ! -s conftest.err
  42186. - } && test -s conftest.$ac_objext; then
  42187. - ac_cv_type_signal=int
  42188. -else
  42189. - $as_echo "$as_me: failed program was:" >&5
  42190. -sed 's/^/| /' conftest.$ac_ext >&5
  42191. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  42192. - ac_cv_type_signal=void
  42193. -fi
  42194. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42195. -fi
  42196. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  42197. -$as_echo "$ac_cv_type_signal" >&6; }
  42198. + case $ac_mode in
  42199. + :F)
  42200. + #
  42201. + # CONFIG_FILE
  42202. + #
  42203. -cat >>confdefs.h <<_ACEOF
  42204. -#define RETSIGTYPE $ac_cv_type_signal
  42205. + case $INSTALL in
  42206. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  42207. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  42208. + esac
  42209. + ac_MKDIR_P=$MKDIR_P
  42210. + case $MKDIR_P in
  42211. + [\\/$]* | ?:[\\/]* ) ;;
  42212. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  42213. + esac
  42214. _ACEOF
  42215. -
  42216. -{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
  42217. -$as_echo_n "checking for size_t... " >&6; }
  42218. -if test "${ac_cv_type_size_t+set}" = set; then
  42219. - $as_echo_n "(cached) " >&6
  42220. -else
  42221. - ac_cv_type_size_t=no
  42222. -cat >conftest.$ac_ext <<_ACEOF
  42223. -/* confdefs.h. */
  42224. -_ACEOF
  42225. -cat confdefs.h >>conftest.$ac_ext
  42226. -cat >>conftest.$ac_ext <<_ACEOF
  42227. -/* end confdefs.h. */
  42228. -$ac_includes_default
  42229. -int
  42230. -main ()
  42231. -{
  42232. -if (sizeof (size_t))
  42233. - return 0;
  42234. - ;
  42235. - return 0;
  42236. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42237. +# If the template does not know about datarootdir, expand it.
  42238. +# FIXME: This hack should be removed a few years after 2.60.
  42239. +ac_datarootdir_hack=; ac_datarootdir_seen=
  42240. +ac_sed_dataroot='
  42241. +/datarootdir/ {
  42242. + p
  42243. + q
  42244. }
  42245. +/@datadir@/p
  42246. +/@docdir@/p
  42247. +/@infodir@/p
  42248. +/@localedir@/p
  42249. +/@mandir@/p'
  42250. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  42251. +*datarootdir*) ac_datarootdir_seen=yes;;
  42252. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  42253. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  42254. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  42255. _ACEOF
  42256. -rm -f conftest.$ac_objext
  42257. -if { (ac_try="$ac_compile"
  42258. -case "(($ac_try" in
  42259. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42260. - *) ac_try_echo=$ac_try;;
  42261. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42262. + ac_datarootdir_hack='
  42263. + s&@datadir@&$datadir&g
  42264. + s&@docdir@&$docdir&g
  42265. + s&@infodir@&$infodir&g
  42266. + s&@localedir@&$localedir&g
  42267. + s&@mandir@&$mandir&g
  42268. + s&\\\${datarootdir}&$datarootdir&g' ;;
  42269. esac
  42270. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42271. -$as_echo "$ac_try_echo") >&5
  42272. - (eval "$ac_compile") 2>conftest.er1
  42273. - ac_status=$?
  42274. - grep -v '^ *+' conftest.er1 >conftest.err
  42275. - rm -f conftest.er1
  42276. - cat conftest.err >&5
  42277. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42278. - (exit $ac_status); } && {
  42279. - test -z "$ac_c_werror_flag" ||
  42280. - test ! -s conftest.err
  42281. - } && test -s conftest.$ac_objext; then
  42282. - cat >conftest.$ac_ext <<_ACEOF
  42283. -/* confdefs.h. */
  42284. -_ACEOF
  42285. -cat confdefs.h >>conftest.$ac_ext
  42286. -cat >>conftest.$ac_ext <<_ACEOF
  42287. -/* end confdefs.h. */
  42288. -$ac_includes_default
  42289. -int
  42290. -main ()
  42291. -{
  42292. -if (sizeof ((size_t)))
  42293. - return 0;
  42294. - ;
  42295. - return 0;
  42296. -}
  42297. _ACEOF
  42298. -rm -f conftest.$ac_objext
  42299. -if { (ac_try="$ac_compile"
  42300. -case "(($ac_try" in
  42301. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42302. - *) ac_try_echo=$ac_try;;
  42303. -esac
  42304. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42305. -$as_echo "$ac_try_echo") >&5
  42306. - (eval "$ac_compile") 2>conftest.er1
  42307. - ac_status=$?
  42308. - grep -v '^ *+' conftest.er1 >conftest.err
  42309. - rm -f conftest.er1
  42310. - cat conftest.err >&5
  42311. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42312. - (exit $ac_status); } && {
  42313. - test -z "$ac_c_werror_flag" ||
  42314. - test ! -s conftest.err
  42315. - } && test -s conftest.$ac_objext; then
  42316. - :
  42317. -else
  42318. - $as_echo "$as_me: failed program was:" >&5
  42319. -sed 's/^/| /' conftest.$ac_ext >&5
  42320. -
  42321. - ac_cv_type_size_t=yes
  42322. -fi
  42323. -
  42324. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42325. -else
  42326. - $as_echo "$as_me: failed program was:" >&5
  42327. -sed 's/^/| /' conftest.$ac_ext >&5
  42328. -
  42329. -
  42330. -fi
  42331. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42332. -fi
  42333. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  42334. -$as_echo "$ac_cv_type_size_t" >&6; }
  42335. -if test $ac_cv_type_size_t = yes; then
  42336. - :
  42337. -else
  42338. -
  42339. -cat >>confdefs.h <<_ACEOF
  42340. -#define size_t unsigned int
  42341. +# Neutralize VPATH when `$srcdir' = `.'.
  42342. +# Shell code in configure.ac might set extrasub.
  42343. +# FIXME: do we really want to maintain this feature?
  42344. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42345. +ac_sed_extra="$ac_vpsub
  42346. +$extrasub
  42347. _ACEOF
  42348. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42349. +:t
  42350. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  42351. +s|@configure_input@|$ac_sed_conf_input|;t t
  42352. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  42353. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  42354. +s&@srcdir@&$ac_srcdir&;t t
  42355. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  42356. +s&@top_srcdir@&$ac_top_srcdir&;t t
  42357. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  42358. +s&@builddir@&$ac_builddir&;t t
  42359. +s&@abs_builddir@&$ac_abs_builddir&;t t
  42360. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  42361. +s&@INSTALL@&$ac_INSTALL&;t t
  42362. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  42363. +$ac_datarootdir_hack
  42364. +"
  42365. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  42366. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  42367. -fi
  42368. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  42369. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  42370. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  42371. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  42372. +which seems to be undefined. Please make sure it is defined." >&5
  42373. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  42374. +which seems to be undefined. Please make sure it is defined." >&2;}
  42375. +
  42376. + rm -f "$tmp/stdin"
  42377. + case $ac_file in
  42378. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  42379. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  42380. + esac \
  42381. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  42382. + ;;
  42383. + :H)
  42384. + #
  42385. + # CONFIG_HEADER
  42386. + #
  42387. + if test x"$ac_file" != x-; then
  42388. + {
  42389. + $as_echo "/* $configure_input */" \
  42390. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  42391. + } >"$tmp/config.h" \
  42392. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  42393. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  42394. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  42395. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  42396. + else
  42397. + rm -f "$ac_file"
  42398. + mv "$tmp/config.h" "$ac_file" \
  42399. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  42400. + fi
  42401. + else
  42402. + $as_echo "/* $configure_input */" \
  42403. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  42404. + || as_fn_error "could not create -" "$LINENO" 5
  42405. + fi
  42406. +# Compute "$ac_file"'s index in $config_headers.
  42407. +_am_arg="$ac_file"
  42408. +_am_stamp_count=1
  42409. +for _am_header in $config_headers :; do
  42410. + case $_am_header in
  42411. + $_am_arg | $_am_arg:* )
  42412. + break ;;
  42413. + * )
  42414. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  42415. + esac
  42416. +done
  42417. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  42418. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42419. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  42420. + X"$_am_arg" : 'X\(//\)$' \| \
  42421. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  42422. +$as_echo X"$_am_arg" |
  42423. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42424. + s//\1/
  42425. + q
  42426. + }
  42427. + /^X\(\/\/\)[^/].*/{
  42428. + s//\1/
  42429. + q
  42430. + }
  42431. + /^X\(\/\/\)$/{
  42432. + s//\1/
  42433. + q
  42434. + }
  42435. + /^X\(\/\).*/{
  42436. + s//\1/
  42437. + q
  42438. + }
  42439. + s/.*/./; q'`/stamp-h$_am_stamp_count
  42440. + ;;
  42441. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  42442. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  42443. + ;;
  42444. + esac
  42445. -# Check whether --enable-largefile was given.
  42446. -if test "${enable_largefile+set}" = set; then
  42447. - enableval=$enable_largefile;
  42448. -fi
  42449. -if test "$enable_largefile" != no; then
  42450. + case $ac_file$ac_mode in
  42451. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  42452. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  42453. + # are listed without --file. Let's play safe and only enable the eval
  42454. + # if we detect the quoting.
  42455. + case $CONFIG_FILES in
  42456. + *\'*) eval set x "$CONFIG_FILES" ;;
  42457. + *) set x $CONFIG_FILES ;;
  42458. + esac
  42459. + shift
  42460. + for mf
  42461. + do
  42462. + # Strip MF so we end up with the name of the file.
  42463. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  42464. + # Check whether this is an Automake generated Makefile or not.
  42465. + # We used to match only the files named `Makefile.in', but
  42466. + # some people rename them; so instead we look at the file content.
  42467. + # Grep'ing the first line is not enough: some people post-process
  42468. + # each Makefile.in and add a new line on top of each file to say so.
  42469. + # Grep'ing the whole file is not good either: AIX grep has a line
  42470. + # limit of 2048, but all sed's we know have understand at least 4000.
  42471. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  42472. + dirpart=`$as_dirname -- "$mf" ||
  42473. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42474. + X"$mf" : 'X\(//\)[^/]' \| \
  42475. + X"$mf" : 'X\(//\)$' \| \
  42476. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  42477. +$as_echo X"$mf" |
  42478. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42479. + s//\1/
  42480. + q
  42481. + }
  42482. + /^X\(\/\/\)[^/].*/{
  42483. + s//\1/
  42484. + q
  42485. + }
  42486. + /^X\(\/\/\)$/{
  42487. + s//\1/
  42488. + q
  42489. + }
  42490. + /^X\(\/\).*/{
  42491. + s//\1/
  42492. + q
  42493. + }
  42494. + s/.*/./; q'`
  42495. + else
  42496. + continue
  42497. + fi
  42498. + # Extract the definition of DEPDIR, am__include, and am__quote
  42499. + # from the Makefile without running `make'.
  42500. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  42501. + test -z "$DEPDIR" && continue
  42502. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  42503. + test -z "am__include" && continue
  42504. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  42505. + # When using ansi2knr, U may be empty or an underscore; expand it
  42506. + U=`sed -n 's/^U = //p' < "$mf"`
  42507. + # Find all dependency output files, they are included files with
  42508. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  42509. + # simplest approach to changing $(DEPDIR) to its actual value in the
  42510. + # expansion.
  42511. + for file in `sed -n "
  42512. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  42513. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  42514. + # Make sure the directory exists.
  42515. + test -f "$dirpart/$file" && continue
  42516. + fdir=`$as_dirname -- "$file" ||
  42517. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42518. + X"$file" : 'X\(//\)[^/]' \| \
  42519. + X"$file" : 'X\(//\)$' \| \
  42520. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  42521. +$as_echo X"$file" |
  42522. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42523. + s//\1/
  42524. + q
  42525. + }
  42526. + /^X\(\/\/\)[^/].*/{
  42527. + s//\1/
  42528. + q
  42529. + }
  42530. + /^X\(\/\/\)$/{
  42531. + s//\1/
  42532. + q
  42533. + }
  42534. + /^X\(\/\).*/{
  42535. + s//\1/
  42536. + q
  42537. + }
  42538. + s/.*/./; q'`
  42539. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  42540. + # echo "creating $dirpart/$file"
  42541. + echo '# dummy' > "$dirpart/$file"
  42542. + done
  42543. + done
  42544. +}
  42545. + ;;
  42546. + "libtool":C)
  42547. - { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  42548. -$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  42549. -if test "${ac_cv_sys_largefile_CC+set}" = set; then
  42550. - $as_echo_n "(cached) " >&6
  42551. -else
  42552. - ac_cv_sys_largefile_CC=no
  42553. - if test "$GCC" != yes; then
  42554. - ac_save_CC=$CC
  42555. - while :; do
  42556. - # IRIX 6.2 and later do not support large files by default,
  42557. - # so use the C compiler's -n32 option if that helps.
  42558. - cat >conftest.$ac_ext <<_ACEOF
  42559. -/* confdefs.h. */
  42560. -_ACEOF
  42561. -cat confdefs.h >>conftest.$ac_ext
  42562. -cat >>conftest.$ac_ext <<_ACEOF
  42563. -/* end confdefs.h. */
  42564. -#include <sys/types.h>
  42565. - /* Check that off_t can represent 2**63 - 1 correctly.
  42566. - We can't simply define LARGE_OFF_T to be 9223372036854775807,
  42567. - since some C++ compilers masquerading as C compilers
  42568. - incorrectly reject 9223372036854775807. */
  42569. -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  42570. - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  42571. - && LARGE_OFF_T % 2147483647 == 1)
  42572. - ? 1 : -1];
  42573. -int
  42574. -main ()
  42575. -{
  42576. + # See if we are running on zsh, and set the options which allow our
  42577. + # commands through without removal of \ escapes.
  42578. + if test -n "${ZSH_VERSION+set}" ; then
  42579. + setopt NO_GLOB_SUBST
  42580. + fi
  42581. - ;
  42582. - return 0;
  42583. -}
  42584. -_ACEOF
  42585. - rm -f conftest.$ac_objext
  42586. -if { (ac_try="$ac_compile"
  42587. -case "(($ac_try" in
  42588. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42589. - *) ac_try_echo=$ac_try;;
  42590. -esac
  42591. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42592. -$as_echo "$ac_try_echo") >&5
  42593. - (eval "$ac_compile") 2>conftest.er1
  42594. - ac_status=$?
  42595. - grep -v '^ *+' conftest.er1 >conftest.err
  42596. - rm -f conftest.er1
  42597. - cat conftest.err >&5
  42598. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42599. - (exit $ac_status); } && {
  42600. - test -z "$ac_c_werror_flag" ||
  42601. - test ! -s conftest.err
  42602. - } && test -s conftest.$ac_objext; then
  42603. - break
  42604. -else
  42605. - $as_echo "$as_me: failed program was:" >&5
  42606. -sed 's/^/| /' conftest.$ac_ext >&5
  42607. + cfgfile="${ofile}T"
  42608. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  42609. + $RM "$cfgfile"
  42610. + cat <<_LT_EOF >> "$cfgfile"
  42611. +#! $SHELL
  42612. -fi
  42613. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  42614. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  42615. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  42616. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  42617. +#
  42618. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  42619. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  42620. +# Written by Gordon Matzigkeit, 1996
  42621. +#
  42622. +# This file is part of GNU Libtool.
  42623. +#
  42624. +# GNU Libtool is free software; you can redistribute it and/or
  42625. +# modify it under the terms of the GNU General Public License as
  42626. +# published by the Free Software Foundation; either version 2 of
  42627. +# the License, or (at your option) any later version.
  42628. +#
  42629. +# As a special exception to the GNU General Public License,
  42630. +# if you distribute this file as part of a program or library that
  42631. +# is built using GNU Libtool, you may include this file under the
  42632. +# same distribution terms that you use for the rest of that program.
  42633. +#
  42634. +# GNU Libtool is distributed in the hope that it will be useful,
  42635. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  42636. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  42637. +# GNU General Public License for more details.
  42638. +#
  42639. +# You should have received a copy of the GNU General Public License
  42640. +# along with GNU Libtool; see the file COPYING. If not, a copy
  42641. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  42642. +# obtained by writing to the Free Software Foundation, Inc.,
  42643. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  42644. -rm -f core conftest.err conftest.$ac_objext
  42645. - CC="$CC -n32"
  42646. - rm -f conftest.$ac_objext
  42647. -if { (ac_try="$ac_compile"
  42648. -case "(($ac_try" in
  42649. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42650. - *) ac_try_echo=$ac_try;;
  42651. -esac
  42652. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42653. -$as_echo "$ac_try_echo") >&5
  42654. - (eval "$ac_compile") 2>conftest.er1
  42655. - ac_status=$?
  42656. - grep -v '^ *+' conftest.er1 >conftest.err
  42657. - rm -f conftest.er1
  42658. - cat conftest.err >&5
  42659. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42660. - (exit $ac_status); } && {
  42661. - test -z "$ac_c_werror_flag" ||
  42662. - test ! -s conftest.err
  42663. - } && test -s conftest.$ac_objext; then
  42664. - ac_cv_sys_largefile_CC=' -n32'; break
  42665. -else
  42666. - $as_echo "$as_me: failed program was:" >&5
  42667. -sed 's/^/| /' conftest.$ac_ext >&5
  42668. +# The names of the tagged configurations supported by this script.
  42669. +available_tags="CXX "
  42670. -fi
  42671. +# ### BEGIN LIBTOOL CONFIG
  42672. -rm -f core conftest.err conftest.$ac_objext
  42673. - break
  42674. - done
  42675. - CC=$ac_save_CC
  42676. - rm -f conftest.$ac_ext
  42677. - fi
  42678. -fi
  42679. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  42680. -$as_echo "$ac_cv_sys_largefile_CC" >&6; }
  42681. - if test "$ac_cv_sys_largefile_CC" != no; then
  42682. - CC=$CC$ac_cv_sys_largefile_CC
  42683. - fi
  42684. +# Which release of libtool.m4 was used?
  42685. +macro_version=$macro_version
  42686. +macro_revision=$macro_revision
  42687. - { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  42688. -$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  42689. -if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  42690. - $as_echo_n "(cached) " >&6
  42691. -else
  42692. - while :; do
  42693. - cat >conftest.$ac_ext <<_ACEOF
  42694. -/* confdefs.h. */
  42695. -_ACEOF
  42696. -cat confdefs.h >>conftest.$ac_ext
  42697. -cat >>conftest.$ac_ext <<_ACEOF
  42698. -/* end confdefs.h. */
  42699. -#include <sys/types.h>
  42700. - /* Check that off_t can represent 2**63 - 1 correctly.
  42701. - We can't simply define LARGE_OFF_T to be 9223372036854775807,
  42702. - since some C++ compilers masquerading as C compilers
  42703. - incorrectly reject 9223372036854775807. */
  42704. -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  42705. - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  42706. - && LARGE_OFF_T % 2147483647 == 1)
  42707. - ? 1 : -1];
  42708. -int
  42709. -main ()
  42710. -{
  42711. +# Whether or not to build shared libraries.
  42712. +build_libtool_libs=$enable_shared
  42713. - ;
  42714. - return 0;
  42715. -}
  42716. -_ACEOF
  42717. -rm -f conftest.$ac_objext
  42718. -if { (ac_try="$ac_compile"
  42719. -case "(($ac_try" in
  42720. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42721. - *) ac_try_echo=$ac_try;;
  42722. -esac
  42723. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42724. -$as_echo "$ac_try_echo") >&5
  42725. - (eval "$ac_compile") 2>conftest.er1
  42726. - ac_status=$?
  42727. - grep -v '^ *+' conftest.er1 >conftest.err
  42728. - rm -f conftest.er1
  42729. - cat conftest.err >&5
  42730. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42731. - (exit $ac_status); } && {
  42732. - test -z "$ac_c_werror_flag" ||
  42733. - test ! -s conftest.err
  42734. - } && test -s conftest.$ac_objext; then
  42735. - ac_cv_sys_file_offset_bits=no; break
  42736. -else
  42737. - $as_echo "$as_me: failed program was:" >&5
  42738. -sed 's/^/| /' conftest.$ac_ext >&5
  42739. +# Whether or not to build static libraries.
  42740. +build_old_libs=$enable_static
  42741. +# What type of objects to build.
  42742. +pic_mode=$pic_mode
  42743. -fi
  42744. +# Whether or not to optimize for fast installation.
  42745. +fast_install=$enable_fast_install
  42746. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42747. - cat >conftest.$ac_ext <<_ACEOF
  42748. -/* confdefs.h. */
  42749. -_ACEOF
  42750. -cat confdefs.h >>conftest.$ac_ext
  42751. -cat >>conftest.$ac_ext <<_ACEOF
  42752. -/* end confdefs.h. */
  42753. -#define _FILE_OFFSET_BITS 64
  42754. -#include <sys/types.h>
  42755. - /* Check that off_t can represent 2**63 - 1 correctly.
  42756. - We can't simply define LARGE_OFF_T to be 9223372036854775807,
  42757. - since some C++ compilers masquerading as C compilers
  42758. - incorrectly reject 9223372036854775807. */
  42759. -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  42760. - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  42761. - && LARGE_OFF_T % 2147483647 == 1)
  42762. - ? 1 : -1];
  42763. -int
  42764. -main ()
  42765. -{
  42766. +# The host system.
  42767. +host_alias=$host_alias
  42768. +host=$host
  42769. +host_os=$host_os
  42770. - ;
  42771. - return 0;
  42772. -}
  42773. -_ACEOF
  42774. -rm -f conftest.$ac_objext
  42775. -if { (ac_try="$ac_compile"
  42776. -case "(($ac_try" in
  42777. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42778. - *) ac_try_echo=$ac_try;;
  42779. -esac
  42780. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42781. -$as_echo "$ac_try_echo") >&5
  42782. - (eval "$ac_compile") 2>conftest.er1
  42783. - ac_status=$?
  42784. - grep -v '^ *+' conftest.er1 >conftest.err
  42785. - rm -f conftest.er1
  42786. - cat conftest.err >&5
  42787. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42788. - (exit $ac_status); } && {
  42789. - test -z "$ac_c_werror_flag" ||
  42790. - test ! -s conftest.err
  42791. - } && test -s conftest.$ac_objext; then
  42792. - ac_cv_sys_file_offset_bits=64; break
  42793. -else
  42794. - $as_echo "$as_me: failed program was:" >&5
  42795. -sed 's/^/| /' conftest.$ac_ext >&5
  42796. +# The build system.
  42797. +build_alias=$build_alias
  42798. +build=$build
  42799. +build_os=$build_os
  42800. +# A sed program that does not truncate output.
  42801. +SED=$lt_SED
  42802. -fi
  42803. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  42804. +Xsed="\$SED -e 1s/^X//"
  42805. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42806. - ac_cv_sys_file_offset_bits=unknown
  42807. - break
  42808. -done
  42809. -fi
  42810. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  42811. -$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  42812. -case $ac_cv_sys_file_offset_bits in #(
  42813. - no | unknown) ;;
  42814. - *)
  42815. -cat >>confdefs.h <<_ACEOF
  42816. -#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  42817. -_ACEOF
  42818. -;;
  42819. -esac
  42820. -rm -rf conftest*
  42821. - if test $ac_cv_sys_file_offset_bits = unknown; then
  42822. - { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  42823. -$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  42824. -if test "${ac_cv_sys_large_files+set}" = set; then
  42825. - $as_echo_n "(cached) " >&6
  42826. -else
  42827. - while :; do
  42828. - cat >conftest.$ac_ext <<_ACEOF
  42829. -/* confdefs.h. */
  42830. -_ACEOF
  42831. -cat confdefs.h >>conftest.$ac_ext
  42832. -cat >>conftest.$ac_ext <<_ACEOF
  42833. -/* end confdefs.h. */
  42834. -#include <sys/types.h>
  42835. - /* Check that off_t can represent 2**63 - 1 correctly.
  42836. - We can't simply define LARGE_OFF_T to be 9223372036854775807,
  42837. - since some C++ compilers masquerading as C compilers
  42838. - incorrectly reject 9223372036854775807. */
  42839. -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  42840. - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  42841. - && LARGE_OFF_T % 2147483647 == 1)
  42842. - ? 1 : -1];
  42843. -int
  42844. -main ()
  42845. -{
  42846. +# A grep program that handles long lines.
  42847. +GREP=$lt_GREP
  42848. - ;
  42849. - return 0;
  42850. -}
  42851. -_ACEOF
  42852. -rm -f conftest.$ac_objext
  42853. -if { (ac_try="$ac_compile"
  42854. -case "(($ac_try" in
  42855. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42856. - *) ac_try_echo=$ac_try;;
  42857. -esac
  42858. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42859. -$as_echo "$ac_try_echo") >&5
  42860. - (eval "$ac_compile") 2>conftest.er1
  42861. - ac_status=$?
  42862. - grep -v '^ *+' conftest.er1 >conftest.err
  42863. - rm -f conftest.er1
  42864. - cat conftest.err >&5
  42865. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42866. - (exit $ac_status); } && {
  42867. - test -z "$ac_c_werror_flag" ||
  42868. - test ! -s conftest.err
  42869. - } && test -s conftest.$ac_objext; then
  42870. - ac_cv_sys_large_files=no; break
  42871. -else
  42872. - $as_echo "$as_me: failed program was:" >&5
  42873. -sed 's/^/| /' conftest.$ac_ext >&5
  42874. +# An ERE matcher.
  42875. +EGREP=$lt_EGREP
  42876. +# A literal string matcher.
  42877. +FGREP=$lt_FGREP
  42878. -fi
  42879. +# A BSD- or MS-compatible name lister.
  42880. +NM=$lt_NM
  42881. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42882. - cat >conftest.$ac_ext <<_ACEOF
  42883. -/* confdefs.h. */
  42884. -_ACEOF
  42885. -cat confdefs.h >>conftest.$ac_ext
  42886. -cat >>conftest.$ac_ext <<_ACEOF
  42887. -/* end confdefs.h. */
  42888. -#define _LARGE_FILES 1
  42889. -#include <sys/types.h>
  42890. - /* Check that off_t can represent 2**63 - 1 correctly.
  42891. - We can't simply define LARGE_OFF_T to be 9223372036854775807,
  42892. - since some C++ compilers masquerading as C compilers
  42893. - incorrectly reject 9223372036854775807. */
  42894. -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  42895. - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  42896. - && LARGE_OFF_T % 2147483647 == 1)
  42897. - ? 1 : -1];
  42898. -int
  42899. -main ()
  42900. -{
  42901. +# Whether we need soft or hard links.
  42902. +LN_S=$lt_LN_S
  42903. - ;
  42904. - return 0;
  42905. -}
  42906. -_ACEOF
  42907. -rm -f conftest.$ac_objext
  42908. -if { (ac_try="$ac_compile"
  42909. -case "(($ac_try" in
  42910. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42911. - *) ac_try_echo=$ac_try;;
  42912. -esac
  42913. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42914. -$as_echo "$ac_try_echo") >&5
  42915. - (eval "$ac_compile") 2>conftest.er1
  42916. - ac_status=$?
  42917. - grep -v '^ *+' conftest.er1 >conftest.err
  42918. - rm -f conftest.er1
  42919. - cat conftest.err >&5
  42920. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42921. - (exit $ac_status); } && {
  42922. - test -z "$ac_c_werror_flag" ||
  42923. - test ! -s conftest.err
  42924. - } && test -s conftest.$ac_objext; then
  42925. - ac_cv_sys_large_files=1; break
  42926. -else
  42927. - $as_echo "$as_me: failed program was:" >&5
  42928. -sed 's/^/| /' conftest.$ac_ext >&5
  42929. +# What is the maximum length of a command?
  42930. +max_cmd_len=$max_cmd_len
  42931. +# Object file suffix (normally "o").
  42932. +objext=$ac_objext
  42933. -fi
  42934. +# Executable file suffix (normally "").
  42935. +exeext=$exeext
  42936. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42937. - ac_cv_sys_large_files=unknown
  42938. - break
  42939. -done
  42940. -fi
  42941. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  42942. -$as_echo "$ac_cv_sys_large_files" >&6; }
  42943. -case $ac_cv_sys_large_files in #(
  42944. - no | unknown) ;;
  42945. - *)
  42946. -cat >>confdefs.h <<_ACEOF
  42947. -#define _LARGE_FILES $ac_cv_sys_large_files
  42948. -_ACEOF
  42949. -;;
  42950. -esac
  42951. -rm -rf conftest*
  42952. - fi
  42953. -fi
  42954. +# whether the shell understands "unset".
  42955. +lt_unset=$lt_unset
  42956. +# turn spaces into newlines.
  42957. +SP2NL=$lt_lt_SP2NL
  42958. -# LYNX documentation generation
  42959. -# Check whether --enable-lynx was given.
  42960. -if test "${enable_lynx+set}" = set; then
  42961. - enableval=$enable_lynx; case "${enableval}" in
  42962. - yes) lynx=yes ;;
  42963. - no) lynx=no ;;
  42964. - *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-lynx" >&5
  42965. -$as_echo "$as_me: error: bad value ${enableval} for --disable-lynx" >&2;}
  42966. - { (exit 1); exit 1; }; } ;;
  42967. -esac
  42968. -else
  42969. - lynx=yes
  42970. -fi
  42971. +# turn newlines into spaces.
  42972. +NL2SP=$lt_lt_NL2SP
  42973. +# How to create reloadable object files.
  42974. +reload_flag=$lt_reload_flag
  42975. +reload_cmds=$lt_reload_cmds
  42976. -if test x$lynx = xyes ; then
  42977. - # Extract the first word of "lynx", so it can be a program name with args.
  42978. -set dummy lynx; ac_word=$2
  42979. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  42980. -$as_echo_n "checking for $ac_word... " >&6; }
  42981. -if test "${ac_cv_prog_have_lynx+set}" = set; then
  42982. - $as_echo_n "(cached) " >&6
  42983. -else
  42984. - if test -n "$have_lynx"; then
  42985. - ac_cv_prog_have_lynx="$have_lynx" # Let the user override the test.
  42986. -else
  42987. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42988. -for as_dir in $PATH
  42989. -do
  42990. - IFS=$as_save_IFS
  42991. - test -z "$as_dir" && as_dir=.
  42992. - for ac_exec_ext in '' $ac_executable_extensions; do
  42993. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  42994. - ac_cv_prog_have_lynx="yes"
  42995. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  42996. - break 2
  42997. - fi
  42998. -done
  42999. -done
  43000. -IFS=$as_save_IFS
  43001. +# An object symbol dumper.
  43002. +OBJDUMP=$lt_OBJDUMP
  43003. - test -z "$ac_cv_prog_have_lynx" && ac_cv_prog_have_lynx="no"
  43004. -fi
  43005. -fi
  43006. -have_lynx=$ac_cv_prog_have_lynx
  43007. -if test -n "$have_lynx"; then
  43008. - { $as_echo "$as_me:$LINENO: result: $have_lynx" >&5
  43009. -$as_echo "$have_lynx" >&6; }
  43010. -else
  43011. - { $as_echo "$as_me:$LINENO: result: no" >&5
  43012. -$as_echo "no" >&6; }
  43013. -fi
  43014. +# Method to check whether dependent libraries are shared objects.
  43015. +deplibs_check_method=$lt_deplibs_check_method
  43016. +# Command to use when deplibs_check_method == "file_magic".
  43017. +file_magic_cmd=$lt_file_magic_cmd
  43018. +# The archiver.
  43019. +AR=$lt_AR
  43020. +AR_FLAGS=$lt_AR_FLAGS
  43021. - if test x$have_lynx = xno ; then
  43022. - { $as_echo "$as_me:$LINENO: WARNING: *** lynx not found, plain text README will not be built ***" >&5
  43023. -$as_echo "$as_me: WARNING: *** lynx not found, plain text README will not be built ***" >&2;}
  43024. - fi
  43025. -fi
  43026. +# A symbol stripping program.
  43027. +STRIP=$lt_STRIP
  43028. - if test "x$lynx" = xyes; then
  43029. - USE_LYNX_TRUE=
  43030. - USE_LYNX_FALSE='#'
  43031. -else
  43032. - USE_LYNX_TRUE='#'
  43033. - USE_LYNX_FALSE=
  43034. -fi
  43035. +# Commands used to install an old-style archive.
  43036. +RANLIB=$lt_RANLIB
  43037. +old_postinstall_cmds=$lt_old_postinstall_cmds
  43038. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  43039. +# A C compiler.
  43040. +LTCC=$lt_CC
  43041. -ac_config_files="$ac_config_files libdaemon/Makefile Makefile doc/Makefile doc/README.html doc/doxygen.conf examples/Makefile libdaemon.pc"
  43042. +# LTCC compiler flags.
  43043. +LTCFLAGS=$lt_CFLAGS
  43044. -cat >confcache <<\_ACEOF
  43045. -# This file is a shell script that caches the results of configure
  43046. -# tests run on this system so they can be shared between configure
  43047. -# scripts and configure runs, see configure's option --config-cache.
  43048. -# It is not useful on other systems. If it contains results you don't
  43049. -# want to keep, you may remove or edit it.
  43050. -#
  43051. -# config.status only pays attention to the cache file if you give it
  43052. -# the --recheck option to rerun configure.
  43053. -#
  43054. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  43055. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  43056. -# following values.
  43057. +# Take the output of nm and produce a listing of raw symbols and C names.
  43058. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  43059. -_ACEOF
  43060. +# Transform the output of nm in a proper C declaration.
  43061. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  43062. -# The following way of writing the cache mishandles newlines in values,
  43063. -# but we know of no workaround that is simple, portable, and efficient.
  43064. -# So, we kill variables containing newlines.
  43065. -# Ultrix sh set writes to stderr and can't be redirected directly,
  43066. -# and sets the high bit in the cache file unless we assign to the vars.
  43067. -(
  43068. - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  43069. - eval ac_val=\$$ac_var
  43070. - case $ac_val in #(
  43071. - *${as_nl}*)
  43072. - case $ac_var in #(
  43073. - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  43074. -$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  43075. - esac
  43076. - case $ac_var in #(
  43077. - _ | IFS | as_nl) ;; #(
  43078. - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  43079. - *) $as_unset $ac_var ;;
  43080. - esac ;;
  43081. - esac
  43082. - done
  43083. +# Transform the output of nm in a C name address pair.
  43084. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  43085. - (set) 2>&1 |
  43086. - case $as_nl`(ac_space=' '; set) 2>&1` in #(
  43087. - *${as_nl}ac_space=\ *)
  43088. - # `set' does not quote correctly, so add quotes (double-quote
  43089. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  43090. - sed -n \
  43091. - "s/'/'\\\\''/g;
  43092. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  43093. - ;; #(
  43094. - *)
  43095. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  43096. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  43097. - ;;
  43098. - esac |
  43099. - sort
  43100. -) |
  43101. - sed '
  43102. - /^ac_cv_env_/b end
  43103. - t clear
  43104. - :clear
  43105. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  43106. - t end
  43107. - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  43108. - :end' >>confcache
  43109. -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  43110. - if test -w "$cache_file"; then
  43111. - test "x$cache_file" != "x/dev/null" &&
  43112. - { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  43113. -$as_echo "$as_me: updating cache $cache_file" >&6;}
  43114. - cat confcache >$cache_file
  43115. - else
  43116. - { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  43117. -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  43118. - fi
  43119. -fi
  43120. -rm -f confcache
  43121. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  43122. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  43123. +
  43124. +# The name of the directory that contains temporary libtool files.
  43125. +objdir=$objdir
  43126. +
  43127. +# Shell to use when invoking shell scripts.
  43128. +SHELL=$lt_SHELL
  43129. +
  43130. +# An echo program that does not interpret backslashes.
  43131. +ECHO=$lt_ECHO
  43132. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  43133. -# Let make expand exec_prefix.
  43134. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  43135. +# Used to examine libraries when file_magic_cmd begins with "file".
  43136. +MAGIC_CMD=$MAGIC_CMD
  43137. -DEFS=-DHAVE_CONFIG_H
  43138. +# Must we lock files when doing compilation?
  43139. +need_locks=$lt_need_locks
  43140. -ac_libobjs=
  43141. -ac_ltlibobjs=
  43142. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  43143. - # 1. Remove the extension, and $U if already installed.
  43144. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  43145. - ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  43146. - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  43147. - # will be set to the directory where LIBOBJS objects are built.
  43148. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  43149. - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  43150. -done
  43151. -LIBOBJS=$ac_libobjs
  43152. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  43153. +DSYMUTIL=$lt_DSYMUTIL
  43154. -LTLIBOBJS=$ac_ltlibobjs
  43155. +# Tool to change global to local symbols on Mac OS X.
  43156. +NMEDIT=$lt_NMEDIT
  43157. +# Tool to manipulate fat objects and archives on Mac OS X.
  43158. +LIPO=$lt_LIPO
  43159. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  43160. - { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  43161. -Usually this means the macro was only invoked conditionally." >&5
  43162. -$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  43163. -Usually this means the macro was only invoked conditionally." >&2;}
  43164. - { (exit 1); exit 1; }; }
  43165. -fi
  43166. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  43167. - { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  43168. -Usually this means the macro was only invoked conditionally." >&5
  43169. -$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  43170. -Usually this means the macro was only invoked conditionally." >&2;}
  43171. - { (exit 1); exit 1; }; }
  43172. -fi
  43173. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  43174. - { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  43175. -Usually this means the macro was only invoked conditionally." >&5
  43176. -$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  43177. -Usually this means the macro was only invoked conditionally." >&2;}
  43178. - { (exit 1); exit 1; }; }
  43179. -fi
  43180. -if test -z "${USE_LYNX_TRUE}" && test -z "${USE_LYNX_FALSE}"; then
  43181. - { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LYNX\" was never defined.
  43182. -Usually this means the macro was only invoked conditionally." >&5
  43183. -$as_echo "$as_me: error: conditional \"USE_LYNX\" was never defined.
  43184. -Usually this means the macro was only invoked conditionally." >&2;}
  43185. - { (exit 1); exit 1; }; }
  43186. -fi
  43187. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  43188. +OTOOL=$lt_OTOOL
  43189. -: ${CONFIG_STATUS=./config.status}
  43190. -ac_write_fail=0
  43191. -ac_clean_files_save=$ac_clean_files
  43192. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  43193. -{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  43194. -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  43195. -cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43196. -#! $SHELL
  43197. -# Generated by $as_me.
  43198. -# Run this file to recreate the current configuration.
  43199. -# Compiler output produced by configure, useful for debugging
  43200. -# configure, is in config.log if it exists.
  43201. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  43202. +OTOOL64=$lt_OTOOL64
  43203. -debug=false
  43204. -ac_cs_recheck=false
  43205. -ac_cs_silent=false
  43206. -SHELL=\${CONFIG_SHELL-$SHELL}
  43207. -_ACEOF
  43208. +# Old archive suffix (normally "a").
  43209. +libext=$libext
  43210. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43211. -## --------------------- ##
  43212. -## M4sh Initialization. ##
  43213. -## --------------------- ##
  43214. +# Shared library suffix (normally ".so").
  43215. +shrext_cmds=$lt_shrext_cmds
  43216. -# Be more Bourne compatible
  43217. -DUALCASE=1; export DUALCASE # for MKS sh
  43218. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  43219. - emulate sh
  43220. - NULLCMD=:
  43221. - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  43222. - # is contrary to our usage. Disable this feature.
  43223. - alias -g '${1+"$@"}'='"$@"'
  43224. - setopt NO_GLOB_SUBST
  43225. -else
  43226. - case `(set -o) 2>/dev/null` in
  43227. - *posix*) set -o posix ;;
  43228. -esac
  43229. +# The commands to extract the exported symbol list from a shared archive.
  43230. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  43231. -fi
  43232. +# Variables whose values should be saved in libtool wrapper scripts and
  43233. +# restored at link time.
  43234. +variables_saved_for_relink=$lt_variables_saved_for_relink
  43235. +# Do we need the "lib" prefix for modules?
  43236. +need_lib_prefix=$need_lib_prefix
  43237. +# Do we need a version for libraries?
  43238. +need_version=$need_version
  43239. +# Library versioning type.
  43240. +version_type=$version_type
  43241. -# PATH needs CR
  43242. -# Avoid depending upon Character Ranges.
  43243. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  43244. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  43245. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  43246. -as_cr_digits='0123456789'
  43247. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  43248. +# Shared library runtime path variable.
  43249. +runpath_var=$runpath_var
  43250. -as_nl='
  43251. -'
  43252. -export as_nl
  43253. -# Printing a long string crashes Solaris 7 /usr/bin/printf.
  43254. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  43255. -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  43256. -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  43257. -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  43258. - as_echo='printf %s\n'
  43259. - as_echo_n='printf %s'
  43260. -else
  43261. - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  43262. - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  43263. - as_echo_n='/usr/ucb/echo -n'
  43264. - else
  43265. - as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  43266. - as_echo_n_body='eval
  43267. - arg=$1;
  43268. - case $arg in
  43269. - *"$as_nl"*)
  43270. - expr "X$arg" : "X\\(.*\\)$as_nl";
  43271. - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  43272. - esac;
  43273. - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  43274. - '
  43275. - export as_echo_n_body
  43276. - as_echo_n='sh -c $as_echo_n_body as_echo'
  43277. - fi
  43278. - export as_echo_body
  43279. - as_echo='sh -c $as_echo_body as_echo'
  43280. -fi
  43281. +# Shared library path variable.
  43282. +shlibpath_var=$shlibpath_var
  43283. -# The user is always right.
  43284. -if test "${PATH_SEPARATOR+set}" != set; then
  43285. - PATH_SEPARATOR=:
  43286. - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  43287. - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  43288. - PATH_SEPARATOR=';'
  43289. - }
  43290. -fi
  43291. +# Is shlibpath searched before the hard-coded library search path?
  43292. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  43293. -# Support unset when possible.
  43294. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  43295. - as_unset=unset
  43296. -else
  43297. - as_unset=false
  43298. -fi
  43299. +# Format of library name prefix.
  43300. +libname_spec=$lt_libname_spec
  43301. +# List of archive names. First name is the real one, the rest are links.
  43302. +# The last name is the one that the linker finds with -lNAME
  43303. +library_names_spec=$lt_library_names_spec
  43304. -# IFS
  43305. -# We need space, tab and new line, in precisely that order. Quoting is
  43306. -# there to prevent editors from complaining about space-tab.
  43307. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  43308. -# splitting by setting IFS to empty value.)
  43309. -IFS=" "" $as_nl"
  43310. +# The coded name of the library, if different from the real name.
  43311. +soname_spec=$lt_soname_spec
  43312. -# Find who we are. Look in the path if we contain no directory separator.
  43313. -case $0 in
  43314. - *[\\/]* ) as_myself=$0 ;;
  43315. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  43316. -for as_dir in $PATH
  43317. -do
  43318. - IFS=$as_save_IFS
  43319. - test -z "$as_dir" && as_dir=.
  43320. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  43321. -done
  43322. -IFS=$as_save_IFS
  43323. +# Command to use after installation of a shared archive.
  43324. +postinstall_cmds=$lt_postinstall_cmds
  43325. - ;;
  43326. -esac
  43327. -# We did not find ourselves, most probably we were run as `sh COMMAND'
  43328. -# in which case we are not to be found in the path.
  43329. -if test "x$as_myself" = x; then
  43330. - as_myself=$0
  43331. -fi
  43332. -if test ! -f "$as_myself"; then
  43333. - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  43334. - { (exit 1); exit 1; }
  43335. -fi
  43336. +# Command to use after uninstallation of a shared archive.
  43337. +postuninstall_cmds=$lt_postuninstall_cmds
  43338. -# Work around bugs in pre-3.0 UWIN ksh.
  43339. -for as_var in ENV MAIL MAILPATH
  43340. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  43341. -done
  43342. -PS1='$ '
  43343. -PS2='> '
  43344. -PS4='+ '
  43345. +# Commands used to finish a libtool library installation in a directory.
  43346. +finish_cmds=$lt_finish_cmds
  43347. -# NLS nuisances.
  43348. -LC_ALL=C
  43349. -export LC_ALL
  43350. -LANGUAGE=C
  43351. -export LANGUAGE
  43352. +# As "finish_cmds", except a single script fragment to be evaled but
  43353. +# not shown.
  43354. +finish_eval=$lt_finish_eval
  43355. -# Required to use basename.
  43356. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  43357. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  43358. - as_expr=expr
  43359. -else
  43360. - as_expr=false
  43361. -fi
  43362. +# Whether we should hardcode library paths into libraries.
  43363. +hardcode_into_libs=$hardcode_into_libs
  43364. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  43365. - as_basename=basename
  43366. -else
  43367. - as_basename=false
  43368. -fi
  43369. +# Compile-time system search path for libraries.
  43370. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  43371. +# Run-time system search path for libraries.
  43372. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  43373. -# Name of the executable.
  43374. -as_me=`$as_basename -- "$0" ||
  43375. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  43376. - X"$0" : 'X\(//\)$' \| \
  43377. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  43378. -$as_echo X/"$0" |
  43379. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  43380. - s//\1/
  43381. - q
  43382. - }
  43383. - /^X\/\(\/\/\)$/{
  43384. - s//\1/
  43385. - q
  43386. - }
  43387. - /^X\/\(\/\).*/{
  43388. - s//\1/
  43389. - q
  43390. - }
  43391. - s/.*/./; q'`
  43392. +# Whether dlopen is supported.
  43393. +dlopen_support=$enable_dlopen
  43394. -# CDPATH.
  43395. -$as_unset CDPATH
  43396. +# Whether dlopen of programs is supported.
  43397. +dlopen_self=$enable_dlopen_self
  43398. +# Whether dlopen of statically linked programs is supported.
  43399. +dlopen_self_static=$enable_dlopen_self_static
  43400. +# Commands to strip libraries.
  43401. +old_striplib=$lt_old_striplib
  43402. +striplib=$lt_striplib
  43403. - as_lineno_1=$LINENO
  43404. - as_lineno_2=$LINENO
  43405. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  43406. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  43407. -
  43408. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  43409. - # uniformly replaced by the line number. The first 'sed' inserts a
  43410. - # line-number line after each line using $LINENO; the second 'sed'
  43411. - # does the real work. The second script uses 'N' to pair each
  43412. - # line-number line with the line containing $LINENO, and appends
  43413. - # trailing '-' during substitution so that $LINENO is not a special
  43414. - # case at line end.
  43415. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  43416. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  43417. - # E. McMahon (1931-1989) for sed's syntax. :-)
  43418. - sed -n '
  43419. - p
  43420. - /[$]LINENO/=
  43421. - ' <$as_myself |
  43422. - sed '
  43423. - s/[$]LINENO.*/&-/
  43424. - t lineno
  43425. - b
  43426. - :lineno
  43427. - N
  43428. - :loop
  43429. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  43430. - t loop
  43431. - s/-\n.*//
  43432. - ' >$as_me.lineno &&
  43433. - chmod +x "$as_me.lineno" ||
  43434. - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  43435. - { (exit 1); exit 1; }; }
  43436. - # Don't try to exec as it changes $[0], causing all sort of problems
  43437. - # (the dirname of $[0] is not the place where we might find the
  43438. - # original and so on. Autoconf is especially sensitive to this).
  43439. - . "./$as_me.lineno"
  43440. - # Exit status is that of the last command.
  43441. - exit
  43442. -}
  43443. +# The linker used to build libraries.
  43444. +LD=$lt_LD
  43445. +
  43446. +# Commands used to build an old-style archive.
  43447. +old_archive_cmds=$lt_old_archive_cmds
  43448. +
  43449. +# A language specific compiler.
  43450. +CC=$lt_compiler
  43451. +
  43452. +# Is the compiler the GNU compiler?
  43453. +with_gcc=$GCC
  43454. +
  43455. +# Compiler flag to turn off builtin functions.
  43456. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  43457. +
  43458. +# How to pass a linker flag through the compiler.
  43459. +wl=$lt_lt_prog_compiler_wl
  43460. +# Additional compiler flags for building library objects.
  43461. +pic_flag=$lt_lt_prog_compiler_pic
  43462. +
  43463. +# Compiler flag to prevent dynamic linking.
  43464. +link_static_flag=$lt_lt_prog_compiler_static
  43465. +
  43466. +# Does compiler simultaneously support -c and -o options?
  43467. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  43468. +
  43469. +# Whether or not to add -lc for building shared libraries.
  43470. +build_libtool_need_lc=$archive_cmds_need_lc
  43471. +
  43472. +# Whether or not to disallow shared libs when runtime libs are static.
  43473. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  43474. +
  43475. +# Compiler flag to allow reflexive dlopens.
  43476. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  43477. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  43478. - as_dirname=dirname
  43479. -else
  43480. - as_dirname=false
  43481. -fi
  43482. +# Compiler flag to generate shared objects directly from archives.
  43483. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  43484. -ECHO_C= ECHO_N= ECHO_T=
  43485. -case `echo -n x` in
  43486. --n*)
  43487. - case `echo 'x\c'` in
  43488. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  43489. - *) ECHO_C='\c';;
  43490. - esac;;
  43491. -*)
  43492. - ECHO_N='-n';;
  43493. -esac
  43494. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  43495. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  43496. - as_expr=expr
  43497. -else
  43498. - as_expr=false
  43499. -fi
  43500. +# Whether the compiler copes with passing no objects directly.
  43501. +compiler_needs_object=$lt_compiler_needs_object
  43502. -rm -f conf$$ conf$$.exe conf$$.file
  43503. -if test -d conf$$.dir; then
  43504. - rm -f conf$$.dir/conf$$.file
  43505. -else
  43506. - rm -f conf$$.dir
  43507. - mkdir conf$$.dir 2>/dev/null
  43508. -fi
  43509. -if (echo >conf$$.file) 2>/dev/null; then
  43510. - if ln -s conf$$.file conf$$ 2>/dev/null; then
  43511. - as_ln_s='ln -s'
  43512. - # ... but there are two gotchas:
  43513. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  43514. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  43515. - # In both cases, we have to default to `cp -p'.
  43516. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  43517. - as_ln_s='cp -p'
  43518. - elif ln conf$$.file conf$$ 2>/dev/null; then
  43519. - as_ln_s=ln
  43520. - else
  43521. - as_ln_s='cp -p'
  43522. - fi
  43523. -else
  43524. - as_ln_s='cp -p'
  43525. -fi
  43526. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  43527. -rmdir conf$$.dir 2>/dev/null
  43528. +# Create an old-style archive from a shared archive.
  43529. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  43530. -if mkdir -p . 2>/dev/null; then
  43531. - as_mkdir_p=:
  43532. -else
  43533. - test -d ./-p && rmdir ./-p
  43534. - as_mkdir_p=false
  43535. -fi
  43536. +# Create a temporary old-style archive to link instead of a shared archive.
  43537. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  43538. -if test -x / >/dev/null 2>&1; then
  43539. - as_test_x='test -x'
  43540. -else
  43541. - if ls -dL / >/dev/null 2>&1; then
  43542. - as_ls_L_option=L
  43543. - else
  43544. - as_ls_L_option=
  43545. - fi
  43546. - as_test_x='
  43547. - eval sh -c '\''
  43548. - if test -d "$1"; then
  43549. - test -d "$1/.";
  43550. - else
  43551. - case $1 in
  43552. - -*)set "./$1";;
  43553. - esac;
  43554. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  43555. - ???[sx]*):;;*)false;;esac;fi
  43556. - '\'' sh
  43557. - '
  43558. -fi
  43559. -as_executable_p=$as_test_x
  43560. +# Commands used to build a shared archive.
  43561. +archive_cmds=$lt_archive_cmds
  43562. +archive_expsym_cmds=$lt_archive_expsym_cmds
  43563. -# Sed expression to map a string onto a valid CPP name.
  43564. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  43565. +# Commands used to build a loadable module if different from building
  43566. +# a shared archive.
  43567. +module_cmds=$lt_module_cmds
  43568. +module_expsym_cmds=$lt_module_expsym_cmds
  43569. -# Sed expression to map a string onto a valid variable name.
  43570. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  43571. +# Whether we are building with GNU ld or not.
  43572. +with_gnu_ld=$lt_with_gnu_ld
  43573. +# Flag that allows shared libraries with undefined symbols to be built.
  43574. +allow_undefined_flag=$lt_allow_undefined_flag
  43575. -exec 6>&1
  43576. +# Flag that enforces no undefined symbols.
  43577. +no_undefined_flag=$lt_no_undefined_flag
  43578. -# Save the log message, to keep $[0] and so on meaningful, and to
  43579. -# report actual input values of CONFIG_FILES etc. instead of their
  43580. -# values after options handling.
  43581. -ac_log="
  43582. -This file was extended by libdaemon $as_me 0.13, which was
  43583. -generated by GNU Autoconf 2.62. Invocation command line was
  43584. +# Flag to hardcode \$libdir into a binary during linking.
  43585. +# This must work even if \$libdir does not exist
  43586. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  43587. - CONFIG_FILES = $CONFIG_FILES
  43588. - CONFIG_HEADERS = $CONFIG_HEADERS
  43589. - CONFIG_LINKS = $CONFIG_LINKS
  43590. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  43591. - $ $0 $@
  43592. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  43593. +# during linking. This must work even if \$libdir does not exist.
  43594. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  43595. -on `(hostname || uname -n) 2>/dev/null | sed 1q`
  43596. -"
  43597. +# Whether we need a single "-rpath" flag with a separated argument.
  43598. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  43599. -_ACEOF
  43600. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  43601. +# DIR into the resulting binary.
  43602. +hardcode_direct=$hardcode_direct
  43603. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43604. -# Files that config.status was made for.
  43605. -config_files="$ac_config_files"
  43606. -config_headers="$ac_config_headers"
  43607. -config_commands="$ac_config_commands"
  43608. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  43609. +# DIR into the resulting binary and the resulting library dependency is
  43610. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  43611. +# library is relocated.
  43612. +hardcode_direct_absolute=$hardcode_direct_absolute
  43613. -_ACEOF
  43614. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  43615. +# into the resulting binary.
  43616. +hardcode_minus_L=$hardcode_minus_L
  43617. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43618. -ac_cs_usage="\
  43619. -\`$as_me' instantiates files from templates according to the
  43620. -current configuration.
  43621. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  43622. +# into the resulting binary.
  43623. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  43624. -Usage: $0 [OPTIONS] [FILE]...
  43625. +# Set to "yes" if building a shared library automatically hardcodes DIR
  43626. +# into the library and all subsequent libraries and executables linked
  43627. +# against it.
  43628. +hardcode_automatic=$hardcode_automatic
  43629. - -h, --help print this help, then exit
  43630. - -V, --version print version number and configuration settings, then exit
  43631. - -q, --quiet do not print progress messages
  43632. - -d, --debug don't remove temporary files
  43633. - --recheck update $as_me by reconfiguring in the same conditions
  43634. - --file=FILE[:TEMPLATE]
  43635. - instantiate the configuration file FILE
  43636. - --header=FILE[:TEMPLATE]
  43637. - instantiate the configuration header FILE
  43638. +# Set to yes if linker adds runtime paths of dependent libraries
  43639. +# to runtime path list.
  43640. +inherit_rpath=$inherit_rpath
  43641. -Configuration files:
  43642. -$config_files
  43643. +# Whether libtool must link a program against all its dependency libraries.
  43644. +link_all_deplibs=$link_all_deplibs
  43645. -Configuration headers:
  43646. -$config_headers
  43647. +# Fix the shell variable \$srcfile for the compiler.
  43648. +fix_srcfile_path=$lt_fix_srcfile_path
  43649. -Configuration commands:
  43650. -$config_commands
  43651. +# Set to "yes" if exported symbols are required.
  43652. +always_export_symbols=$always_export_symbols
  43653. -Report bugs to <bug-autoconf@gnu.org>."
  43654. +# The commands to list exported symbols.
  43655. +export_symbols_cmds=$lt_export_symbols_cmds
  43656. -_ACEOF
  43657. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43658. -ac_cs_version="\\
  43659. -libdaemon config.status 0.13
  43660. -configured by $0, generated by GNU Autoconf 2.62,
  43661. - with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  43662. +# Symbols that should not be listed in the preloaded symbols.
  43663. +exclude_expsyms=$lt_exclude_expsyms
  43664. -Copyright (C) 2008 Free Software Foundation, Inc.
  43665. -This config.status script is free software; the Free Software Foundation
  43666. -gives unlimited permission to copy, distribute and modify it."
  43667. +# Symbols that must always be exported.
  43668. +include_expsyms=$lt_include_expsyms
  43669. -ac_pwd='$ac_pwd'
  43670. -srcdir='$srcdir'
  43671. -INSTALL='$INSTALL'
  43672. -MKDIR_P='$MKDIR_P'
  43673. -AWK='$AWK'
  43674. -test -n "\$AWK" || AWK=awk
  43675. -_ACEOF
  43676. +# Commands necessary for linking programs (against libraries) with templates.
  43677. +prelink_cmds=$lt_prelink_cmds
  43678. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43679. -# The default lists apply if the user does not specify any file.
  43680. -ac_need_defaults=:
  43681. -while test $# != 0
  43682. -do
  43683. - case $1 in
  43684. - --*=*)
  43685. - ac_option=`expr "X$1" : 'X\([^=]*\)='`
  43686. - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  43687. - ac_shift=:
  43688. - ;;
  43689. - *)
  43690. - ac_option=$1
  43691. - ac_optarg=$2
  43692. - ac_shift=shift
  43693. - ;;
  43694. - esac
  43695. +# Specify filename containing input files.
  43696. +file_list_spec=$lt_file_list_spec
  43697. - case $ac_option in
  43698. - # Handling of the options.
  43699. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  43700. - ac_cs_recheck=: ;;
  43701. - --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  43702. - $as_echo "$ac_cs_version"; exit ;;
  43703. - --debug | --debu | --deb | --de | --d | -d )
  43704. - debug=: ;;
  43705. - --file | --fil | --fi | --f )
  43706. - $ac_shift
  43707. - case $ac_optarg in
  43708. - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  43709. - esac
  43710. - CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  43711. - ac_need_defaults=false;;
  43712. - --header | --heade | --head | --hea )
  43713. - $ac_shift
  43714. - case $ac_optarg in
  43715. - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  43716. - esac
  43717. - CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  43718. - ac_need_defaults=false;;
  43719. - --he | --h)
  43720. - # Conflict between --help and --header
  43721. - { $as_echo "$as_me: error: ambiguous option: $1
  43722. -Try \`$0 --help' for more information." >&2
  43723. - { (exit 1); exit 1; }; };;
  43724. - --help | --hel | -h )
  43725. - $as_echo "$ac_cs_usage"; exit ;;
  43726. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  43727. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  43728. - ac_cs_silent=: ;;
  43729. +# How to hardcode a shared library path into an executable.
  43730. +hardcode_action=$hardcode_action
  43731. - # This is an error.
  43732. - -*) { $as_echo "$as_me: error: unrecognized option: $1
  43733. -Try \`$0 --help' for more information." >&2
  43734. - { (exit 1); exit 1; }; } ;;
  43735. +# The directories searched by this compiler when creating a shared library.
  43736. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  43737. - *) ac_config_targets="$ac_config_targets $1"
  43738. - ac_need_defaults=false ;;
  43739. +# Dependencies to place before and after the objects being linked to
  43740. +# create a shared library.
  43741. +predep_objects=$lt_predep_objects
  43742. +postdep_objects=$lt_postdep_objects
  43743. +predeps=$lt_predeps
  43744. +postdeps=$lt_postdeps
  43745. - esac
  43746. - shift
  43747. -done
  43748. +# The library search path used internally by the compiler when linking
  43749. +# a shared library.
  43750. +compiler_lib_search_path=$lt_compiler_lib_search_path
  43751. -ac_configure_extra_args=
  43752. +# ### END LIBTOOL CONFIG
  43753. -if $ac_cs_silent; then
  43754. - exec 6>/dev/null
  43755. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  43756. -fi
  43757. +_LT_EOF
  43758. -_ACEOF
  43759. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43760. -if \$ac_cs_recheck; then
  43761. - set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  43762. - shift
  43763. - \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  43764. - CONFIG_SHELL='$SHELL'
  43765. - export CONFIG_SHELL
  43766. - exec "\$@"
  43767. + case $host_os in
  43768. + aix3*)
  43769. + cat <<\_LT_EOF >> "$cfgfile"
  43770. +# AIX sometimes has problems with the GCC collect2 program. For some
  43771. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  43772. +# vanish in a puff of smoke.
  43773. +if test "X${COLLECT_NAMES+set}" != Xset; then
  43774. + COLLECT_NAMES=
  43775. + export COLLECT_NAMES
  43776. fi
  43777. +_LT_EOF
  43778. + ;;
  43779. + esac
  43780. -_ACEOF
  43781. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43782. -exec 5>>config.log
  43783. -{
  43784. - echo
  43785. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  43786. -## Running $as_me. ##
  43787. -_ASBOX
  43788. - $as_echo "$ac_log"
  43789. -} >&5
  43790. -
  43791. -_ACEOF
  43792. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43793. -#
  43794. -# INIT-COMMANDS
  43795. -#
  43796. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  43797. -_ACEOF
  43798. +ltmain="$ac_aux_dir/ltmain.sh"
  43799. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43800. -# Handling of arguments.
  43801. -for ac_config_target in $ac_config_targets
  43802. -do
  43803. - case $ac_config_target in
  43804. - "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  43805. - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  43806. - "libdaemon/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/Makefile" ;;
  43807. - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  43808. - "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  43809. - "doc/README.html") CONFIG_FILES="$CONFIG_FILES doc/README.html" ;;
  43810. - "doc/doxygen.conf") CONFIG_FILES="$CONFIG_FILES doc/doxygen.conf" ;;
  43811. - "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  43812. - "libdaemon.pc") CONFIG_FILES="$CONFIG_FILES libdaemon.pc" ;;
  43813. + # We use sed instead of cat because bash on DJGPP gets confused if
  43814. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  43815. + # text mode, it properly converts lines to CR/LF. This bash problem
  43816. + # is reportedly fixed, but why not run on old versions too?
  43817. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  43818. + || (rm -f "$cfgfile"; exit 1)
  43819. - *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  43820. -$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  43821. - { (exit 1); exit 1; }; };;
  43822. + case $xsi_shell in
  43823. + yes)
  43824. + cat << \_LT_EOF >> "$cfgfile"
  43825. +
  43826. +# func_dirname file append nondir_replacement
  43827. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  43828. +# otherwise set result to NONDIR_REPLACEMENT.
  43829. +func_dirname ()
  43830. +{
  43831. + case ${1} in
  43832. + */*) func_dirname_result="${1%/*}${2}" ;;
  43833. + * ) func_dirname_result="${3}" ;;
  43834. esac
  43835. -done
  43836. +}
  43837. +# func_basename file
  43838. +func_basename ()
  43839. +{
  43840. + func_basename_result="${1##*/}"
  43841. +}
  43842. -# If the user did not use the arguments to specify the items to instantiate,
  43843. -# then the envvar interface is used. Set only those that are not.
  43844. -# We use the long form for the default assignment because of an extremely
  43845. -# bizarre bug on SunOS 4.1.3.
  43846. -if $ac_need_defaults; then
  43847. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  43848. - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  43849. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  43850. -fi
  43851. +# func_dirname_and_basename file append nondir_replacement
  43852. +# perform func_basename and func_dirname in a single function
  43853. +# call:
  43854. +# dirname: Compute the dirname of FILE. If nonempty,
  43855. +# add APPEND to the result, otherwise set result
  43856. +# to NONDIR_REPLACEMENT.
  43857. +# value returned in "$func_dirname_result"
  43858. +# basename: Compute filename of FILE.
  43859. +# value retuned in "$func_basename_result"
  43860. +# Implementation must be kept synchronized with func_dirname
  43861. +# and func_basename. For efficiency, we do not delegate to
  43862. +# those functions but instead duplicate the functionality here.
  43863. +func_dirname_and_basename ()
  43864. +{
  43865. + case ${1} in
  43866. + */*) func_dirname_result="${1%/*}${2}" ;;
  43867. + * ) func_dirname_result="${3}" ;;
  43868. + esac
  43869. + func_basename_result="${1##*/}"
  43870. +}
  43871. -# Have a temporary directory for convenience. Make it in the build tree
  43872. -# simply because there is no reason against having it here, and in addition,
  43873. -# creating and moving files from /tmp can sometimes cause problems.
  43874. -# Hook for its removal unless debugging.
  43875. -# Note that there is a small window in which the directory will not be cleaned:
  43876. -# after its creation but before its name has been assigned to `$tmp'.
  43877. -$debug ||
  43878. +# func_stripname prefix suffix name
  43879. +# strip PREFIX and SUFFIX off of NAME.
  43880. +# PREFIX and SUFFIX must not contain globbing or regex special
  43881. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  43882. +# dot (in which case that matches only a dot).
  43883. +func_stripname ()
  43884. {
  43885. - tmp=
  43886. - trap 'exit_status=$?
  43887. - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  43888. -' 0
  43889. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  43890. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  43891. + # positional parameters, so assign one to ordinary parameter first.
  43892. + func_stripname_result=${3}
  43893. + func_stripname_result=${func_stripname_result#"${1}"}
  43894. + func_stripname_result=${func_stripname_result%"${2}"}
  43895. }
  43896. -# Create a (secure) tmp directory for tmp files.
  43897. +# func_opt_split
  43898. +func_opt_split ()
  43899. {
  43900. - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  43901. - test -n "$tmp" && test -d "$tmp"
  43902. -} ||
  43903. + func_opt_split_opt=${1%%=*}
  43904. + func_opt_split_arg=${1#*=}
  43905. +}
  43906. +
  43907. +# func_lo2o object
  43908. +func_lo2o ()
  43909. {
  43910. - tmp=./conf$$-$RANDOM
  43911. - (umask 077 && mkdir "$tmp")
  43912. -} ||
  43913. + case ${1} in
  43914. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  43915. + *) func_lo2o_result=${1} ;;
  43916. + esac
  43917. +}
  43918. +
  43919. +# func_xform libobj-or-source
  43920. +func_xform ()
  43921. {
  43922. - $as_echo "$as_me: cannot create a temporary directory in ." >&2
  43923. - { (exit 1); exit 1; }
  43924. + func_xform_result=${1%.*}.lo
  43925. }
  43926. -# Set up the scripts for CONFIG_FILES section.
  43927. -# No need to generate them if there are no CONFIG_FILES.
  43928. -# This happens for instance with `./config.status config.h'.
  43929. -if test -n "$CONFIG_FILES"; then
  43930. +# func_arith arithmetic-term...
  43931. +func_arith ()
  43932. +{
  43933. + func_arith_result=$(( $* ))
  43934. +}
  43935. +
  43936. +# func_len string
  43937. +# STRING may not start with a hyphen.
  43938. +func_len ()
  43939. +{
  43940. + func_len_result=${#1}
  43941. +}
  43942. +_LT_EOF
  43943. + ;;
  43944. + *) # Bourne compatible functions.
  43945. + cat << \_LT_EOF >> "$cfgfile"
  43946. -ac_cr=' '
  43947. -ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  43948. -if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  43949. - ac_cs_awk_cr='\\r'
  43950. -else
  43951. - ac_cs_awk_cr=$ac_cr
  43952. -fi
  43953. +# func_dirname file append nondir_replacement
  43954. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  43955. +# otherwise set result to NONDIR_REPLACEMENT.
  43956. +func_dirname ()
  43957. +{
  43958. + # Extract subdirectory from the argument.
  43959. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  43960. + if test "X$func_dirname_result" = "X${1}"; then
  43961. + func_dirname_result="${3}"
  43962. + else
  43963. + func_dirname_result="$func_dirname_result${2}"
  43964. + fi
  43965. +}
  43966. -echo 'BEGIN {' >"$tmp/subs1.awk" &&
  43967. -_ACEOF
  43968. +# func_basename file
  43969. +func_basename ()
  43970. +{
  43971. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  43972. +}
  43973. +# func_stripname prefix suffix name
  43974. +# strip PREFIX and SUFFIX off of NAME.
  43975. +# PREFIX and SUFFIX must not contain globbing or regex special
  43976. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  43977. +# dot (in which case that matches only a dot).
  43978. +# func_strip_suffix prefix name
  43979. +func_stripname ()
  43980. {
  43981. - echo "cat >conf$$subs.awk <<_ACEOF" &&
  43982. - echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  43983. - echo "_ACEOF"
  43984. -} >conf$$subs.sh ||
  43985. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  43986. -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  43987. - { (exit 1); exit 1; }; }
  43988. -ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  43989. -ac_delim='%!_!# '
  43990. -for ac_last_try in false false false false false :; do
  43991. - . ./conf$$subs.sh ||
  43992. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  43993. -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  43994. - { (exit 1); exit 1; }; }
  43995. + case ${2} in
  43996. + .*) func_stripname_result=`$ECHO "X${3}" \
  43997. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  43998. + *) func_stripname_result=`$ECHO "X${3}" \
  43999. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  44000. + esac
  44001. +}
  44002. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
  44003. - break
  44004. - elif $ac_last_try; then
  44005. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  44006. -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  44007. - { (exit 1); exit 1; }; }
  44008. - else
  44009. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  44010. - fi
  44011. -done
  44012. -rm -f conf$$subs.sh
  44013. +# sed scripts:
  44014. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  44015. +my_sed_long_arg='1s/^-[^=]*=//'
  44016. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  44017. -cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  44018. -_ACEOF
  44019. -sed -n '
  44020. -h
  44021. -s/^/S["/; s/!.*/"]=/
  44022. -p
  44023. -g
  44024. -s/^[^!]*!//
  44025. -:repl
  44026. -t repl
  44027. -s/'"$ac_delim"'$//
  44028. -t delim
  44029. -:nl
  44030. -h
  44031. -s/\(.\{148\}\).*/\1/
  44032. -t more1
  44033. -s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  44034. -p
  44035. -n
  44036. -b repl
  44037. -:more1
  44038. -s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  44039. -p
  44040. -g
  44041. -s/.\{148\}//
  44042. -t nl
  44043. -:delim
  44044. -h
  44045. -s/\(.\{148\}\).*/\1/
  44046. -t more2
  44047. -s/["\\]/\\&/g; s/^/"/; s/$/"/
  44048. -p
  44049. -b
  44050. -:more2
  44051. -s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  44052. -p
  44053. -g
  44054. -s/.\{148\}//
  44055. -t delim
  44056. -' <conf$$subs.awk | sed '
  44057. -/^[^""]/{
  44058. - N
  44059. - s/\n//
  44060. +# func_opt_split
  44061. +func_opt_split ()
  44062. +{
  44063. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  44064. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  44065. }
  44066. -' >>$CONFIG_STATUS || ac_write_fail=1
  44067. -rm -f conf$$subs.awk
  44068. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  44069. -_ACAWK
  44070. -cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  44071. - for (key in S) S_is_set[key] = 1
  44072. - FS = ""
  44073. +# func_lo2o object
  44074. +func_lo2o ()
  44075. +{
  44076. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  44077. }
  44078. +
  44079. +# func_xform libobj-or-source
  44080. +func_xform ()
  44081. {
  44082. - line = $ 0
  44083. - nfields = split(line, field, "@")
  44084. - substed = 0
  44085. - len = length(field[1])
  44086. - for (i = 2; i < nfields; i++) {
  44087. - key = field[i]
  44088. - keylen = length(key)
  44089. - if (S_is_set[key]) {
  44090. - value = S[key]
  44091. - line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  44092. - len += length(value) + length(field[++i])
  44093. - substed = 1
  44094. - } else
  44095. - len += 1 + keylen
  44096. - }
  44097. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  44098. +}
  44099. - print line
  44100. +# func_arith arithmetic-term...
  44101. +func_arith ()
  44102. +{
  44103. + func_arith_result=`expr "$@"`
  44104. }
  44105. -_ACAWK
  44106. -_ACEOF
  44107. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  44108. -if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  44109. - sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  44110. -else
  44111. - cat
  44112. -fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  44113. - || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  44114. -$as_echo "$as_me: error: could not setup config files machinery" >&2;}
  44115. - { (exit 1); exit 1; }; }
  44116. -_ACEOF
  44117. +# func_len string
  44118. +# STRING may not start with a hyphen.
  44119. +func_len ()
  44120. +{
  44121. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  44122. +}
  44123. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  44124. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  44125. -# trailing colons and then remove the whole line if VPATH becomes empty
  44126. -# (actually we leave an empty line to preserve line numbers).
  44127. -if test "x$srcdir" = x.; then
  44128. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  44129. -s/:*\$(srcdir):*/:/
  44130. -s/:*\${srcdir}:*/:/
  44131. -s/:*@srcdir@:*/:/
  44132. -s/^\([^=]*=[ ]*\):*/\1/
  44133. -s/:*$//
  44134. -s/^[^=]*=[ ]*$//
  44135. -}'
  44136. -fi
  44137. +_LT_EOF
  44138. +esac
  44139. +
  44140. +case $lt_shell_append in
  44141. + yes)
  44142. + cat << \_LT_EOF >> "$cfgfile"
  44143. +
  44144. +# func_append var value
  44145. +# Append VALUE to the end of shell variable VAR.
  44146. +func_append ()
  44147. +{
  44148. + eval "$1+=\$2"
  44149. +}
  44150. +_LT_EOF
  44151. + ;;
  44152. + *)
  44153. + cat << \_LT_EOF >> "$cfgfile"
  44154. +
  44155. +# func_append var value
  44156. +# Append VALUE to the end of shell variable VAR.
  44157. +func_append ()
  44158. +{
  44159. + eval "$1=\$$1\$2"
  44160. +}
  44161. +
  44162. +_LT_EOF
  44163. + ;;
  44164. + esac
  44165. +
  44166. +
  44167. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  44168. + || (rm -f "$cfgfile"; exit 1)
  44169. +
  44170. + mv -f "$cfgfile" "$ofile" ||
  44171. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  44172. + chmod +x "$ofile"
  44173. +
  44174. +
  44175. + cat <<_LT_EOF >> "$ofile"
  44176. +
  44177. +# ### BEGIN LIBTOOL TAG CONFIG: CXX
  44178. +
  44179. +# The linker used to build libraries.
  44180. +LD=$lt_LD_CXX
  44181. +
  44182. +# Commands used to build an old-style archive.
  44183. +old_archive_cmds=$lt_old_archive_cmds_CXX
  44184. +
  44185. +# A language specific compiler.
  44186. +CC=$lt_compiler_CXX
  44187. +
  44188. +# Is the compiler the GNU compiler?
  44189. +with_gcc=$GCC_CXX
  44190. +
  44191. +# Compiler flag to turn off builtin functions.
  44192. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  44193. +
  44194. +# How to pass a linker flag through the compiler.
  44195. +wl=$lt_lt_prog_compiler_wl_CXX
  44196. +
  44197. +# Additional compiler flags for building library objects.
  44198. +pic_flag=$lt_lt_prog_compiler_pic_CXX
  44199. +
  44200. +# Compiler flag to prevent dynamic linking.
  44201. +link_static_flag=$lt_lt_prog_compiler_static_CXX
  44202. +
  44203. +# Does compiler simultaneously support -c and -o options?
  44204. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  44205. +
  44206. +# Whether or not to add -lc for building shared libraries.
  44207. +build_libtool_need_lc=$archive_cmds_need_lc_CXX
  44208. +
  44209. +# Whether or not to disallow shared libs when runtime libs are static.
  44210. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  44211. +
  44212. +# Compiler flag to allow reflexive dlopens.
  44213. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  44214. +
  44215. +# Compiler flag to generate shared objects directly from archives.
  44216. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  44217. +
  44218. +# Whether the compiler copes with passing no objects directly.
  44219. +compiler_needs_object=$lt_compiler_needs_object_CXX
  44220. +
  44221. +# Create an old-style archive from a shared archive.
  44222. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  44223. +
  44224. +# Create a temporary old-style archive to link instead of a shared archive.
  44225. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  44226. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  44227. -fi # test -n "$CONFIG_FILES"
  44228. +# Commands used to build a shared archive.
  44229. +archive_cmds=$lt_archive_cmds_CXX
  44230. +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  44231. -# Set up the scripts for CONFIG_HEADERS section.
  44232. -# No need to generate them if there are no CONFIG_HEADERS.
  44233. -# This happens for instance with `./config.status Makefile'.
  44234. -if test -n "$CONFIG_HEADERS"; then
  44235. -cat >"$tmp/defines.awk" <<\_ACAWK ||
  44236. -BEGIN {
  44237. -_ACEOF
  44238. +# Commands used to build a loadable module if different from building
  44239. +# a shared archive.
  44240. +module_cmds=$lt_module_cmds_CXX
  44241. +module_expsym_cmds=$lt_module_expsym_cmds_CXX
  44242. -# Transform confdefs.h into an awk script `defines.awk', embedded as
  44243. -# here-document in config.status, that substitutes the proper values into
  44244. -# config.h.in to produce config.h.
  44245. +# Whether we are building with GNU ld or not.
  44246. +with_gnu_ld=$lt_with_gnu_ld_CXX
  44247. -# Create a delimiter string that does not exist in confdefs.h, to ease
  44248. -# handling of long lines.
  44249. -ac_delim='%!_!# '
  44250. -for ac_last_try in false false :; do
  44251. - ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  44252. - if test -z "$ac_t"; then
  44253. - break
  44254. - elif $ac_last_try; then
  44255. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  44256. -$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  44257. - { (exit 1); exit 1; }; }
  44258. - else
  44259. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  44260. - fi
  44261. -done
  44262. +# Flag that allows shared libraries with undefined symbols to be built.
  44263. +allow_undefined_flag=$lt_allow_undefined_flag_CXX
  44264. -# For the awk script, D is an array of macro values keyed by name,
  44265. -# likewise P contains macro parameters if any. Preserve backslash
  44266. -# newline sequences.
  44267. +# Flag that enforces no undefined symbols.
  44268. +no_undefined_flag=$lt_no_undefined_flag_CXX
  44269. -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  44270. -sed -n '
  44271. -s/.\{148\}/&'"$ac_delim"'/g
  44272. -t rset
  44273. -:rset
  44274. -s/^[ ]*#[ ]*define[ ][ ]*/ /
  44275. -t def
  44276. -d
  44277. -:def
  44278. -s/\\$//
  44279. -t bsnl
  44280. -s/["\\]/\\&/g
  44281. -s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  44282. -D["\1"]=" \3"/p
  44283. -s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  44284. -d
  44285. -:bsnl
  44286. -s/["\\]/\\&/g
  44287. -s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  44288. -D["\1"]=" \3\\\\\\n"\\/p
  44289. -t cont
  44290. -s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  44291. -t cont
  44292. -d
  44293. -:cont
  44294. -n
  44295. -s/.\{148\}/&'"$ac_delim"'/g
  44296. -t clear
  44297. -:clear
  44298. -s/\\$//
  44299. -t bsnlc
  44300. -s/["\\]/\\&/g; s/^/"/; s/$/"/p
  44301. -d
  44302. -:bsnlc
  44303. -s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  44304. -b cont
  44305. -' <confdefs.h | sed '
  44306. -s/'"$ac_delim"'/"\\\
  44307. -"/g' >>$CONFIG_STATUS || ac_write_fail=1
  44308. +# Flag to hardcode \$libdir into a binary during linking.
  44309. +# This must work even if \$libdir does not exist
  44310. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  44311. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  44312. - for (key in D) D_is_set[key] = 1
  44313. - FS = ""
  44314. -}
  44315. -/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  44316. - line = \$ 0
  44317. - split(line, arg, " ")
  44318. - if (arg[1] == "#") {
  44319. - defundef = arg[2]
  44320. - mac1 = arg[3]
  44321. - } else {
  44322. - defundef = substr(arg[1], 2)
  44323. - mac1 = arg[2]
  44324. - }
  44325. - split(mac1, mac2, "(") #)
  44326. - macro = mac2[1]
  44327. - if (D_is_set[macro]) {
  44328. - # Preserve the white space surrounding the "#".
  44329. - prefix = substr(line, 1, index(line, defundef) - 1)
  44330. - print prefix "define", macro P[macro] D[macro]
  44331. - next
  44332. - } else {
  44333. - # Replace #undef with comments. This is necessary, for example,
  44334. - # in the case of _POSIX_SOURCE, which is predefined and required
  44335. - # on some systems where configure will not decide to define it.
  44336. - if (defundef == "undef") {
  44337. - print "/*", line, "*/"
  44338. - next
  44339. - }
  44340. - }
  44341. -}
  44342. -{ print }
  44343. -_ACAWK
  44344. -_ACEOF
  44345. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  44346. - { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  44347. -$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  44348. - { (exit 1); exit 1; }; }
  44349. -fi # test -n "$CONFIG_HEADERS"
  44350. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  44351. +# during linking. This must work even if \$libdir does not exist.
  44352. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  44353. +# Whether we need a single "-rpath" flag with a separated argument.
  44354. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  44355. -eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  44356. -shift
  44357. -for ac_tag
  44358. -do
  44359. - case $ac_tag in
  44360. - :[FHLC]) ac_mode=$ac_tag; continue;;
  44361. - esac
  44362. - case $ac_mode$ac_tag in
  44363. - :[FHL]*:*);;
  44364. - :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  44365. -$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  44366. - { (exit 1); exit 1; }; };;
  44367. - :[FH]-) ac_tag=-:-;;
  44368. - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  44369. - esac
  44370. - ac_save_IFS=$IFS
  44371. - IFS=:
  44372. - set x $ac_tag
  44373. - IFS=$ac_save_IFS
  44374. - shift
  44375. - ac_file=$1
  44376. - shift
  44377. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  44378. +# DIR into the resulting binary.
  44379. +hardcode_direct=$hardcode_direct_CXX
  44380. - case $ac_mode in
  44381. - :L) ac_source=$1;;
  44382. - :[FH])
  44383. - ac_file_inputs=
  44384. - for ac_f
  44385. - do
  44386. - case $ac_f in
  44387. - -) ac_f="$tmp/stdin";;
  44388. - *) # Look for the file first in the build tree, then in the source tree
  44389. - # (if the path is not absolute). The absolute path cannot be DOS-style,
  44390. - # because $ac_f cannot contain `:'.
  44391. - test -f "$ac_f" ||
  44392. - case $ac_f in
  44393. - [\\/$]*) false;;
  44394. - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  44395. - esac ||
  44396. - { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  44397. -$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  44398. - { (exit 1); exit 1; }; };;
  44399. - esac
  44400. - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  44401. - ac_file_inputs="$ac_file_inputs '$ac_f'"
  44402. - done
  44403. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  44404. +# DIR into the resulting binary and the resulting library dependency is
  44405. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  44406. +# library is relocated.
  44407. +hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  44408. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  44409. - # use $as_me), people would be surprised to read:
  44410. - # /* config.h. Generated by config.status. */
  44411. - configure_input='Generated from '`
  44412. - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  44413. - `' by configure.'
  44414. - if test x"$ac_file" != x-; then
  44415. - configure_input="$ac_file. $configure_input"
  44416. - { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  44417. -$as_echo "$as_me: creating $ac_file" >&6;}
  44418. - fi
  44419. - # Neutralize special characters interpreted by sed in replacement strings.
  44420. - case $configure_input in #(
  44421. - *\&* | *\|* | *\\* )
  44422. - ac_sed_conf_input=`$as_echo "$configure_input" |
  44423. - sed 's/[\\\\&|]/\\\\&/g'`;; #(
  44424. - *) ac_sed_conf_input=$configure_input;;
  44425. - esac
  44426. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  44427. +# into the resulting binary.
  44428. +hardcode_minus_L=$hardcode_minus_L_CXX
  44429. - case $ac_tag in
  44430. - *:-:* | *:-) cat >"$tmp/stdin" \
  44431. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  44432. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  44433. - { (exit 1); exit 1; }; } ;;
  44434. - esac
  44435. - ;;
  44436. - esac
  44437. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  44438. +# into the resulting binary.
  44439. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  44440. - ac_dir=`$as_dirname -- "$ac_file" ||
  44441. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44442. - X"$ac_file" : 'X\(//\)[^/]' \| \
  44443. - X"$ac_file" : 'X\(//\)$' \| \
  44444. - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  44445. -$as_echo X"$ac_file" |
  44446. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44447. - s//\1/
  44448. - q
  44449. - }
  44450. - /^X\(\/\/\)[^/].*/{
  44451. - s//\1/
  44452. - q
  44453. - }
  44454. - /^X\(\/\/\)$/{
  44455. - s//\1/
  44456. - q
  44457. - }
  44458. - /^X\(\/\).*/{
  44459. - s//\1/
  44460. - q
  44461. - }
  44462. - s/.*/./; q'`
  44463. - { as_dir="$ac_dir"
  44464. - case $as_dir in #(
  44465. - -*) as_dir=./$as_dir;;
  44466. - esac
  44467. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  44468. - as_dirs=
  44469. - while :; do
  44470. - case $as_dir in #(
  44471. - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  44472. - *) as_qdir=$as_dir;;
  44473. - esac
  44474. - as_dirs="'$as_qdir' $as_dirs"
  44475. - as_dir=`$as_dirname -- "$as_dir" ||
  44476. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44477. - X"$as_dir" : 'X\(//\)[^/]' \| \
  44478. - X"$as_dir" : 'X\(//\)$' \| \
  44479. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  44480. -$as_echo X"$as_dir" |
  44481. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44482. - s//\1/
  44483. - q
  44484. - }
  44485. - /^X\(\/\/\)[^/].*/{
  44486. - s//\1/
  44487. - q
  44488. - }
  44489. - /^X\(\/\/\)$/{
  44490. - s//\1/
  44491. - q
  44492. - }
  44493. - /^X\(\/\).*/{
  44494. - s//\1/
  44495. - q
  44496. - }
  44497. - s/.*/./; q'`
  44498. - test -d "$as_dir" && break
  44499. - done
  44500. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  44501. - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  44502. -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  44503. - { (exit 1); exit 1; }; }; }
  44504. - ac_builddir=.
  44505. +# Set to "yes" if building a shared library automatically hardcodes DIR
  44506. +# into the library and all subsequent libraries and executables linked
  44507. +# against it.
  44508. +hardcode_automatic=$hardcode_automatic_CXX
  44509. -case "$ac_dir" in
  44510. -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  44511. -*)
  44512. - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  44513. - # A ".." for each directory in $ac_dir_suffix.
  44514. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  44515. - case $ac_top_builddir_sub in
  44516. - "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  44517. - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  44518. - esac ;;
  44519. -esac
  44520. -ac_abs_top_builddir=$ac_pwd
  44521. -ac_abs_builddir=$ac_pwd$ac_dir_suffix
  44522. -# for backward compatibility:
  44523. -ac_top_builddir=$ac_top_build_prefix
  44524. +# Set to yes if linker adds runtime paths of dependent libraries
  44525. +# to runtime path list.
  44526. +inherit_rpath=$inherit_rpath_CXX
  44527. +
  44528. +# Whether libtool must link a program against all its dependency libraries.
  44529. +link_all_deplibs=$link_all_deplibs_CXX
  44530. +
  44531. +# Fix the shell variable \$srcfile for the compiler.
  44532. +fix_srcfile_path=$lt_fix_srcfile_path_CXX
  44533. -case $srcdir in
  44534. - .) # We are building in place.
  44535. - ac_srcdir=.
  44536. - ac_top_srcdir=$ac_top_builddir_sub
  44537. - ac_abs_top_srcdir=$ac_pwd ;;
  44538. - [\\/]* | ?:[\\/]* ) # Absolute name.
  44539. - ac_srcdir=$srcdir$ac_dir_suffix;
  44540. - ac_top_srcdir=$srcdir
  44541. - ac_abs_top_srcdir=$srcdir ;;
  44542. - *) # Relative name.
  44543. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  44544. - ac_top_srcdir=$ac_top_build_prefix$srcdir
  44545. - ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  44546. -esac
  44547. -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  44548. +# Set to "yes" if exported symbols are required.
  44549. +always_export_symbols=$always_export_symbols_CXX
  44550. +# The commands to list exported symbols.
  44551. +export_symbols_cmds=$lt_export_symbols_cmds_CXX
  44552. - case $ac_mode in
  44553. - :F)
  44554. - #
  44555. - # CONFIG_FILE
  44556. - #
  44557. +# Symbols that should not be listed in the preloaded symbols.
  44558. +exclude_expsyms=$lt_exclude_expsyms_CXX
  44559. - case $INSTALL in
  44560. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  44561. - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  44562. - esac
  44563. - ac_MKDIR_P=$MKDIR_P
  44564. - case $MKDIR_P in
  44565. - [\\/$]* | ?:[\\/]* ) ;;
  44566. - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  44567. - esac
  44568. -_ACEOF
  44569. +# Symbols that must always be exported.
  44570. +include_expsyms=$lt_include_expsyms_CXX
  44571. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  44572. -# If the template does not know about datarootdir, expand it.
  44573. -# FIXME: This hack should be removed a few years after 2.60.
  44574. -ac_datarootdir_hack=; ac_datarootdir_seen=
  44575. +# Commands necessary for linking programs (against libraries) with templates.
  44576. +prelink_cmds=$lt_prelink_cmds_CXX
  44577. -ac_sed_dataroot='
  44578. -/datarootdir/ {
  44579. - p
  44580. - q
  44581. -}
  44582. -/@datadir@/p
  44583. -/@docdir@/p
  44584. -/@infodir@/p
  44585. -/@localedir@/p
  44586. -/@mandir@/p
  44587. -'
  44588. -case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  44589. -*datarootdir*) ac_datarootdir_seen=yes;;
  44590. -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  44591. - { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  44592. -$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  44593. -_ACEOF
  44594. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  44595. - ac_datarootdir_hack='
  44596. - s&@datadir@&$datadir&g
  44597. - s&@docdir@&$docdir&g
  44598. - s&@infodir@&$infodir&g
  44599. - s&@localedir@&$localedir&g
  44600. - s&@mandir@&$mandir&g
  44601. - s&\\\${datarootdir}&$datarootdir&g' ;;
  44602. -esac
  44603. -_ACEOF
  44604. +# Specify filename containing input files.
  44605. +file_list_spec=$lt_file_list_spec_CXX
  44606. -# Neutralize VPATH when `$srcdir' = `.'.
  44607. -# Shell code in configure.ac might set extrasub.
  44608. -# FIXME: do we really want to maintain this feature?
  44609. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  44610. -ac_sed_extra="$ac_vpsub
  44611. -$extrasub
  44612. -_ACEOF
  44613. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  44614. -:t
  44615. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  44616. -s|@configure_input@|$ac_sed_conf_input|;t t
  44617. -s&@top_builddir@&$ac_top_builddir_sub&;t t
  44618. -s&@top_build_prefix@&$ac_top_build_prefix&;t t
  44619. -s&@srcdir@&$ac_srcdir&;t t
  44620. -s&@abs_srcdir@&$ac_abs_srcdir&;t t
  44621. -s&@top_srcdir@&$ac_top_srcdir&;t t
  44622. -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  44623. -s&@builddir@&$ac_builddir&;t t
  44624. -s&@abs_builddir@&$ac_abs_builddir&;t t
  44625. -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  44626. -s&@INSTALL@&$ac_INSTALL&;t t
  44627. -s&@MKDIR_P@&$ac_MKDIR_P&;t t
  44628. -$ac_datarootdir_hack
  44629. -"
  44630. -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  44631. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  44632. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  44633. - { (exit 1); exit 1; }; }
  44634. +# How to hardcode a shared library path into an executable.
  44635. +hardcode_action=$hardcode_action_CXX
  44636. -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  44637. - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  44638. - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  44639. - { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  44640. -which seems to be undefined. Please make sure it is defined." >&5
  44641. -$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  44642. -which seems to be undefined. Please make sure it is defined." >&2;}
  44643. +# The directories searched by this compiler when creating a shared library.
  44644. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  44645. - rm -f "$tmp/stdin"
  44646. - case $ac_file in
  44647. - -) cat "$tmp/out" && rm -f "$tmp/out";;
  44648. - *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  44649. - esac \
  44650. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  44651. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  44652. - { (exit 1); exit 1; }; }
  44653. - ;;
  44654. - :H)
  44655. - #
  44656. - # CONFIG_HEADER
  44657. - #
  44658. - if test x"$ac_file" != x-; then
  44659. - {
  44660. - $as_echo "/* $configure_input */" \
  44661. - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  44662. - } >"$tmp/config.h" \
  44663. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  44664. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  44665. - { (exit 1); exit 1; }; }
  44666. - if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  44667. - { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  44668. -$as_echo "$as_me: $ac_file is unchanged" >&6;}
  44669. - else
  44670. - rm -f "$ac_file"
  44671. - mv "$tmp/config.h" "$ac_file" \
  44672. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  44673. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  44674. - { (exit 1); exit 1; }; }
  44675. - fi
  44676. - else
  44677. - $as_echo "/* $configure_input */" \
  44678. - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  44679. - || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  44680. -$as_echo "$as_me: error: could not create -" >&2;}
  44681. - { (exit 1); exit 1; }; }
  44682. - fi
  44683. -# Compute "$ac_file"'s index in $config_headers.
  44684. -_am_arg="$ac_file"
  44685. -_am_stamp_count=1
  44686. -for _am_header in $config_headers :; do
  44687. - case $_am_header in
  44688. - $_am_arg | $_am_arg:* )
  44689. - break ;;
  44690. - * )
  44691. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  44692. - esac
  44693. -done
  44694. -echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  44695. -$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44696. - X"$_am_arg" : 'X\(//\)[^/]' \| \
  44697. - X"$_am_arg" : 'X\(//\)$' \| \
  44698. - X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  44699. -$as_echo X"$_am_arg" |
  44700. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44701. - s//\1/
  44702. - q
  44703. - }
  44704. - /^X\(\/\/\)[^/].*/{
  44705. - s//\1/
  44706. - q
  44707. - }
  44708. - /^X\(\/\/\)$/{
  44709. - s//\1/
  44710. - q
  44711. - }
  44712. - /^X\(\/\).*/{
  44713. - s//\1/
  44714. - q
  44715. - }
  44716. - s/.*/./; q'`/stamp-h$_am_stamp_count
  44717. - ;;
  44718. +# Dependencies to place before and after the objects being linked to
  44719. +# create a shared library.
  44720. +predep_objects=$lt_predep_objects_CXX
  44721. +postdep_objects=$lt_postdep_objects_CXX
  44722. +predeps=$lt_predeps_CXX
  44723. +postdeps=$lt_postdeps_CXX
  44724. - :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  44725. -$as_echo "$as_me: executing $ac_file commands" >&6;}
  44726. - ;;
  44727. - esac
  44728. +# The library search path used internally by the compiler when linking
  44729. +# a shared library.
  44730. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  44731. +# ### END LIBTOOL TAG CONFIG: CXX
  44732. +_LT_EOF
  44733. - case $ac_file$ac_mode in
  44734. - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  44735. - # Strip MF so we end up with the name of the file.
  44736. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  44737. - # Check whether this is an Automake generated Makefile or not.
  44738. - # We used to match only the files named `Makefile.in', but
  44739. - # some people rename them; so instead we look at the file content.
  44740. - # Grep'ing the first line is not enough: some people post-process
  44741. - # each Makefile.in and add a new line on top of each file to say so.
  44742. - # Grep'ing the whole file is not good either: AIX grep has a line
  44743. - # limit of 2048, but all sed's we know have understand at least 4000.
  44744. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  44745. - dirpart=`$as_dirname -- "$mf" ||
  44746. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44747. - X"$mf" : 'X\(//\)[^/]' \| \
  44748. - X"$mf" : 'X\(//\)$' \| \
  44749. - X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  44750. -$as_echo X"$mf" |
  44751. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44752. - s//\1/
  44753. - q
  44754. - }
  44755. - /^X\(\/\/\)[^/].*/{
  44756. - s//\1/
  44757. - q
  44758. - }
  44759. - /^X\(\/\/\)$/{
  44760. - s//\1/
  44761. - q
  44762. - }
  44763. - /^X\(\/\).*/{
  44764. - s//\1/
  44765. - q
  44766. - }
  44767. - s/.*/./; q'`
  44768. - else
  44769. - continue
  44770. - fi
  44771. - # Extract the definition of DEPDIR, am__include, and am__quote
  44772. - # from the Makefile without running `make'.
  44773. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  44774. - test -z "$DEPDIR" && continue
  44775. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  44776. - test -z "am__include" && continue
  44777. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  44778. - # When using ansi2knr, U may be empty or an underscore; expand it
  44779. - U=`sed -n 's/^U = //p' < "$mf"`
  44780. - # Find all dependency output files, they are included files with
  44781. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  44782. - # simplest approach to changing $(DEPDIR) to its actual value in the
  44783. - # expansion.
  44784. - for file in `sed -n "
  44785. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  44786. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  44787. - # Make sure the directory exists.
  44788. - test -f "$dirpart/$file" && continue
  44789. - fdir=`$as_dirname -- "$file" ||
  44790. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44791. - X"$file" : 'X\(//\)[^/]' \| \
  44792. - X"$file" : 'X\(//\)$' \| \
  44793. - X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  44794. -$as_echo X"$file" |
  44795. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44796. - s//\1/
  44797. - q
  44798. - }
  44799. - /^X\(\/\/\)[^/].*/{
  44800. - s//\1/
  44801. - q
  44802. - }
  44803. - /^X\(\/\/\)$/{
  44804. - s//\1/
  44805. - q
  44806. - }
  44807. - /^X\(\/\).*/{
  44808. - s//\1/
  44809. - q
  44810. - }
  44811. - s/.*/./; q'`
  44812. - { as_dir=$dirpart/$fdir
  44813. - case $as_dir in #(
  44814. - -*) as_dir=./$as_dir;;
  44815. - esac
  44816. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  44817. - as_dirs=
  44818. - while :; do
  44819. - case $as_dir in #(
  44820. - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  44821. - *) as_qdir=$as_dir;;
  44822. - esac
  44823. - as_dirs="'$as_qdir' $as_dirs"
  44824. - as_dir=`$as_dirname -- "$as_dir" ||
  44825. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44826. - X"$as_dir" : 'X\(//\)[^/]' \| \
  44827. - X"$as_dir" : 'X\(//\)$' \| \
  44828. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  44829. -$as_echo X"$as_dir" |
  44830. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44831. - s//\1/
  44832. - q
  44833. - }
  44834. - /^X\(\/\/\)[^/].*/{
  44835. - s//\1/
  44836. - q
  44837. - }
  44838. - /^X\(\/\/\)$/{
  44839. - s//\1/
  44840. - q
  44841. - }
  44842. - /^X\(\/\).*/{
  44843. - s//\1/
  44844. - q
  44845. - }
  44846. - s/.*/./; q'`
  44847. - test -d "$as_dir" && break
  44848. - done
  44849. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  44850. - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  44851. -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  44852. - { (exit 1); exit 1; }; }; }
  44853. - # echo "creating $dirpart/$file"
  44854. - echo '# dummy' > "$dirpart/$file"
  44855. - done
  44856. -done
  44857. ;;
  44858. esac
  44859. done # for ac_tag
  44860. -{ (exit 0); exit 0; }
  44861. +as_fn_exit 0
  44862. _ACEOF
  44863. -chmod +x $CONFIG_STATUS
  44864. ac_clean_files=$ac_clean_files_save
  44865. test $ac_write_fail = 0 ||
  44866. - { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  44867. -$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  44868. - { (exit 1); exit 1; }; }
  44869. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  44870. # configure is writing to config.log, and then calls config.status.
  44871. @@ -24238,10 +18118,10 @@
  44872. exec 5>>config.log
  44873. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  44874. # would make configure fail if this is the last instruction.
  44875. - $ac_cs_success || { (exit 1); exit 1; }
  44876. + $ac_cs_success || as_fn_exit $?
  44877. fi
  44878. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  44879. - { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
  44880. -$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
  44881. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  44882. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  44883. fi
  44884. diff -Nur libdaemon-0.13.orig/depcomp libdaemon-0.13/depcomp
  44885. --- libdaemon-0.13.orig/depcomp 2008-06-18 03:24:09.000000000 +0200
  44886. +++ libdaemon-0.13/depcomp 2011-02-20 22:17:59.776053016 +0100
  44887. @@ -1,10 +1,10 @@
  44888. #! /bin/sh
  44889. # depcomp - compile a program generating dependencies as side-effects
  44890. -scriptversion=2007-03-29.01
  44891. +scriptversion=2009-04-28.21; # UTC
  44892. -# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software
  44893. -# Foundation, Inc.
  44894. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
  44895. +# Software Foundation, Inc.
  44896. # This program is free software; you can redistribute it and/or modify
  44897. # it under the terms of the GNU General Public License as published by
  44898. @@ -17,9 +17,7 @@
  44899. # GNU General Public License for more details.
  44900. # You should have received a copy of the GNU General Public License
  44901. -# along with this program; if not, write to the Free Software
  44902. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  44903. -# 02110-1301, USA.
  44904. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  44905. # As a special exception to the GNU General Public License, if you
  44906. # distribute this file as part of a program that contains a
  44907. @@ -87,6 +85,15 @@
  44908. depmode=dashmstdout
  44909. fi
  44910. +cygpath_u="cygpath -u -f -"
  44911. +if test "$depmode" = msvcmsys; then
  44912. + # This is just like msvisualcpp but w/o cygpath translation.
  44913. + # Just convert the backslash-escaped backslashes to single forward
  44914. + # slashes to satisfy depend.m4
  44915. + cygpath_u="sed s,\\\\\\\\,/,g"
  44916. + depmode=msvisualcpp
  44917. +fi
  44918. +
  44919. case "$depmode" in
  44920. gcc3)
  44921. ## gcc 3 implements dependency tracking that does exactly what
  44922. @@ -192,14 +199,14 @@
  44923. ' < "$tmpdepfile" \
  44924. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
  44925. tr '
  44926. -' ' ' >> $depfile
  44927. - echo >> $depfile
  44928. +' ' ' >> "$depfile"
  44929. + echo >> "$depfile"
  44930. # The second pass generates a dummy entry for each header file.
  44931. tr ' ' '
  44932. ' < "$tmpdepfile" \
  44933. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
  44934. - >> $depfile
  44935. + >> "$depfile"
  44936. else
  44937. # The sourcefile does not contain any dependencies, so just
  44938. # store a dummy comment line, to avoid errors with the Makefile
  44939. @@ -328,7 +335,12 @@
  44940. if test -f "$tmpdepfile"; then
  44941. sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
  44942. # Add `dependent.h:' lines.
  44943. - sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
  44944. + sed -ne '2,${
  44945. + s/^ *//
  44946. + s/ \\*$//
  44947. + s/$/:/
  44948. + p
  44949. + }' "$tmpdepfile" >> "$depfile"
  44950. else
  44951. echo "#dummy" > "$depfile"
  44952. fi
  44953. @@ -404,7 +416,7 @@
  44954. # Remove the call to Libtool.
  44955. if test "$libtool" = yes; then
  44956. - while test $1 != '--mode=compile'; do
  44957. + while test "X$1" != 'X--mode=compile'; do
  44958. shift
  44959. done
  44960. shift
  44961. @@ -455,32 +467,39 @@
  44962. "$@" || exit $?
  44963. # Remove any Libtool call
  44964. if test "$libtool" = yes; then
  44965. - while test $1 != '--mode=compile'; do
  44966. + while test "X$1" != 'X--mode=compile'; do
  44967. shift
  44968. done
  44969. shift
  44970. fi
  44971. # X makedepend
  44972. shift
  44973. - cleared=no
  44974. - for arg in "$@"; do
  44975. + cleared=no eat=no
  44976. + for arg
  44977. + do
  44978. case $cleared in
  44979. no)
  44980. set ""; shift
  44981. cleared=yes ;;
  44982. esac
  44983. + if test $eat = yes; then
  44984. + eat=no
  44985. + continue
  44986. + fi
  44987. case "$arg" in
  44988. -D*|-I*)
  44989. set fnord "$@" "$arg"; shift ;;
  44990. # Strip any option that makedepend may not understand. Remove
  44991. # the object too, otherwise makedepend will parse it as a source file.
  44992. + -arch)
  44993. + eat=yes ;;
  44994. -*|$object)
  44995. ;;
  44996. *)
  44997. set fnord "$@" "$arg"; shift ;;
  44998. esac
  44999. done
  45000. - obj_suffix="`echo $object | sed 's/^.*\././'`"
  45001. + obj_suffix=`echo "$object" | sed 's/^.*\././'`
  45002. touch "$tmpdepfile"
  45003. ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
  45004. rm -f "$depfile"
  45005. @@ -500,7 +519,7 @@
  45006. # Remove the call to Libtool.
  45007. if test "$libtool" = yes; then
  45008. - while test $1 != '--mode=compile'; do
  45009. + while test "X$1" != 'X--mode=compile'; do
  45010. shift
  45011. done
  45012. shift
  45013. @@ -538,13 +557,27 @@
  45014. msvisualcpp)
  45015. # Important note: in order to support this mode, a compiler *must*
  45016. - # always write the preprocessed file to stdout, regardless of -o,
  45017. - # because we must use -o when running libtool.
  45018. + # always write the preprocessed file to stdout.
  45019. "$@" || exit $?
  45020. +
  45021. + # Remove the call to Libtool.
  45022. + if test "$libtool" = yes; then
  45023. + while test "X$1" != 'X--mode=compile'; do
  45024. + shift
  45025. + done
  45026. + shift
  45027. + fi
  45028. +
  45029. IFS=" "
  45030. for arg
  45031. do
  45032. case "$arg" in
  45033. + -o)
  45034. + shift
  45035. + ;;
  45036. + $object)
  45037. + shift
  45038. + ;;
  45039. "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
  45040. set fnord "$@"
  45041. shift
  45042. @@ -557,16 +590,23 @@
  45043. ;;
  45044. esac
  45045. done
  45046. - "$@" -E |
  45047. - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
  45048. + "$@" -E 2>/dev/null |
  45049. + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
  45050. rm -f "$depfile"
  45051. echo "$object : \\" > "$depfile"
  45052. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  45053. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  45054. echo " " >> "$depfile"
  45055. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  45056. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  45057. rm -f "$tmpdepfile"
  45058. ;;
  45059. +msvcmsys)
  45060. + # This case exists only to let depend.m4 do its work. It works by
  45061. + # looking at the text of this script. This case will never be run,
  45062. + # since it is checked for above.
  45063. + exit 1
  45064. + ;;
  45065. +
  45066. none)
  45067. exec "$@"
  45068. ;;
  45069. @@ -585,5 +625,6 @@
  45070. # eval: (add-hook 'write-file-hooks 'time-stamp)
  45071. # time-stamp-start: "scriptversion="
  45072. # time-stamp-format: "%:y-%02m-%02d.%02H"
  45073. -# time-stamp-end: "$"
  45074. +# time-stamp-time-zone: "UTC"
  45075. +# time-stamp-end: "; # UTC"
  45076. # End:
  45077. diff -Nur libdaemon-0.13.orig/doc/Makefile.in libdaemon-0.13/doc/Makefile.in
  45078. --- libdaemon-0.13.orig/doc/Makefile.in 2008-07-29 00:35:32.000000000 +0200
  45079. +++ libdaemon-0.13/doc/Makefile.in 2011-02-20 22:17:59.676053917 +0100
  45080. @@ -1,8 +1,9 @@
  45081. -# Makefile.in generated by automake 1.10.1 from Makefile.am.
  45082. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  45083. # @configure_input@
  45084. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  45085. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  45086. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  45087. +# Inc.
  45088. # This Makefile.in is free software; the Free Software Foundation
  45089. # gives unlimited permission to copy and/or distribute it,
  45090. # with or without modifications, as long as this notice is preserved.
  45091. @@ -34,8 +35,9 @@
  45092. VPATH = @srcdir@
  45093. pkgdatadir = $(datadir)/@PACKAGE@
  45094. -pkglibdir = $(libdir)/@PACKAGE@
  45095. pkgincludedir = $(includedir)/@PACKAGE@
  45096. +pkglibdir = $(libdir)/@PACKAGE@
  45097. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  45098. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  45099. install_sh_DATA = $(install_sh) -c -m 644
  45100. install_sh_PROGRAM = $(install_sh) -c
  45101. @@ -63,6 +65,7 @@
  45102. mkinstalldirs = $(install_sh) -d
  45103. CONFIG_HEADER = $(top_builddir)/config.h
  45104. CONFIG_CLEAN_FILES = README.html doxygen.conf
  45105. +CONFIG_CLEAN_VPATH_FILES =
  45106. SOURCES =
  45107. DIST_SOURCES =
  45108. DATA = $(noinst_DATA)
  45109. @@ -87,31 +90,36 @@
  45110. DEFS = @DEFS@
  45111. DEPDIR = @DEPDIR@
  45112. DSYMUTIL = @DSYMUTIL@
  45113. -ECHO = @ECHO@
  45114. +DUMPBIN = @DUMPBIN@
  45115. ECHO_C = @ECHO_C@
  45116. ECHO_N = @ECHO_N@
  45117. ECHO_T = @ECHO_T@
  45118. EGREP = @EGREP@
  45119. EXEEXT = @EXEEXT@
  45120. -F77 = @F77@
  45121. -FFLAGS = @FFLAGS@
  45122. +FGREP = @FGREP@
  45123. GREP = @GREP@
  45124. INSTALL = @INSTALL@
  45125. INSTALL_DATA = @INSTALL_DATA@
  45126. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  45127. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  45128. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  45129. +LD = @LD@
  45130. LDFLAGS = @LDFLAGS@
  45131. LIBDAEMON_VERSION_INFO = @LIBDAEMON_VERSION_INFO@
  45132. LIBOBJS = @LIBOBJS@
  45133. LIBS = @LIBS@
  45134. LIBTOOL = @LIBTOOL@
  45135. +LIPO = @LIPO@
  45136. LN_S = @LN_S@
  45137. LTLIBOBJS = @LTLIBOBJS@
  45138. MAKEINFO = @MAKEINFO@
  45139. MKDIR_P = @MKDIR_P@
  45140. +NM = @NM@
  45141. NMEDIT = @NMEDIT@
  45142. +OBJDUMP = @OBJDUMP@
  45143. OBJEXT = @OBJEXT@
  45144. +OTOOL = @OTOOL@
  45145. +OTOOL64 = @OTOOL64@
  45146. PACKAGE = @PACKAGE@
  45147. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  45148. PACKAGE_NAME = @PACKAGE_NAME@
  45149. @@ -132,7 +140,7 @@
  45150. abs_top_srcdir = @abs_top_srcdir@
  45151. ac_ct_CC = @ac_ct_CC@
  45152. ac_ct_CXX = @ac_ct_CXX@
  45153. -ac_ct_F77 = @ac_ct_F77@
  45154. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  45155. am__include = @am__include@
  45156. am__leading_dot = @am__leading_dot@
  45157. am__quote = @am__quote@
  45158. @@ -164,6 +172,7 @@
  45159. libexecdir = @libexecdir@
  45160. localedir = @localedir@
  45161. localstatedir = @localstatedir@
  45162. +lt_ECHO = @lt_ECHO@
  45163. mandir = @mandir@
  45164. mkdir_p = @mkdir_p@
  45165. oldincludedir = @oldincludedir@
  45166. @@ -190,14 +199,14 @@
  45167. @for dep in $?; do \
  45168. case '$(am__configure_deps)' in \
  45169. *$$dep*) \
  45170. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  45171. - && exit 0; \
  45172. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  45173. + && { if test -f $@; then exit 0; else break; fi; }; \
  45174. exit 1;; \
  45175. esac; \
  45176. done; \
  45177. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \
  45178. - cd $(top_srcdir) && \
  45179. - $(AUTOMAKE) --foreign doc/Makefile
  45180. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \
  45181. + $(am__cd) $(top_srcdir) && \
  45182. + $(AUTOMAKE) --foreign doc/Makefile
  45183. .PRECIOUS: Makefile
  45184. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  45185. @case '$?' in \
  45186. @@ -215,6 +224,7 @@
  45187. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  45188. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  45189. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  45190. +$(am__aclocal_m4_deps):
  45191. README.html: $(top_builddir)/config.status $(srcdir)/README.html.in
  45192. cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
  45193. doxygen.conf: $(top_builddir)/config.status $(srcdir)/doxygen.conf.in
  45194. @@ -248,13 +258,17 @@
  45195. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  45196. if test -d $$d/$$file; then \
  45197. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  45198. + if test -d "$(distdir)/$$file"; then \
  45199. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  45200. + fi; \
  45201. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  45202. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  45203. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  45204. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  45205. fi; \
  45206. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  45207. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  45208. else \
  45209. - test -f $(distdir)/$$file \
  45210. - || cp -p $$d/$$file $(distdir)/$$file \
  45211. + test -f "$(distdir)/$$file" \
  45212. + || cp -p $$d/$$file "$(distdir)/$$file" \
  45213. || exit 1; \
  45214. fi; \
  45215. done
  45216. @@ -283,6 +297,7 @@
  45217. distclean-generic:
  45218. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  45219. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  45220. maintainer-clean-generic:
  45221. @echo "This command is intended for maintainers to use"
  45222. @@ -302,6 +317,8 @@
  45223. html: html-am
  45224. +html-am:
  45225. +
  45226. info: info-am
  45227. info-am:
  45228. @@ -310,18 +327,28 @@
  45229. install-dvi: install-dvi-am
  45230. +install-dvi-am:
  45231. +
  45232. install-exec-am:
  45233. install-html: install-html-am
  45234. +install-html-am:
  45235. +
  45236. install-info: install-info-am
  45237. +install-info-am:
  45238. +
  45239. install-man:
  45240. install-pdf: install-pdf-am
  45241. +install-pdf-am:
  45242. +
  45243. install-ps: install-ps-am
  45244. +install-ps-am:
  45245. +
  45246. installcheck-am:
  45247. maintainer-clean: maintainer-clean-am
  45248. @@ -370,6 +397,7 @@
  45249. tidy -e < README.html
  45250. .PHONY: doxygen tidy
  45251. +
  45252. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  45253. # Otherwise a system limit (for SysV at least) may be exceeded.
  45254. .NOEXPORT:
  45255. diff -Nur libdaemon-0.13.orig/examples/Makefile.in libdaemon-0.13/examples/Makefile.in
  45256. --- libdaemon-0.13.orig/examples/Makefile.in 2008-07-29 00:35:32.000000000 +0200
  45257. +++ libdaemon-0.13/examples/Makefile.in 2011-02-20 22:17:59.756051882 +0100
  45258. @@ -1,8 +1,9 @@
  45259. -# Makefile.in generated by automake 1.10.1 from Makefile.am.
  45260. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  45261. # @configure_input@
  45262. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  45263. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  45264. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  45265. +# Inc.
  45266. # This Makefile.in is free software; the Free Software Foundation
  45267. # gives unlimited permission to copy and/or distribute it,
  45268. # with or without modifications, as long as this notice is preserved.
  45269. @@ -34,8 +35,9 @@
  45270. VPATH = @srcdir@
  45271. pkgdatadir = $(datadir)/@PACKAGE@
  45272. -pkglibdir = $(libdir)/@PACKAGE@
  45273. pkgincludedir = $(includedir)/@PACKAGE@
  45274. +pkglibdir = $(libdir)/@PACKAGE@
  45275. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  45276. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  45277. install_sh_DATA = $(install_sh) -c -m 644
  45278. install_sh_PROGRAM = $(install_sh) -c
  45279. @@ -60,6 +62,7 @@
  45280. mkinstalldirs = $(install_sh) -d
  45281. CONFIG_HEADER = $(top_builddir)/config.h
  45282. CONFIG_CLEAN_FILES =
  45283. +CONFIG_CLEAN_VPATH_FILES =
  45284. PROGRAMS = $(noinst_PROGRAMS)
  45285. am_testd_OBJECTS = testd.$(OBJEXT)
  45286. testd_OBJECTS = $(am_testd_OBJECTS)
  45287. @@ -67,6 +70,7 @@
  45288. DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  45289. depcomp = $(SHELL) $(top_srcdir)/depcomp
  45290. am__depfiles_maybe = depfiles
  45291. +am__mv = mv -f
  45292. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  45293. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  45294. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  45295. @@ -101,31 +105,36 @@
  45296. DEFS = @DEFS@
  45297. DEPDIR = @DEPDIR@
  45298. DSYMUTIL = @DSYMUTIL@
  45299. -ECHO = @ECHO@
  45300. +DUMPBIN = @DUMPBIN@
  45301. ECHO_C = @ECHO_C@
  45302. ECHO_N = @ECHO_N@
  45303. ECHO_T = @ECHO_T@
  45304. EGREP = @EGREP@
  45305. EXEEXT = @EXEEXT@
  45306. -F77 = @F77@
  45307. -FFLAGS = @FFLAGS@
  45308. +FGREP = @FGREP@
  45309. GREP = @GREP@
  45310. INSTALL = @INSTALL@
  45311. INSTALL_DATA = @INSTALL_DATA@
  45312. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  45313. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  45314. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  45315. +LD = @LD@
  45316. LDFLAGS = @LDFLAGS@
  45317. LIBDAEMON_VERSION_INFO = @LIBDAEMON_VERSION_INFO@
  45318. LIBOBJS = @LIBOBJS@
  45319. LIBS = @LIBS@
  45320. LIBTOOL = @LIBTOOL@
  45321. +LIPO = @LIPO@
  45322. LN_S = @LN_S@
  45323. LTLIBOBJS = @LTLIBOBJS@
  45324. MAKEINFO = @MAKEINFO@
  45325. MKDIR_P = @MKDIR_P@
  45326. +NM = @NM@
  45327. NMEDIT = @NMEDIT@
  45328. +OBJDUMP = @OBJDUMP@
  45329. OBJEXT = @OBJEXT@
  45330. +OTOOL = @OTOOL@
  45331. +OTOOL64 = @OTOOL64@
  45332. PACKAGE = @PACKAGE@
  45333. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  45334. PACKAGE_NAME = @PACKAGE_NAME@
  45335. @@ -146,7 +155,7 @@
  45336. abs_top_srcdir = @abs_top_srcdir@
  45337. ac_ct_CC = @ac_ct_CC@
  45338. ac_ct_CXX = @ac_ct_CXX@
  45339. -ac_ct_F77 = @ac_ct_F77@
  45340. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  45341. am__include = @am__include@
  45342. am__leading_dot = @am__leading_dot@
  45343. am__quote = @am__quote@
  45344. @@ -178,6 +187,7 @@
  45345. libexecdir = @libexecdir@
  45346. localedir = @localedir@
  45347. localstatedir = @localstatedir@
  45348. +lt_ECHO = @lt_ECHO@
  45349. mandir = @mandir@
  45350. mkdir_p = @mkdir_p@
  45351. oldincludedir = @oldincludedir@
  45352. @@ -204,14 +214,14 @@
  45353. @for dep in $?; do \
  45354. case '$(am__configure_deps)' in \
  45355. *$$dep*) \
  45356. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  45357. - && exit 0; \
  45358. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  45359. + && { if test -f $@; then exit 0; else break; fi; }; \
  45360. exit 1;; \
  45361. esac; \
  45362. done; \
  45363. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign examples/Makefile'; \
  45364. - cd $(top_srcdir) && \
  45365. - $(AUTOMAKE) --foreign examples/Makefile
  45366. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign examples/Makefile'; \
  45367. + $(am__cd) $(top_srcdir) && \
  45368. + $(AUTOMAKE) --foreign examples/Makefile
  45369. .PRECIOUS: Makefile
  45370. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  45371. @case '$?' in \
  45372. @@ -229,13 +239,16 @@
  45373. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  45374. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  45375. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  45376. +$(am__aclocal_m4_deps):
  45377. clean-noinstPROGRAMS:
  45378. - @list='$(noinst_PROGRAMS)'; for p in $$list; do \
  45379. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  45380. - echo " rm -f $$p $$f"; \
  45381. - rm -f $$p $$f ; \
  45382. - done
  45383. + @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
  45384. + echo " rm -f" $$list; \
  45385. + rm -f $$list || exit $$?; \
  45386. + test -n "$(EXEEXT)" || exit 0; \
  45387. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  45388. + echo " rm -f" $$list; \
  45389. + rm -f $$list
  45390. testd$(EXEEXT): $(testd_OBJECTS) $(testd_DEPENDENCIES)
  45391. @rm -f testd$(EXEEXT)
  45392. $(LINK) $(testd_OBJECTS) $(testd_LDADD) $(LIBS)
  45393. @@ -250,21 +263,21 @@
  45394. .c.o:
  45395. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  45396. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  45397. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  45398. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  45399. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  45400. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  45401. .c.obj:
  45402. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  45403. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  45404. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  45405. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  45406. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  45407. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  45408. .c.lo:
  45409. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  45410. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  45411. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  45412. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  45413. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  45414. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  45415. @@ -280,14 +293,14 @@
  45416. unique=`for i in $$list; do \
  45417. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  45418. done | \
  45419. - $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
  45420. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  45421. END { if (nonempty) { for (i in files) print i; }; }'`; \
  45422. mkid -fID $$unique
  45423. tags: TAGS
  45424. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  45425. $(TAGS_FILES) $(LISP)
  45426. - tags=; \
  45427. + set x; \
  45428. here=`pwd`; \
  45429. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  45430. unique=`for i in $$list; do \
  45431. @@ -295,29 +308,34 @@
  45432. done | \
  45433. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  45434. END { if (nonempty) { for (i in files) print i; }; }'`; \
  45435. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  45436. + shift; \
  45437. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  45438. test -n "$$unique" || unique=$$empty_fix; \
  45439. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  45440. - $$tags $$unique; \
  45441. + if test $$# -gt 0; then \
  45442. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  45443. + "$$@" $$unique; \
  45444. + else \
  45445. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  45446. + $$unique; \
  45447. + fi; \
  45448. fi
  45449. ctags: CTAGS
  45450. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  45451. $(TAGS_FILES) $(LISP)
  45452. - tags=; \
  45453. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  45454. unique=`for i in $$list; do \
  45455. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  45456. done | \
  45457. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  45458. END { if (nonempty) { for (i in files) print i; }; }'`; \
  45459. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  45460. + test -z "$(CTAGS_ARGS)$$unique" \
  45461. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  45462. - $$tags $$unique
  45463. + $$unique
  45464. GTAGS:
  45465. here=`$(am__cd) $(top_builddir) && pwd` \
  45466. - && cd $(top_srcdir) \
  45467. - && gtags -i $(GTAGS_ARGS) $$here
  45468. + && $(am__cd) $(top_srcdir) \
  45469. + && gtags -i $(GTAGS_ARGS) "$$here"
  45470. distclean-tags:
  45471. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  45472. @@ -338,13 +356,17 @@
  45473. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  45474. if test -d $$d/$$file; then \
  45475. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  45476. + if test -d "$(distdir)/$$file"; then \
  45477. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  45478. + fi; \
  45479. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  45480. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  45481. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  45482. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  45483. fi; \
  45484. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  45485. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  45486. else \
  45487. - test -f $(distdir)/$$file \
  45488. - || cp -p $$d/$$file $(distdir)/$$file \
  45489. + test -f "$(distdir)/$$file" \
  45490. + || cp -p $$d/$$file "$(distdir)/$$file" \
  45491. || exit 1; \
  45492. fi; \
  45493. done
  45494. @@ -372,6 +394,7 @@
  45495. distclean-generic:
  45496. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  45497. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  45498. maintainer-clean-generic:
  45499. @echo "This command is intended for maintainers to use"
  45500. @@ -393,6 +416,8 @@
  45501. html: html-am
  45502. +html-am:
  45503. +
  45504. info: info-am
  45505. info-am:
  45506. @@ -401,18 +426,28 @@
  45507. install-dvi: install-dvi-am
  45508. +install-dvi-am:
  45509. +
  45510. install-exec-am:
  45511. install-html: install-html-am
  45512. +install-html-am:
  45513. +
  45514. install-info: install-info-am
  45515. +install-info-am:
  45516. +
  45517. install-man:
  45518. install-pdf: install-pdf-am
  45519. +install-pdf-am:
  45520. +
  45521. install-ps: install-ps-am
  45522. +install-ps-am:
  45523. +
  45524. installcheck-am:
  45525. maintainer-clean: maintainer-clean-am
  45526. @@ -450,6 +485,7 @@
  45527. mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
  45528. pdf pdf-am ps ps-am tags uninstall uninstall-am
  45529. +
  45530. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  45531. # Otherwise a system limit (for SysV at least) may be exceeded.
  45532. .NOEXPORT:
  45533. diff -Nur libdaemon-0.13.orig/install-sh libdaemon-0.13/install-sh
  45534. --- libdaemon-0.13.orig/install-sh 2008-06-18 03:24:09.000000000 +0200
  45535. +++ libdaemon-0.13/install-sh 2011-02-20 22:17:59.626052619 +0100
  45536. @@ -1,7 +1,7 @@
  45537. #!/bin/sh
  45538. # install - install a program, script, or datafile
  45539. -scriptversion=2006-12-25.00
  45540. +scriptversion=2009-04-28.21; # UTC
  45541. # This originates from X11R5 (mit/util/scripts/install.sh), which was
  45542. # later released in X11R6 (xc/config/util/install.sh) with the
  45543. @@ -515,5 +515,6 @@
  45544. # eval: (add-hook 'write-file-hooks 'time-stamp)
  45545. # time-stamp-start: "scriptversion="
  45546. # time-stamp-format: "%:y-%02m-%02d.%02H"
  45547. -# time-stamp-end: "$"
  45548. +# time-stamp-time-zone: "UTC"
  45549. +# time-stamp-end: "; # UTC"
  45550. # End:
  45551. diff -Nur libdaemon-0.13.orig/libdaemon/Makefile.in libdaemon-0.13/libdaemon/Makefile.in
  45552. --- libdaemon-0.13.orig/libdaemon/Makefile.in 2008-07-29 00:35:32.000000000 +0200
  45553. +++ libdaemon-0.13/libdaemon/Makefile.in 2011-02-20 22:17:59.806064277 +0100
  45554. @@ -1,8 +1,9 @@
  45555. -# Makefile.in generated by automake 1.10.1 from Makefile.am.
  45556. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  45557. # @configure_input@
  45558. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  45559. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  45560. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  45561. +# Inc.
  45562. # This Makefile.in is free software; the Free Software Foundation
  45563. # gives unlimited permission to copy and/or distribute it,
  45564. # with or without modifications, as long as this notice is preserved.
  45565. @@ -35,8 +36,9 @@
  45566. VPATH = @srcdir@
  45567. pkgdatadir = $(datadir)/@PACKAGE@
  45568. -pkglibdir = $(libdir)/@PACKAGE@
  45569. pkgincludedir = $(includedir)/@PACKAGE@
  45570. +pkglibdir = $(libdir)/@PACKAGE@
  45571. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  45572. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  45573. install_sh_DATA = $(install_sh) -c -m 644
  45574. install_sh_PROGRAM = $(install_sh) -c
  45575. @@ -61,14 +63,29 @@
  45576. mkinstalldirs = $(install_sh) -d
  45577. CONFIG_HEADER = $(top_builddir)/config.h
  45578. CONFIG_CLEAN_FILES =
  45579. +CONFIG_CLEAN_VPATH_FILES =
  45580. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  45581. am__vpath_adj = case $$p in \
  45582. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  45583. *) f=$$p;; \
  45584. esac;
  45585. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  45586. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  45587. +am__install_max = 40
  45588. +am__nobase_strip_setup = \
  45589. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  45590. +am__nobase_strip = \
  45591. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  45592. +am__nobase_list = $(am__nobase_strip_setup); \
  45593. + for p in $$list; do echo "$$p $$p"; done | \
  45594. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  45595. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  45596. + if (++n[$$2] == $(am__install_max)) \
  45597. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  45598. + END { for (dir in files) print dir, files[dir] }'
  45599. +am__base_list = \
  45600. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  45601. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  45602. am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgincludedir)"
  45603. -libLTLIBRARIES_INSTALL = $(INSTALL)
  45604. LTLIBRARIES = $(lib_LTLIBRARIES)
  45605. libdaemon_la_LIBADD =
  45606. am_libdaemon_la_OBJECTS = dlog.lo dfork.lo dsignal.lo dnonblock.lo \
  45607. @@ -80,6 +97,7 @@
  45608. DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  45609. depcomp = $(SHELL) $(top_srcdir)/depcomp
  45610. am__depfiles_maybe = depfiles
  45611. +am__mv = mv -f
  45612. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  45613. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  45614. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  45615. @@ -91,7 +109,6 @@
  45616. $(LDFLAGS) -o $@
  45617. SOURCES = $(libdaemon_la_SOURCES)
  45618. DIST_SOURCES = $(libdaemon_la_SOURCES)
  45619. -pkgincludeHEADERS_INSTALL = $(INSTALL_HEADER)
  45620. HEADERS = $(pkginclude_HEADERS)
  45621. ETAGS = etags
  45622. CTAGS = ctags
  45623. @@ -116,31 +133,36 @@
  45624. DEFS = @DEFS@
  45625. DEPDIR = @DEPDIR@
  45626. DSYMUTIL = @DSYMUTIL@
  45627. -ECHO = @ECHO@
  45628. +DUMPBIN = @DUMPBIN@
  45629. ECHO_C = @ECHO_C@
  45630. ECHO_N = @ECHO_N@
  45631. ECHO_T = @ECHO_T@
  45632. EGREP = @EGREP@
  45633. EXEEXT = @EXEEXT@
  45634. -F77 = @F77@
  45635. -FFLAGS = @FFLAGS@
  45636. +FGREP = @FGREP@
  45637. GREP = @GREP@
  45638. INSTALL = @INSTALL@
  45639. INSTALL_DATA = @INSTALL_DATA@
  45640. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  45641. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  45642. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  45643. +LD = @LD@
  45644. LDFLAGS = @LDFLAGS@
  45645. LIBDAEMON_VERSION_INFO = @LIBDAEMON_VERSION_INFO@
  45646. LIBOBJS = @LIBOBJS@
  45647. LIBS = @LIBS@
  45648. LIBTOOL = @LIBTOOL@
  45649. +LIPO = @LIPO@
  45650. LN_S = @LN_S@
  45651. LTLIBOBJS = @LTLIBOBJS@
  45652. MAKEINFO = @MAKEINFO@
  45653. MKDIR_P = @MKDIR_P@
  45654. +NM = @NM@
  45655. NMEDIT = @NMEDIT@
  45656. +OBJDUMP = @OBJDUMP@
  45657. OBJEXT = @OBJEXT@
  45658. +OTOOL = @OTOOL@
  45659. +OTOOL64 = @OTOOL64@
  45660. PACKAGE = @PACKAGE@
  45661. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  45662. PACKAGE_NAME = @PACKAGE_NAME@
  45663. @@ -161,7 +183,7 @@
  45664. abs_top_srcdir = @abs_top_srcdir@
  45665. ac_ct_CC = @ac_ct_CC@
  45666. ac_ct_CXX = @ac_ct_CXX@
  45667. -ac_ct_F77 = @ac_ct_F77@
  45668. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  45669. am__include = @am__include@
  45670. am__leading_dot = @am__leading_dot@
  45671. am__quote = @am__quote@
  45672. @@ -193,6 +215,7 @@
  45673. libexecdir = @libexecdir@
  45674. localedir = @localedir@
  45675. localstatedir = @localstatedir@
  45676. +lt_ECHO = @lt_ECHO@
  45677. mandir = @mandir@
  45678. mkdir_p = @mkdir_p@
  45679. oldincludedir = @oldincludedir@
  45680. @@ -238,14 +261,14 @@
  45681. @for dep in $?; do \
  45682. case '$(am__configure_deps)' in \
  45683. *$$dep*) \
  45684. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  45685. - && exit 0; \
  45686. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  45687. + && { if test -f $@; then exit 0; else break; fi; }; \
  45688. exit 1;; \
  45689. esac; \
  45690. done; \
  45691. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libdaemon/Makefile'; \
  45692. - cd $(top_srcdir) && \
  45693. - $(AUTOMAKE) --foreign libdaemon/Makefile
  45694. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libdaemon/Makefile'; \
  45695. + $(am__cd) $(top_srcdir) && \
  45696. + $(AUTOMAKE) --foreign libdaemon/Makefile
  45697. .PRECIOUS: Makefile
  45698. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  45699. @case '$?' in \
  45700. @@ -263,23 +286,28 @@
  45701. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  45702. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  45703. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  45704. +$(am__aclocal_m4_deps):
  45705. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  45706. @$(NORMAL_INSTALL)
  45707. test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  45708. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  45709. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  45710. + list2=; for p in $$list; do \
  45711. if test -f $$p; then \
  45712. - f=$(am__strip_dir) \
  45713. - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  45714. - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  45715. + list2="$$list2 $$p"; \
  45716. else :; fi; \
  45717. - done
  45718. + done; \
  45719. + test -z "$$list2" || { \
  45720. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  45721. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  45722. + }
  45723. uninstall-libLTLIBRARIES:
  45724. @$(NORMAL_UNINSTALL)
  45725. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  45726. - p=$(am__strip_dir) \
  45727. - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  45728. - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  45729. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  45730. + for p in $$list; do \
  45731. + $(am__strip_dir) \
  45732. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  45733. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  45734. done
  45735. clean-libLTLIBRARIES:
  45736. @@ -308,21 +336,21 @@
  45737. .c.o:
  45738. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  45739. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  45740. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  45741. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  45742. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  45743. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  45744. .c.obj:
  45745. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  45746. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  45747. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  45748. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  45749. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  45750. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  45751. .c.lo:
  45752. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  45753. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  45754. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  45755. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  45756. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  45757. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  45758. @@ -335,34 +363,37 @@
  45759. install-pkgincludeHEADERS: $(pkginclude_HEADERS)
  45760. @$(NORMAL_INSTALL)
  45761. test -z "$(pkgincludedir)" || $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)"
  45762. - @list='$(pkginclude_HEADERS)'; for p in $$list; do \
  45763. + @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
  45764. + for p in $$list; do \
  45765. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  45766. - f=$(am__strip_dir) \
  45767. - echo " $(pkgincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgincludedir)/$$f'"; \
  45768. - $(pkgincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgincludedir)/$$f"; \
  45769. + echo "$$d$$p"; \
  45770. + done | $(am__base_list) | \
  45771. + while read files; do \
  45772. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \
  45773. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \
  45774. done
  45775. uninstall-pkgincludeHEADERS:
  45776. @$(NORMAL_UNINSTALL)
  45777. - @list='$(pkginclude_HEADERS)'; for p in $$list; do \
  45778. - f=$(am__strip_dir) \
  45779. - echo " rm -f '$(DESTDIR)$(pkgincludedir)/$$f'"; \
  45780. - rm -f "$(DESTDIR)$(pkgincludedir)/$$f"; \
  45781. - done
  45782. + @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
  45783. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  45784. + test -n "$$files" || exit 0; \
  45785. + echo " ( cd '$(DESTDIR)$(pkgincludedir)' && rm -f" $$files ")"; \
  45786. + cd "$(DESTDIR)$(pkgincludedir)" && rm -f $$files
  45787. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  45788. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  45789. unique=`for i in $$list; do \
  45790. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  45791. done | \
  45792. - $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
  45793. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  45794. END { if (nonempty) { for (i in files) print i; }; }'`; \
  45795. mkid -fID $$unique
  45796. tags: TAGS
  45797. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  45798. $(TAGS_FILES) $(LISP)
  45799. - tags=; \
  45800. + set x; \
  45801. here=`pwd`; \
  45802. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  45803. unique=`for i in $$list; do \
  45804. @@ -370,29 +401,34 @@
  45805. done | \
  45806. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  45807. END { if (nonempty) { for (i in files) print i; }; }'`; \
  45808. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  45809. + shift; \
  45810. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  45811. test -n "$$unique" || unique=$$empty_fix; \
  45812. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  45813. - $$tags $$unique; \
  45814. + if test $$# -gt 0; then \
  45815. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  45816. + "$$@" $$unique; \
  45817. + else \
  45818. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  45819. + $$unique; \
  45820. + fi; \
  45821. fi
  45822. ctags: CTAGS
  45823. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  45824. $(TAGS_FILES) $(LISP)
  45825. - tags=; \
  45826. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  45827. unique=`for i in $$list; do \
  45828. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  45829. done | \
  45830. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  45831. END { if (nonempty) { for (i in files) print i; }; }'`; \
  45832. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  45833. + test -z "$(CTAGS_ARGS)$$unique" \
  45834. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  45835. - $$tags $$unique
  45836. + $$unique
  45837. GTAGS:
  45838. here=`$(am__cd) $(top_builddir) && pwd` \
  45839. - && cd $(top_srcdir) \
  45840. - && gtags -i $(GTAGS_ARGS) $$here
  45841. + && $(am__cd) $(top_srcdir) \
  45842. + && gtags -i $(GTAGS_ARGS) "$$here"
  45843. distclean-tags:
  45844. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  45845. @@ -413,13 +449,17 @@
  45846. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  45847. if test -d $$d/$$file; then \
  45848. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  45849. + if test -d "$(distdir)/$$file"; then \
  45850. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  45851. + fi; \
  45852. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  45853. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  45854. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  45855. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  45856. fi; \
  45857. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  45858. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  45859. else \
  45860. - test -f $(distdir)/$$file \
  45861. - || cp -p $$d/$$file $(distdir)/$$file \
  45862. + test -f "$(distdir)/$$file" \
  45863. + || cp -p $$d/$$file "$(distdir)/$$file" \
  45864. || exit 1; \
  45865. fi; \
  45866. done
  45867. @@ -450,6 +490,7 @@
  45868. distclean-generic:
  45869. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  45870. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  45871. maintainer-clean-generic:
  45872. @echo "This command is intended for maintainers to use"
  45873. @@ -471,6 +512,8 @@
  45874. html: html-am
  45875. +html-am:
  45876. +
  45877. info: info-am
  45878. info-am:
  45879. @@ -479,18 +522,28 @@
  45880. install-dvi: install-dvi-am
  45881. +install-dvi-am:
  45882. +
  45883. install-exec-am: install-libLTLIBRARIES
  45884. install-html: install-html-am
  45885. +install-html-am:
  45886. +
  45887. install-info: install-info-am
  45888. +install-info-am:
  45889. +
  45890. install-man:
  45891. install-pdf: install-pdf-am
  45892. +install-pdf-am:
  45893. +
  45894. install-ps: install-ps-am
  45895. +install-ps-am:
  45896. +
  45897. installcheck-am:
  45898. maintainer-clean: maintainer-clean-am
  45899. @@ -530,6 +583,7 @@
  45900. pdf pdf-am ps ps-am tags uninstall uninstall-am \
  45901. uninstall-libLTLIBRARIES uninstall-pkgincludeHEADERS
  45902. +
  45903. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  45904. # Otherwise a system limit (for SysV at least) may be exceeded.
  45905. .NOEXPORT:
  45906. diff -Nur libdaemon-0.13.orig/ltmain.sh libdaemon-0.13/ltmain.sh
  45907. --- libdaemon-0.13.orig/ltmain.sh 2008-06-09 21:51:04.000000000 +0200
  45908. +++ libdaemon-0.13/ltmain.sh 2011-02-20 22:17:56.106054992 +0100
  45909. @@ -1,52 +1,83 @@
  45910. -# ltmain.sh - Provide generalized library-building support services.
  45911. -# NOTE: Changing this file will not affect anything until you rerun configure.
  45912. -#
  45913. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
  45914. -# 2007, 2008 Free Software Foundation, Inc.
  45915. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  45916. -#
  45917. -# This program is free software; you can redistribute it and/or modify
  45918. +# Generated from ltmain.m4sh.
  45919. +
  45920. +# ltmain.sh (GNU libtool) 2.2.6b
  45921. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  45922. +
  45923. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  45924. +# This is free software; see the source for copying conditions. There is NO
  45925. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  45926. +
  45927. +# GNU Libtool is free software; you can redistribute it and/or modify
  45928. # it under the terms of the GNU General Public License as published by
  45929. # the Free Software Foundation; either version 2 of the License, or
  45930. # (at your option) any later version.
  45931. #
  45932. -# This program is distributed in the hope that it will be useful, but
  45933. +# As a special exception to the GNU General Public License,
  45934. +# if you distribute this file as part of a program or library that
  45935. +# is built using GNU Libtool, you may include this file under the
  45936. +# same distribution terms that you use for the rest of that program.
  45937. +#
  45938. +# GNU Libtool is distributed in the hope that it will be useful, but
  45939. # WITHOUT ANY WARRANTY; without even the implied warranty of
  45940. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  45941. # General Public License for more details.
  45942. #
  45943. # You should have received a copy of the GNU General Public License
  45944. -# along with this program; if not, write to the Free Software
  45945. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  45946. -#
  45947. -# As a special exception to the GNU General Public License, if you
  45948. -# distribute this file as part of a program that contains a
  45949. -# configuration script generated by Autoconf, you may include it under
  45950. -# the same distribution terms that you use for the rest of that program.
  45951. -
  45952. -basename="s,^.*/,,g"
  45953. -
  45954. -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  45955. -# is ksh but when the shell is invoked as "sh" and the current value of
  45956. -# the _XPG environment variable is not equal to 1 (one), the special
  45957. -# positional parameter $0, within a function call, is the name of the
  45958. -# function.
  45959. -progpath="$0"
  45960. -
  45961. -# The name of this program:
  45962. -progname=`echo "$progpath" | $SED $basename`
  45963. -modename="$progname"
  45964. +# along with GNU Libtool; see the file COPYING. If not, a copy
  45965. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  45966. +# or obtained by writing to the Free Software Foundation, Inc.,
  45967. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  45968. -# Global variables:
  45969. -EXIT_SUCCESS=0
  45970. -EXIT_FAILURE=1
  45971. +# Usage: $progname [OPTION]... [MODE-ARG]...
  45972. +#
  45973. +# Provide generalized library-building support services.
  45974. +#
  45975. +# --config show all configuration variables
  45976. +# --debug enable verbose shell tracing
  45977. +# -n, --dry-run display commands without modifying any files
  45978. +# --features display basic configuration information and exit
  45979. +# --mode=MODE use operation mode MODE
  45980. +# --preserve-dup-deps don't remove duplicate dependency libraries
  45981. +# --quiet, --silent don't print informational messages
  45982. +# --tag=TAG use configuration variables from tag TAG
  45983. +# -v, --verbose print informational messages (default)
  45984. +# --version print version information
  45985. +# -h, --help print short or long help message
  45986. +#
  45987. +# MODE must be one of the following:
  45988. +#
  45989. +# clean remove files from the build directory
  45990. +# compile compile a source file into a libtool object
  45991. +# execute automatically set library path, then run a program
  45992. +# finish complete the installation of libtool libraries
  45993. +# install install libraries or executables
  45994. +# link create a library or an executable
  45995. +# uninstall remove libraries from an installed directory
  45996. +#
  45997. +# MODE-ARGS vary depending on the MODE.
  45998. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  45999. +#
  46000. +# When reporting a bug, please describe a test case to reproduce it and
  46001. +# include the following information:
  46002. +#
  46003. +# host-triplet: $host
  46004. +# shell: $SHELL
  46005. +# compiler: $LTCC
  46006. +# compiler flags: $LTCFLAGS
  46007. +# linker: $LD (gnu? $with_gnu_ld)
  46008. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  46009. +# automake: $automake_version
  46010. +# autoconf: $autoconf_version
  46011. +#
  46012. +# Report bugs to <bug-libtool@gnu.org>.
  46013. PROGRAM=ltmain.sh
  46014. PACKAGE=libtool
  46015. -VERSION=1.5.26
  46016. -TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)"
  46017. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  46018. +TIMESTAMP=""
  46019. +package_revision=1.3017
  46020. -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
  46021. +# Be Bourne compatible
  46022. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  46023. emulate sh
  46024. NULLCMD=:
  46025. @@ -60,104 +91,261 @@
  46026. BIN_SH=xpg4; export BIN_SH # for Tru64
  46027. DUALCASE=1; export DUALCASE # for MKS sh
  46028. -# Check that we have a working $echo.
  46029. -if test "X$1" = X--no-reexec; then
  46030. - # Discard the --no-reexec flag, and continue.
  46031. - shift
  46032. -elif test "X$1" = X--fallback-echo; then
  46033. - # Avoid inline document here, it may be left over
  46034. - :
  46035. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  46036. - # Yippee, $echo works!
  46037. - :
  46038. -else
  46039. - # Restart under the correct shell, and then maybe $echo will work.
  46040. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  46041. -fi
  46042. -
  46043. -if test "X$1" = X--fallback-echo; then
  46044. - # used as fallback echo
  46045. - shift
  46046. - cat <<EOF
  46047. -$*
  46048. -EOF
  46049. - exit $EXIT_SUCCESS
  46050. -fi
  46051. -
  46052. -default_mode=
  46053. -help="Try \`$progname --help' for more information."
  46054. -magic="%%%MAGIC variable%%%"
  46055. -mkdir="mkdir"
  46056. -mv="mv -f"
  46057. -rm="rm -f"
  46058. -
  46059. -# Sed substitution that helps us do robust quoting. It backslashifies
  46060. -# metacharacters that are still active within double-quoted strings.
  46061. -Xsed="${SED}"' -e 1s/^X//'
  46062. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  46063. -# test EBCDIC or ASCII
  46064. -case `echo X|tr X '\101'` in
  46065. - A) # ASCII based system
  46066. - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  46067. - SP2NL='tr \040 \012'
  46068. - NL2SP='tr \015\012 \040\040'
  46069. - ;;
  46070. - *) # EBCDIC based system
  46071. - SP2NL='tr \100 \n'
  46072. - NL2SP='tr \r\n \100\100'
  46073. - ;;
  46074. -esac
  46075. -
  46076. -# NLS nuisances.
  46077. +# NLS nuisances: We save the old values to restore during execute mode.
  46078. # Only set LANG and LC_ALL to C if already set.
  46079. # These must not be set unconditionally because not all systems understand
  46080. # e.g. LANG=C (notably SCO).
  46081. -# We save the old values to restore during execute mode.
  46082. -lt_env=
  46083. +lt_user_locale=
  46084. +lt_safe_locale=
  46085. for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  46086. do
  46087. eval "if test \"\${$lt_var+set}\" = set; then
  46088. - save_$lt_var=\$$lt_var
  46089. - lt_env=\"$lt_var=\$$lt_var \$lt_env\"
  46090. - $lt_var=C
  46091. + save_$lt_var=\$$lt_var
  46092. + $lt_var=C
  46093. export $lt_var
  46094. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  46095. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  46096. fi"
  46097. done
  46098. -if test -n "$lt_env"; then
  46099. - lt_env="env $lt_env"
  46100. -fi
  46101. +$lt_unset CDPATH
  46102. +
  46103. +
  46104. +
  46105. +
  46106. +
  46107. +: ${CP="cp -f"}
  46108. +: ${ECHO="echo"}
  46109. +: ${EGREP="/bin/grep -E"}
  46110. +: ${FGREP="/bin/grep -F"}
  46111. +: ${GREP="/bin/grep"}
  46112. +: ${LN_S="ln -s"}
  46113. +: ${MAKE="make"}
  46114. +: ${MKDIR="mkdir"}
  46115. +: ${MV="mv -f"}
  46116. +: ${RM="rm -f"}
  46117. +: ${SED="/bin/sed"}
  46118. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  46119. +: ${Xsed="$SED -e 1s/^X//"}
  46120. +
  46121. +# Global variables:
  46122. +EXIT_SUCCESS=0
  46123. +EXIT_FAILURE=1
  46124. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  46125. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  46126. +
  46127. +exit_status=$EXIT_SUCCESS
  46128. # Make sure IFS has a sensible default
  46129. lt_nl='
  46130. '
  46131. IFS=" $lt_nl"
  46132. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  46133. - $echo "$modename: not configured to build any kind of library" 1>&2
  46134. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  46135. - exit $EXIT_FAILURE
  46136. -fi
  46137. +dirname="s,/[^/]*$,,"
  46138. +basename="s,^.*/,,"
  46139. -# Global variables.
  46140. -mode=$default_mode
  46141. -nonopt=
  46142. -prev=
  46143. -prevopt=
  46144. -run=
  46145. -show="$echo"
  46146. -show_help=
  46147. -execute_dlfiles=
  46148. -duplicate_deps=no
  46149. -preserve_args=
  46150. -lo2o="s/\\.lo\$/.${objext}/"
  46151. -o2lo="s/\\.${objext}\$/.lo/"
  46152. -extracted_archives=
  46153. -extracted_serial=0
  46154. +# func_dirname_and_basename file append nondir_replacement
  46155. +# perform func_basename and func_dirname in a single function
  46156. +# call:
  46157. +# dirname: Compute the dirname of FILE. If nonempty,
  46158. +# add APPEND to the result, otherwise set result
  46159. +# to NONDIR_REPLACEMENT.
  46160. +# value returned in "$func_dirname_result"
  46161. +# basename: Compute filename of FILE.
  46162. +# value retuned in "$func_basename_result"
  46163. +# Implementation must be kept synchronized with func_dirname
  46164. +# and func_basename. For efficiency, we do not delegate to
  46165. +# those functions but instead duplicate the functionality here.
  46166. +func_dirname_and_basename ()
  46167. +{
  46168. + # Extract subdirectory from the argument.
  46169. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  46170. + if test "X$func_dirname_result" = "X${1}"; then
  46171. + func_dirname_result="${3}"
  46172. + else
  46173. + func_dirname_result="$func_dirname_result${2}"
  46174. + fi
  46175. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  46176. +}
  46177. +
  46178. +# Generated shell functions inserted here.
  46179. +
  46180. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  46181. +# is ksh but when the shell is invoked as "sh" and the current value of
  46182. +# the _XPG environment variable is not equal to 1 (one), the special
  46183. +# positional parameter $0, within a function call, is the name of the
  46184. +# function.
  46185. +progpath="$0"
  46186. +
  46187. +# The name of this program:
  46188. +# In the unlikely event $progname began with a '-', it would play havoc with
  46189. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  46190. +func_dirname_and_basename "$progpath"
  46191. +progname=$func_basename_result
  46192. +case $progname in
  46193. + -*) progname=./$progname ;;
  46194. +esac
  46195. +
  46196. +# Make sure we have an absolute path for reexecution:
  46197. +case $progpath in
  46198. + [\\/]*|[A-Za-z]:\\*) ;;
  46199. + *[\\/]*)
  46200. + progdir=$func_dirname_result
  46201. + progdir=`cd "$progdir" && pwd`
  46202. + progpath="$progdir/$progname"
  46203. + ;;
  46204. + *)
  46205. + save_IFS="$IFS"
  46206. + IFS=:
  46207. + for progdir in $PATH; do
  46208. + IFS="$save_IFS"
  46209. + test -x "$progdir/$progname" && break
  46210. + done
  46211. + IFS="$save_IFS"
  46212. + test -n "$progdir" || progdir=`pwd`
  46213. + progpath="$progdir/$progname"
  46214. + ;;
  46215. +esac
  46216. +
  46217. +# Sed substitution that helps us do robust quoting. It backslashifies
  46218. +# metacharacters that are still active within double-quoted strings.
  46219. +Xsed="${SED}"' -e 1s/^X//'
  46220. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  46221. +
  46222. +# Same as above, but do not quote variable references.
  46223. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  46224. +
  46225. +# Re-`\' parameter expansions in output of double_quote_subst that were
  46226. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  46227. +# in input to double_quote_subst, that '$' was protected from expansion.
  46228. +# Since each input `\' is now two `\'s, look for any number of runs of
  46229. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  46230. +bs='\\'
  46231. +bs2='\\\\'
  46232. +bs4='\\\\\\\\'
  46233. +dollar='\$'
  46234. +sed_double_backslash="\
  46235. + s/$bs4/&\\
  46236. +/g
  46237. + s/^$bs2$dollar/$bs&/
  46238. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  46239. + s/\n//g"
  46240. +
  46241. +# Standard options:
  46242. +opt_dry_run=false
  46243. +opt_help=false
  46244. +opt_quiet=false
  46245. +opt_verbose=false
  46246. +opt_warning=:
  46247. +
  46248. +# func_echo arg...
  46249. +# Echo program name prefixed message, along with the current mode
  46250. +# name if it has been set yet.
  46251. +func_echo ()
  46252. +{
  46253. + $ECHO "$progname${mode+: }$mode: $*"
  46254. +}
  46255. +
  46256. +# func_verbose arg...
  46257. +# Echo program name prefixed message in verbose mode only.
  46258. +func_verbose ()
  46259. +{
  46260. + $opt_verbose && func_echo ${1+"$@"}
  46261. +
  46262. + # A bug in bash halts the script if the last line of a function
  46263. + # fails when set -e is in force, so we need another command to
  46264. + # work around that:
  46265. + :
  46266. +}
  46267. +
  46268. +# func_error arg...
  46269. +# Echo program name prefixed message to standard error.
  46270. +func_error ()
  46271. +{
  46272. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  46273. +}
  46274. +
  46275. +# func_warning arg...
  46276. +# Echo program name prefixed warning message to standard error.
  46277. +func_warning ()
  46278. +{
  46279. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  46280. +
  46281. + # bash bug again:
  46282. + :
  46283. +}
  46284. +
  46285. +# func_fatal_error arg...
  46286. +# Echo program name prefixed message to standard error, and exit.
  46287. +func_fatal_error ()
  46288. +{
  46289. + func_error ${1+"$@"}
  46290. + exit $EXIT_FAILURE
  46291. +}
  46292. +
  46293. +# func_fatal_help arg...
  46294. +# Echo program name prefixed message to standard error, followed by
  46295. +# a help hint, and exit.
  46296. +func_fatal_help ()
  46297. +{
  46298. + func_error ${1+"$@"}
  46299. + func_fatal_error "$help"
  46300. +}
  46301. +help="Try \`$progname --help' for more information." ## default
  46302. +
  46303. +
  46304. +# func_grep expression filename
  46305. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  46306. +func_grep ()
  46307. +{
  46308. + $GREP "$1" "$2" >/dev/null 2>&1
  46309. +}
  46310. +
  46311. +
  46312. +# func_mkdir_p directory-path
  46313. +# Make sure the entire path to DIRECTORY-PATH is available.
  46314. +func_mkdir_p ()
  46315. +{
  46316. + my_directory_path="$1"
  46317. + my_dir_list=
  46318. +
  46319. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  46320. +
  46321. + # Protect directory names starting with `-'
  46322. + case $my_directory_path in
  46323. + -*) my_directory_path="./$my_directory_path" ;;
  46324. + esac
  46325. +
  46326. + # While some portion of DIR does not yet exist...
  46327. + while test ! -d "$my_directory_path"; do
  46328. + # ...make a list in topmost first order. Use a colon delimited
  46329. + # list incase some portion of path contains whitespace.
  46330. + my_dir_list="$my_directory_path:$my_dir_list"
  46331. +
  46332. + # If the last portion added has no slash in it, the list is done
  46333. + case $my_directory_path in */*) ;; *) break ;; esac
  46334. +
  46335. + # ...otherwise throw away the child directory and loop
  46336. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  46337. + done
  46338. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  46339. +
  46340. + save_mkdir_p_IFS="$IFS"; IFS=':'
  46341. + for my_dir in $my_dir_list; do
  46342. + IFS="$save_mkdir_p_IFS"
  46343. + # mkdir can fail with a `File exist' error if two processes
  46344. + # try to create one of the directories concurrently. Don't
  46345. + # stop in that case!
  46346. + $MKDIR "$my_dir" 2>/dev/null || :
  46347. + done
  46348. + IFS="$save_mkdir_p_IFS"
  46349. +
  46350. + # Bail out if we (or some other process) failed to create a directory.
  46351. + test -d "$my_directory_path" || \
  46352. + func_fatal_error "Failed to create \`$1'"
  46353. + fi
  46354. +}
  46355. -#####################################
  46356. -# Shell function definitions:
  46357. -# This seems to be the best place for them
  46358. # func_mktempdir [string]
  46359. # Make a temporary directory that won't clash with other running
  46360. @@ -167,7 +355,7 @@
  46361. {
  46362. my_template="${TMPDIR-/tmp}/${1-$progname}"
  46363. - if test "$run" = ":"; then
  46364. + if test "$opt_dry_run" = ":"; then
  46365. # Return a directory name, but don't create it in dry-run mode
  46366. my_tmpdir="${my_template}-$$"
  46367. else
  46368. @@ -176,526 +364,787 @@
  46369. my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  46370. if test ! -d "$my_tmpdir"; then
  46371. - # Failing that, at least try and use $RANDOM to avoid a race
  46372. - my_tmpdir="${my_template}-${RANDOM-0}$$"
  46373. + # Failing that, at least try and use $RANDOM to avoid a race
  46374. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  46375. - save_mktempdir_umask=`umask`
  46376. - umask 0077
  46377. - $mkdir "$my_tmpdir"
  46378. - umask $save_mktempdir_umask
  46379. + save_mktempdir_umask=`umask`
  46380. + umask 0077
  46381. + $MKDIR "$my_tmpdir"
  46382. + umask $save_mktempdir_umask
  46383. fi
  46384. # If we're not in dry-run mode, bomb out on failure
  46385. - test -d "$my_tmpdir" || {
  46386. - $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
  46387. - exit $EXIT_FAILURE
  46388. - }
  46389. + test -d "$my_tmpdir" || \
  46390. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  46391. fi
  46392. - $echo "X$my_tmpdir" | $Xsed
  46393. + $ECHO "X$my_tmpdir" | $Xsed
  46394. }
  46395. -# func_win32_libid arg
  46396. -# return the library type of file 'arg'
  46397. -#
  46398. -# Need a lot of goo to handle *both* DLLs and import libs
  46399. -# Has to be a shell function in order to 'eat' the argument
  46400. -# that is supplied when $file_magic_command is called.
  46401. -func_win32_libid ()
  46402. +# func_quote_for_eval arg
  46403. +# Aesthetically quote ARG to be evaled later.
  46404. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  46405. +# is double-quoted, suitable for a subsequent eval, whereas
  46406. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  46407. +# which are still active within double quotes backslashified.
  46408. +func_quote_for_eval ()
  46409. {
  46410. - win32_libid_type="unknown"
  46411. - win32_fileres=`file -L $1 2>/dev/null`
  46412. - case $win32_fileres in
  46413. - *ar\ archive\ import\ library*) # definitely import
  46414. - win32_libid_type="x86 archive import"
  46415. - ;;
  46416. - *ar\ archive*) # could be an import, or static
  46417. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  46418. - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  46419. - win32_nmres=`eval $NM -f posix -A $1 | \
  46420. - $SED -n -e '1,100{
  46421. - / I /{
  46422. - s,.*,import,
  46423. - p
  46424. - q
  46425. - }
  46426. - }'`
  46427. - case $win32_nmres in
  46428. - import*) win32_libid_type="x86 archive import";;
  46429. - *) win32_libid_type="x86 archive static";;
  46430. - esac
  46431. - fi
  46432. - ;;
  46433. - *DLL*)
  46434. - win32_libid_type="x86 DLL"
  46435. - ;;
  46436. - *executable*) # but shell scripts are "executable" too...
  46437. - case $win32_fileres in
  46438. - *MS\ Windows\ PE\ Intel*)
  46439. - win32_libid_type="x86 DLL"
  46440. - ;;
  46441. + case $1 in
  46442. + *[\\\`\"\$]*)
  46443. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  46444. + *)
  46445. + func_quote_for_eval_unquoted_result="$1" ;;
  46446. + esac
  46447. +
  46448. + case $func_quote_for_eval_unquoted_result in
  46449. + # Double-quote args containing shell metacharacters to delay
  46450. + # word splitting, command substitution and and variable
  46451. + # expansion for a subsequent eval.
  46452. + # Many Bourne shells cannot handle close brackets correctly
  46453. + # in scan sets, so we specify it separately.
  46454. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  46455. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  46456. + ;;
  46457. + *)
  46458. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  46459. esac
  46460. - ;;
  46461. - esac
  46462. - $echo $win32_libid_type
  46463. }
  46464. -# func_infer_tag arg
  46465. -# Infer tagged configuration to use if any are available and
  46466. -# if one wasn't chosen via the "--tag" command line option.
  46467. -# Only attempt this if the compiler in the base compile
  46468. -# command doesn't match the default compiler.
  46469. -# arg is usually of the form 'gcc ...'
  46470. -func_infer_tag ()
  46471. +# func_quote_for_expand arg
  46472. +# Aesthetically quote ARG to be evaled later; same as above,
  46473. +# but do not quote variable references.
  46474. +func_quote_for_expand ()
  46475. {
  46476. - if test -n "$available_tags" && test -z "$tagname"; then
  46477. - CC_quoted=
  46478. - for arg in $CC; do
  46479. - case $arg in
  46480. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  46481. - arg="\"$arg\""
  46482. - ;;
  46483. - esac
  46484. - CC_quoted="$CC_quoted $arg"
  46485. - done
  46486. - case $@ in
  46487. - # Blanks in the command may have been stripped by the calling shell,
  46488. - # but not from the CC environment variable when configure was run.
  46489. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  46490. - # Blanks at the start of $base_compile will cause this to fail
  46491. - # if we don't check for them as well.
  46492. + case $1 in
  46493. + *[\\\`\"]*)
  46494. + my_arg=`$ECHO "X$1" | $Xsed \
  46495. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  46496. *)
  46497. - for z in $available_tags; do
  46498. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  46499. - # Evaluate the configuration.
  46500. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  46501. - CC_quoted=
  46502. - for arg in $CC; do
  46503. - # Double-quote args containing other shell metacharacters.
  46504. - case $arg in
  46505. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  46506. - arg="\"$arg\""
  46507. - ;;
  46508. - esac
  46509. - CC_quoted="$CC_quoted $arg"
  46510. - done
  46511. - case "$@ " in
  46512. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  46513. - # The compiler in the base compile command matches
  46514. - # the one in the tagged configuration.
  46515. - # Assume this is the tagged configuration we want.
  46516. - tagname=$z
  46517. - break
  46518. - ;;
  46519. - esac
  46520. - fi
  46521. - done
  46522. - # If $tagname still isn't set, then no tagged configuration
  46523. - # was found and let the user know that the "--tag" command
  46524. - # line option must be used.
  46525. - if test -z "$tagname"; then
  46526. - $echo "$modename: unable to infer tagged configuration"
  46527. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  46528. - exit $EXIT_FAILURE
  46529. -# else
  46530. -# $echo "$modename: using $tagname tagged configuration"
  46531. - fi
  46532. - ;;
  46533. - esac
  46534. - fi
  46535. + my_arg="$1" ;;
  46536. + esac
  46537. +
  46538. + case $my_arg in
  46539. + # Double-quote args containing shell metacharacters to delay
  46540. + # word splitting and command substitution for a subsequent eval.
  46541. + # Many Bourne shells cannot handle close brackets correctly
  46542. + # in scan sets, so we specify it separately.
  46543. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  46544. + my_arg="\"$my_arg\""
  46545. + ;;
  46546. + esac
  46547. +
  46548. + func_quote_for_expand_result="$my_arg"
  46549. }
  46550. -# func_extract_an_archive dir oldlib
  46551. -func_extract_an_archive ()
  46552. +# func_show_eval cmd [fail_exp]
  46553. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  46554. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  46555. +# is given, then evaluate it.
  46556. +func_show_eval ()
  46557. {
  46558. - f_ex_an_ar_dir="$1"; shift
  46559. - f_ex_an_ar_oldlib="$1"
  46560. + my_cmd="$1"
  46561. + my_fail_exp="${2-:}"
  46562. - $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
  46563. - $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
  46564. - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  46565. - :
  46566. - else
  46567. - $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
  46568. - exit $EXIT_FAILURE
  46569. + ${opt_silent-false} || {
  46570. + func_quote_for_expand "$my_cmd"
  46571. + eval "func_echo $func_quote_for_expand_result"
  46572. + }
  46573. +
  46574. + if ${opt_dry_run-false}; then :; else
  46575. + eval "$my_cmd"
  46576. + my_status=$?
  46577. + if test "$my_status" -eq 0; then :; else
  46578. + eval "(exit $my_status); $my_fail_exp"
  46579. + fi
  46580. fi
  46581. }
  46582. -# func_extract_archives gentop oldlib ...
  46583. -func_extract_archives ()
  46584. +
  46585. +# func_show_eval_locale cmd [fail_exp]
  46586. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  46587. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  46588. +# is given, then evaluate it. Use the saved locale for evaluation.
  46589. +func_show_eval_locale ()
  46590. {
  46591. - my_gentop="$1"; shift
  46592. - my_oldlibs=${1+"$@"}
  46593. - my_oldobjs=""
  46594. - my_xlib=""
  46595. - my_xabs=""
  46596. - my_xdir=""
  46597. - my_status=""
  46598. + my_cmd="$1"
  46599. + my_fail_exp="${2-:}"
  46600. +
  46601. + ${opt_silent-false} || {
  46602. + func_quote_for_expand "$my_cmd"
  46603. + eval "func_echo $func_quote_for_expand_result"
  46604. + }
  46605. - $show "${rm}r $my_gentop"
  46606. - $run ${rm}r "$my_gentop"
  46607. - $show "$mkdir $my_gentop"
  46608. - $run $mkdir "$my_gentop"
  46609. - my_status=$?
  46610. - if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
  46611. - exit $my_status
  46612. + if ${opt_dry_run-false}; then :; else
  46613. + eval "$lt_user_locale
  46614. + $my_cmd"
  46615. + my_status=$?
  46616. + eval "$lt_safe_locale"
  46617. + if test "$my_status" -eq 0; then :; else
  46618. + eval "(exit $my_status); $my_fail_exp"
  46619. + fi
  46620. fi
  46621. +}
  46622. - for my_xlib in $my_oldlibs; do
  46623. - # Extract the objects.
  46624. - case $my_xlib in
  46625. - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  46626. - *) my_xabs=`pwd`"/$my_xlib" ;;
  46627. - esac
  46628. - my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
  46629. - my_xlib_u=$my_xlib
  46630. - while :; do
  46631. - case " $extracted_archives " in
  46632. - *" $my_xlib_u "*)
  46633. - extracted_serial=`expr $extracted_serial + 1`
  46634. - my_xlib_u=lt$extracted_serial-$my_xlib ;;
  46635. - *) break ;;
  46636. - esac
  46637. - done
  46638. - extracted_archives="$extracted_archives $my_xlib_u"
  46639. - my_xdir="$my_gentop/$my_xlib_u"
  46640. - $show "${rm}r $my_xdir"
  46641. - $run ${rm}r "$my_xdir"
  46642. - $show "$mkdir $my_xdir"
  46643. - $run $mkdir "$my_xdir"
  46644. - exit_status=$?
  46645. - if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
  46646. - exit $exit_status
  46647. - fi
  46648. - case $host in
  46649. - *-darwin*)
  46650. - $show "Extracting $my_xabs"
  46651. - # Do not bother doing anything if just a dry run
  46652. - if test -z "$run"; then
  46653. - darwin_orig_dir=`pwd`
  46654. - cd $my_xdir || exit $?
  46655. - darwin_archive=$my_xabs
  46656. - darwin_curdir=`pwd`
  46657. - darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
  46658. - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
  46659. - if test -n "$darwin_arches"; then
  46660. - darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
  46661. - darwin_arch=
  46662. - $show "$darwin_base_archive has multiple architectures $darwin_arches"
  46663. - for darwin_arch in $darwin_arches ; do
  46664. - mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  46665. - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  46666. - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  46667. - func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  46668. - cd "$darwin_curdir"
  46669. - $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  46670. - done # $darwin_arches
  46671. - ## Okay now we have a bunch of thin objects, gotta fatten them up :)
  46672. - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
  46673. - darwin_file=
  46674. - darwin_files=
  46675. - for darwin_file in $darwin_filelist; do
  46676. - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  46677. - lipo -create -output "$darwin_file" $darwin_files
  46678. - done # $darwin_filelist
  46679. - ${rm}r unfat-$$
  46680. - cd "$darwin_orig_dir"
  46681. - else
  46682. - cd "$darwin_orig_dir"
  46683. - func_extract_an_archive "$my_xdir" "$my_xabs"
  46684. - fi # $darwin_arches
  46685. - fi # $run
  46686. - ;;
  46687. - *)
  46688. - func_extract_an_archive "$my_xdir" "$my_xabs"
  46689. - ;;
  46690. - esac
  46691. - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  46692. - done
  46693. - func_extract_archives_result="$my_oldobjs"
  46694. +
  46695. +
  46696. +
  46697. +# func_version
  46698. +# Echo version message to standard output and exit.
  46699. +func_version ()
  46700. +{
  46701. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  46702. + s/^# //
  46703. + s/^# *$//
  46704. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  46705. + p
  46706. + }' < "$progpath"
  46707. + exit $?
  46708. +}
  46709. +
  46710. +# func_usage
  46711. +# Echo short help message to standard output and exit.
  46712. +func_usage ()
  46713. +{
  46714. + $SED -n '/^# Usage:/,/# -h/ {
  46715. + s/^# //
  46716. + s/^# *$//
  46717. + s/\$progname/'$progname'/
  46718. + p
  46719. + }' < "$progpath"
  46720. + $ECHO
  46721. + $ECHO "run \`$progname --help | more' for full usage"
  46722. + exit $?
  46723. +}
  46724. +
  46725. +# func_help
  46726. +# Echo long help message to standard output and exit.
  46727. +func_help ()
  46728. +{
  46729. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  46730. + s/^# //
  46731. + s/^# *$//
  46732. + s*\$progname*'$progname'*
  46733. + s*\$host*'"$host"'*
  46734. + s*\$SHELL*'"$SHELL"'*
  46735. + s*\$LTCC*'"$LTCC"'*
  46736. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  46737. + s*\$LD*'"$LD"'*
  46738. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  46739. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  46740. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  46741. + p
  46742. + }' < "$progpath"
  46743. + exit $?
  46744. +}
  46745. +
  46746. +# func_missing_arg argname
  46747. +# Echo program name prefixed message to standard error and set global
  46748. +# exit_cmd.
  46749. +func_missing_arg ()
  46750. +{
  46751. + func_error "missing argument for $1"
  46752. + exit_cmd=exit
  46753. }
  46754. -# End of Shell function definitions
  46755. -#####################################
  46756. -# Darwin sucks
  46757. -eval std_shrext=\"$shrext_cmds\"
  46758. +exit_cmd=:
  46759. -disable_libs=no
  46760. -# Parse our command line options once, thoroughly.
  46761. -while test "$#" -gt 0
  46762. -do
  46763. - arg="$1"
  46764. +
  46765. +
  46766. +
  46767. +# Check that we have a working $ECHO.
  46768. +if test "X$1" = X--no-reexec; then
  46769. + # Discard the --no-reexec flag, and continue.
  46770. shift
  46771. +elif test "X$1" = X--fallback-echo; then
  46772. + # Avoid inline document here, it may be left over
  46773. + :
  46774. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  46775. + # Yippee, $ECHO works!
  46776. + :
  46777. +else
  46778. + # Restart under the correct shell, and then maybe $ECHO will work.
  46779. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  46780. +fi
  46781. - case $arg in
  46782. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  46783. - *) optarg= ;;
  46784. - esac
  46785. +if test "X$1" = X--fallback-echo; then
  46786. + # used as fallback echo
  46787. + shift
  46788. + cat <<EOF
  46789. +$*
  46790. +EOF
  46791. + exit $EXIT_SUCCESS
  46792. +fi
  46793. - # If the previous option needs an argument, assign it.
  46794. - if test -n "$prev"; then
  46795. - case $prev in
  46796. - execute_dlfiles)
  46797. - execute_dlfiles="$execute_dlfiles $arg"
  46798. - ;;
  46799. - tag)
  46800. - tagname="$arg"
  46801. - preserve_args="${preserve_args}=$arg"
  46802. -
  46803. - # Check whether tagname contains only valid characters
  46804. - case $tagname in
  46805. - *[!-_A-Za-z0-9,/]*)
  46806. - $echo "$progname: invalid tag name: $tagname" 1>&2
  46807. - exit $EXIT_FAILURE
  46808. - ;;
  46809. - esac
  46810. +magic="%%%MAGIC variable%%%"
  46811. +magic_exe="%%%MAGIC EXE variable%%%"
  46812. - case $tagname in
  46813. - CC)
  46814. - # Don't test for the "default" C tag, as we know, it's there, but
  46815. - # not specially marked.
  46816. - ;;
  46817. - *)
  46818. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  46819. - taglist="$taglist $tagname"
  46820. - # Evaluate the configuration.
  46821. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  46822. - else
  46823. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  46824. - fi
  46825. - ;;
  46826. - esac
  46827. - ;;
  46828. - *)
  46829. - eval "$prev=\$arg"
  46830. - ;;
  46831. - esac
  46832. +# Global variables.
  46833. +# $mode is unset
  46834. +nonopt=
  46835. +execute_dlfiles=
  46836. +preserve_args=
  46837. +lo2o="s/\\.lo\$/.${objext}/"
  46838. +o2lo="s/\\.${objext}\$/.lo/"
  46839. +extracted_archives=
  46840. +extracted_serial=0
  46841. - prev=
  46842. - prevopt=
  46843. - continue
  46844. - fi
  46845. +opt_dry_run=false
  46846. +opt_duplicate_deps=false
  46847. +opt_silent=false
  46848. +opt_debug=:
  46849. - # Have we seen a non-optional argument yet?
  46850. - case $arg in
  46851. - --help)
  46852. - show_help=yes
  46853. - ;;
  46854. +# If this variable is set in any of the actions, the command in it
  46855. +# will be execed at the end. This prevents here-documents from being
  46856. +# left over by shells.
  46857. +exec_cmd=
  46858. - --version)
  46859. - echo "\
  46860. -$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
  46861. -
  46862. -Copyright (C) 2008 Free Software Foundation, Inc.
  46863. -This is free software; see the source for copying conditions. There is NO
  46864. -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  46865. - exit $?
  46866. - ;;
  46867. +# func_fatal_configuration arg...
  46868. +# Echo program name prefixed message to standard error, followed by
  46869. +# a configuration failure hint, and exit.
  46870. +func_fatal_configuration ()
  46871. +{
  46872. + func_error ${1+"$@"}
  46873. + func_error "See the $PACKAGE documentation for more information."
  46874. + func_fatal_error "Fatal configuration error."
  46875. +}
  46876. +
  46877. +
  46878. +# func_config
  46879. +# Display the configuration for all the tags in this script.
  46880. +func_config ()
  46881. +{
  46882. + re_begincf='^# ### BEGIN LIBTOOL'
  46883. + re_endcf='^# ### END LIBTOOL'
  46884. +
  46885. + # Default configuration.
  46886. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  46887. - --config)
  46888. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  46889. # Now print the configurations for the tags.
  46890. for tagname in $taglist; do
  46891. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  46892. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  46893. done
  46894. - exit $?
  46895. - ;;
  46896. -
  46897. - --debug)
  46898. - $echo "$progname: enabling shell trace mode"
  46899. - set -x
  46900. - preserve_args="$preserve_args $arg"
  46901. - ;;
  46902. - --dry-run | -n)
  46903. - run=:
  46904. - ;;
  46905. + exit $?
  46906. +}
  46907. - --features)
  46908. - $echo "host: $host"
  46909. +# func_features
  46910. +# Display the features supported by this script.
  46911. +func_features ()
  46912. +{
  46913. + $ECHO "host: $host"
  46914. if test "$build_libtool_libs" = yes; then
  46915. - $echo "enable shared libraries"
  46916. + $ECHO "enable shared libraries"
  46917. else
  46918. - $echo "disable shared libraries"
  46919. + $ECHO "disable shared libraries"
  46920. fi
  46921. if test "$build_old_libs" = yes; then
  46922. - $echo "enable static libraries"
  46923. + $ECHO "enable static libraries"
  46924. else
  46925. - $echo "disable static libraries"
  46926. + $ECHO "disable static libraries"
  46927. fi
  46928. +
  46929. exit $?
  46930. - ;;
  46931. +}
  46932. - --finish) mode="finish" ;;
  46933. +# func_enable_tag tagname
  46934. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  46935. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  46936. +# variable here.
  46937. +func_enable_tag ()
  46938. +{
  46939. + # Global variable:
  46940. + tagname="$1"
  46941. +
  46942. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  46943. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  46944. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  46945. +
  46946. + # Validate tagname.
  46947. + case $tagname in
  46948. + *[!-_A-Za-z0-9,/]*)
  46949. + func_fatal_error "invalid tag name: $tagname"
  46950. + ;;
  46951. + esac
  46952. - --mode) prevopt="--mode" prev=mode ;;
  46953. - --mode=*) mode="$optarg" ;;
  46954. + # Don't test for the "default" C tag, as we know it's
  46955. + # there but not specially marked.
  46956. + case $tagname in
  46957. + CC) ;;
  46958. + *)
  46959. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  46960. + taglist="$taglist $tagname"
  46961. - --preserve-dup-deps) duplicate_deps="yes" ;;
  46962. + # Evaluate the configuration. Be careful to quote the path
  46963. + # and the sed script, to avoid splitting on whitespace, but
  46964. + # also don't use non-portable quotes within backquotes within
  46965. + # quotes we have to do it in 2 steps:
  46966. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  46967. + eval "$extractedcf"
  46968. + else
  46969. + func_error "ignoring unknown tag $tagname"
  46970. + fi
  46971. + ;;
  46972. + esac
  46973. +}
  46974. - --quiet | --silent)
  46975. - show=:
  46976. - preserve_args="$preserve_args $arg"
  46977. - ;;
  46978. +# Parse options once, thoroughly. This comes as soon as possible in
  46979. +# the script to make things like `libtool --version' happen quickly.
  46980. +{
  46981. - --tag)
  46982. - prevopt="--tag"
  46983. - prev=tag
  46984. - preserve_args="$preserve_args --tag"
  46985. + # Shorthand for --mode=foo, only valid as the first argument
  46986. + case $1 in
  46987. + clean|clea|cle|cl)
  46988. + shift; set dummy --mode clean ${1+"$@"}; shift
  46989. ;;
  46990. - --tag=*)
  46991. - set tag "$optarg" ${1+"$@"}
  46992. - shift
  46993. - prev=tag
  46994. - preserve_args="$preserve_args --tag"
  46995. + compile|compil|compi|comp|com|co|c)
  46996. + shift; set dummy --mode compile ${1+"$@"}; shift
  46997. ;;
  46998. -
  46999. - -dlopen)
  47000. - prevopt="-dlopen"
  47001. - prev=execute_dlfiles
  47002. + execute|execut|execu|exec|exe|ex|e)
  47003. + shift; set dummy --mode execute ${1+"$@"}; shift
  47004. ;;
  47005. -
  47006. - -*)
  47007. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  47008. - $echo "$help" 1>&2
  47009. - exit $EXIT_FAILURE
  47010. + finish|finis|fini|fin|fi|f)
  47011. + shift; set dummy --mode finish ${1+"$@"}; shift
  47012. ;;
  47013. -
  47014. - *)
  47015. - nonopt="$arg"
  47016. - break
  47017. + install|instal|insta|inst|ins|in|i)
  47018. + shift; set dummy --mode install ${1+"$@"}; shift
  47019. + ;;
  47020. + link|lin|li|l)
  47021. + shift; set dummy --mode link ${1+"$@"}; shift
  47022. + ;;
  47023. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  47024. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  47025. ;;
  47026. esac
  47027. -done
  47028. -if test -n "$prevopt"; then
  47029. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  47030. - $echo "$help" 1>&2
  47031. - exit $EXIT_FAILURE
  47032. -fi
  47033. + # Parse non-mode specific arguments:
  47034. + while test "$#" -gt 0; do
  47035. + opt="$1"
  47036. + shift
  47037. -case $disable_libs in
  47038. -no)
  47039. - ;;
  47040. -shared)
  47041. - build_libtool_libs=no
  47042. - build_old_libs=yes
  47043. - ;;
  47044. -static)
  47045. - build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  47046. - ;;
  47047. -esac
  47048. + case $opt in
  47049. + --config) func_config ;;
  47050. -# If this variable is set in any of the actions, the command in it
  47051. -# will be execed at the end. This prevents here-documents from being
  47052. -# left over by shells.
  47053. -exec_cmd=
  47054. + --debug) preserve_args="$preserve_args $opt"
  47055. + func_echo "enabling shell trace mode"
  47056. + opt_debug='set -x'
  47057. + $opt_debug
  47058. + ;;
  47059. -if test -z "$show_help"; then
  47060. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  47061. + execute_dlfiles="$execute_dlfiles $1"
  47062. + shift
  47063. + ;;
  47064. - # Infer the operation mode.
  47065. - if test -z "$mode"; then
  47066. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  47067. - $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
  47068. - case $nonopt in
  47069. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  47070. - mode=link
  47071. - for arg
  47072. - do
  47073. - case $arg in
  47074. - -c)
  47075. - mode=compile
  47076. - break
  47077. - ;;
  47078. - esac
  47079. - done
  47080. - ;;
  47081. - *db | *dbx | *strace | *truss)
  47082. - mode=execute
  47083. - ;;
  47084. - *install*|cp|mv)
  47085. - mode=install
  47086. - ;;
  47087. - *rm)
  47088. - mode=uninstall
  47089. + --dry-run | -n) opt_dry_run=: ;;
  47090. + --features) func_features ;;
  47091. + --finish) mode="finish" ;;
  47092. +
  47093. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  47094. + case $1 in
  47095. + # Valid mode arguments:
  47096. + clean) ;;
  47097. + compile) ;;
  47098. + execute) ;;
  47099. + finish) ;;
  47100. + install) ;;
  47101. + link) ;;
  47102. + relink) ;;
  47103. + uninstall) ;;
  47104. +
  47105. + # Catch anything else as an error
  47106. + *) func_error "invalid argument for $opt"
  47107. + exit_cmd=exit
  47108. + break
  47109. + ;;
  47110. + esac
  47111. +
  47112. + mode="$1"
  47113. + shift
  47114. + ;;
  47115. +
  47116. + --preserve-dup-deps)
  47117. + opt_duplicate_deps=: ;;
  47118. +
  47119. + --quiet|--silent) preserve_args="$preserve_args $opt"
  47120. + opt_silent=:
  47121. + ;;
  47122. +
  47123. + --verbose| -v) preserve_args="$preserve_args $opt"
  47124. + opt_silent=false
  47125. + ;;
  47126. +
  47127. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  47128. + preserve_args="$preserve_args $opt $1"
  47129. + func_enable_tag "$1" # tagname is set here
  47130. + shift
  47131. + ;;
  47132. +
  47133. + # Separate optargs to long options:
  47134. + -dlopen=*|--mode=*|--tag=*)
  47135. + func_opt_split "$opt"
  47136. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  47137. + shift
  47138. + ;;
  47139. +
  47140. + -\?|-h) func_usage ;;
  47141. + --help) opt_help=: ;;
  47142. + --version) func_version ;;
  47143. +
  47144. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  47145. +
  47146. + *) nonopt="$opt"
  47147. + break
  47148. + ;;
  47149. + esac
  47150. + done
  47151. +
  47152. +
  47153. + case $host in
  47154. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  47155. + # don't eliminate duplications in $postdeps and $predeps
  47156. + opt_duplicate_compiler_generated_deps=:
  47157. ;;
  47158. *)
  47159. - # If we have no mode, but dlfiles were specified, then do execute mode.
  47160. - test -n "$execute_dlfiles" && mode=execute
  47161. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  47162. + ;;
  47163. + esac
  47164. - # Just use the default operation mode.
  47165. - if test -z "$mode"; then
  47166. - if test -n "$nonopt"; then
  47167. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  47168. - else
  47169. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  47170. - fi
  47171. + # Having warned about all mis-specified options, bail out if
  47172. + # anything was wrong.
  47173. + $exit_cmd $EXIT_FAILURE
  47174. +}
  47175. +
  47176. +# func_check_version_match
  47177. +# Ensure that we are using m4 macros, and libtool script from the same
  47178. +# release of libtool.
  47179. +func_check_version_match ()
  47180. +{
  47181. + if test "$package_revision" != "$macro_revision"; then
  47182. + if test "$VERSION" != "$macro_version"; then
  47183. + if test -z "$macro_version"; then
  47184. + cat >&2 <<_LT_EOF
  47185. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  47186. +$progname: definition of this LT_INIT comes from an older release.
  47187. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  47188. +$progname: and run autoconf again.
  47189. +_LT_EOF
  47190. + else
  47191. + cat >&2 <<_LT_EOF
  47192. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  47193. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  47194. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  47195. +$progname: and run autoconf again.
  47196. +_LT_EOF
  47197. fi
  47198. - ;;
  47199. - esac
  47200. + else
  47201. + cat >&2 <<_LT_EOF
  47202. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  47203. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  47204. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  47205. +$progname: of $PACKAGE $VERSION and run autoconf again.
  47206. +_LT_EOF
  47207. + fi
  47208. +
  47209. + exit $EXIT_MISMATCH
  47210. + fi
  47211. +}
  47212. +
  47213. +
  47214. +## ----------- ##
  47215. +## Main. ##
  47216. +## ----------- ##
  47217. +
  47218. +$opt_help || {
  47219. + # Sanity checks first:
  47220. + func_check_version_match
  47221. +
  47222. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  47223. + func_fatal_configuration "not configured to build any kind of library"
  47224. fi
  47225. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  47226. +
  47227. +
  47228. + # Darwin sucks
  47229. + eval std_shrext=\"$shrext_cmds\"
  47230. +
  47231. +
  47232. # Only execute mode is allowed to have -dlopen flags.
  47233. if test -n "$execute_dlfiles" && test "$mode" != execute; then
  47234. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  47235. - $echo "$help" 1>&2
  47236. + func_error "unrecognized option \`-dlopen'"
  47237. + $ECHO "$help" 1>&2
  47238. exit $EXIT_FAILURE
  47239. fi
  47240. # Change the help message to a mode-specific one.
  47241. generic_help="$help"
  47242. - help="Try \`$modename --help --mode=$mode' for more information."
  47243. + help="Try \`$progname --help --mode=$mode' for more information."
  47244. +}
  47245. - # These modes are in order of execution frequency so that they run quickly.
  47246. - case $mode in
  47247. - # libtool compile mode
  47248. - compile)
  47249. - modename="$modename: compile"
  47250. - # Get the compilation command and the source file.
  47251. - base_compile=
  47252. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  47253. - suppress_opt=yes
  47254. - suppress_output=
  47255. - arg_mode=normal
  47256. - libobj=
  47257. - later=
  47258. - for arg
  47259. - do
  47260. - case $arg_mode in
  47261. - arg )
  47262. - # do not "continue". Instead, add this to base_compile
  47263. - lastarg="$arg"
  47264. - arg_mode=normal
  47265. - ;;
  47266. +# func_lalib_p file
  47267. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  47268. +# This function is only a basic sanity check; it will hardly flush out
  47269. +# determined imposters.
  47270. +func_lalib_p ()
  47271. +{
  47272. + test -f "$1" &&
  47273. + $SED -e 4q "$1" 2>/dev/null \
  47274. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  47275. +}
  47276. - target )
  47277. - libobj="$arg"
  47278. - arg_mode=normal
  47279. - continue
  47280. - ;;
  47281. +# func_lalib_unsafe_p file
  47282. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  47283. +# This function implements the same check as func_lalib_p without
  47284. +# resorting to external programs. To this end, it redirects stdin and
  47285. +# closes it afterwards, without saving the original file descriptor.
  47286. +# As a safety measure, use it only where a negative result would be
  47287. +# fatal anyway. Works if `file' does not exist.
  47288. +func_lalib_unsafe_p ()
  47289. +{
  47290. + lalib_p=no
  47291. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  47292. + for lalib_p_l in 1 2 3 4
  47293. + do
  47294. + read lalib_p_line
  47295. + case "$lalib_p_line" in
  47296. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  47297. + esac
  47298. + done
  47299. + exec 0<&5 5<&-
  47300. + fi
  47301. + test "$lalib_p" = yes
  47302. +}
  47303. - normal )
  47304. - # Accept any command-line options.
  47305. - case $arg in
  47306. - -o)
  47307. - if test -n "$libobj" ; then
  47308. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  47309. - exit $EXIT_FAILURE
  47310. - fi
  47311. - arg_mode=target
  47312. - continue
  47313. - ;;
  47314. +# func_ltwrapper_script_p file
  47315. +# True iff FILE is a libtool wrapper script
  47316. +# This function is only a basic sanity check; it will hardly flush out
  47317. +# determined imposters.
  47318. +func_ltwrapper_script_p ()
  47319. +{
  47320. + func_lalib_p "$1"
  47321. +}
  47322. - -static | -prefer-pic | -prefer-non-pic)
  47323. - later="$later $arg"
  47324. - continue
  47325. - ;;
  47326. +# func_ltwrapper_executable_p file
  47327. +# True iff FILE is a libtool wrapper executable
  47328. +# This function is only a basic sanity check; it will hardly flush out
  47329. +# determined imposters.
  47330. +func_ltwrapper_executable_p ()
  47331. +{
  47332. + func_ltwrapper_exec_suffix=
  47333. + case $1 in
  47334. + *.exe) ;;
  47335. + *) func_ltwrapper_exec_suffix=.exe ;;
  47336. + esac
  47337. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  47338. +}
  47339. +
  47340. +# func_ltwrapper_scriptname file
  47341. +# Assumes file is an ltwrapper_executable
  47342. +# uses $file to determine the appropriate filename for a
  47343. +# temporary ltwrapper_script.
  47344. +func_ltwrapper_scriptname ()
  47345. +{
  47346. + func_ltwrapper_scriptname_result=""
  47347. + if func_ltwrapper_executable_p "$1"; then
  47348. + func_dirname_and_basename "$1" "" "."
  47349. + func_stripname '' '.exe' "$func_basename_result"
  47350. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  47351. + fi
  47352. +}
  47353. +
  47354. +# func_ltwrapper_p file
  47355. +# True iff FILE is a libtool wrapper script or wrapper executable
  47356. +# This function is only a basic sanity check; it will hardly flush out
  47357. +# determined imposters.
  47358. +func_ltwrapper_p ()
  47359. +{
  47360. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  47361. +}
  47362. +
  47363. +
  47364. +# func_execute_cmds commands fail_cmd
  47365. +# Execute tilde-delimited COMMANDS.
  47366. +# If FAIL_CMD is given, eval that upon failure.
  47367. +# FAIL_CMD may read-access the current command in variable CMD!
  47368. +func_execute_cmds ()
  47369. +{
  47370. + $opt_debug
  47371. + save_ifs=$IFS; IFS='~'
  47372. + for cmd in $1; do
  47373. + IFS=$save_ifs
  47374. + eval cmd=\"$cmd\"
  47375. + func_show_eval "$cmd" "${2-:}"
  47376. + done
  47377. + IFS=$save_ifs
  47378. +}
  47379. +
  47380. +
  47381. +# func_source file
  47382. +# Source FILE, adding directory component if necessary.
  47383. +# Note that it is not necessary on cygwin/mingw to append a dot to
  47384. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  47385. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  47386. +# `FILE.' does not work on cygwin managed mounts.
  47387. +func_source ()
  47388. +{
  47389. + $opt_debug
  47390. + case $1 in
  47391. + */* | *\\*) . "$1" ;;
  47392. + *) . "./$1" ;;
  47393. + esac
  47394. +}
  47395. +
  47396. +
  47397. +# func_infer_tag arg
  47398. +# Infer tagged configuration to use if any are available and
  47399. +# if one wasn't chosen via the "--tag" command line option.
  47400. +# Only attempt this if the compiler in the base compile
  47401. +# command doesn't match the default compiler.
  47402. +# arg is usually of the form 'gcc ...'
  47403. +func_infer_tag ()
  47404. +{
  47405. + $opt_debug
  47406. + if test -n "$available_tags" && test -z "$tagname"; then
  47407. + CC_quoted=
  47408. + for arg in $CC; do
  47409. + func_quote_for_eval "$arg"
  47410. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  47411. + done
  47412. + case $@ in
  47413. + # Blanks in the command may have been stripped by the calling shell,
  47414. + # but not from the CC environment variable when configure was run.
  47415. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  47416. + # Blanks at the start of $base_compile will cause this to fail
  47417. + # if we don't check for them as well.
  47418. + *)
  47419. + for z in $available_tags; do
  47420. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  47421. + # Evaluate the configuration.
  47422. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  47423. + CC_quoted=
  47424. + for arg in $CC; do
  47425. + # Double-quote args containing other shell metacharacters.
  47426. + func_quote_for_eval "$arg"
  47427. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  47428. + done
  47429. + case "$@ " in
  47430. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  47431. + # The compiler in the base compile command matches
  47432. + # the one in the tagged configuration.
  47433. + # Assume this is the tagged configuration we want.
  47434. + tagname=$z
  47435. + break
  47436. + ;;
  47437. + esac
  47438. + fi
  47439. + done
  47440. + # If $tagname still isn't set, then no tagged configuration
  47441. + # was found and let the user know that the "--tag" command
  47442. + # line option must be used.
  47443. + if test -z "$tagname"; then
  47444. + func_echo "unable to infer tagged configuration"
  47445. + func_fatal_error "specify a tag with \`--tag'"
  47446. +# else
  47447. +# func_verbose "using $tagname tagged configuration"
  47448. + fi
  47449. + ;;
  47450. + esac
  47451. + fi
  47452. +}
  47453. +
  47454. +
  47455. +
  47456. +# func_write_libtool_object output_name pic_name nonpic_name
  47457. +# Create a libtool object file (analogous to a ".la" file),
  47458. +# but don't create it if we're doing a dry run.
  47459. +func_write_libtool_object ()
  47460. +{
  47461. + write_libobj=${1}
  47462. + if test "$build_libtool_libs" = yes; then
  47463. + write_lobj=\'${2}\'
  47464. + else
  47465. + write_lobj=none
  47466. + fi
  47467. +
  47468. + if test "$build_old_libs" = yes; then
  47469. + write_oldobj=\'${3}\'
  47470. + else
  47471. + write_oldobj=none
  47472. + fi
  47473. +
  47474. + $opt_dry_run || {
  47475. + cat >${write_libobj}T <<EOF
  47476. +# $write_libobj - a libtool object file
  47477. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  47478. +#
  47479. +# Please DO NOT delete this file!
  47480. +# It is necessary for linking the library.
  47481. +
  47482. +# Name of the PIC object.
  47483. +pic_object=$write_lobj
  47484. +
  47485. +# Name of the non-PIC object
  47486. +non_pic_object=$write_oldobj
  47487. +
  47488. +EOF
  47489. + $MV "${write_libobj}T" "${write_libobj}"
  47490. + }
  47491. +}
  47492. +
  47493. +# func_mode_compile arg...
  47494. +func_mode_compile ()
  47495. +{
  47496. + $opt_debug
  47497. + # Get the compilation command and the source file.
  47498. + base_compile=
  47499. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  47500. + suppress_opt=yes
  47501. + suppress_output=
  47502. + arg_mode=normal
  47503. + libobj=
  47504. + later=
  47505. + pie_flag=
  47506. +
  47507. + for arg
  47508. + do
  47509. + case $arg_mode in
  47510. + arg )
  47511. + # do not "continue". Instead, add this to base_compile
  47512. + lastarg="$arg"
  47513. + arg_mode=normal
  47514. + ;;
  47515. +
  47516. + target )
  47517. + libobj="$arg"
  47518. + arg_mode=normal
  47519. + continue
  47520. + ;;
  47521. +
  47522. + normal )
  47523. + # Accept any command-line options.
  47524. + case $arg in
  47525. + -o)
  47526. + test -n "$libobj" && \
  47527. + func_fatal_error "you cannot specify \`-o' more than once"
  47528. + arg_mode=target
  47529. + continue
  47530. + ;;
  47531. +
  47532. + -pie | -fpie | -fPIE)
  47533. + pie_flag="$pie_flag $arg"
  47534. + continue
  47535. + ;;
  47536. +
  47537. + -shared | -static | -prefer-pic | -prefer-non-pic)
  47538. + later="$later $arg"
  47539. + continue
  47540. + ;;
  47541. -no-suppress)
  47542. suppress_opt=no
  47543. @@ -708,31 +1157,25 @@
  47544. ;; # replaced later. I would guess that would be a bug.
  47545. -Wc,*)
  47546. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  47547. + func_stripname '-Wc,' '' "$arg"
  47548. + args=$func_stripname_result
  47549. lastarg=
  47550. save_ifs="$IFS"; IFS=','
  47551. - for arg in $args; do
  47552. + for arg in $args; do
  47553. IFS="$save_ifs"
  47554. -
  47555. - # Double-quote args containing other shell metacharacters.
  47556. - # Many Bourne shells cannot handle close brackets correctly
  47557. - # in scan sets, so we specify it separately.
  47558. - case $arg in
  47559. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47560. - arg="\"$arg\""
  47561. - ;;
  47562. - esac
  47563. - lastarg="$lastarg $arg"
  47564. + func_quote_for_eval "$arg"
  47565. + lastarg="$lastarg $func_quote_for_eval_result"
  47566. done
  47567. IFS="$save_ifs"
  47568. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  47569. + func_stripname ' ' '' "$lastarg"
  47570. + lastarg=$func_stripname_result
  47571. # Add the arguments to base_compile.
  47572. base_compile="$base_compile $lastarg"
  47573. continue
  47574. ;;
  47575. - * )
  47576. + *)
  47577. # Accept the current argument as the source file.
  47578. # The previous "srcfile" becomes the current argument.
  47579. #
  47580. @@ -744,66 +1187,42 @@
  47581. esac # case $arg_mode
  47582. # Aesthetically quote the previous argument.
  47583. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  47584. -
  47585. - case $lastarg in
  47586. - # Double-quote args containing other shell metacharacters.
  47587. - # Many Bourne shells cannot handle close brackets correctly
  47588. - # in scan sets, and some SunOS ksh mistreat backslash-escaping
  47589. - # in scan sets (worked around with variable expansion),
  47590. - # and furthermore cannot handle '|' '&' '(' ')' in scan sets
  47591. - # at all, so we specify them separately.
  47592. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47593. - lastarg="\"$lastarg\""
  47594. - ;;
  47595. - esac
  47596. -
  47597. - base_compile="$base_compile $lastarg"
  47598. + func_quote_for_eval "$lastarg"
  47599. + base_compile="$base_compile $func_quote_for_eval_result"
  47600. done # for arg
  47601. case $arg_mode in
  47602. arg)
  47603. - $echo "$modename: you must specify an argument for -Xcompile"
  47604. - exit $EXIT_FAILURE
  47605. + func_fatal_error "you must specify an argument for -Xcompile"
  47606. ;;
  47607. target)
  47608. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  47609. - exit $EXIT_FAILURE
  47610. + func_fatal_error "you must specify a target with \`-o'"
  47611. ;;
  47612. *)
  47613. # Get the name of the library object.
  47614. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  47615. + test -z "$libobj" && {
  47616. + func_basename "$srcfile"
  47617. + libobj="$func_basename_result"
  47618. + }
  47619. ;;
  47620. esac
  47621. # Recognize several different file suffixes.
  47622. # If the user specifies -o file.o, it is replaced with file.lo
  47623. - xform='[cCFSifmso]'
  47624. case $libobj in
  47625. - *.ada) xform=ada ;;
  47626. - *.adb) xform=adb ;;
  47627. - *.ads) xform=ads ;;
  47628. - *.asm) xform=asm ;;
  47629. - *.c++) xform=c++ ;;
  47630. - *.cc) xform=cc ;;
  47631. - *.ii) xform=ii ;;
  47632. - *.class) xform=class ;;
  47633. - *.cpp) xform=cpp ;;
  47634. - *.cxx) xform=cxx ;;
  47635. - *.[fF][09]?) xform=[fF][09]. ;;
  47636. - *.for) xform=for ;;
  47637. - *.java) xform=java ;;
  47638. - *.obj) xform=obj ;;
  47639. - *.sx) xform=sx ;;
  47640. + *.[cCFSifmso] | \
  47641. + *.ada | *.adb | *.ads | *.asm | \
  47642. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  47643. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  47644. + func_xform "$libobj"
  47645. + libobj=$func_xform_result
  47646. + ;;
  47647. esac
  47648. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  47649. -
  47650. case $libobj in
  47651. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  47652. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  47653. *)
  47654. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  47655. - exit $EXIT_FAILURE
  47656. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  47657. ;;
  47658. esac
  47659. @@ -811,7 +1230,15 @@
  47660. for arg in $later; do
  47661. case $arg in
  47662. + -shared)
  47663. + test "$build_libtool_libs" != yes && \
  47664. + func_fatal_configuration "can not build a shared library"
  47665. + build_old_libs=no
  47666. + continue
  47667. + ;;
  47668. +
  47669. -static)
  47670. + build_libtool_libs=no
  47671. build_old_libs=yes
  47672. continue
  47673. ;;
  47674. @@ -828,28 +1255,17 @@
  47675. esac
  47676. done
  47677. - qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
  47678. - case $qlibobj in
  47679. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47680. - qlibobj="\"$qlibobj\"" ;;
  47681. - esac
  47682. - test "X$libobj" != "X$qlibobj" \
  47683. - && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
  47684. - && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
  47685. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  47686. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  47687. - if test "X$xdir" = "X$obj"; then
  47688. - xdir=
  47689. - else
  47690. - xdir=$xdir/
  47691. - fi
  47692. + func_quote_for_eval "$libobj"
  47693. + test "X$libobj" != "X$func_quote_for_eval_result" \
  47694. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  47695. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  47696. + func_dirname_and_basename "$obj" "/" ""
  47697. + objname="$func_basename_result"
  47698. + xdir="$func_dirname_result"
  47699. lobj=${xdir}$objdir/$objname
  47700. - if test -z "$base_compile"; then
  47701. - $echo "$modename: you must specify a compilation command" 1>&2
  47702. - $echo "$help" 1>&2
  47703. - exit $EXIT_FAILURE
  47704. - fi
  47705. + test -z "$base_compile" && \
  47706. + func_fatal_help "you must specify a compilation command"
  47707. # Delete any leftover library objects.
  47708. if test "$build_old_libs" = yes; then
  47709. @@ -858,12 +1274,9 @@
  47710. removelist="$lobj $libobj ${libobj}T"
  47711. fi
  47712. - $run $rm $removelist
  47713. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  47714. -
  47715. # On Cygwin there's no "real" PIC flag so we must build both object types
  47716. case $host_os in
  47717. - cygwin* | mingw* | pw32* | os2*)
  47718. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  47719. pic_mode=default
  47720. ;;
  47721. esac
  47722. @@ -875,10 +1288,8 @@
  47723. # Calculate the filename of the output object if compiler does
  47724. # not support -o with -c
  47725. if test "$compiler_c_o" = no; then
  47726. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  47727. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  47728. lockfile="$output_obj.lock"
  47729. - removelist="$removelist $output_obj $lockfile"
  47730. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  47731. else
  47732. output_obj=
  47733. need_locks=no
  47734. @@ -888,13 +1299,13 @@
  47735. # Lock this critical section if it is needed
  47736. # We use this script file to make the link, it avoids creating a new file
  47737. if test "$need_locks" = yes; then
  47738. - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  47739. - $show "Waiting for $lockfile to be removed"
  47740. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  47741. + func_echo "Waiting for $lockfile to be removed"
  47742. sleep 2
  47743. done
  47744. elif test "$need_locks" = warn; then
  47745. if test -f "$lockfile"; then
  47746. - $echo "\
  47747. + $ECHO "\
  47748. *** ERROR, $lockfile exists and contains:
  47749. `cat $lockfile 2>/dev/null`
  47750. @@ -905,34 +1316,22 @@
  47751. avoid parallel builds (make -j) in this platform, or get a better
  47752. compiler."
  47753. - $run $rm $removelist
  47754. + $opt_dry_run || $RM $removelist
  47755. exit $EXIT_FAILURE
  47756. fi
  47757. - $echo "$srcfile" > "$lockfile"
  47758. + removelist="$removelist $output_obj"
  47759. + $ECHO "$srcfile" > "$lockfile"
  47760. fi
  47761. + $opt_dry_run || $RM $removelist
  47762. + removelist="$removelist $lockfile"
  47763. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  47764. +
  47765. if test -n "$fix_srcfile_path"; then
  47766. eval srcfile=\"$fix_srcfile_path\"
  47767. fi
  47768. - qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
  47769. - case $qsrcfile in
  47770. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47771. - qsrcfile="\"$qsrcfile\"" ;;
  47772. - esac
  47773. -
  47774. - $run $rm "$libobj" "${libobj}T"
  47775. -
  47776. - # Create a libtool object file (analogous to a ".la" file),
  47777. - # but don't create it if we're doing a dry run.
  47778. - test -z "$run" && cat > ${libobj}T <<EOF
  47779. -# $libobj - a libtool object file
  47780. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  47781. -#
  47782. -# Please DO NOT delete this file!
  47783. -# It is necessary for linking the library.
  47784. -
  47785. -# Name of the PIC object.
  47786. -EOF
  47787. + func_quote_for_eval "$srcfile"
  47788. + qsrcfile=$func_quote_for_eval_result
  47789. # Only build a PIC object if we are building libtool libraries.
  47790. if test "$build_libtool_libs" = yes; then
  47791. @@ -946,32 +1345,19 @@
  47792. command="$base_compile $qsrcfile"
  47793. fi
  47794. - if test ! -d "${xdir}$objdir"; then
  47795. - $show "$mkdir ${xdir}$objdir"
  47796. - $run $mkdir ${xdir}$objdir
  47797. - exit_status=$?
  47798. - if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
  47799. - exit $exit_status
  47800. - fi
  47801. - fi
  47802. + func_mkdir_p "$xdir$objdir"
  47803. if test -z "$output_obj"; then
  47804. # Place PIC objects in $objdir
  47805. command="$command -o $lobj"
  47806. fi
  47807. - $run $rm "$lobj" "$output_obj"
  47808. -
  47809. - $show "$command"
  47810. - if $run eval $lt_env "$command"; then :
  47811. - else
  47812. - test -n "$output_obj" && $run $rm $removelist
  47813. - exit $EXIT_FAILURE
  47814. - fi
  47815. + func_show_eval_locale "$command" \
  47816. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  47817. if test "$need_locks" = warn &&
  47818. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  47819. - $echo "\
  47820. + $ECHO "\
  47821. *** ERROR, $lockfile contains:
  47822. `cat $lockfile 2>/dev/null`
  47823. @@ -985,45 +1371,27 @@
  47824. avoid parallel builds (make -j) in this platform, or get a better
  47825. compiler."
  47826. - $run $rm $removelist
  47827. + $opt_dry_run || $RM $removelist
  47828. exit $EXIT_FAILURE
  47829. fi
  47830. # Just move the object if needed, then go on to compile the next one
  47831. if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  47832. - $show "$mv $output_obj $lobj"
  47833. - if $run $mv $output_obj $lobj; then :
  47834. - else
  47835. - error=$?
  47836. - $run $rm $removelist
  47837. - exit $error
  47838. - fi
  47839. + func_show_eval '$MV "$output_obj" "$lobj"' \
  47840. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  47841. fi
  47842. - # Append the name of the PIC object to the libtool object file.
  47843. - test -z "$run" && cat >> ${libobj}T <<EOF
  47844. -pic_object='$objdir/$objname'
  47845. -
  47846. -EOF
  47847. -
  47848. # Allow error messages only from the first compilation.
  47849. if test "$suppress_opt" = yes; then
  47850. - suppress_output=' >/dev/null 2>&1'
  47851. + suppress_output=' >/dev/null 2>&1'
  47852. fi
  47853. - else
  47854. - # No PIC object so indicate it doesn't exist in the libtool
  47855. - # object file.
  47856. - test -z "$run" && cat >> ${libobj}T <<EOF
  47857. -pic_object=none
  47858. -
  47859. -EOF
  47860. fi
  47861. # Only build a position-dependent object if we build old libraries.
  47862. if test "$build_old_libs" = yes; then
  47863. if test "$pic_mode" != yes; then
  47864. # Don't build PIC code
  47865. - command="$base_compile $qsrcfile"
  47866. + command="$base_compile $qsrcfile$pie_flag"
  47867. else
  47868. command="$base_compile $qsrcfile $pic_flag"
  47869. fi
  47870. @@ -1033,17 +1401,12 @@
  47871. # Suppress compiler output if we already did a PIC compilation.
  47872. command="$command$suppress_output"
  47873. - $run $rm "$obj" "$output_obj"
  47874. - $show "$command"
  47875. - if $run eval $lt_env "$command"; then :
  47876. - else
  47877. - $run $rm $removelist
  47878. - exit $EXIT_FAILURE
  47879. - fi
  47880. + func_show_eval_locale "$command" \
  47881. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  47882. if test "$need_locks" = warn &&
  47883. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  47884. - $echo "\
  47885. + $ECHO "\
  47886. *** ERROR, $lockfile contains:
  47887. `cat $lockfile 2>/dev/null`
  47888. @@ -1057,5477 +1420,6784 @@
  47889. avoid parallel builds (make -j) in this platform, or get a better
  47890. compiler."
  47891. - $run $rm $removelist
  47892. + $opt_dry_run || $RM $removelist
  47893. exit $EXIT_FAILURE
  47894. fi
  47895. # Just move the object if needed
  47896. if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  47897. - $show "$mv $output_obj $obj"
  47898. - if $run $mv $output_obj $obj; then :
  47899. - else
  47900. - error=$?
  47901. - $run $rm $removelist
  47902. - exit $error
  47903. - fi
  47904. + func_show_eval '$MV "$output_obj" "$obj"' \
  47905. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  47906. fi
  47907. -
  47908. - # Append the name of the non-PIC object the libtool object file.
  47909. - # Only append if the libtool object file exists.
  47910. - test -z "$run" && cat >> ${libobj}T <<EOF
  47911. -# Name of the non-PIC object.
  47912. -non_pic_object='$objname'
  47913. -
  47914. -EOF
  47915. - else
  47916. - # Append the name of the non-PIC object the libtool object file.
  47917. - # Only append if the libtool object file exists.
  47918. - test -z "$run" && cat >> ${libobj}T <<EOF
  47919. -# Name of the non-PIC object.
  47920. -non_pic_object=none
  47921. -
  47922. -EOF
  47923. fi
  47924. - $run $mv "${libobj}T" "${libobj}"
  47925. + $opt_dry_run || {
  47926. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  47927. - # Unlock the critical section if it was locked
  47928. - if test "$need_locks" != no; then
  47929. - $run $rm "$lockfile"
  47930. - fi
  47931. + # Unlock the critical section if it was locked
  47932. + if test "$need_locks" != no; then
  47933. + removelist=$lockfile
  47934. + $RM "$lockfile"
  47935. + fi
  47936. + }
  47937. exit $EXIT_SUCCESS
  47938. - ;;
  47939. +}
  47940. - # libtool link mode
  47941. - link | relink)
  47942. - modename="$modename: link"
  47943. - case $host in
  47944. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  47945. - # It is impossible to link a dll without this setting, and
  47946. - # we shouldn't force the makefile maintainer to figure out
  47947. - # which system we are compiling for in order to pass an extra
  47948. - # flag for every libtool invocation.
  47949. - # allow_undefined=no
  47950. +$opt_help || {
  47951. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  47952. +}
  47953. - # FIXME: Unfortunately, there are problems with the above when trying
  47954. - # to make a dll which has undefined symbols, in which case not
  47955. - # even a static library is built. For now, we need to specify
  47956. - # -no-undefined on the libtool link line when we can be certain
  47957. - # that all symbols are satisfied, otherwise we get a static library.
  47958. - allow_undefined=yes
  47959. - ;;
  47960. - *)
  47961. - allow_undefined=yes
  47962. - ;;
  47963. - esac
  47964. - libtool_args="$nonopt"
  47965. - base_compile="$nonopt $@"
  47966. - compile_command="$nonopt"
  47967. - finalize_command="$nonopt"
  47968. +func_mode_help ()
  47969. +{
  47970. + # We need to display help for each of the modes.
  47971. + case $mode in
  47972. + "")
  47973. + # Generic help is extracted from the usage comments
  47974. + # at the start of this file.
  47975. + func_help
  47976. + ;;
  47977. - compile_rpath=
  47978. - finalize_rpath=
  47979. - compile_shlibpath=
  47980. - finalize_shlibpath=
  47981. - convenience=
  47982. - old_convenience=
  47983. - deplibs=
  47984. - old_deplibs=
  47985. - compiler_flags=
  47986. - linker_flags=
  47987. - dllsearchpath=
  47988. - lib_search_path=`pwd`
  47989. - inst_prefix_dir=
  47990. + clean)
  47991. + $ECHO \
  47992. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  47993. - avoid_version=no
  47994. - dlfiles=
  47995. - dlprefiles=
  47996. - dlself=no
  47997. - export_dynamic=no
  47998. - export_symbols=
  47999. - export_symbols_regex=
  48000. - generated=
  48001. - libobjs=
  48002. - ltlibs=
  48003. - module=no
  48004. - no_install=no
  48005. - objs=
  48006. - non_pic_objects=
  48007. - notinst_path= # paths that contain not-installed libtool libraries
  48008. - precious_files_regex=
  48009. - prefer_static_libs=no
  48010. - preload=no
  48011. - prev=
  48012. - prevarg=
  48013. - release=
  48014. - rpath=
  48015. - xrpath=
  48016. - perm_rpath=
  48017. - temp_rpath=
  48018. - thread_safe=no
  48019. - vinfo=
  48020. - vinfo_number=no
  48021. - single_module="${wl}-single_module"
  48022. +Remove files from the build directory.
  48023. - func_infer_tag $base_compile
  48024. +RM is the name of the program to use to delete files associated with each FILE
  48025. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  48026. +to RM.
  48027. - # We need to know -static, to get the right output filenames.
  48028. - for arg
  48029. - do
  48030. - case $arg in
  48031. - -all-static | -static | -static-libtool-libs)
  48032. - case $arg in
  48033. - -all-static)
  48034. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  48035. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  48036. - fi
  48037. - if test -n "$link_static_flag"; then
  48038. - dlopen_self=$dlopen_self_static
  48039. - fi
  48040. - prefer_static_libs=yes
  48041. - ;;
  48042. - -static)
  48043. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  48044. - dlopen_self=$dlopen_self_static
  48045. - fi
  48046. - prefer_static_libs=built
  48047. - ;;
  48048. - -static-libtool-libs)
  48049. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  48050. - dlopen_self=$dlopen_self_static
  48051. - fi
  48052. - prefer_static_libs=yes
  48053. - ;;
  48054. - esac
  48055. - build_libtool_libs=no
  48056. - build_old_libs=yes
  48057. - break
  48058. - ;;
  48059. - esac
  48060. - done
  48061. +If FILE is a libtool library, object or program, all the files associated
  48062. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  48063. + ;;
  48064. - # See if our shared archives depend on static archives.
  48065. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  48066. + compile)
  48067. + $ECHO \
  48068. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  48069. - # Go through the arguments, transforming them on the way.
  48070. - while test "$#" -gt 0; do
  48071. - arg="$1"
  48072. - shift
  48073. - case $arg in
  48074. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48075. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  48076. - ;;
  48077. - *) qarg=$arg ;;
  48078. - esac
  48079. - libtool_args="$libtool_args $qarg"
  48080. +Compile a source file into a libtool library object.
  48081. - # If the previous option needs an argument, assign it.
  48082. - if test -n "$prev"; then
  48083. - case $prev in
  48084. - output)
  48085. - compile_command="$compile_command @OUTPUT@"
  48086. - finalize_command="$finalize_command @OUTPUT@"
  48087. - ;;
  48088. - esac
  48089. +This mode accepts the following additional options:
  48090. - case $prev in
  48091. - dlfiles|dlprefiles)
  48092. - if test "$preload" = no; then
  48093. - # Add the symbol object into the linking commands.
  48094. - compile_command="$compile_command @SYMFILE@"
  48095. - finalize_command="$finalize_command @SYMFILE@"
  48096. - preload=yes
  48097. - fi
  48098. - case $arg in
  48099. - *.la | *.lo) ;; # We handle these cases below.
  48100. - force)
  48101. - if test "$dlself" = no; then
  48102. - dlself=needless
  48103. - export_dynamic=yes
  48104. - fi
  48105. - prev=
  48106. - continue
  48107. - ;;
  48108. - self)
  48109. - if test "$prev" = dlprefiles; then
  48110. - dlself=yes
  48111. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  48112. - dlself=yes
  48113. - else
  48114. - dlself=needless
  48115. - export_dynamic=yes
  48116. - fi
  48117. - prev=
  48118. - continue
  48119. - ;;
  48120. - *)
  48121. - if test "$prev" = dlfiles; then
  48122. - dlfiles="$dlfiles $arg"
  48123. - else
  48124. - dlprefiles="$dlprefiles $arg"
  48125. - fi
  48126. - prev=
  48127. - continue
  48128. - ;;
  48129. - esac
  48130. - ;;
  48131. - expsyms)
  48132. - export_symbols="$arg"
  48133. - if test ! -f "$arg"; then
  48134. - $echo "$modename: symbol file \`$arg' does not exist"
  48135. - exit $EXIT_FAILURE
  48136. - fi
  48137. - prev=
  48138. - continue
  48139. - ;;
  48140. - expsyms_regex)
  48141. - export_symbols_regex="$arg"
  48142. - prev=
  48143. - continue
  48144. - ;;
  48145. - inst_prefix)
  48146. - inst_prefix_dir="$arg"
  48147. - prev=
  48148. - continue
  48149. - ;;
  48150. - precious_regex)
  48151. - precious_files_regex="$arg"
  48152. - prev=
  48153. - continue
  48154. - ;;
  48155. - release)
  48156. - release="-$arg"
  48157. - prev=
  48158. - continue
  48159. - ;;
  48160. - objectlist)
  48161. - if test -f "$arg"; then
  48162. - save_arg=$arg
  48163. - moreargs=
  48164. - for fil in `cat $save_arg`
  48165. - do
  48166. -# moreargs="$moreargs $fil"
  48167. - arg=$fil
  48168. - # A libtool-controlled object.
  48169. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  48170. + -no-suppress do not suppress compiler output for multiple passes
  48171. + -prefer-pic try to building PIC objects only
  48172. + -prefer-non-pic try to building non-PIC objects only
  48173. + -shared do not build a \`.o' file suitable for static linking
  48174. + -static only build a \`.o' file suitable for static linking
  48175. - # Check to see that this really is a libtool object.
  48176. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  48177. - pic_object=
  48178. - non_pic_object=
  48179. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  48180. +from the given SOURCEFILE.
  48181. - # Read the .lo file
  48182. - # If there is no directory component, then add one.
  48183. - case $arg in
  48184. - */* | *\\*) . $arg ;;
  48185. - *) . ./$arg ;;
  48186. - esac
  48187. +The output file name is determined by removing the directory component from
  48188. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  48189. +library object suffix, \`.lo'."
  48190. + ;;
  48191. - if test -z "$pic_object" || \
  48192. - test -z "$non_pic_object" ||
  48193. - test "$pic_object" = none && \
  48194. - test "$non_pic_object" = none; then
  48195. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  48196. - exit $EXIT_FAILURE
  48197. - fi
  48198. + execute)
  48199. + $ECHO \
  48200. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  48201. - # Extract subdirectory from the argument.
  48202. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  48203. - if test "X$xdir" = "X$arg"; then
  48204. - xdir=
  48205. - else
  48206. - xdir="$xdir/"
  48207. - fi
  48208. +Automatically set library path, then run a program.
  48209. - if test "$pic_object" != none; then
  48210. - # Prepend the subdirectory the object is found in.
  48211. - pic_object="$xdir$pic_object"
  48212. +This mode accepts the following additional options:
  48213. - if test "$prev" = dlfiles; then
  48214. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  48215. - dlfiles="$dlfiles $pic_object"
  48216. - prev=
  48217. - continue
  48218. - else
  48219. - # If libtool objects are unsupported, then we need to preload.
  48220. - prev=dlprefiles
  48221. - fi
  48222. - fi
  48223. + -dlopen FILE add the directory containing FILE to the library path
  48224. - # CHECK ME: I think I busted this. -Ossama
  48225. - if test "$prev" = dlprefiles; then
  48226. - # Preload the old-style object.
  48227. - dlprefiles="$dlprefiles $pic_object"
  48228. - prev=
  48229. - fi
  48230. +This mode sets the library path environment variable according to \`-dlopen'
  48231. +flags.
  48232. - # A PIC object.
  48233. - libobjs="$libobjs $pic_object"
  48234. - arg="$pic_object"
  48235. - fi
  48236. +If any of the ARGS are libtool executable wrappers, then they are translated
  48237. +into their corresponding uninstalled binary, and any of their required library
  48238. +directories are added to the library path.
  48239. - # Non-PIC object.
  48240. - if test "$non_pic_object" != none; then
  48241. - # Prepend the subdirectory the object is found in.
  48242. - non_pic_object="$xdir$non_pic_object"
  48243. +Then, COMMAND is executed, with ARGS as arguments."
  48244. + ;;
  48245. - # A standard non-PIC object
  48246. - non_pic_objects="$non_pic_objects $non_pic_object"
  48247. - if test -z "$pic_object" || test "$pic_object" = none ; then
  48248. - arg="$non_pic_object"
  48249. - fi
  48250. - else
  48251. - # If the PIC object exists, use it instead.
  48252. - # $xdir was prepended to $pic_object above.
  48253. - non_pic_object="$pic_object"
  48254. - non_pic_objects="$non_pic_objects $non_pic_object"
  48255. - fi
  48256. - else
  48257. - # Only an error if not doing a dry-run.
  48258. - if test -z "$run"; then
  48259. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  48260. - exit $EXIT_FAILURE
  48261. - else
  48262. - # Dry-run case.
  48263. + finish)
  48264. + $ECHO \
  48265. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  48266. - # Extract subdirectory from the argument.
  48267. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  48268. - if test "X$xdir" = "X$arg"; then
  48269. - xdir=
  48270. - else
  48271. - xdir="$xdir/"
  48272. - fi
  48273. +Complete the installation of libtool libraries.
  48274. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  48275. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  48276. - libobjs="$libobjs $pic_object"
  48277. - non_pic_objects="$non_pic_objects $non_pic_object"
  48278. - fi
  48279. - fi
  48280. - done
  48281. - else
  48282. - $echo "$modename: link input file \`$save_arg' does not exist"
  48283. - exit $EXIT_FAILURE
  48284. - fi
  48285. - arg=$save_arg
  48286. - prev=
  48287. - continue
  48288. - ;;
  48289. - rpath | xrpath)
  48290. - # We need an absolute path.
  48291. - case $arg in
  48292. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  48293. - *)
  48294. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  48295. - exit $EXIT_FAILURE
  48296. - ;;
  48297. - esac
  48298. - if test "$prev" = rpath; then
  48299. - case "$rpath " in
  48300. - *" $arg "*) ;;
  48301. - *) rpath="$rpath $arg" ;;
  48302. - esac
  48303. - else
  48304. - case "$xrpath " in
  48305. - *" $arg "*) ;;
  48306. - *) xrpath="$xrpath $arg" ;;
  48307. - esac
  48308. - fi
  48309. - prev=
  48310. - continue
  48311. - ;;
  48312. - xcompiler)
  48313. - compiler_flags="$compiler_flags $qarg"
  48314. - prev=
  48315. - compile_command="$compile_command $qarg"
  48316. - finalize_command="$finalize_command $qarg"
  48317. - continue
  48318. - ;;
  48319. - xlinker)
  48320. - linker_flags="$linker_flags $qarg"
  48321. - compiler_flags="$compiler_flags $wl$qarg"
  48322. - prev=
  48323. - compile_command="$compile_command $wl$qarg"
  48324. - finalize_command="$finalize_command $wl$qarg"
  48325. - continue
  48326. - ;;
  48327. - xcclinker)
  48328. - linker_flags="$linker_flags $qarg"
  48329. - compiler_flags="$compiler_flags $qarg"
  48330. - prev=
  48331. - compile_command="$compile_command $qarg"
  48332. - finalize_command="$finalize_command $qarg"
  48333. - continue
  48334. - ;;
  48335. - shrext)
  48336. - shrext_cmds="$arg"
  48337. - prev=
  48338. - continue
  48339. - ;;
  48340. - darwin_framework|darwin_framework_skip)
  48341. - test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
  48342. - compile_command="$compile_command $arg"
  48343. - finalize_command="$finalize_command $arg"
  48344. - prev=
  48345. - continue
  48346. - ;;
  48347. - *)
  48348. - eval "$prev=\"\$arg\""
  48349. - prev=
  48350. - continue
  48351. - ;;
  48352. - esac
  48353. - fi # test -n "$prev"
  48354. +Each LIBDIR is a directory that contains libtool libraries.
  48355. - prevarg="$arg"
  48356. +The commands that this mode executes may require superuser privileges. Use
  48357. +the \`--dry-run' option if you just want to see what would be executed."
  48358. + ;;
  48359. - case $arg in
  48360. - -all-static)
  48361. - if test -n "$link_static_flag"; then
  48362. - compile_command="$compile_command $link_static_flag"
  48363. - finalize_command="$finalize_command $link_static_flag"
  48364. - fi
  48365. - continue
  48366. - ;;
  48367. + install)
  48368. + $ECHO \
  48369. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  48370. - -allow-undefined)
  48371. - # FIXME: remove this flag sometime in the future.
  48372. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  48373. - continue
  48374. - ;;
  48375. +Install executables or libraries.
  48376. - -avoid-version)
  48377. - avoid_version=yes
  48378. - continue
  48379. - ;;
  48380. +INSTALL-COMMAND is the installation command. The first component should be
  48381. +either the \`install' or \`cp' program.
  48382. - -dlopen)
  48383. - prev=dlfiles
  48384. - continue
  48385. - ;;
  48386. +The following components of INSTALL-COMMAND are treated specially:
  48387. - -dlpreopen)
  48388. - prev=dlprefiles
  48389. - continue
  48390. - ;;
  48391. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  48392. - -export-dynamic)
  48393. - export_dynamic=yes
  48394. - continue
  48395. - ;;
  48396. +The rest of the components are interpreted as arguments to that command (only
  48397. +BSD-compatible install options are recognized)."
  48398. + ;;
  48399. - -export-symbols | -export-symbols-regex)
  48400. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  48401. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  48402. - exit $EXIT_FAILURE
  48403. - fi
  48404. - if test "X$arg" = "X-export-symbols"; then
  48405. - prev=expsyms
  48406. - else
  48407. - prev=expsyms_regex
  48408. - fi
  48409. - continue
  48410. - ;;
  48411. + link)
  48412. + $ECHO \
  48413. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  48414. - -framework|-arch|-isysroot)
  48415. - case " $CC " in
  48416. - *" ${arg} ${1} "* | *" ${arg} ${1} "*)
  48417. - prev=darwin_framework_skip ;;
  48418. - *) compiler_flags="$compiler_flags $arg"
  48419. - prev=darwin_framework ;;
  48420. - esac
  48421. - compile_command="$compile_command $arg"
  48422. - finalize_command="$finalize_command $arg"
  48423. - continue
  48424. - ;;
  48425. +Link object files or libraries together to form another library, or to
  48426. +create an executable program.
  48427. - -inst-prefix-dir)
  48428. - prev=inst_prefix
  48429. - continue
  48430. - ;;
  48431. +LINK-COMMAND is a command using the C compiler that you would use to create
  48432. +a program from several object files.
  48433. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  48434. - # so, if we see these flags be careful not to treat them like -L
  48435. - -L[A-Z][A-Z]*:*)
  48436. - case $with_gcc/$host in
  48437. - no/*-*-irix* | /*-*-irix*)
  48438. - compile_command="$compile_command $arg"
  48439. - finalize_command="$finalize_command $arg"
  48440. - ;;
  48441. - esac
  48442. - continue
  48443. - ;;
  48444. +The following components of LINK-COMMAND are treated specially:
  48445. - -L*)
  48446. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  48447. - # We need an absolute path.
  48448. - case $dir in
  48449. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  48450. - *)
  48451. - absdir=`cd "$dir" && pwd`
  48452. - if test -z "$absdir"; then
  48453. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  48454. - absdir="$dir"
  48455. - notinst_path="$notinst_path $dir"
  48456. - fi
  48457. - dir="$absdir"
  48458. - ;;
  48459. - esac
  48460. - case "$deplibs " in
  48461. - *" -L$dir "*) ;;
  48462. - *)
  48463. - deplibs="$deplibs -L$dir"
  48464. - lib_search_path="$lib_search_path $dir"
  48465. - ;;
  48466. - esac
  48467. - case $host in
  48468. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  48469. - testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  48470. - case :$dllsearchpath: in
  48471. - *":$dir:"*) ;;
  48472. - *) dllsearchpath="$dllsearchpath:$dir";;
  48473. - esac
  48474. - case :$dllsearchpath: in
  48475. - *":$testbindir:"*) ;;
  48476. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  48477. - esac
  48478. - ;;
  48479. - esac
  48480. - continue
  48481. - ;;
  48482. + -all-static do not do any dynamic linking at all
  48483. + -avoid-version do not add a version suffix if possible
  48484. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  48485. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  48486. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  48487. + -export-symbols SYMFILE
  48488. + try to export only the symbols listed in SYMFILE
  48489. + -export-symbols-regex REGEX
  48490. + try to export only the symbols matching REGEX
  48491. + -LLIBDIR search LIBDIR for required installed libraries
  48492. + -lNAME OUTPUT-FILE requires the installed library libNAME
  48493. + -module build a library that can dlopened
  48494. + -no-fast-install disable the fast-install mode
  48495. + -no-install link a not-installable executable
  48496. + -no-undefined declare that a library does not refer to external symbols
  48497. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  48498. + -objectlist FILE Use a list of object files found in FILE to specify objects
  48499. + -precious-files-regex REGEX
  48500. + don't remove output files matching REGEX
  48501. + -release RELEASE specify package release information
  48502. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  48503. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  48504. + -shared only do dynamic linking of libtool libraries
  48505. + -shrext SUFFIX override the standard shared library file extension
  48506. + -static do not do any dynamic linking of uninstalled libtool libraries
  48507. + -static-libtool-libs
  48508. + do not do any dynamic linking of libtool libraries
  48509. + -version-info CURRENT[:REVISION[:AGE]]
  48510. + specify library version info [each variable defaults to 0]
  48511. + -weak LIBNAME declare that the target provides the LIBNAME interface
  48512. - -l*)
  48513. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  48514. - case $host in
  48515. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
  48516. - # These systems don't actually have a C or math library (as such)
  48517. - continue
  48518. - ;;
  48519. - *-*-os2*)
  48520. - # These systems don't actually have a C library (as such)
  48521. - test "X$arg" = "X-lc" && continue
  48522. - ;;
  48523. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  48524. - # Do not include libc due to us having libc/libc_r.
  48525. - test "X$arg" = "X-lc" && continue
  48526. - ;;
  48527. - *-*-rhapsody* | *-*-darwin1.[012])
  48528. - # Rhapsody C and math libraries are in the System framework
  48529. - deplibs="$deplibs -framework System"
  48530. - continue
  48531. - ;;
  48532. - *-*-sco3.2v5* | *-*-sco5v6*)
  48533. - # Causes problems with __ctype
  48534. - test "X$arg" = "X-lc" && continue
  48535. - ;;
  48536. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  48537. - # Compiler inserts libc in the correct place for threads to work
  48538. - test "X$arg" = "X-lc" && continue
  48539. - ;;
  48540. - esac
  48541. - elif test "X$arg" = "X-lc_r"; then
  48542. - case $host in
  48543. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  48544. - # Do not include libc_r directly, use -pthread flag.
  48545. - continue
  48546. - ;;
  48547. - esac
  48548. - fi
  48549. - deplibs="$deplibs $arg"
  48550. - continue
  48551. - ;;
  48552. +All other options (arguments beginning with \`-') are ignored.
  48553. - # Tru64 UNIX uses -model [arg] to determine the layout of C++
  48554. - # classes, name mangling, and exception handling.
  48555. - -model)
  48556. - compile_command="$compile_command $arg"
  48557. - compiler_flags="$compiler_flags $arg"
  48558. - finalize_command="$finalize_command $arg"
  48559. - prev=xcompiler
  48560. - continue
  48561. - ;;
  48562. +Every other argument is treated as a filename. Files ending in \`.la' are
  48563. +treated as uninstalled libtool libraries, other files are standard or library
  48564. +object files.
  48565. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  48566. - compiler_flags="$compiler_flags $arg"
  48567. - compile_command="$compile_command $arg"
  48568. - finalize_command="$finalize_command $arg"
  48569. - continue
  48570. - ;;
  48571. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  48572. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  48573. +required, except when creating a convenience library.
  48574. - -multi_module)
  48575. - single_module="${wl}-multi_module"
  48576. - continue
  48577. - ;;
  48578. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  48579. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  48580. - -module)
  48581. - module=yes
  48582. - continue
  48583. - ;;
  48584. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  48585. +is created, otherwise an executable program is created."
  48586. + ;;
  48587. - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  48588. - # -r[0-9][0-9]* specifies the processor on the SGI compiler
  48589. - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  48590. - # +DA*, +DD* enable 64-bit mode on the HP compiler
  48591. - # -q* pass through compiler args for the IBM compiler
  48592. - # -m* pass through architecture-specific compiler args for GCC
  48593. - # -m*, -t[45]*, -txscale* pass through architecture-specific
  48594. - # compiler args for GCC
  48595. - # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  48596. - # -F/path gives path to uninstalled frameworks, gcc on darwin
  48597. - # @file GCC response files
  48598. - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  48599. - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
  48600. + uninstall)
  48601. + $ECHO \
  48602. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  48603. - # Unknown arguments in both finalize_command and compile_command need
  48604. - # to be aesthetically quoted because they are evaled later.
  48605. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  48606. - case $arg in
  48607. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48608. - arg="\"$arg\""
  48609. - ;;
  48610. - esac
  48611. - compile_command="$compile_command $arg"
  48612. - finalize_command="$finalize_command $arg"
  48613. - compiler_flags="$compiler_flags $arg"
  48614. - continue
  48615. +Remove libraries from an installation directory.
  48616. +
  48617. +RM is the name of the program to use to delete files associated with each FILE
  48618. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  48619. +to RM.
  48620. +
  48621. +If FILE is a libtool library, all the files associated with it are deleted.
  48622. +Otherwise, only FILE itself is deleted using RM."
  48623. ;;
  48624. - -shrext)
  48625. - prev=shrext
  48626. - continue
  48627. - ;;
  48628. + *)
  48629. + func_fatal_help "invalid operation mode \`$mode'"
  48630. + ;;
  48631. + esac
  48632. - -no-fast-install)
  48633. - fast_install=no
  48634. - continue
  48635. - ;;
  48636. + $ECHO
  48637. + $ECHO "Try \`$progname --help' for more information about other modes."
  48638. - -no-install)
  48639. - case $host in
  48640. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
  48641. - # The PATH hackery in wrapper scripts is required on Windows
  48642. - # and Darwin in order for the loader to find any dlls it needs.
  48643. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  48644. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  48645. - fast_install=no
  48646. - ;;
  48647. - *) no_install=yes ;;
  48648. - esac
  48649. - continue
  48650. - ;;
  48651. + exit $?
  48652. +}
  48653. - -no-undefined)
  48654. - allow_undefined=no
  48655. - continue
  48656. - ;;
  48657. + # Now that we've collected a possible --mode arg, show help if necessary
  48658. + $opt_help && func_mode_help
  48659. - -objectlist)
  48660. - prev=objectlist
  48661. - continue
  48662. - ;;
  48663. - -o) prev=output ;;
  48664. +# func_mode_execute arg...
  48665. +func_mode_execute ()
  48666. +{
  48667. + $opt_debug
  48668. + # The first argument is the command name.
  48669. + cmd="$nonopt"
  48670. + test -z "$cmd" && \
  48671. + func_fatal_help "you must specify a COMMAND"
  48672. - -precious-files-regex)
  48673. - prev=precious_regex
  48674. - continue
  48675. - ;;
  48676. + # Handle -dlopen flags immediately.
  48677. + for file in $execute_dlfiles; do
  48678. + test -f "$file" \
  48679. + || func_fatal_help "\`$file' is not a file"
  48680. - -release)
  48681. - prev=release
  48682. - continue
  48683. - ;;
  48684. + dir=
  48685. + case $file in
  48686. + *.la)
  48687. + # Check to see that this really is a libtool archive.
  48688. + func_lalib_unsafe_p "$file" \
  48689. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  48690. - -rpath)
  48691. - prev=rpath
  48692. - continue
  48693. - ;;
  48694. + # Read the libtool library.
  48695. + dlname=
  48696. + library_names=
  48697. + func_source "$file"
  48698. - -R)
  48699. - prev=xrpath
  48700. - continue
  48701. - ;;
  48702. + # Skip this library if it cannot be dlopened.
  48703. + if test -z "$dlname"; then
  48704. + # Warn if it was a shared library.
  48705. + test -n "$library_names" && \
  48706. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  48707. + continue
  48708. + fi
  48709. - -R*)
  48710. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  48711. - # We need an absolute path.
  48712. - case $dir in
  48713. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  48714. - *)
  48715. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  48716. - exit $EXIT_FAILURE
  48717. - ;;
  48718. - esac
  48719. - case "$xrpath " in
  48720. - *" $dir "*) ;;
  48721. - *) xrpath="$xrpath $dir" ;;
  48722. - esac
  48723. - continue
  48724. - ;;
  48725. + func_dirname "$file" "" "."
  48726. + dir="$func_dirname_result"
  48727. - -static | -static-libtool-libs)
  48728. - # The effects of -static are defined in a previous loop.
  48729. - # We used to do the same as -all-static on platforms that
  48730. - # didn't have a PIC flag, but the assumption that the effects
  48731. - # would be equivalent was wrong. It would break on at least
  48732. - # Digital Unix and AIX.
  48733. - continue
  48734. + if test -f "$dir/$objdir/$dlname"; then
  48735. + dir="$dir/$objdir"
  48736. + else
  48737. + if test ! -f "$dir/$dlname"; then
  48738. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  48739. + fi
  48740. + fi
  48741. ;;
  48742. - -thread-safe)
  48743. - thread_safe=yes
  48744. - continue
  48745. + *.lo)
  48746. + # Just add the directory containing the .lo file.
  48747. + func_dirname "$file" "" "."
  48748. + dir="$func_dirname_result"
  48749. ;;
  48750. - -version-info)
  48751. - prev=vinfo
  48752. - continue
  48753. - ;;
  48754. - -version-number)
  48755. - prev=vinfo
  48756. - vinfo_number=yes
  48757. + *)
  48758. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  48759. continue
  48760. ;;
  48761. + esac
  48762. - -Wc,*)
  48763. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  48764. - arg=
  48765. - save_ifs="$IFS"; IFS=','
  48766. - for flag in $args; do
  48767. - IFS="$save_ifs"
  48768. - case $flag in
  48769. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48770. - flag="\"$flag\""
  48771. - ;;
  48772. - esac
  48773. - arg="$arg $wl$flag"
  48774. - compiler_flags="$compiler_flags $flag"
  48775. - done
  48776. - IFS="$save_ifs"
  48777. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  48778. - ;;
  48779. + # Get the absolute pathname.
  48780. + absdir=`cd "$dir" && pwd`
  48781. + test -n "$absdir" && dir="$absdir"
  48782. - -Wl,*)
  48783. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  48784. - arg=
  48785. - save_ifs="$IFS"; IFS=','
  48786. - for flag in $args; do
  48787. - IFS="$save_ifs"
  48788. - case $flag in
  48789. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48790. - flag="\"$flag\""
  48791. - ;;
  48792. - esac
  48793. - arg="$arg $wl$flag"
  48794. - compiler_flags="$compiler_flags $wl$flag"
  48795. - linker_flags="$linker_flags $flag"
  48796. - done
  48797. - IFS="$save_ifs"
  48798. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  48799. - ;;
  48800. + # Now add the directory to shlibpath_var.
  48801. + if eval "test -z \"\$$shlibpath_var\""; then
  48802. + eval "$shlibpath_var=\"\$dir\""
  48803. + else
  48804. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  48805. + fi
  48806. + done
  48807. - -Xcompiler)
  48808. - prev=xcompiler
  48809. - continue
  48810. - ;;
  48811. + # This variable tells wrapper scripts just to set shlibpath_var
  48812. + # rather than running their programs.
  48813. + libtool_execute_magic="$magic"
  48814. - -Xlinker)
  48815. - prev=xlinker
  48816. - continue
  48817. + # Check if any of the arguments is a wrapper script.
  48818. + args=
  48819. + for file
  48820. + do
  48821. + case $file in
  48822. + -*) ;;
  48823. + *)
  48824. + # Do a test to see if this is really a libtool program.
  48825. + if func_ltwrapper_script_p "$file"; then
  48826. + func_source "$file"
  48827. + # Transform arg to wrapped name.
  48828. + file="$progdir/$program"
  48829. + elif func_ltwrapper_executable_p "$file"; then
  48830. + func_ltwrapper_scriptname "$file"
  48831. + func_source "$func_ltwrapper_scriptname_result"
  48832. + # Transform arg to wrapped name.
  48833. + file="$progdir/$program"
  48834. + fi
  48835. ;;
  48836. + esac
  48837. + # Quote arguments (to preserve shell metacharacters).
  48838. + func_quote_for_eval "$file"
  48839. + args="$args $func_quote_for_eval_result"
  48840. + done
  48841. - -XCClinker)
  48842. - prev=xcclinker
  48843. - continue
  48844. - ;;
  48845. + if test "X$opt_dry_run" = Xfalse; then
  48846. + if test -n "$shlibpath_var"; then
  48847. + # Export the shlibpath_var.
  48848. + eval "export $shlibpath_var"
  48849. + fi
  48850. - # Some other compiler flag.
  48851. - -* | +*)
  48852. - # Unknown arguments in both finalize_command and compile_command need
  48853. - # to be aesthetically quoted because they are evaled later.
  48854. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  48855. - case $arg in
  48856. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48857. - arg="\"$arg\""
  48858. - ;;
  48859. - esac
  48860. - ;;
  48861. + # Restore saved environment variables
  48862. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  48863. + do
  48864. + eval "if test \"\${save_$lt_var+set}\" = set; then
  48865. + $lt_var=\$save_$lt_var; export $lt_var
  48866. + else
  48867. + $lt_unset $lt_var
  48868. + fi"
  48869. + done
  48870. - *.$objext)
  48871. - # A standard object.
  48872. - objs="$objs $arg"
  48873. - ;;
  48874. + # Now prepare to actually exec the command.
  48875. + exec_cmd="\$cmd$args"
  48876. + else
  48877. + # Display what would be done.
  48878. + if test -n "$shlibpath_var"; then
  48879. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  48880. + $ECHO "export $shlibpath_var"
  48881. + fi
  48882. + $ECHO "$cmd$args"
  48883. + exit $EXIT_SUCCESS
  48884. + fi
  48885. +}
  48886. - *.lo)
  48887. - # A libtool-controlled object.
  48888. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  48889. - # Check to see that this really is a libtool object.
  48890. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  48891. - pic_object=
  48892. - non_pic_object=
  48893. - # Read the .lo file
  48894. - # If there is no directory component, then add one.
  48895. - case $arg in
  48896. - */* | *\\*) . $arg ;;
  48897. - *) . ./$arg ;;
  48898. - esac
  48899. +# func_mode_finish arg...
  48900. +func_mode_finish ()
  48901. +{
  48902. + $opt_debug
  48903. + libdirs="$nonopt"
  48904. + admincmds=
  48905. - if test -z "$pic_object" || \
  48906. - test -z "$non_pic_object" ||
  48907. - test "$pic_object" = none && \
  48908. - test "$non_pic_object" = none; then
  48909. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  48910. - exit $EXIT_FAILURE
  48911. - fi
  48912. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  48913. + for dir
  48914. + do
  48915. + libdirs="$libdirs $dir"
  48916. + done
  48917. - # Extract subdirectory from the argument.
  48918. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  48919. - if test "X$xdir" = "X$arg"; then
  48920. - xdir=
  48921. - else
  48922. - xdir="$xdir/"
  48923. - fi
  48924. + for libdir in $libdirs; do
  48925. + if test -n "$finish_cmds"; then
  48926. + # Do each command in the finish commands.
  48927. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  48928. +'"$cmd"'"'
  48929. + fi
  48930. + if test -n "$finish_eval"; then
  48931. + # Do the single finish_eval.
  48932. + eval cmds=\"$finish_eval\"
  48933. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  48934. + $cmds"
  48935. + fi
  48936. + done
  48937. + fi
  48938. - if test "$pic_object" != none; then
  48939. - # Prepend the subdirectory the object is found in.
  48940. - pic_object="$xdir$pic_object"
  48941. + # Exit here if they wanted silent mode.
  48942. + $opt_silent && exit $EXIT_SUCCESS
  48943. - if test "$prev" = dlfiles; then
  48944. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  48945. - dlfiles="$dlfiles $pic_object"
  48946. - prev=
  48947. - continue
  48948. - else
  48949. - # If libtool objects are unsupported, then we need to preload.
  48950. - prev=dlprefiles
  48951. - fi
  48952. - fi
  48953. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  48954. + $ECHO "Libraries have been installed in:"
  48955. + for libdir in $libdirs; do
  48956. + $ECHO " $libdir"
  48957. + done
  48958. + $ECHO
  48959. + $ECHO "If you ever happen to want to link against installed libraries"
  48960. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  48961. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  48962. + $ECHO "flag during linking and do at least one of the following:"
  48963. + if test -n "$shlibpath_var"; then
  48964. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  48965. + $ECHO " during execution"
  48966. + fi
  48967. + if test -n "$runpath_var"; then
  48968. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  48969. + $ECHO " during linking"
  48970. + fi
  48971. + if test -n "$hardcode_libdir_flag_spec"; then
  48972. + libdir=LIBDIR
  48973. + eval flag=\"$hardcode_libdir_flag_spec\"
  48974. - # CHECK ME: I think I busted this. -Ossama
  48975. - if test "$prev" = dlprefiles; then
  48976. - # Preload the old-style object.
  48977. - dlprefiles="$dlprefiles $pic_object"
  48978. - prev=
  48979. - fi
  48980. + $ECHO " - use the \`$flag' linker flag"
  48981. + fi
  48982. + if test -n "$admincmds"; then
  48983. + $ECHO " - have your system administrator run these commands:$admincmds"
  48984. + fi
  48985. + if test -f /etc/ld.so.conf; then
  48986. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  48987. + fi
  48988. + $ECHO
  48989. - # A PIC object.
  48990. - libobjs="$libobjs $pic_object"
  48991. - arg="$pic_object"
  48992. - fi
  48993. + $ECHO "See any operating system documentation about shared libraries for"
  48994. + case $host in
  48995. + solaris2.[6789]|solaris2.1[0-9])
  48996. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  48997. + $ECHO "pages."
  48998. + ;;
  48999. + *)
  49000. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  49001. + ;;
  49002. + esac
  49003. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  49004. + exit $EXIT_SUCCESS
  49005. +}
  49006. - # Non-PIC object.
  49007. - if test "$non_pic_object" != none; then
  49008. - # Prepend the subdirectory the object is found in.
  49009. - non_pic_object="$xdir$non_pic_object"
  49010. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  49011. - # A standard non-PIC object
  49012. - non_pic_objects="$non_pic_objects $non_pic_object"
  49013. - if test -z "$pic_object" || test "$pic_object" = none ; then
  49014. - arg="$non_pic_object"
  49015. - fi
  49016. - else
  49017. - # If the PIC object exists, use it instead.
  49018. - # $xdir was prepended to $pic_object above.
  49019. - non_pic_object="$pic_object"
  49020. - non_pic_objects="$non_pic_objects $non_pic_object"
  49021. - fi
  49022. - else
  49023. - # Only an error if not doing a dry-run.
  49024. - if test -z "$run"; then
  49025. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  49026. - exit $EXIT_FAILURE
  49027. - else
  49028. - # Dry-run case.
  49029. - # Extract subdirectory from the argument.
  49030. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  49031. - if test "X$xdir" = "X$arg"; then
  49032. - xdir=
  49033. - else
  49034. - xdir="$xdir/"
  49035. - fi
  49036. +# func_mode_install arg...
  49037. +func_mode_install ()
  49038. +{
  49039. + $opt_debug
  49040. + # There may be an optional sh(1) argument at the beginning of
  49041. + # install_prog (especially on Windows NT).
  49042. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  49043. + # Allow the use of GNU shtool's install command.
  49044. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  49045. + # Aesthetically quote it.
  49046. + func_quote_for_eval "$nonopt"
  49047. + install_prog="$func_quote_for_eval_result "
  49048. + arg=$1
  49049. + shift
  49050. + else
  49051. + install_prog=
  49052. + arg=$nonopt
  49053. + fi
  49054. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  49055. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  49056. - libobjs="$libobjs $pic_object"
  49057. - non_pic_objects="$non_pic_objects $non_pic_object"
  49058. - fi
  49059. - fi
  49060. - ;;
  49061. + # The real first argument should be the name of the installation program.
  49062. + # Aesthetically quote it.
  49063. + func_quote_for_eval "$arg"
  49064. + install_prog="$install_prog$func_quote_for_eval_result"
  49065. - *.$libext)
  49066. - # An archive.
  49067. - deplibs="$deplibs $arg"
  49068. - old_deplibs="$old_deplibs $arg"
  49069. + # We need to accept at least all the BSD install flags.
  49070. + dest=
  49071. + files=
  49072. + opts=
  49073. + prev=
  49074. + install_type=
  49075. + isdir=no
  49076. + stripme=
  49077. + for arg
  49078. + do
  49079. + if test -n "$dest"; then
  49080. + files="$files $dest"
  49081. + dest=$arg
  49082. continue
  49083. - ;;
  49084. -
  49085. - *.la)
  49086. - # A libtool-controlled library.
  49087. + fi
  49088. - if test "$prev" = dlfiles; then
  49089. - # This library was specified with -dlopen.
  49090. - dlfiles="$dlfiles $arg"
  49091. - prev=
  49092. - elif test "$prev" = dlprefiles; then
  49093. - # The library was specified with -dlpreopen.
  49094. - dlprefiles="$dlprefiles $arg"
  49095. + case $arg in
  49096. + -d) isdir=yes ;;
  49097. + -f)
  49098. + case " $install_prog " in
  49099. + *[\\\ /]cp\ *) ;;
  49100. + *) prev=$arg ;;
  49101. + esac
  49102. + ;;
  49103. + -g | -m | -o)
  49104. + prev=$arg
  49105. + ;;
  49106. + -s)
  49107. + stripme=" -s"
  49108. + continue
  49109. + ;;
  49110. + -*)
  49111. + ;;
  49112. + *)
  49113. + # If the previous option needed an argument, then skip it.
  49114. + if test -n "$prev"; then
  49115. prev=
  49116. else
  49117. - deplibs="$deplibs $arg"
  49118. + dest=$arg
  49119. + continue
  49120. fi
  49121. - continue
  49122. ;;
  49123. + esac
  49124. - # Some other compiler argument.
  49125. - *)
  49126. - # Unknown arguments in both finalize_command and compile_command need
  49127. - # to be aesthetically quoted because they are evaled later.
  49128. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  49129. - case $arg in
  49130. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  49131. - arg="\"$arg\""
  49132. - ;;
  49133. - esac
  49134. - ;;
  49135. - esac # arg
  49136. + # Aesthetically quote the argument.
  49137. + func_quote_for_eval "$arg"
  49138. + install_prog="$install_prog $func_quote_for_eval_result"
  49139. + done
  49140. - # Now actually substitute the argument into the commands.
  49141. - if test -n "$arg"; then
  49142. - compile_command="$compile_command $arg"
  49143. - finalize_command="$finalize_command $arg"
  49144. - fi
  49145. - done # argument parsing loop
  49146. + test -z "$install_prog" && \
  49147. + func_fatal_help "you must specify an install program"
  49148. - if test -n "$prev"; then
  49149. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  49150. - $echo "$help" 1>&2
  49151. - exit $EXIT_FAILURE
  49152. - fi
  49153. + test -n "$prev" && \
  49154. + func_fatal_help "the \`$prev' option requires an argument"
  49155. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  49156. - eval arg=\"$export_dynamic_flag_spec\"
  49157. - compile_command="$compile_command $arg"
  49158. - finalize_command="$finalize_command $arg"
  49159. + if test -z "$files"; then
  49160. + if test -z "$dest"; then
  49161. + func_fatal_help "no file or destination specified"
  49162. + else
  49163. + func_fatal_help "you must specify a destination"
  49164. + fi
  49165. fi
  49166. - oldlibs=
  49167. - # calculate the name of the file, without its directory
  49168. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  49169. - libobjs_save="$libobjs"
  49170. + # Strip any trailing slash from the destination.
  49171. + func_stripname '' '/' "$dest"
  49172. + dest=$func_stripname_result
  49173. - if test -n "$shlibpath_var"; then
  49174. - # get the directories listed in $shlibpath_var
  49175. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  49176. + # Check to see that the destination is a directory.
  49177. + test -d "$dest" && isdir=yes
  49178. + if test "$isdir" = yes; then
  49179. + destdir="$dest"
  49180. + destname=
  49181. else
  49182. - shlib_search_path=
  49183. - fi
  49184. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  49185. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  49186. + func_dirname_and_basename "$dest" "" "."
  49187. + destdir="$func_dirname_result"
  49188. + destname="$func_basename_result"
  49189. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  49190. - if test "X$output_objdir" = "X$output"; then
  49191. - output_objdir="$objdir"
  49192. - else
  49193. - output_objdir="$output_objdir/$objdir"
  49194. - fi
  49195. - # Create the object directory.
  49196. - if test ! -d "$output_objdir"; then
  49197. - $show "$mkdir $output_objdir"
  49198. - $run $mkdir $output_objdir
  49199. - exit_status=$?
  49200. - if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
  49201. - exit $exit_status
  49202. - fi
  49203. + # Not a directory, so check to see that there is only one file specified.
  49204. + set dummy $files; shift
  49205. + test "$#" -gt 1 && \
  49206. + func_fatal_help "\`$dest' is not a directory"
  49207. fi
  49208. -
  49209. - # Determine the type of output
  49210. - case $output in
  49211. - "")
  49212. - $echo "$modename: you must specify an output file" 1>&2
  49213. - $echo "$help" 1>&2
  49214. - exit $EXIT_FAILURE
  49215. - ;;
  49216. - *.$libext) linkmode=oldlib ;;
  49217. - *.lo | *.$objext) linkmode=obj ;;
  49218. - *.la) linkmode=lib ;;
  49219. - *) linkmode=prog ;; # Anything else should be a program.
  49220. - esac
  49221. -
  49222. - case $host in
  49223. - *cygwin* | *mingw* | *pw32*)
  49224. - # don't eliminate duplications in $postdeps and $predeps
  49225. - duplicate_compiler_generated_deps=yes
  49226. - ;;
  49227. + case $destdir in
  49228. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  49229. *)
  49230. - duplicate_compiler_generated_deps=$duplicate_deps
  49231. + for file in $files; do
  49232. + case $file in
  49233. + *.lo) ;;
  49234. + *)
  49235. + func_fatal_help "\`$destdir' must be an absolute directory name"
  49236. + ;;
  49237. + esac
  49238. + done
  49239. ;;
  49240. esac
  49241. - specialdeplibs=
  49242. - libs=
  49243. - # Find all interdependent deplibs by searching for libraries
  49244. - # that are linked more than once (e.g. -la -lb -la)
  49245. - for deplib in $deplibs; do
  49246. - if test "X$duplicate_deps" = "Xyes" ; then
  49247. - case "$libs " in
  49248. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  49249. - esac
  49250. - fi
  49251. - libs="$libs $deplib"
  49252. - done
  49253. + # This variable tells wrapper scripts just to set variables rather
  49254. + # than running their programs.
  49255. + libtool_install_magic="$magic"
  49256. - if test "$linkmode" = lib; then
  49257. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  49258. + staticlibs=
  49259. + future_libdirs=
  49260. + current_libdirs=
  49261. + for file in $files; do
  49262. - # Compute libraries that are listed more than once in $predeps
  49263. - # $postdeps and mark them as special (i.e., whose duplicates are
  49264. - # not to be eliminated).
  49265. - pre_post_deps=
  49266. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  49267. - for pre_post_dep in $predeps $postdeps; do
  49268. - case "$pre_post_deps " in
  49269. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  49270. + # Do each installation.
  49271. + case $file in
  49272. + *.$libext)
  49273. + # Do the static libraries later.
  49274. + staticlibs="$staticlibs $file"
  49275. + ;;
  49276. +
  49277. + *.la)
  49278. + # Check to see that this really is a libtool archive.
  49279. + func_lalib_unsafe_p "$file" \
  49280. + || func_fatal_help "\`$file' is not a valid libtool archive"
  49281. +
  49282. + library_names=
  49283. + old_library=
  49284. + relink_command=
  49285. + func_source "$file"
  49286. +
  49287. + # Add the libdir to current_libdirs if it is the destination.
  49288. + if test "X$destdir" = "X$libdir"; then
  49289. + case "$current_libdirs " in
  49290. + *" $libdir "*) ;;
  49291. + *) current_libdirs="$current_libdirs $libdir" ;;
  49292. esac
  49293. - pre_post_deps="$pre_post_deps $pre_post_dep"
  49294. - done
  49295. - fi
  49296. - pre_post_deps=
  49297. - fi
  49298. + else
  49299. + # Note the libdir as a future libdir.
  49300. + case "$future_libdirs " in
  49301. + *" $libdir "*) ;;
  49302. + *) future_libdirs="$future_libdirs $libdir" ;;
  49303. + esac
  49304. + fi
  49305. - deplibs=
  49306. - newdependency_libs=
  49307. - newlib_search_path=
  49308. - need_relink=no # whether we're linking any uninstalled libtool libraries
  49309. - notinst_deplibs= # not-installed libtool libraries
  49310. - case $linkmode in
  49311. - lib)
  49312. - passes="conv link"
  49313. - for file in $dlfiles $dlprefiles; do
  49314. - case $file in
  49315. - *.la) ;;
  49316. - *)
  49317. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  49318. - exit $EXIT_FAILURE
  49319. + func_dirname "$file" "/" ""
  49320. + dir="$func_dirname_result"
  49321. + dir="$dir$objdir"
  49322. +
  49323. + if test -n "$relink_command"; then
  49324. + # Determine the prefix the user has applied to our future dir.
  49325. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  49326. +
  49327. + # Don't allow the user to place us outside of our expected
  49328. + # location b/c this prevents finding dependent libraries that
  49329. + # are installed to the same prefix.
  49330. + # At present, this check doesn't affect windows .dll's that
  49331. + # are installed into $libdir/../bin (currently, that works fine)
  49332. + # but it's something to keep an eye on.
  49333. + test "$inst_prefix_dir" = "$destdir" && \
  49334. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  49335. +
  49336. + if test -n "$inst_prefix_dir"; then
  49337. + # Stick the inst_prefix_dir data into the link command.
  49338. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  49339. + else
  49340. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  49341. + fi
  49342. +
  49343. + func_warning "relinking \`$file'"
  49344. + func_show_eval "$relink_command" \
  49345. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  49346. + fi
  49347. +
  49348. + # See the names of the shared library.
  49349. + set dummy $library_names; shift
  49350. + if test -n "$1"; then
  49351. + realname="$1"
  49352. + shift
  49353. +
  49354. + srcname="$realname"
  49355. + test -n "$relink_command" && srcname="$realname"T
  49356. +
  49357. + # Install the shared library and build the symlinks.
  49358. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  49359. + 'exit $?'
  49360. + tstripme="$stripme"
  49361. + case $host_os in
  49362. + cygwin* | mingw* | pw32* | cegcc*)
  49363. + case $realname in
  49364. + *.dll.a)
  49365. + tstripme=""
  49366. + ;;
  49367. + esac
  49368. ;;
  49369. esac
  49370. - done
  49371. - ;;
  49372. - prog)
  49373. - compile_deplibs=
  49374. - finalize_deplibs=
  49375. - alldeplibs=no
  49376. - newdlfiles=
  49377. - newdlprefiles=
  49378. - passes="conv scan dlopen dlpreopen link"
  49379. - ;;
  49380. - *) passes="conv"
  49381. - ;;
  49382. - esac
  49383. - for pass in $passes; do
  49384. - if test "$linkmode,$pass" = "lib,link" ||
  49385. - test "$linkmode,$pass" = "prog,scan"; then
  49386. - libs="$deplibs"
  49387. - deplibs=
  49388. - fi
  49389. - if test "$linkmode" = prog; then
  49390. - case $pass in
  49391. - dlopen) libs="$dlfiles" ;;
  49392. - dlpreopen) libs="$dlprefiles" ;;
  49393. - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  49394. - esac
  49395. - fi
  49396. - if test "$pass" = dlopen; then
  49397. - # Collect dlpreopened libraries
  49398. - save_deplibs="$deplibs"
  49399. - deplibs=
  49400. - fi
  49401. - for deplib in $libs; do
  49402. - lib=
  49403. - found=no
  49404. - case $deplib in
  49405. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  49406. - if test "$linkmode,$pass" = "prog,link"; then
  49407. - compile_deplibs="$deplib $compile_deplibs"
  49408. - finalize_deplibs="$deplib $finalize_deplibs"
  49409. - else
  49410. - compiler_flags="$compiler_flags $deplib"
  49411. - fi
  49412. - continue
  49413. - ;;
  49414. - -l*)
  49415. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  49416. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  49417. - continue
  49418. - fi
  49419. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  49420. - if test "$linkmode" = lib; then
  49421. - searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  49422. - else
  49423. - searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  49424. + if test -n "$tstripme" && test -n "$striplib"; then
  49425. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  49426. fi
  49427. - for searchdir in $searchdirs; do
  49428. - for search_ext in .la $std_shrext .so .a; do
  49429. - # Search the libtool library
  49430. - lib="$searchdir/lib${name}${search_ext}"
  49431. - if test -f "$lib"; then
  49432. - if test "$search_ext" = ".la"; then
  49433. - found=yes
  49434. - else
  49435. - found=no
  49436. - fi
  49437. - break 2
  49438. - fi
  49439. +
  49440. + if test "$#" -gt 0; then
  49441. + # Delete the old symlinks, and create new ones.
  49442. + # Try `ln -sf' first, because the `ln' binary might depend on
  49443. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  49444. + # so we also need to try rm && ln -s.
  49445. + for linkname
  49446. + do
  49447. + test "$linkname" != "$realname" \
  49448. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  49449. done
  49450. - done
  49451. - if test "$found" != yes; then
  49452. - # deplib doesn't seem to be a libtool library
  49453. - if test "$linkmode,$pass" = "prog,link"; then
  49454. - compile_deplibs="$deplib $compile_deplibs"
  49455. - finalize_deplibs="$deplib $finalize_deplibs"
  49456. - else
  49457. - deplibs="$deplib $deplibs"
  49458. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  49459. - fi
  49460. - continue
  49461. - else # deplib is a libtool library
  49462. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  49463. - # We need to do some special things here, and not later.
  49464. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  49465. - case " $predeps $postdeps " in
  49466. - *" $deplib "*)
  49467. - if (${SED} -e '2q' $lib |
  49468. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  49469. - library_names=
  49470. - old_library=
  49471. - case $lib in
  49472. - */* | *\\*) . $lib ;;
  49473. - *) . ./$lib ;;
  49474. - esac
  49475. - for l in $old_library $library_names; do
  49476. - ll="$l"
  49477. - done
  49478. - if test "X$ll" = "X$old_library" ; then # only static version available
  49479. - found=no
  49480. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  49481. - test "X$ladir" = "X$lib" && ladir="."
  49482. - lib=$ladir/$old_library
  49483. - if test "$linkmode,$pass" = "prog,link"; then
  49484. - compile_deplibs="$deplib $compile_deplibs"
  49485. - finalize_deplibs="$deplib $finalize_deplibs"
  49486. - else
  49487. - deplibs="$deplib $deplibs"
  49488. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  49489. - fi
  49490. - continue
  49491. - fi
  49492. - fi
  49493. - ;;
  49494. - *) ;;
  49495. - esac
  49496. - fi
  49497. - fi
  49498. - ;; # -l
  49499. - -L*)
  49500. - case $linkmode in
  49501. - lib)
  49502. - deplibs="$deplib $deplibs"
  49503. - test "$pass" = conv && continue
  49504. - newdependency_libs="$deplib $newdependency_libs"
  49505. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  49506. - ;;
  49507. - prog)
  49508. - if test "$pass" = conv; then
  49509. - deplibs="$deplib $deplibs"
  49510. - continue
  49511. - fi
  49512. - if test "$pass" = scan; then
  49513. - deplibs="$deplib $deplibs"
  49514. - else
  49515. - compile_deplibs="$deplib $compile_deplibs"
  49516. - finalize_deplibs="$deplib $finalize_deplibs"
  49517. - fi
  49518. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  49519. - ;;
  49520. - *)
  49521. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  49522. - ;;
  49523. - esac # linkmode
  49524. - continue
  49525. - ;; # -L
  49526. - -R*)
  49527. - if test "$pass" = link; then
  49528. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  49529. - # Make sure the xrpath contains only unique directories.
  49530. - case "$xrpath " in
  49531. - *" $dir "*) ;;
  49532. - *) xrpath="$xrpath $dir" ;;
  49533. - esac
  49534. - fi
  49535. - deplibs="$deplib $deplibs"
  49536. - continue
  49537. - ;;
  49538. - *.la) lib="$deplib" ;;
  49539. - *.$libext)
  49540. - if test "$pass" = conv; then
  49541. - deplibs="$deplib $deplibs"
  49542. - continue
  49543. - fi
  49544. - case $linkmode in
  49545. - lib)
  49546. - valid_a_lib=no
  49547. - case $deplibs_check_method in
  49548. - match_pattern*)
  49549. - set dummy $deplibs_check_method
  49550. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  49551. - if eval $echo \"$deplib\" 2>/dev/null \
  49552. - | $SED 10q \
  49553. - | $EGREP "$match_pattern_regex" > /dev/null; then
  49554. - valid_a_lib=yes
  49555. - fi
  49556. - ;;
  49557. - pass_all)
  49558. - valid_a_lib=yes
  49559. - ;;
  49560. - esac
  49561. - if test "$valid_a_lib" != yes; then
  49562. - $echo
  49563. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  49564. - $echo "*** I have the capability to make that library automatically link in when"
  49565. - $echo "*** you link to this library. But I can only do this if you have a"
  49566. - $echo "*** shared version of the library, which you do not appear to have"
  49567. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  49568. - $echo "*** that it is just a static archive that I should not used here."
  49569. - else
  49570. - $echo
  49571. - $echo "*** Warning: Linking the shared library $output against the"
  49572. - $echo "*** static library $deplib is not portable!"
  49573. - deplibs="$deplib $deplibs"
  49574. - fi
  49575. - continue
  49576. - ;;
  49577. - prog)
  49578. - if test "$pass" != link; then
  49579. - deplibs="$deplib $deplibs"
  49580. - else
  49581. - compile_deplibs="$deplib $compile_deplibs"
  49582. - finalize_deplibs="$deplib $finalize_deplibs"
  49583. - fi
  49584. - continue
  49585. - ;;
  49586. - esac # linkmode
  49587. - ;; # *.$libext
  49588. - *.lo | *.$objext)
  49589. - if test "$pass" = conv; then
  49590. - deplibs="$deplib $deplibs"
  49591. - elif test "$linkmode" = prog; then
  49592. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  49593. - # If there is no dlopen support or we're linking statically,
  49594. - # we need to preload.
  49595. - newdlprefiles="$newdlprefiles $deplib"
  49596. - compile_deplibs="$deplib $compile_deplibs"
  49597. - finalize_deplibs="$deplib $finalize_deplibs"
  49598. - else
  49599. - newdlfiles="$newdlfiles $deplib"
  49600. - fi
  49601. fi
  49602. - continue
  49603. - ;;
  49604. - %DEPLIBS%)
  49605. - alldeplibs=yes
  49606. - continue
  49607. - ;;
  49608. - esac # case $deplib
  49609. - if test "$found" = yes || test -f "$lib"; then :
  49610. - else
  49611. - $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
  49612. - exit $EXIT_FAILURE
  49613. - fi
  49614. - # Check to see that this really is a libtool archive.
  49615. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  49616. - else
  49617. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  49618. - exit $EXIT_FAILURE
  49619. + # Do each command in the postinstall commands.
  49620. + lib="$destdir/$realname"
  49621. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  49622. fi
  49623. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  49624. - test "X$ladir" = "X$lib" && ladir="."
  49625. -
  49626. - dlname=
  49627. - dlopen=
  49628. - dlpreopen=
  49629. - libdir=
  49630. - library_names=
  49631. - old_library=
  49632. - # If the library was installed with an old release of libtool,
  49633. - # it will not redefine variables installed, or shouldnotlink
  49634. - installed=yes
  49635. - shouldnotlink=no
  49636. - avoidtemprpath=
  49637. + # Install the pseudo-library for information purposes.
  49638. + func_basename "$file"
  49639. + name="$func_basename_result"
  49640. + instname="$dir/$name"i
  49641. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  49642. + # Maybe install the static library, too.
  49643. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  49644. + ;;
  49645. - # Read the .la file
  49646. - case $lib in
  49647. - */* | *\\*) . $lib ;;
  49648. - *) . ./$lib ;;
  49649. - esac
  49650. + *.lo)
  49651. + # Install (i.e. copy) a libtool object.
  49652. - if test "$linkmode,$pass" = "lib,link" ||
  49653. - test "$linkmode,$pass" = "prog,scan" ||
  49654. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  49655. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  49656. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  49657. + # Figure out destination file name, if it wasn't already specified.
  49658. + if test -n "$destname"; then
  49659. + destfile="$destdir/$destname"
  49660. + else
  49661. + func_basename "$file"
  49662. + destfile="$func_basename_result"
  49663. + destfile="$destdir/$destfile"
  49664. fi
  49665. - if test "$pass" = conv; then
  49666. - # Only check for convenience libraries
  49667. - deplibs="$lib $deplibs"
  49668. - if test -z "$libdir"; then
  49669. - if test -z "$old_library"; then
  49670. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  49671. - exit $EXIT_FAILURE
  49672. - fi
  49673. - # It is a libtool convenience library, so add in its objects.
  49674. - convenience="$convenience $ladir/$objdir/$old_library"
  49675. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  49676. - tmp_libs=
  49677. - for deplib in $dependency_libs; do
  49678. - deplibs="$deplib $deplibs"
  49679. - if test "X$duplicate_deps" = "Xyes" ; then
  49680. - case "$tmp_libs " in
  49681. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  49682. - esac
  49683. - fi
  49684. - tmp_libs="$tmp_libs $deplib"
  49685. - done
  49686. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  49687. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  49688. - exit $EXIT_FAILURE
  49689. - fi
  49690. - continue
  49691. - fi # $pass = conv
  49692. + # Deduce the name of the destination old-style object file.
  49693. + case $destfile in
  49694. + *.lo)
  49695. + func_lo2o "$destfile"
  49696. + staticdest=$func_lo2o_result
  49697. + ;;
  49698. + *.$objext)
  49699. + staticdest="$destfile"
  49700. + destfile=
  49701. + ;;
  49702. + *)
  49703. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  49704. + ;;
  49705. + esac
  49706. + # Install the libtool object if requested.
  49707. + test -n "$destfile" && \
  49708. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  49709. - # Get the name of the library we link against.
  49710. - linklib=
  49711. - for l in $old_library $library_names; do
  49712. - linklib="$l"
  49713. - done
  49714. - if test -z "$linklib"; then
  49715. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  49716. - exit $EXIT_FAILURE
  49717. + # Install the old object if enabled.
  49718. + if test "$build_old_libs" = yes; then
  49719. + # Deduce the name of the old-style object file.
  49720. + func_lo2o "$file"
  49721. + staticobj=$func_lo2o_result
  49722. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  49723. fi
  49724. + exit $EXIT_SUCCESS
  49725. + ;;
  49726. - # This library was specified with -dlopen.
  49727. - if test "$pass" = dlopen; then
  49728. - if test -z "$libdir"; then
  49729. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  49730. - exit $EXIT_FAILURE
  49731. - fi
  49732. - if test -z "$dlname" ||
  49733. - test "$dlopen_support" != yes ||
  49734. - test "$build_libtool_libs" = no; then
  49735. - # If there is no dlname, no dlopen support or we're linking
  49736. - # statically, we need to preload. We also need to preload any
  49737. - # dependent libraries so libltdl's deplib preloader doesn't
  49738. - # bomb out in the load deplibs phase.
  49739. - dlprefiles="$dlprefiles $lib $dependency_libs"
  49740. - else
  49741. - newdlfiles="$newdlfiles $lib"
  49742. - fi
  49743. - continue
  49744. - fi # $pass = dlopen
  49745. + *)
  49746. + # Figure out destination file name, if it wasn't already specified.
  49747. + if test -n "$destname"; then
  49748. + destfile="$destdir/$destname"
  49749. + else
  49750. + func_basename "$file"
  49751. + destfile="$func_basename_result"
  49752. + destfile="$destdir/$destfile"
  49753. + fi
  49754. - # We need an absolute path.
  49755. - case $ladir in
  49756. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  49757. + # If the file is missing, and there is a .exe on the end, strip it
  49758. + # because it is most likely a libtool script we actually want to
  49759. + # install
  49760. + stripped_ext=""
  49761. + case $file in
  49762. + *.exe)
  49763. + if test ! -f "$file"; then
  49764. + func_stripname '' '.exe' "$file"
  49765. + file=$func_stripname_result
  49766. + stripped_ext=".exe"
  49767. + fi
  49768. + ;;
  49769. + esac
  49770. +
  49771. + # Do a test to see if this is really a libtool program.
  49772. + case $host in
  49773. + *cygwin* | *mingw*)
  49774. + if func_ltwrapper_executable_p "$file"; then
  49775. + func_ltwrapper_scriptname "$file"
  49776. + wrapper=$func_ltwrapper_scriptname_result
  49777. + else
  49778. + func_stripname '' '.exe' "$file"
  49779. + wrapper=$func_stripname_result
  49780. + fi
  49781. + ;;
  49782. *)
  49783. - abs_ladir=`cd "$ladir" && pwd`
  49784. - if test -z "$abs_ladir"; then
  49785. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  49786. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  49787. - abs_ladir="$ladir"
  49788. + wrapper=$file
  49789. + ;;
  49790. + esac
  49791. + if func_ltwrapper_script_p "$wrapper"; then
  49792. + notinst_deplibs=
  49793. + relink_command=
  49794. +
  49795. + func_source "$wrapper"
  49796. +
  49797. + # Check the variables that should have been set.
  49798. + test -z "$generated_by_libtool_version" && \
  49799. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  49800. +
  49801. + finalize=yes
  49802. + for lib in $notinst_deplibs; do
  49803. + # Check to see that each library is installed.
  49804. + libdir=
  49805. + if test -f "$lib"; then
  49806. + func_source "$lib"
  49807. + fi
  49808. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  49809. + if test -n "$libdir" && test ! -f "$libfile"; then
  49810. + func_warning "\`$lib' has not been installed in \`$libdir'"
  49811. + finalize=no
  49812. + fi
  49813. + done
  49814. +
  49815. + relink_command=
  49816. + func_source "$wrapper"
  49817. +
  49818. + outputname=
  49819. + if test "$fast_install" = no && test -n "$relink_command"; then
  49820. + $opt_dry_run || {
  49821. + if test "$finalize" = yes; then
  49822. + tmpdir=`func_mktempdir`
  49823. + func_basename "$file$stripped_ext"
  49824. + file="$func_basename_result"
  49825. + outputname="$tmpdir/$file"
  49826. + # Replace the output file specification.
  49827. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  49828. +
  49829. + $opt_silent || {
  49830. + func_quote_for_expand "$relink_command"
  49831. + eval "func_echo $func_quote_for_expand_result"
  49832. + }
  49833. + if eval "$relink_command"; then :
  49834. + else
  49835. + func_error "error: relink \`$file' with the above command before installing it"
  49836. + $opt_dry_run || ${RM}r "$tmpdir"
  49837. + continue
  49838. + fi
  49839. + file="$outputname"
  49840. + else
  49841. + func_warning "cannot relink \`$file'"
  49842. + fi
  49843. + }
  49844. + else
  49845. + # Install the binary that we compiled earlier.
  49846. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  49847. fi
  49848. + fi
  49849. +
  49850. + # remove .exe since cygwin /usr/bin/install will append another
  49851. + # one anyway
  49852. + case $install_prog,$host in
  49853. + */usr/bin/install*,*cygwin*)
  49854. + case $file:$destfile in
  49855. + *.exe:*.exe)
  49856. + # this is ok
  49857. + ;;
  49858. + *.exe:*)
  49859. + destfile=$destfile.exe
  49860. + ;;
  49861. + *:*.exe)
  49862. + func_stripname '' '.exe' "$destfile"
  49863. + destfile=$func_stripname_result
  49864. + ;;
  49865. + esac
  49866. ;;
  49867. esac
  49868. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  49869. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  49870. + $opt_dry_run || if test -n "$outputname"; then
  49871. + ${RM}r "$tmpdir"
  49872. + fi
  49873. + ;;
  49874. + esac
  49875. + done
  49876. - # Find the relevant object directory and library name.
  49877. - if test "X$installed" = Xyes; then
  49878. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  49879. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  49880. - dir="$ladir"
  49881. - absdir="$abs_ladir"
  49882. - libdir="$abs_ladir"
  49883. - else
  49884. - dir="$libdir"
  49885. - absdir="$libdir"
  49886. + for file in $staticlibs; do
  49887. + func_basename "$file"
  49888. + name="$func_basename_result"
  49889. +
  49890. + # Set up the ranlib parameters.
  49891. + oldlib="$destdir/$name"
  49892. +
  49893. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  49894. +
  49895. + if test -n "$stripme" && test -n "$old_striplib"; then
  49896. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  49897. + fi
  49898. +
  49899. + # Do each command in the postinstall commands.
  49900. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  49901. + done
  49902. +
  49903. + test -n "$future_libdirs" && \
  49904. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  49905. +
  49906. + if test -n "$current_libdirs"; then
  49907. + # Maybe just do a dry run.
  49908. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  49909. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  49910. + else
  49911. + exit $EXIT_SUCCESS
  49912. + fi
  49913. +}
  49914. +
  49915. +test "$mode" = install && func_mode_install ${1+"$@"}
  49916. +
  49917. +
  49918. +# func_generate_dlsyms outputname originator pic_p
  49919. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  49920. +# a dlpreopen symbol table.
  49921. +func_generate_dlsyms ()
  49922. +{
  49923. + $opt_debug
  49924. + my_outputname="$1"
  49925. + my_originator="$2"
  49926. + my_pic_p="${3-no}"
  49927. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  49928. + my_dlsyms=
  49929. +
  49930. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  49931. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  49932. + my_dlsyms="${my_outputname}S.c"
  49933. + else
  49934. + func_error "not configured to extract global symbols from dlpreopened files"
  49935. + fi
  49936. + fi
  49937. +
  49938. + if test -n "$my_dlsyms"; then
  49939. + case $my_dlsyms in
  49940. + "") ;;
  49941. + *.c)
  49942. + # Discover the nlist of each of the dlfiles.
  49943. + nlist="$output_objdir/${my_outputname}.nm"
  49944. +
  49945. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  49946. +
  49947. + # Parse the name list into a source file.
  49948. + func_verbose "creating $output_objdir/$my_dlsyms"
  49949. +
  49950. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  49951. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  49952. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  49953. +
  49954. +#ifdef __cplusplus
  49955. +extern \"C\" {
  49956. +#endif
  49957. +
  49958. +/* External symbol declarations for the compiler. */\
  49959. +"
  49960. +
  49961. + if test "$dlself" = yes; then
  49962. + func_verbose "generating symbol list for \`$output'"
  49963. +
  49964. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  49965. +
  49966. + # Add our own program objects to the symbol list.
  49967. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  49968. + for progfile in $progfiles; do
  49969. + func_verbose "extracting global C symbols from \`$progfile'"
  49970. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  49971. + done
  49972. +
  49973. + if test -n "$exclude_expsyms"; then
  49974. + $opt_dry_run || {
  49975. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  49976. + eval '$MV "$nlist"T "$nlist"'
  49977. + }
  49978. fi
  49979. - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  49980. - else
  49981. - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  49982. - dir="$ladir"
  49983. - absdir="$abs_ladir"
  49984. - # Remove this search path later
  49985. - notinst_path="$notinst_path $abs_ladir"
  49986. +
  49987. + if test -n "$export_symbols_regex"; then
  49988. + $opt_dry_run || {
  49989. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  49990. + eval '$MV "$nlist"T "$nlist"'
  49991. + }
  49992. + fi
  49993. +
  49994. + # Prepare the list of exported symbols
  49995. + if test -z "$export_symbols"; then
  49996. + export_symbols="$output_objdir/$outputname.exp"
  49997. + $opt_dry_run || {
  49998. + $RM $export_symbols
  49999. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  50000. + case $host in
  50001. + *cygwin* | *mingw* | *cegcc* )
  50002. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  50003. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  50004. + ;;
  50005. + esac
  50006. + }
  50007. else
  50008. - dir="$ladir/$objdir"
  50009. - absdir="$abs_ladir/$objdir"
  50010. - # Remove this search path later
  50011. - notinst_path="$notinst_path $abs_ladir"
  50012. + $opt_dry_run || {
  50013. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  50014. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  50015. + eval '$MV "$nlist"T "$nlist"'
  50016. + case $host in
  50017. + *cygwin | *mingw* | *cegcc* )
  50018. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  50019. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  50020. + ;;
  50021. + esac
  50022. + }
  50023. fi
  50024. - fi # $installed = yes
  50025. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  50026. + fi
  50027. - # This library was specified with -dlpreopen.
  50028. - if test "$pass" = dlpreopen; then
  50029. - if test -z "$libdir"; then
  50030. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  50031. - exit $EXIT_FAILURE
  50032. + for dlprefile in $dlprefiles; do
  50033. + func_verbose "extracting global C symbols from \`$dlprefile'"
  50034. + func_basename "$dlprefile"
  50035. + name="$func_basename_result"
  50036. + $opt_dry_run || {
  50037. + eval '$ECHO ": $name " >> "$nlist"'
  50038. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  50039. + }
  50040. + done
  50041. +
  50042. + $opt_dry_run || {
  50043. + # Make sure we have at least an empty file.
  50044. + test -f "$nlist" || : > "$nlist"
  50045. +
  50046. + if test -n "$exclude_expsyms"; then
  50047. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  50048. + $MV "$nlist"T "$nlist"
  50049. fi
  50050. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  50051. - # are required to link).
  50052. - if test -n "$old_library"; then
  50053. - newdlprefiles="$newdlprefiles $dir/$old_library"
  50054. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  50055. - elif test -n "$dlname"; then
  50056. - newdlprefiles="$newdlprefiles $dir/$dlname"
  50057. +
  50058. + # Try sorting and uniquifying the output.
  50059. + if $GREP -v "^: " < "$nlist" |
  50060. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  50061. + sort -k 3
  50062. + else
  50063. + sort +2
  50064. + fi |
  50065. + uniq > "$nlist"S; then
  50066. + :
  50067. else
  50068. - newdlprefiles="$newdlprefiles $dir/$linklib"
  50069. + $GREP -v "^: " < "$nlist" > "$nlist"S
  50070. fi
  50071. - fi # $pass = dlpreopen
  50072. - if test -z "$libdir"; then
  50073. - # Link the convenience library
  50074. - if test "$linkmode" = lib; then
  50075. - deplibs="$dir/$old_library $deplibs"
  50076. - elif test "$linkmode,$pass" = "prog,link"; then
  50077. - compile_deplibs="$dir/$old_library $compile_deplibs"
  50078. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  50079. + if test -f "$nlist"S; then
  50080. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  50081. else
  50082. - deplibs="$lib $deplibs" # used for prog,scan pass
  50083. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  50084. fi
  50085. - continue
  50086. - fi
  50087. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  50088. - if test "$linkmode" = prog && test "$pass" != link; then
  50089. - newlib_search_path="$newlib_search_path $ladir"
  50090. - deplibs="$lib $deplibs"
  50091. -
  50092. - linkalldeplibs=no
  50093. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  50094. - test "$build_libtool_libs" = no; then
  50095. - linkalldeplibs=yes
  50096. - fi
  50097. +/* The mapping between symbol names and symbols. */
  50098. +typedef struct {
  50099. + const char *name;
  50100. + void *address;
  50101. +} lt_dlsymlist;
  50102. +"
  50103. + case $host in
  50104. + *cygwin* | *mingw* | *cegcc* )
  50105. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  50106. +/* DATA imports from DLLs on WIN32 con't be const, because
  50107. + runtime relocations are performed -- see ld's documentation
  50108. + on pseudo-relocs. */"
  50109. + lt_dlsym_const= ;;
  50110. + *osf5*)
  50111. + echo >> "$output_objdir/$my_dlsyms" "\
  50112. +/* This system does not cope well with relocations in const data */"
  50113. + lt_dlsym_const= ;;
  50114. + *)
  50115. + lt_dlsym_const=const ;;
  50116. + esac
  50117. - tmp_libs=
  50118. - for deplib in $dependency_libs; do
  50119. - case $deplib in
  50120. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  50121. - esac
  50122. - # Need to link against all dependency_libs?
  50123. - if test "$linkalldeplibs" = yes; then
  50124. - deplibs="$deplib $deplibs"
  50125. - else
  50126. - # Need to hardcode shared library paths
  50127. - # or/and link against static libraries
  50128. - newdependency_libs="$deplib $newdependency_libs"
  50129. - fi
  50130. - if test "X$duplicate_deps" = "Xyes" ; then
  50131. - case "$tmp_libs " in
  50132. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  50133. - esac
  50134. - fi
  50135. - tmp_libs="$tmp_libs $deplib"
  50136. - done # for deplib
  50137. - continue
  50138. - fi # $linkmode = prog...
  50139. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  50140. +extern $lt_dlsym_const lt_dlsymlist
  50141. +lt_${my_prefix}_LTX_preloaded_symbols[];
  50142. +$lt_dlsym_const lt_dlsymlist
  50143. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  50144. +{\
  50145. + { \"$my_originator\", (void *) 0 },"
  50146. - if test "$linkmode,$pass" = "prog,link"; then
  50147. - if test -n "$library_names" &&
  50148. - { { test "$prefer_static_libs" = no ||
  50149. - test "$prefer_static_libs,$installed" = "built,yes"; } ||
  50150. - test -z "$old_library"; }; then
  50151. - # We need to hardcode the library path
  50152. - if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  50153. - # Make sure the rpath contains only unique directories.
  50154. - case "$temp_rpath " in
  50155. - *" $dir "*) ;;
  50156. - *" $absdir "*) ;;
  50157. - *) temp_rpath="$temp_rpath $absdir" ;;
  50158. - esac
  50159. - fi
  50160. + case $need_lib_prefix in
  50161. + no)
  50162. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  50163. + ;;
  50164. + *)
  50165. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  50166. + ;;
  50167. + esac
  50168. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  50169. + {0, (void *) 0}
  50170. +};
  50171. - # Hardcode the library path.
  50172. - # Skip directories that are in the system default run-time
  50173. - # search path.
  50174. - case " $sys_lib_dlsearch_path " in
  50175. - *" $absdir "*) ;;
  50176. - *)
  50177. - case "$compile_rpath " in
  50178. - *" $absdir "*) ;;
  50179. - *) compile_rpath="$compile_rpath $absdir"
  50180. - esac
  50181. - ;;
  50182. - esac
  50183. - case " $sys_lib_dlsearch_path " in
  50184. - *" $libdir "*) ;;
  50185. - *)
  50186. - case "$finalize_rpath " in
  50187. - *" $libdir "*) ;;
  50188. - *) finalize_rpath="$finalize_rpath $libdir"
  50189. - esac
  50190. - ;;
  50191. - esac
  50192. - fi # $linkmode,$pass = prog,link...
  50193. -
  50194. - if test "$alldeplibs" = yes &&
  50195. - { test "$deplibs_check_method" = pass_all ||
  50196. - { test "$build_libtool_libs" = yes &&
  50197. - test -n "$library_names"; }; }; then
  50198. - # We only need to search for static libraries
  50199. - continue
  50200. - fi
  50201. - fi
  50202. +/* This works around a problem in FreeBSD linker */
  50203. +#ifdef FREEBSD_WORKAROUND
  50204. +static const void *lt_preloaded_setup() {
  50205. + return lt_${my_prefix}_LTX_preloaded_symbols;
  50206. +}
  50207. +#endif
  50208. - link_static=no # Whether the deplib will be linked statically
  50209. - use_static_libs=$prefer_static_libs
  50210. - if test "$use_static_libs" = built && test "$installed" = yes ; then
  50211. - use_static_libs=no
  50212. - fi
  50213. - if test -n "$library_names" &&
  50214. - { test "$use_static_libs" = no || test -z "$old_library"; }; then
  50215. - if test "$installed" = no; then
  50216. - notinst_deplibs="$notinst_deplibs $lib"
  50217. - need_relink=yes
  50218. - fi
  50219. - # This is a shared library
  50220. +#ifdef __cplusplus
  50221. +}
  50222. +#endif\
  50223. +"
  50224. + } # !$opt_dry_run
  50225. - # Warn about portability, can't link against -module's on
  50226. - # some systems (darwin)
  50227. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  50228. - $echo
  50229. - if test "$linkmode" = prog; then
  50230. - $echo "*** Warning: Linking the executable $output against the loadable module"
  50231. - else
  50232. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  50233. + pic_flag_for_symtable=
  50234. + case "$compile_command " in
  50235. + *" -static "*) ;;
  50236. + *)
  50237. + case $host in
  50238. + # compiling the symbol table file with pic_flag works around
  50239. + # a FreeBSD bug that causes programs to crash when -lm is
  50240. + # linked before any other PIC object. But we must not use
  50241. + # pic_flag when linking with -static. The problem exists in
  50242. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  50243. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  50244. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  50245. + *-*-hpux*)
  50246. + pic_flag_for_symtable=" $pic_flag" ;;
  50247. + *)
  50248. + if test "X$my_pic_p" != Xno; then
  50249. + pic_flag_for_symtable=" $pic_flag"
  50250. fi
  50251. - $echo "*** $linklib is not portable!"
  50252. - fi
  50253. - if test "$linkmode" = lib &&
  50254. - test "$hardcode_into_libs" = yes; then
  50255. - # Hardcode the library path.
  50256. - # Skip directories that are in the system default run-time
  50257. - # search path.
  50258. - case " $sys_lib_dlsearch_path " in
  50259. - *" $absdir "*) ;;
  50260. - *)
  50261. - case "$compile_rpath " in
  50262. - *" $absdir "*) ;;
  50263. - *) compile_rpath="$compile_rpath $absdir"
  50264. - esac
  50265. - ;;
  50266. - esac
  50267. - case " $sys_lib_dlsearch_path " in
  50268. - *" $libdir "*) ;;
  50269. - *)
  50270. - case "$finalize_rpath " in
  50271. - *" $libdir "*) ;;
  50272. - *) finalize_rpath="$finalize_rpath $libdir"
  50273. - esac
  50274. - ;;
  50275. - esac
  50276. - fi
  50277. + ;;
  50278. + esac
  50279. + ;;
  50280. + esac
  50281. + symtab_cflags=
  50282. + for arg in $LTCFLAGS; do
  50283. + case $arg in
  50284. + -pie | -fpie | -fPIE) ;;
  50285. + *) symtab_cflags="$symtab_cflags $arg" ;;
  50286. + esac
  50287. + done
  50288. - if test -n "$old_archive_from_expsyms_cmds"; then
  50289. - # figure out the soname
  50290. - set dummy $library_names
  50291. - realname="$2"
  50292. - shift; shift
  50293. - libname=`eval \\$echo \"$libname_spec\"`
  50294. - # use dlname if we got it. it's perfectly good, no?
  50295. - if test -n "$dlname"; then
  50296. - soname="$dlname"
  50297. - elif test -n "$soname_spec"; then
  50298. - # bleh windows
  50299. - case $host in
  50300. - *cygwin* | mingw*)
  50301. - major=`expr $current - $age`
  50302. - versuffix="-$major"
  50303. - ;;
  50304. - esac
  50305. - eval soname=\"$soname_spec\"
  50306. - else
  50307. - soname="$realname"
  50308. - fi
  50309. + # Now compile the dynamic symbol file.
  50310. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  50311. - # Make a new name for the extract_expsyms_cmds to use
  50312. - soroot="$soname"
  50313. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  50314. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  50315. + # Clean up the generated files.
  50316. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  50317. - # If the library has no export list, then create one now
  50318. - if test -f "$output_objdir/$soname-def"; then :
  50319. - else
  50320. - $show "extracting exported symbol list from \`$soname'"
  50321. - save_ifs="$IFS"; IFS='~'
  50322. - cmds=$extract_expsyms_cmds
  50323. - for cmd in $cmds; do
  50324. - IFS="$save_ifs"
  50325. - eval cmd=\"$cmd\"
  50326. - $show "$cmd"
  50327. - $run eval "$cmd" || exit $?
  50328. - done
  50329. - IFS="$save_ifs"
  50330. - fi
  50331. + # Transform the symbol file into the correct name.
  50332. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  50333. + case $host in
  50334. + *cygwin* | *mingw* | *cegcc* )
  50335. + if test -f "$output_objdir/$my_outputname.def"; then
  50336. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  50337. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  50338. + else
  50339. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  50340. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  50341. + fi
  50342. + ;;
  50343. + *)
  50344. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  50345. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  50346. + ;;
  50347. + esac
  50348. + ;;
  50349. + *)
  50350. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  50351. + ;;
  50352. + esac
  50353. + else
  50354. + # We keep going just in case the user didn't refer to
  50355. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  50356. + # really was required.
  50357. +
  50358. + # Nullify the symbol file.
  50359. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  50360. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  50361. + fi
  50362. +}
  50363. - # Create $newlib
  50364. - if test -f "$output_objdir/$newlib"; then :; else
  50365. - $show "generating import library for \`$soname'"
  50366. - save_ifs="$IFS"; IFS='~'
  50367. - cmds=$old_archive_from_expsyms_cmds
  50368. - for cmd in $cmds; do
  50369. - IFS="$save_ifs"
  50370. - eval cmd=\"$cmd\"
  50371. - $show "$cmd"
  50372. - $run eval "$cmd" || exit $?
  50373. - done
  50374. - IFS="$save_ifs"
  50375. - fi
  50376. - # make sure the library variables are pointing to the new library
  50377. - dir=$output_objdir
  50378. - linklib=$newlib
  50379. - fi # test -n "$old_archive_from_expsyms_cmds"
  50380. +# func_win32_libid arg
  50381. +# return the library type of file 'arg'
  50382. +#
  50383. +# Need a lot of goo to handle *both* DLLs and import libs
  50384. +# Has to be a shell function in order to 'eat' the argument
  50385. +# that is supplied when $file_magic_command is called.
  50386. +func_win32_libid ()
  50387. +{
  50388. + $opt_debug
  50389. + win32_libid_type="unknown"
  50390. + win32_fileres=`file -L $1 2>/dev/null`
  50391. + case $win32_fileres in
  50392. + *ar\ archive\ import\ library*) # definitely import
  50393. + win32_libid_type="x86 archive import"
  50394. + ;;
  50395. + *ar\ archive*) # could be an import, or static
  50396. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  50397. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  50398. + win32_nmres=`eval $NM -f posix -A $1 |
  50399. + $SED -n -e '
  50400. + 1,100{
  50401. + / I /{
  50402. + s,.*,import,
  50403. + p
  50404. + q
  50405. + }
  50406. + }'`
  50407. + case $win32_nmres in
  50408. + import*) win32_libid_type="x86 archive import";;
  50409. + *) win32_libid_type="x86 archive static";;
  50410. + esac
  50411. + fi
  50412. + ;;
  50413. + *DLL*)
  50414. + win32_libid_type="x86 DLL"
  50415. + ;;
  50416. + *executable*) # but shell scripts are "executable" too...
  50417. + case $win32_fileres in
  50418. + *MS\ Windows\ PE\ Intel*)
  50419. + win32_libid_type="x86 DLL"
  50420. + ;;
  50421. + esac
  50422. + ;;
  50423. + esac
  50424. + $ECHO "$win32_libid_type"
  50425. +}
  50426. - if test "$linkmode" = prog || test "$mode" != relink; then
  50427. - add_shlibpath=
  50428. - add_dir=
  50429. - add=
  50430. - lib_linked=yes
  50431. - case $hardcode_action in
  50432. - immediate | unsupported)
  50433. - if test "$hardcode_direct" = no; then
  50434. - add="$dir/$linklib"
  50435. - case $host in
  50436. - *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  50437. - *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  50438. - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  50439. - *-*-unixware7*) add_dir="-L$dir" ;;
  50440. - *-*-darwin* )
  50441. - # if the lib is a module then we can not link against
  50442. - # it, someone is ignoring the new warnings I added
  50443. - if /usr/bin/file -L $add 2> /dev/null |
  50444. - $EGREP ": [^:]* bundle" >/dev/null ; then
  50445. - $echo "** Warning, lib $linklib is a module, not a shared library"
  50446. - if test -z "$old_library" ; then
  50447. - $echo
  50448. - $echo "** And there doesn't seem to be a static archive available"
  50449. - $echo "** The link will probably fail, sorry"
  50450. - else
  50451. - add="$dir/$old_library"
  50452. - fi
  50453. - fi
  50454. - esac
  50455. - elif test "$hardcode_minus_L" = no; then
  50456. - case $host in
  50457. - *-*-sunos*) add_shlibpath="$dir" ;;
  50458. - esac
  50459. - add_dir="-L$dir"
  50460. - add="-l$name"
  50461. - elif test "$hardcode_shlibpath_var" = no; then
  50462. - add_shlibpath="$dir"
  50463. - add="-l$name"
  50464. - else
  50465. - lib_linked=no
  50466. - fi
  50467. - ;;
  50468. - relink)
  50469. - if test "$hardcode_direct" = yes; then
  50470. - add="$dir/$linklib"
  50471. - elif test "$hardcode_minus_L" = yes; then
  50472. - add_dir="-L$dir"
  50473. - # Try looking first in the location we're being installed to.
  50474. - if test -n "$inst_prefix_dir"; then
  50475. - case $libdir in
  50476. - [\\/]*)
  50477. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  50478. - ;;
  50479. - esac
  50480. - fi
  50481. - add="-l$name"
  50482. - elif test "$hardcode_shlibpath_var" = yes; then
  50483. - add_shlibpath="$dir"
  50484. - add="-l$name"
  50485. - else
  50486. - lib_linked=no
  50487. - fi
  50488. - ;;
  50489. - *) lib_linked=no ;;
  50490. - esac
  50491. - if test "$lib_linked" != yes; then
  50492. - $echo "$modename: configuration error: unsupported hardcode properties"
  50493. - exit $EXIT_FAILURE
  50494. - fi
  50495. - if test -n "$add_shlibpath"; then
  50496. - case :$compile_shlibpath: in
  50497. - *":$add_shlibpath:"*) ;;
  50498. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  50499. - esac
  50500. - fi
  50501. - if test "$linkmode" = prog; then
  50502. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  50503. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  50504. - else
  50505. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  50506. - test -n "$add" && deplibs="$add $deplibs"
  50507. - if test "$hardcode_direct" != yes && \
  50508. - test "$hardcode_minus_L" != yes && \
  50509. - test "$hardcode_shlibpath_var" = yes; then
  50510. - case :$finalize_shlibpath: in
  50511. - *":$libdir:"*) ;;
  50512. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  50513. - esac
  50514. - fi
  50515. - fi
  50516. - fi
  50517. +# func_extract_an_archive dir oldlib
  50518. +func_extract_an_archive ()
  50519. +{
  50520. + $opt_debug
  50521. + f_ex_an_ar_dir="$1"; shift
  50522. + f_ex_an_ar_oldlib="$1"
  50523. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  50524. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  50525. + :
  50526. + else
  50527. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  50528. + fi
  50529. +}
  50530. - if test "$linkmode" = prog || test "$mode" = relink; then
  50531. - add_shlibpath=
  50532. - add_dir=
  50533. - add=
  50534. - # Finalize command for both is simple: just hardcode it.
  50535. - if test "$hardcode_direct" = yes; then
  50536. - add="$libdir/$linklib"
  50537. - elif test "$hardcode_minus_L" = yes; then
  50538. - add_dir="-L$libdir"
  50539. - add="-l$name"
  50540. - elif test "$hardcode_shlibpath_var" = yes; then
  50541. - case :$finalize_shlibpath: in
  50542. - *":$libdir:"*) ;;
  50543. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  50544. - esac
  50545. - add="-l$name"
  50546. - elif test "$hardcode_automatic" = yes; then
  50547. - if test -n "$inst_prefix_dir" &&
  50548. - test -f "$inst_prefix_dir$libdir/$linklib" ; then
  50549. - add="$inst_prefix_dir$libdir/$linklib"
  50550. - else
  50551. - add="$libdir/$linklib"
  50552. - fi
  50553. - else
  50554. - # We cannot seem to hardcode it, guess we'll fake it.
  50555. - add_dir="-L$libdir"
  50556. - # Try looking first in the location we're being installed to.
  50557. - if test -n "$inst_prefix_dir"; then
  50558. - case $libdir in
  50559. - [\\/]*)
  50560. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  50561. - ;;
  50562. - esac
  50563. - fi
  50564. - add="-l$name"
  50565. - fi
  50566. - if test "$linkmode" = prog; then
  50567. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  50568. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  50569. - else
  50570. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  50571. - test -n "$add" && deplibs="$add $deplibs"
  50572. - fi
  50573. - fi
  50574. - elif test "$linkmode" = prog; then
  50575. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  50576. - # is not unsupported. This is valid on all known static and
  50577. - # shared platforms.
  50578. - if test "$hardcode_direct" != unsupported; then
  50579. - test -n "$old_library" && linklib="$old_library"
  50580. - compile_deplibs="$dir/$linklib $compile_deplibs"
  50581. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  50582. - else
  50583. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  50584. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  50585. - fi
  50586. - elif test "$build_libtool_libs" = yes; then
  50587. - # Not a shared library
  50588. - if test "$deplibs_check_method" != pass_all; then
  50589. - # We're trying link a shared library against a static one
  50590. - # but the system doesn't support it.
  50591. +# func_extract_archives gentop oldlib ...
  50592. +func_extract_archives ()
  50593. +{
  50594. + $opt_debug
  50595. + my_gentop="$1"; shift
  50596. + my_oldlibs=${1+"$@"}
  50597. + my_oldobjs=""
  50598. + my_xlib=""
  50599. + my_xabs=""
  50600. + my_xdir=""
  50601. - # Just print a warning and add the library to dependency_libs so
  50602. - # that the program can be linked against the static library.
  50603. - $echo
  50604. - $echo "*** Warning: This system can not link to static lib archive $lib."
  50605. - $echo "*** I have the capability to make that library automatically link in when"
  50606. - $echo "*** you link to this library. But I can only do this if you have a"
  50607. - $echo "*** shared version of the library, which you do not appear to have."
  50608. - if test "$module" = yes; then
  50609. - $echo "*** But as you try to build a module library, libtool will still create "
  50610. - $echo "*** a static module, that should work as long as the dlopening application"
  50611. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  50612. - if test -z "$global_symbol_pipe"; then
  50613. - $echo
  50614. - $echo "*** However, this would only work if libtool was able to extract symbol"
  50615. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  50616. - $echo "*** not find such a program. So, this module is probably useless."
  50617. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  50618. - fi
  50619. - if test "$build_old_libs" = no; then
  50620. - build_libtool_libs=module
  50621. - build_old_libs=yes
  50622. - else
  50623. - build_libtool_libs=no
  50624. - fi
  50625. - fi
  50626. + for my_xlib in $my_oldlibs; do
  50627. + # Extract the objects.
  50628. + case $my_xlib in
  50629. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  50630. + *) my_xabs=`pwd`"/$my_xlib" ;;
  50631. + esac
  50632. + func_basename "$my_xlib"
  50633. + my_xlib="$func_basename_result"
  50634. + my_xlib_u=$my_xlib
  50635. + while :; do
  50636. + case " $extracted_archives " in
  50637. + *" $my_xlib_u "*)
  50638. + func_arith $extracted_serial + 1
  50639. + extracted_serial=$func_arith_result
  50640. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  50641. + *) break ;;
  50642. + esac
  50643. + done
  50644. + extracted_archives="$extracted_archives $my_xlib_u"
  50645. + my_xdir="$my_gentop/$my_xlib_u"
  50646. +
  50647. + func_mkdir_p "$my_xdir"
  50648. +
  50649. + case $host in
  50650. + *-darwin*)
  50651. + func_verbose "Extracting $my_xabs"
  50652. + # Do not bother doing anything if just a dry run
  50653. + $opt_dry_run || {
  50654. + darwin_orig_dir=`pwd`
  50655. + cd $my_xdir || exit $?
  50656. + darwin_archive=$my_xabs
  50657. + darwin_curdir=`pwd`
  50658. + darwin_base_archive=`basename "$darwin_archive"`
  50659. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  50660. + if test -n "$darwin_arches"; then
  50661. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  50662. + darwin_arch=
  50663. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  50664. + for darwin_arch in $darwin_arches ; do
  50665. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  50666. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  50667. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  50668. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  50669. + cd "$darwin_curdir"
  50670. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  50671. + done # $darwin_arches
  50672. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  50673. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  50674. + darwin_file=
  50675. + darwin_files=
  50676. + for darwin_file in $darwin_filelist; do
  50677. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  50678. + $LIPO -create -output "$darwin_file" $darwin_files
  50679. + done # $darwin_filelist
  50680. + $RM -rf unfat-$$
  50681. + cd "$darwin_orig_dir"
  50682. else
  50683. - deplibs="$dir/$old_library $deplibs"
  50684. - link_static=yes
  50685. - fi
  50686. - fi # link shared/static library?
  50687. + cd $darwin_orig_dir
  50688. + func_extract_an_archive "$my_xdir" "$my_xabs"
  50689. + fi # $darwin_arches
  50690. + } # !$opt_dry_run
  50691. + ;;
  50692. + *)
  50693. + func_extract_an_archive "$my_xdir" "$my_xabs"
  50694. + ;;
  50695. + esac
  50696. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  50697. + done
  50698. - if test "$linkmode" = lib; then
  50699. - if test -n "$dependency_libs" &&
  50700. - { test "$hardcode_into_libs" != yes ||
  50701. - test "$build_old_libs" = yes ||
  50702. - test "$link_static" = yes; }; then
  50703. - # Extract -R from dependency_libs
  50704. - temp_deplibs=
  50705. - for libdir in $dependency_libs; do
  50706. - case $libdir in
  50707. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  50708. - case " $xrpath " in
  50709. - *" $temp_xrpath "*) ;;
  50710. - *) xrpath="$xrpath $temp_xrpath";;
  50711. - esac;;
  50712. - *) temp_deplibs="$temp_deplibs $libdir";;
  50713. - esac
  50714. - done
  50715. - dependency_libs="$temp_deplibs"
  50716. - fi
  50717. + func_extract_archives_result="$my_oldobjs"
  50718. +}
  50719. - newlib_search_path="$newlib_search_path $absdir"
  50720. - # Link against this library
  50721. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  50722. - # ... and its dependency_libs
  50723. - tmp_libs=
  50724. - for deplib in $dependency_libs; do
  50725. - newdependency_libs="$deplib $newdependency_libs"
  50726. - if test "X$duplicate_deps" = "Xyes" ; then
  50727. - case "$tmp_libs " in
  50728. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  50729. - esac
  50730. - fi
  50731. - tmp_libs="$tmp_libs $deplib"
  50732. - done
  50733. - if test "$link_all_deplibs" != no; then
  50734. - # Add the search paths of all dependency libraries
  50735. - for deplib in $dependency_libs; do
  50736. - case $deplib in
  50737. - -L*) path="$deplib" ;;
  50738. - *.la)
  50739. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  50740. - test "X$dir" = "X$deplib" && dir="."
  50741. - # We need an absolute path.
  50742. - case $dir in
  50743. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  50744. - *)
  50745. - absdir=`cd "$dir" && pwd`
  50746. - if test -z "$absdir"; then
  50747. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  50748. - absdir="$dir"
  50749. - fi
  50750. - ;;
  50751. - esac
  50752. - if grep "^installed=no" $deplib > /dev/null; then
  50753. - path="$absdir/$objdir"
  50754. - else
  50755. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  50756. - if test -z "$libdir"; then
  50757. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  50758. - exit $EXIT_FAILURE
  50759. - fi
  50760. - if test "$absdir" != "$libdir"; then
  50761. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  50762. - fi
  50763. - path="$absdir"
  50764. - fi
  50765. - depdepl=
  50766. - case $host in
  50767. - *-*-darwin*)
  50768. - # we do not want to link against static libs,
  50769. - # but need to link against shared
  50770. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  50771. - eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  50772. - if test -n "$deplibrary_names" ; then
  50773. - for tmp in $deplibrary_names ; do
  50774. - depdepl=$tmp
  50775. - done
  50776. - if test -f "$deplibdir/$depdepl" ; then
  50777. - depdepl="$deplibdir/$depdepl"
  50778. - elif test -f "$path/$depdepl" ; then
  50779. - depdepl="$path/$depdepl"
  50780. - else
  50781. - # Can't find it, oh well...
  50782. - depdepl=
  50783. - fi
  50784. - # do not add paths which are already there
  50785. - case " $newlib_search_path " in
  50786. - *" $path "*) ;;
  50787. - *) newlib_search_path="$newlib_search_path $path";;
  50788. - esac
  50789. - fi
  50790. - path=""
  50791. - ;;
  50792. - *)
  50793. - path="-L$path"
  50794. - ;;
  50795. - esac
  50796. - ;;
  50797. - -l*)
  50798. - case $host in
  50799. - *-*-darwin*)
  50800. - # Again, we only want to link against shared libraries
  50801. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  50802. - for tmp in $newlib_search_path ; do
  50803. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  50804. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  50805. - break
  50806. - fi
  50807. - done
  50808. - path=""
  50809. - ;;
  50810. - *) continue ;;
  50811. - esac
  50812. - ;;
  50813. - *) continue ;;
  50814. - esac
  50815. - case " $deplibs " in
  50816. - *" $path "*) ;;
  50817. - *) deplibs="$path $deplibs" ;;
  50818. - esac
  50819. - case " $deplibs " in
  50820. - *" $depdepl "*) ;;
  50821. - *) deplibs="$depdepl $deplibs" ;;
  50822. - esac
  50823. - done
  50824. - fi # link_all_deplibs != no
  50825. - fi # linkmode = lib
  50826. - done # for deplib in $libs
  50827. - dependency_libs="$newdependency_libs"
  50828. - if test "$pass" = dlpreopen; then
  50829. - # Link the dlpreopened libraries before other libraries
  50830. - for deplib in $save_deplibs; do
  50831. - deplibs="$deplib $deplibs"
  50832. - done
  50833. - fi
  50834. - if test "$pass" != dlopen; then
  50835. - if test "$pass" != conv; then
  50836. - # Make sure lib_search_path contains only unique directories.
  50837. - lib_search_path=
  50838. - for dir in $newlib_search_path; do
  50839. - case "$lib_search_path " in
  50840. - *" $dir "*) ;;
  50841. - *) lib_search_path="$lib_search_path $dir" ;;
  50842. - esac
  50843. - done
  50844. - newlib_search_path=
  50845. - fi
  50846. - if test "$linkmode,$pass" != "prog,link"; then
  50847. - vars="deplibs"
  50848. - else
  50849. - vars="compile_deplibs finalize_deplibs"
  50850. +# func_emit_wrapper_part1 [arg=no]
  50851. +#
  50852. +# Emit the first part of a libtool wrapper script on stdout.
  50853. +# For more information, see the description associated with
  50854. +# func_emit_wrapper(), below.
  50855. +func_emit_wrapper_part1 ()
  50856. +{
  50857. + func_emit_wrapper_part1_arg1=no
  50858. + if test -n "$1" ; then
  50859. + func_emit_wrapper_part1_arg1=$1
  50860. fi
  50861. - for var in $vars dependency_libs; do
  50862. - # Add libraries to $var in reverse order
  50863. - eval tmp_libs=\"\$$var\"
  50864. - new_libs=
  50865. - for deplib in $tmp_libs; do
  50866. - # FIXME: Pedantically, this is the right thing to do, so
  50867. - # that some nasty dependency loop isn't accidentally
  50868. - # broken:
  50869. - #new_libs="$deplib $new_libs"
  50870. - # Pragmatically, this seems to cause very few problems in
  50871. - # practice:
  50872. - case $deplib in
  50873. - -L*) new_libs="$deplib $new_libs" ;;
  50874. - -R*) ;;
  50875. - *)
  50876. - # And here is the reason: when a library appears more
  50877. - # than once as an explicit dependence of a library, or
  50878. - # is implicitly linked in more than once by the
  50879. - # compiler, it is considered special, and multiple
  50880. - # occurrences thereof are not removed. Compare this
  50881. - # with having the same library being listed as a
  50882. - # dependency of multiple other libraries: in this case,
  50883. - # we know (pedantically, we assume) the library does not
  50884. - # need to be listed more than once, so we keep only the
  50885. - # last copy. This is not always right, but it is rare
  50886. - # enough that we require users that really mean to play
  50887. - # such unportable linking tricks to link the library
  50888. - # using -Wl,-lname, so that libtool does not consider it
  50889. - # for duplicate removal.
  50890. - case " $specialdeplibs " in
  50891. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  50892. - *)
  50893. - case " $new_libs " in
  50894. - *" $deplib "*) ;;
  50895. - *) new_libs="$deplib $new_libs" ;;
  50896. - esac
  50897. - ;;
  50898. - esac
  50899. - ;;
  50900. - esac
  50901. - done
  50902. - tmp_libs=
  50903. - for deplib in $new_libs; do
  50904. - case $deplib in
  50905. - -L*)
  50906. - case " $tmp_libs " in
  50907. - *" $deplib "*) ;;
  50908. - *) tmp_libs="$tmp_libs $deplib" ;;
  50909. - esac
  50910. - ;;
  50911. - *) tmp_libs="$tmp_libs $deplib" ;;
  50912. - esac
  50913. - done
  50914. - eval $var=\"$tmp_libs\"
  50915. - done # for var
  50916. - fi
  50917. - # Last step: remove runtime libs from dependency_libs
  50918. - # (they stay in deplibs)
  50919. - tmp_libs=
  50920. - for i in $dependency_libs ; do
  50921. - case " $predeps $postdeps $compiler_lib_search_path " in
  50922. - *" $i "*)
  50923. - i=""
  50924. - ;;
  50925. - esac
  50926. - if test -n "$i" ; then
  50927. - tmp_libs="$tmp_libs $i"
  50928. - fi
  50929. - done
  50930. - dependency_libs=$tmp_libs
  50931. - done # for pass
  50932. - if test "$linkmode" = prog; then
  50933. - dlfiles="$newdlfiles"
  50934. - dlprefiles="$newdlprefiles"
  50935. +
  50936. + $ECHO "\
  50937. +#! $SHELL
  50938. +
  50939. +# $output - temporary wrapper script for $objdir/$outputname
  50940. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  50941. +#
  50942. +# The $output program cannot be directly executed until all the libtool
  50943. +# libraries that it depends on are installed.
  50944. +#
  50945. +# This wrapper script should never be moved out of the build directory.
  50946. +# If it is, it will not operate correctly.
  50947. +
  50948. +# Sed substitution that helps us do robust quoting. It backslashifies
  50949. +# metacharacters that are still active within double-quoted strings.
  50950. +Xsed='${SED} -e 1s/^X//'
  50951. +sed_quote_subst='$sed_quote_subst'
  50952. +
  50953. +# Be Bourne compatible
  50954. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  50955. + emulate sh
  50956. + NULLCMD=:
  50957. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  50958. + # is contrary to our usage. Disable this feature.
  50959. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  50960. + setopt NO_GLOB_SUBST
  50961. +else
  50962. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  50963. +fi
  50964. +BIN_SH=xpg4; export BIN_SH # for Tru64
  50965. +DUALCASE=1; export DUALCASE # for MKS sh
  50966. +
  50967. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  50968. +# if CDPATH is set.
  50969. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  50970. +
  50971. +relink_command=\"$relink_command\"
  50972. +
  50973. +# This environment variable determines our operation mode.
  50974. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  50975. + # install mode needs the following variables:
  50976. + generated_by_libtool_version='$macro_version'
  50977. + notinst_deplibs='$notinst_deplibs'
  50978. +else
  50979. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  50980. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  50981. + ECHO=\"$qecho\"
  50982. + file=\"\$0\"
  50983. + # Make sure echo works.
  50984. + if test \"X\$1\" = X--no-reexec; then
  50985. + # Discard the --no-reexec flag, and continue.
  50986. + shift
  50987. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  50988. + # Yippee, \$ECHO works!
  50989. + :
  50990. + else
  50991. + # Restart under the correct shell, and then maybe \$ECHO will work.
  50992. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  50993. fi
  50994. + fi\
  50995. +"
  50996. + $ECHO "\
  50997. - case $linkmode in
  50998. - oldlib)
  50999. - case " $deplibs" in
  51000. - *\ -l* | *\ -L*)
  51001. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
  51002. + # Find the directory that this script lives in.
  51003. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  51004. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  51005. +
  51006. + # Follow symbolic links until we get to the real thisdir.
  51007. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  51008. + while test -n \"\$file\"; do
  51009. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  51010. +
  51011. + # If there was a directory component, then change thisdir.
  51012. + if test \"x\$destdir\" != \"x\$file\"; then
  51013. + case \"\$destdir\" in
  51014. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  51015. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  51016. esac
  51017. + fi
  51018. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  51019. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  51020. - fi
  51021. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  51022. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  51023. + done
  51024. +"
  51025. +}
  51026. +# end: func_emit_wrapper_part1
  51027. - if test -n "$rpath"; then
  51028. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  51029. - fi
  51030. +# func_emit_wrapper_part2 [arg=no]
  51031. +#
  51032. +# Emit the second part of a libtool wrapper script on stdout.
  51033. +# For more information, see the description associated with
  51034. +# func_emit_wrapper(), below.
  51035. +func_emit_wrapper_part2 ()
  51036. +{
  51037. + func_emit_wrapper_part2_arg1=no
  51038. + if test -n "$1" ; then
  51039. + func_emit_wrapper_part2_arg1=$1
  51040. + fi
  51041. +
  51042. + $ECHO "\
  51043. +
  51044. + # Usually 'no', except on cygwin/mingw when embedded into
  51045. + # the cwrapper.
  51046. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  51047. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  51048. + # special case for '.'
  51049. + if test \"\$thisdir\" = \".\"; then
  51050. + thisdir=\`pwd\`
  51051. + fi
  51052. + # remove .libs from thisdir
  51053. + case \"\$thisdir\" in
  51054. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  51055. + $objdir ) thisdir=. ;;
  51056. + esac
  51057. + fi
  51058. - if test -n "$xrpath"; then
  51059. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  51060. - fi
  51061. + # Try to get the absolute directory name.
  51062. + absdir=\`cd \"\$thisdir\" && pwd\`
  51063. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  51064. +"
  51065. - if test -n "$vinfo"; then
  51066. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  51067. - fi
  51068. + if test "$fast_install" = yes; then
  51069. + $ECHO "\
  51070. + program=lt-'$outputname'$exeext
  51071. + progdir=\"\$thisdir/$objdir\"
  51072. - if test -n "$release"; then
  51073. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  51074. - fi
  51075. + if test ! -f \"\$progdir/\$program\" ||
  51076. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  51077. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  51078. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  51079. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  51080. - fi
  51081. + file=\"\$\$-\$program\"
  51082. - # Now set the variables for building old libraries.
  51083. - build_libtool_libs=no
  51084. - oldlibs="$output"
  51085. - objs="$objs$old_deplibs"
  51086. - ;;
  51087. + if test ! -d \"\$progdir\"; then
  51088. + $MKDIR \"\$progdir\"
  51089. + else
  51090. + $RM \"\$progdir/\$file\"
  51091. + fi"
  51092. - lib)
  51093. - # Make sure we only generate libraries of the form `libNAME.la'.
  51094. - case $outputname in
  51095. - lib*)
  51096. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  51097. - eval shared_ext=\"$shrext_cmds\"
  51098. - eval libname=\"$libname_spec\"
  51099. - ;;
  51100. - *)
  51101. - if test "$module" = no; then
  51102. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  51103. - $echo "$help" 1>&2
  51104. - exit $EXIT_FAILURE
  51105. - fi
  51106. - if test "$need_lib_prefix" != no; then
  51107. - # Add the "lib" prefix for modules if required
  51108. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  51109. - eval shared_ext=\"$shrext_cmds\"
  51110. - eval libname=\"$libname_spec\"
  51111. - else
  51112. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  51113. - fi
  51114. - ;;
  51115. - esac
  51116. + $ECHO "\
  51117. - if test -n "$objs"; then
  51118. - if test "$deplibs_check_method" != pass_all; then
  51119. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  51120. - exit $EXIT_FAILURE
  51121. + # relink executable if necessary
  51122. + if test -n \"\$relink_command\"; then
  51123. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  51124. + else
  51125. + $ECHO \"\$relink_command_output\" >&2
  51126. + $RM \"\$progdir/\$file\"
  51127. + exit 1
  51128. + fi
  51129. + fi
  51130. +
  51131. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  51132. + { $RM \"\$progdir/\$program\";
  51133. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  51134. + $RM \"\$progdir/\$file\"
  51135. + fi"
  51136. else
  51137. - $echo
  51138. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  51139. - $echo "*** objects $objs is not portable!"
  51140. - libobjs="$libobjs $objs"
  51141. + $ECHO "\
  51142. + program='$outputname'
  51143. + progdir=\"\$thisdir/$objdir\"
  51144. +"
  51145. fi
  51146. - fi
  51147. - if test "$dlself" != no; then
  51148. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  51149. - fi
  51150. + $ECHO "\
  51151. - set dummy $rpath
  51152. - if test "$#" -gt 2; then
  51153. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  51154. - fi
  51155. - install_libdir="$2"
  51156. + if test -f \"\$progdir/\$program\"; then"
  51157. - oldlibs=
  51158. - if test -z "$rpath"; then
  51159. - if test "$build_libtool_libs" = yes; then
  51160. - # Building a libtool convenience library.
  51161. - # Some compilers have problems with a `.al' extension so
  51162. - # convenience libraries should have the same extension an
  51163. - # archive normally would.
  51164. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  51165. - build_libtool_libs=convenience
  51166. - build_old_libs=yes
  51167. - fi
  51168. + # Export our shlibpath_var if we have one.
  51169. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  51170. + $ECHO "\
  51171. + # Add our own library path to $shlibpath_var
  51172. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  51173. - if test -n "$vinfo"; then
  51174. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  51175. + # Some systems cannot cope with colon-terminated $shlibpath_var
  51176. + # The second colon is a workaround for a bug in BeOS R4 sed
  51177. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  51178. +
  51179. + export $shlibpath_var
  51180. +"
  51181. fi
  51182. - if test -n "$release"; then
  51183. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  51184. + # fixup the dll searchpath if we need to.
  51185. + if test -n "$dllsearchpath"; then
  51186. + $ECHO "\
  51187. + # Add the dll search path components to the executable PATH
  51188. + PATH=$dllsearchpath:\$PATH
  51189. +"
  51190. fi
  51191. - else
  51192. - # Parse the version information argument.
  51193. - save_ifs="$IFS"; IFS=':'
  51194. - set dummy $vinfo 0 0 0
  51195. - IFS="$save_ifs"
  51196. + $ECHO "\
  51197. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  51198. + # Run the actual program with our arguments.
  51199. +"
  51200. + case $host in
  51201. + # Backslashes separate directories on plain windows
  51202. + *-*-mingw | *-*-os2* | *-cegcc*)
  51203. + $ECHO "\
  51204. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  51205. +"
  51206. + ;;
  51207. +
  51208. + *)
  51209. + $ECHO "\
  51210. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  51211. +"
  51212. + ;;
  51213. + esac
  51214. + $ECHO "\
  51215. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  51216. + exit 1
  51217. + fi
  51218. + else
  51219. + # The program doesn't exist.
  51220. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  51221. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  51222. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  51223. + exit 1
  51224. + fi
  51225. +fi\
  51226. +"
  51227. +}
  51228. +# end: func_emit_wrapper_part2
  51229. - if test -n "$8"; then
  51230. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  51231. - $echo "$help" 1>&2
  51232. - exit $EXIT_FAILURE
  51233. +
  51234. +# func_emit_wrapper [arg=no]
  51235. +#
  51236. +# Emit a libtool wrapper script on stdout.
  51237. +# Don't directly open a file because we may want to
  51238. +# incorporate the script contents within a cygwin/mingw
  51239. +# wrapper executable. Must ONLY be called from within
  51240. +# func_mode_link because it depends on a number of variables
  51241. +# set therein.
  51242. +#
  51243. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  51244. +# variable will take. If 'yes', then the emitted script
  51245. +# will assume that the directory in which it is stored is
  51246. +# the $objdir directory. This is a cygwin/mingw-specific
  51247. +# behavior.
  51248. +func_emit_wrapper ()
  51249. +{
  51250. + func_emit_wrapper_arg1=no
  51251. + if test -n "$1" ; then
  51252. + func_emit_wrapper_arg1=$1
  51253. fi
  51254. - # convert absolute version numbers to libtool ages
  51255. - # this retains compatibility with .la files and attempts
  51256. - # to make the code below a bit more comprehensible
  51257. + # split this up so that func_emit_cwrapperexe_src
  51258. + # can call each part independently.
  51259. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  51260. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  51261. +}
  51262. - case $vinfo_number in
  51263. - yes)
  51264. - number_major="$2"
  51265. - number_minor="$3"
  51266. - number_revision="$4"
  51267. - #
  51268. - # There are really only two kinds -- those that
  51269. - # use the current revision as the major version
  51270. - # and those that subtract age and use age as
  51271. - # a minor version. But, then there is irix
  51272. - # which has an extra 1 added just for fun
  51273. - #
  51274. - case $version_type in
  51275. - darwin|linux|osf|windows|none)
  51276. - current=`expr $number_major + $number_minor`
  51277. - age="$number_minor"
  51278. - revision="$number_revision"
  51279. - ;;
  51280. - freebsd-aout|freebsd-elf|sunos)
  51281. - current="$number_major"
  51282. - revision="$number_minor"
  51283. - age="0"
  51284. - ;;
  51285. - irix|nonstopux)
  51286. - current=`expr $number_major + $number_minor`
  51287. - age="$number_minor"
  51288. - revision="$number_minor"
  51289. - lt_irix_increment=no
  51290. - ;;
  51291. - esac
  51292. - ;;
  51293. - no)
  51294. - current="$2"
  51295. - revision="$3"
  51296. - age="$4"
  51297. - ;;
  51298. - esac
  51299. - # Check that each of the things are valid numbers.
  51300. - case $current in
  51301. - 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]) ;;
  51302. - *)
  51303. - $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
  51304. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  51305. - exit $EXIT_FAILURE
  51306. - ;;
  51307. - esac
  51308. +# func_to_host_path arg
  51309. +#
  51310. +# Convert paths to host format when used with build tools.
  51311. +# Intended for use with "native" mingw (where libtool itself
  51312. +# is running under the msys shell), or in the following cross-
  51313. +# build environments:
  51314. +# $build $host
  51315. +# mingw (msys) mingw [e.g. native]
  51316. +# cygwin mingw
  51317. +# *nix + wine mingw
  51318. +# where wine is equipped with the `winepath' executable.
  51319. +# In the native mingw case, the (msys) shell automatically
  51320. +# converts paths for any non-msys applications it launches,
  51321. +# but that facility isn't available from inside the cwrapper.
  51322. +# Similar accommodations are necessary for $host mingw and
  51323. +# $build cygwin. Calling this function does no harm for other
  51324. +# $host/$build combinations not listed above.
  51325. +#
  51326. +# ARG is the path (on $build) that should be converted to
  51327. +# the proper representation for $host. The result is stored
  51328. +# in $func_to_host_path_result.
  51329. +func_to_host_path ()
  51330. +{
  51331. + func_to_host_path_result="$1"
  51332. + if test -n "$1" ; then
  51333. + case $host in
  51334. + *mingw* )
  51335. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  51336. + case $build in
  51337. + *mingw* ) # actually, msys
  51338. + # awkward: cmd appends spaces to result
  51339. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  51340. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  51341. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  51342. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  51343. + $SED -e "$lt_sed_naive_backslashify"`
  51344. + ;;
  51345. + *cygwin* )
  51346. + func_to_host_path_tmp1=`cygpath -w "$1"`
  51347. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  51348. + $SED -e "$lt_sed_naive_backslashify"`
  51349. + ;;
  51350. + * )
  51351. + # Unfortunately, winepath does not exit with a non-zero
  51352. + # error code, so we are forced to check the contents of
  51353. + # stdout. On the other hand, if the command is not
  51354. + # found, the shell will set an exit code of 127 and print
  51355. + # *an error message* to stdout. So we must check for both
  51356. + # error code of zero AND non-empty stdout, which explains
  51357. + # the odd construction:
  51358. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  51359. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  51360. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  51361. + $SED -e "$lt_sed_naive_backslashify"`
  51362. + else
  51363. + # Allow warning below.
  51364. + func_to_host_path_result=""
  51365. + fi
  51366. + ;;
  51367. + esac
  51368. + if test -z "$func_to_host_path_result" ; then
  51369. + func_error "Could not determine host path corresponding to"
  51370. + func_error " '$1'"
  51371. + func_error "Continuing, but uninstalled executables may not work."
  51372. + # Fallback:
  51373. + func_to_host_path_result="$1"
  51374. + fi
  51375. + ;;
  51376. + esac
  51377. + fi
  51378. +}
  51379. +# end: func_to_host_path
  51380. - case $revision in
  51381. - 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]) ;;
  51382. - *)
  51383. - $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
  51384. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  51385. - exit $EXIT_FAILURE
  51386. - ;;
  51387. - esac
  51388. +# func_to_host_pathlist arg
  51389. +#
  51390. +# Convert pathlists to host format when used with build tools.
  51391. +# See func_to_host_path(), above. This function supports the
  51392. +# following $build/$host combinations (but does no harm for
  51393. +# combinations not listed here):
  51394. +# $build $host
  51395. +# mingw (msys) mingw [e.g. native]
  51396. +# cygwin mingw
  51397. +# *nix + wine mingw
  51398. +#
  51399. +# Path separators are also converted from $build format to
  51400. +# $host format. If ARG begins or ends with a path separator
  51401. +# character, it is preserved (but converted to $host format)
  51402. +# on output.
  51403. +#
  51404. +# ARG is a pathlist (on $build) that should be converted to
  51405. +# the proper representation on $host. The result is stored
  51406. +# in $func_to_host_pathlist_result.
  51407. +func_to_host_pathlist ()
  51408. +{
  51409. + func_to_host_pathlist_result="$1"
  51410. + if test -n "$1" ; then
  51411. + case $host in
  51412. + *mingw* )
  51413. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  51414. + # Remove leading and trailing path separator characters from
  51415. + # ARG. msys behavior is inconsistent here, cygpath turns them
  51416. + # into '.;' and ';.', and winepath ignores them completely.
  51417. + func_to_host_pathlist_tmp2="$1"
  51418. + # Once set for this call, this variable should not be
  51419. + # reassigned. It is used in tha fallback case.
  51420. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  51421. + $SED -e 's|^:*||' -e 's|:*$||'`
  51422. + case $build in
  51423. + *mingw* ) # Actually, msys.
  51424. + # Awkward: cmd appends spaces to result.
  51425. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  51426. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  51427. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  51428. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  51429. + $SED -e "$lt_sed_naive_backslashify"`
  51430. + ;;
  51431. + *cygwin* )
  51432. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  51433. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  51434. + $SED -e "$lt_sed_naive_backslashify"`
  51435. + ;;
  51436. + * )
  51437. + # unfortunately, winepath doesn't convert pathlists
  51438. + func_to_host_pathlist_result=""
  51439. + func_to_host_pathlist_oldIFS=$IFS
  51440. + IFS=:
  51441. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  51442. + IFS=$func_to_host_pathlist_oldIFS
  51443. + if test -n "$func_to_host_pathlist_f" ; then
  51444. + func_to_host_path "$func_to_host_pathlist_f"
  51445. + if test -n "$func_to_host_path_result" ; then
  51446. + if test -z "$func_to_host_pathlist_result" ; then
  51447. + func_to_host_pathlist_result="$func_to_host_path_result"
  51448. + else
  51449. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  51450. + fi
  51451. + fi
  51452. + fi
  51453. + IFS=:
  51454. + done
  51455. + IFS=$func_to_host_pathlist_oldIFS
  51456. + ;;
  51457. + esac
  51458. + if test -z "$func_to_host_pathlist_result" ; then
  51459. + func_error "Could not determine the host path(s) corresponding to"
  51460. + func_error " '$1'"
  51461. + func_error "Continuing, but uninstalled executables may not work."
  51462. + # Fallback. This may break if $1 contains DOS-style drive
  51463. + # specifications. The fix is not to complicate the expression
  51464. + # below, but for the user to provide a working wine installation
  51465. + # with winepath so that path translation in the cross-to-mingw
  51466. + # case works properly.
  51467. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  51468. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  51469. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  51470. + fi
  51471. + # Now, add the leading and trailing path separators back
  51472. + case "$1" in
  51473. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  51474. + ;;
  51475. + esac
  51476. + case "$1" in
  51477. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  51478. + ;;
  51479. + esac
  51480. + ;;
  51481. + esac
  51482. + fi
  51483. +}
  51484. +# end: func_to_host_pathlist
  51485. - case $age in
  51486. - 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]) ;;
  51487. - *)
  51488. - $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
  51489. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  51490. - exit $EXIT_FAILURE
  51491. - ;;
  51492. - esac
  51493. +# func_emit_cwrapperexe_src
  51494. +# emit the source code for a wrapper executable on stdout
  51495. +# Must ONLY be called from within func_mode_link because
  51496. +# it depends on a number of variable set therein.
  51497. +func_emit_cwrapperexe_src ()
  51498. +{
  51499. + cat <<EOF
  51500. - if test "$age" -gt "$current"; then
  51501. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  51502. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  51503. - exit $EXIT_FAILURE
  51504. - fi
  51505. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  51506. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  51507. - # Calculate the version variables.
  51508. - major=
  51509. - versuffix=
  51510. - verstring=
  51511. - case $version_type in
  51512. - none) ;;
  51513. + The $output program cannot be directly executed until all the libtool
  51514. + libraries that it depends on are installed.
  51515. - darwin)
  51516. - # Like Linux, but with the current version available in
  51517. - # verstring for coding it into the library header
  51518. - major=.`expr $current - $age`
  51519. - versuffix="$major.$age.$revision"
  51520. - # Darwin ld doesn't like 0 for these options...
  51521. - minor_current=`expr $current + 1`
  51522. - xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  51523. - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  51524. - ;;
  51525. + This wrapper executable should never be moved out of the build directory.
  51526. + If it is, it will not operate correctly.
  51527. - freebsd-aout)
  51528. - major=".$current"
  51529. - versuffix=".$current.$revision";
  51530. - ;;
  51531. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  51532. + but could eventually absorb all of the scripts functionality and
  51533. + exec $objdir/$outputname directly.
  51534. +*/
  51535. +EOF
  51536. + cat <<"EOF"
  51537. +#include <stdio.h>
  51538. +#include <stdlib.h>
  51539. +#ifdef _MSC_VER
  51540. +# include <direct.h>
  51541. +# include <process.h>
  51542. +# include <io.h>
  51543. +# define setmode _setmode
  51544. +#else
  51545. +# include <unistd.h>
  51546. +# include <stdint.h>
  51547. +# ifdef __CYGWIN__
  51548. +# include <io.h>
  51549. +# define HAVE_SETENV
  51550. +# ifdef __STRICT_ANSI__
  51551. +char *realpath (const char *, char *);
  51552. +int putenv (char *);
  51553. +int setenv (const char *, const char *, int);
  51554. +# endif
  51555. +# endif
  51556. +#endif
  51557. +#include <malloc.h>
  51558. +#include <stdarg.h>
  51559. +#include <assert.h>
  51560. +#include <string.h>
  51561. +#include <ctype.h>
  51562. +#include <errno.h>
  51563. +#include <fcntl.h>
  51564. +#include <sys/stat.h>
  51565. - freebsd-elf)
  51566. - major=".$current"
  51567. - versuffix=".$current";
  51568. - ;;
  51569. +#if defined(PATH_MAX)
  51570. +# define LT_PATHMAX PATH_MAX
  51571. +#elif defined(MAXPATHLEN)
  51572. +# define LT_PATHMAX MAXPATHLEN
  51573. +#else
  51574. +# define LT_PATHMAX 1024
  51575. +#endif
  51576. - irix | nonstopux)
  51577. - if test "X$lt_irix_increment" = "Xno"; then
  51578. - major=`expr $current - $age`
  51579. - else
  51580. - major=`expr $current - $age + 1`
  51581. - fi
  51582. - case $version_type in
  51583. - nonstopux) verstring_prefix=nonstopux ;;
  51584. - *) verstring_prefix=sgi ;;
  51585. - esac
  51586. - verstring="$verstring_prefix$major.$revision"
  51587. +#ifndef S_IXOTH
  51588. +# define S_IXOTH 0
  51589. +#endif
  51590. +#ifndef S_IXGRP
  51591. +# define S_IXGRP 0
  51592. +#endif
  51593. - # Add in all the interfaces that we are compatible with.
  51594. - loop=$revision
  51595. - while test "$loop" -ne 0; do
  51596. - iface=`expr $revision - $loop`
  51597. - loop=`expr $loop - 1`
  51598. - verstring="$verstring_prefix$major.$iface:$verstring"
  51599. - done
  51600. +#ifdef _MSC_VER
  51601. +# define S_IXUSR _S_IEXEC
  51602. +# define stat _stat
  51603. +# ifndef _INTPTR_T_DEFINED
  51604. +# define intptr_t int
  51605. +# endif
  51606. +#endif
  51607. - # Before this point, $major must not contain `.'.
  51608. - major=.$major
  51609. - versuffix="$major.$revision"
  51610. - ;;
  51611. +#ifndef DIR_SEPARATOR
  51612. +# define DIR_SEPARATOR '/'
  51613. +# define PATH_SEPARATOR ':'
  51614. +#endif
  51615. - linux)
  51616. - major=.`expr $current - $age`
  51617. - versuffix="$major.$age.$revision"
  51618. - ;;
  51619. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  51620. + defined (__OS2__)
  51621. +# define HAVE_DOS_BASED_FILE_SYSTEM
  51622. +# define FOPEN_WB "wb"
  51623. +# ifndef DIR_SEPARATOR_2
  51624. +# define DIR_SEPARATOR_2 '\\'
  51625. +# endif
  51626. +# ifndef PATH_SEPARATOR_2
  51627. +# define PATH_SEPARATOR_2 ';'
  51628. +# endif
  51629. +#endif
  51630. - osf)
  51631. - major=.`expr $current - $age`
  51632. - versuffix=".$current.$age.$revision"
  51633. - verstring="$current.$age.$revision"
  51634. +#ifndef DIR_SEPARATOR_2
  51635. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  51636. +#else /* DIR_SEPARATOR_2 */
  51637. +# define IS_DIR_SEPARATOR(ch) \
  51638. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  51639. +#endif /* DIR_SEPARATOR_2 */
  51640. - # Add in all the interfaces that we are compatible with.
  51641. - loop=$age
  51642. - while test "$loop" -ne 0; do
  51643. - iface=`expr $current - $loop`
  51644. - loop=`expr $loop - 1`
  51645. - verstring="$verstring:${iface}.0"
  51646. - done
  51647. +#ifndef PATH_SEPARATOR_2
  51648. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  51649. +#else /* PATH_SEPARATOR_2 */
  51650. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  51651. +#endif /* PATH_SEPARATOR_2 */
  51652. - # Make executables depend on our current version.
  51653. - verstring="$verstring:${current}.0"
  51654. - ;;
  51655. +#ifdef __CYGWIN__
  51656. +# define FOPEN_WB "wb"
  51657. +#endif
  51658. - sunos)
  51659. - major=".$current"
  51660. - versuffix=".$current.$revision"
  51661. - ;;
  51662. +#ifndef FOPEN_WB
  51663. +# define FOPEN_WB "w"
  51664. +#endif
  51665. +#ifndef _O_BINARY
  51666. +# define _O_BINARY 0
  51667. +#endif
  51668. - windows)
  51669. - # Use '-' rather than '.', since we only want one
  51670. - # extension on DOS 8.3 filesystems.
  51671. - major=`expr $current - $age`
  51672. - versuffix="-$major"
  51673. - ;;
  51674. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  51675. +#define XFREE(stale) do { \
  51676. + if (stale) { free ((void *) stale); stale = 0; } \
  51677. +} while (0)
  51678. - *)
  51679. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  51680. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  51681. - exit $EXIT_FAILURE
  51682. - ;;
  51683. - esac
  51684. +#undef LTWRAPPER_DEBUGPRINTF
  51685. +#if defined DEBUGWRAPPER
  51686. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  51687. +static void
  51688. +ltwrapper_debugprintf (const char *fmt, ...)
  51689. +{
  51690. + va_list args;
  51691. + va_start (args, fmt);
  51692. + (void) vfprintf (stderr, fmt, args);
  51693. + va_end (args);
  51694. +}
  51695. +#else
  51696. +# define LTWRAPPER_DEBUGPRINTF(args)
  51697. +#endif
  51698. - # Clear the version info if we defaulted, and they specified a release.
  51699. - if test -z "$vinfo" && test -n "$release"; then
  51700. - major=
  51701. - case $version_type in
  51702. - darwin)
  51703. - # we can't check for "0.0" in archive_cmds due to quoting
  51704. - # problems, so we reset it completely
  51705. - verstring=
  51706. - ;;
  51707. - *)
  51708. - verstring="0.0"
  51709. - ;;
  51710. - esac
  51711. - if test "$need_version" = no; then
  51712. - versuffix=
  51713. - else
  51714. - versuffix=".0.0"
  51715. - fi
  51716. - fi
  51717. +const char *program_name = NULL;
  51718. - # Remove version info from name if versioning should be avoided
  51719. - if test "$avoid_version" = yes && test "$need_version" = no; then
  51720. - major=
  51721. - versuffix=
  51722. - verstring=""
  51723. - fi
  51724. +void *xmalloc (size_t num);
  51725. +char *xstrdup (const char *string);
  51726. +const char *base_name (const char *name);
  51727. +char *find_executable (const char *wrapper);
  51728. +char *chase_symlinks (const char *pathspec);
  51729. +int make_executable (const char *path);
  51730. +int check_executable (const char *path);
  51731. +char *strendzap (char *str, const char *pat);
  51732. +void lt_fatal (const char *message, ...);
  51733. +void lt_setenv (const char *name, const char *value);
  51734. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  51735. +void lt_opt_process_env_set (const char *arg);
  51736. +void lt_opt_process_env_prepend (const char *arg);
  51737. +void lt_opt_process_env_append (const char *arg);
  51738. +int lt_split_name_value (const char *arg, char** name, char** value);
  51739. +void lt_update_exe_path (const char *name, const char *value);
  51740. +void lt_update_lib_path (const char *name, const char *value);
  51741. - # Check to see if the archive will have undefined symbols.
  51742. - if test "$allow_undefined" = yes; then
  51743. - if test "$allow_undefined_flag" = unsupported; then
  51744. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  51745. - build_libtool_libs=no
  51746. - build_old_libs=yes
  51747. - fi
  51748. - else
  51749. - # Don't allow undefined symbols.
  51750. - allow_undefined_flag="$no_undefined_flag"
  51751. - fi
  51752. - fi
  51753. +static const char *script_text_part1 =
  51754. +EOF
  51755. - if test "$mode" != relink; then
  51756. - # Remove our outputs, but don't remove object files since they
  51757. - # may have been created when compiling PIC objects.
  51758. - removelist=
  51759. - tempremovelist=`$echo "$output_objdir/*"`
  51760. - for p in $tempremovelist; do
  51761. - case $p in
  51762. - *.$objext)
  51763. - ;;
  51764. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  51765. - if test "X$precious_files_regex" != "X"; then
  51766. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  51767. - then
  51768. - continue
  51769. - fi
  51770. - fi
  51771. - removelist="$removelist $p"
  51772. - ;;
  51773. - *) ;;
  51774. - esac
  51775. - done
  51776. - if test -n "$removelist"; then
  51777. - $show "${rm}r $removelist"
  51778. - $run ${rm}r $removelist
  51779. - fi
  51780. - fi
  51781. + func_emit_wrapper_part1 yes |
  51782. + $SED -e 's/\([\\"]\)/\\\1/g' \
  51783. + -e 's/^/ "/' -e 's/$/\\n"/'
  51784. + echo ";"
  51785. + cat <<EOF
  51786. - # Now set the variables for building old libraries.
  51787. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  51788. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  51789. +static const char *script_text_part2 =
  51790. +EOF
  51791. + func_emit_wrapper_part2 yes |
  51792. + $SED -e 's/\([\\"]\)/\\\1/g' \
  51793. + -e 's/^/ "/' -e 's/$/\\n"/'
  51794. + echo ";"
  51795. +
  51796. + cat <<EOF
  51797. +const char * MAGIC_EXE = "$magic_exe";
  51798. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  51799. +EOF
  51800. - # Transform .lo files to .o files.
  51801. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  51802. - fi
  51803. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  51804. + func_to_host_pathlist "$temp_rpath"
  51805. + cat <<EOF
  51806. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  51807. +EOF
  51808. + else
  51809. + cat <<"EOF"
  51810. +const char * LIB_PATH_VALUE = "";
  51811. +EOF
  51812. + fi
  51813. - # Eliminate all temporary directories.
  51814. - #for path in $notinst_path; do
  51815. - # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
  51816. - # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
  51817. - # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
  51818. - #done
  51819. + if test -n "$dllsearchpath"; then
  51820. + func_to_host_pathlist "$dllsearchpath:"
  51821. + cat <<EOF
  51822. +const char * EXE_PATH_VARNAME = "PATH";
  51823. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  51824. +EOF
  51825. + else
  51826. + cat <<"EOF"
  51827. +const char * EXE_PATH_VARNAME = "";
  51828. +const char * EXE_PATH_VALUE = "";
  51829. +EOF
  51830. + fi
  51831. - if test -n "$xrpath"; then
  51832. - # If the user specified any rpath flags, then add them.
  51833. - temp_xrpath=
  51834. - for libdir in $xrpath; do
  51835. - temp_xrpath="$temp_xrpath -R$libdir"
  51836. - case "$finalize_rpath " in
  51837. - *" $libdir "*) ;;
  51838. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  51839. - esac
  51840. - done
  51841. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  51842. - dependency_libs="$temp_xrpath $dependency_libs"
  51843. - fi
  51844. - fi
  51845. + if test "$fast_install" = yes; then
  51846. + cat <<EOF
  51847. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  51848. +EOF
  51849. + else
  51850. + cat <<EOF
  51851. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  51852. +EOF
  51853. + fi
  51854. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  51855. - old_dlfiles="$dlfiles"
  51856. - dlfiles=
  51857. - for lib in $old_dlfiles; do
  51858. - case " $dlprefiles $dlfiles " in
  51859. - *" $lib "*) ;;
  51860. - *) dlfiles="$dlfiles $lib" ;;
  51861. - esac
  51862. - done
  51863. - # Make sure dlprefiles contains only unique files
  51864. - old_dlprefiles="$dlprefiles"
  51865. - dlprefiles=
  51866. - for lib in $old_dlprefiles; do
  51867. - case "$dlprefiles " in
  51868. - *" $lib "*) ;;
  51869. - *) dlprefiles="$dlprefiles $lib" ;;
  51870. - esac
  51871. - done
  51872. + cat <<"EOF"
  51873. - if test "$build_libtool_libs" = yes; then
  51874. - if test -n "$rpath"; then
  51875. - case $host in
  51876. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  51877. - # these systems don't actually have a c library (as such)!
  51878. - ;;
  51879. - *-*-rhapsody* | *-*-darwin1.[012])
  51880. - # Rhapsody C library is in the System framework
  51881. - deplibs="$deplibs -framework System"
  51882. - ;;
  51883. - *-*-netbsd*)
  51884. - # Don't link with libc until the a.out ld.so is fixed.
  51885. - ;;
  51886. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  51887. - # Do not include libc due to us having libc/libc_r.
  51888. - ;;
  51889. - *-*-sco3.2v5* | *-*-sco5v6*)
  51890. - # Causes problems with __ctype
  51891. - ;;
  51892. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  51893. - # Compiler inserts libc in the correct place for threads to work
  51894. - ;;
  51895. - *)
  51896. - # Add libc to deplibs on all other systems if necessary.
  51897. - if test "$build_libtool_need_lc" = "yes"; then
  51898. - deplibs="$deplibs -lc"
  51899. - fi
  51900. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  51901. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  51902. +
  51903. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  51904. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  51905. +
  51906. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  51907. +
  51908. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  51909. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  51910. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  51911. +
  51912. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  51913. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  51914. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  51915. +
  51916. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  51917. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  51918. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  51919. +
  51920. +int
  51921. +main (int argc, char *argv[])
  51922. +{
  51923. + char **newargz;
  51924. + int newargc;
  51925. + char *tmp_pathspec;
  51926. + char *actual_cwrapper_path;
  51927. + char *actual_cwrapper_name;
  51928. + char *target_name;
  51929. + char *lt_argv_zero;
  51930. + intptr_t rval = 127;
  51931. +
  51932. + int i;
  51933. +
  51934. + program_name = (char *) xstrdup (base_name (argv[0]));
  51935. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  51936. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  51937. +
  51938. + /* very simple arg parsing; don't want to rely on getopt */
  51939. + for (i = 1; i < argc; i++)
  51940. + {
  51941. + if (strcmp (argv[i], dumpscript_opt) == 0)
  51942. + {
  51943. +EOF
  51944. + case "$host" in
  51945. + *mingw* | *cygwin* )
  51946. + # make stdout use "unix" line endings
  51947. + echo " setmode(1,_O_BINARY);"
  51948. + ;;
  51949. + esac
  51950. +
  51951. + cat <<"EOF"
  51952. + printf ("%s", script_text_part1);
  51953. + printf ("%s", script_text_part2);
  51954. + return 0;
  51955. + }
  51956. + }
  51957. +
  51958. + newargz = XMALLOC (char *, argc + 1);
  51959. + tmp_pathspec = find_executable (argv[0]);
  51960. + if (tmp_pathspec == NULL)
  51961. + lt_fatal ("Couldn't find %s", argv[0]);
  51962. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  51963. + tmp_pathspec));
  51964. +
  51965. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  51966. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  51967. + actual_cwrapper_path));
  51968. + XFREE (tmp_pathspec);
  51969. +
  51970. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  51971. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  51972. +
  51973. + /* wrapper name transforms */
  51974. + strendzap (actual_cwrapper_name, ".exe");
  51975. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  51976. + XFREE (actual_cwrapper_name);
  51977. + actual_cwrapper_name = tmp_pathspec;
  51978. + tmp_pathspec = 0;
  51979. +
  51980. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  51981. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  51982. + strendzap (target_name, ".exe");
  51983. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  51984. + XFREE (target_name);
  51985. + target_name = tmp_pathspec;
  51986. + tmp_pathspec = 0;
  51987. +
  51988. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  51989. + target_name));
  51990. +EOF
  51991. +
  51992. + cat <<EOF
  51993. + newargz[0] =
  51994. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  51995. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  51996. + strcpy (newargz[0], actual_cwrapper_path);
  51997. + strcat (newargz[0], "$objdir");
  51998. + strcat (newargz[0], "/");
  51999. +EOF
  52000. +
  52001. + cat <<"EOF"
  52002. + /* stop here, and copy so we don't have to do this twice */
  52003. + tmp_pathspec = xstrdup (newargz[0]);
  52004. +
  52005. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  52006. + strcat (newargz[0], actual_cwrapper_name);
  52007. +
  52008. + /* DO want the lt- prefix here if it exists, so use target_name */
  52009. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  52010. + XFREE (tmp_pathspec);
  52011. + tmp_pathspec = NULL;
  52012. +EOF
  52013. +
  52014. + case $host_os in
  52015. + mingw*)
  52016. + cat <<"EOF"
  52017. + {
  52018. + char* p;
  52019. + while ((p = strchr (newargz[0], '\\')) != NULL)
  52020. + {
  52021. + *p = '/';
  52022. + }
  52023. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  52024. + {
  52025. + *p = '/';
  52026. + }
  52027. + }
  52028. +EOF
  52029. ;;
  52030. - esac
  52031. - fi
  52032. + esac
  52033. +
  52034. + cat <<"EOF"
  52035. + XFREE (target_name);
  52036. + XFREE (actual_cwrapper_path);
  52037. + XFREE (actual_cwrapper_name);
  52038. +
  52039. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  52040. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  52041. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  52042. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  52043. +
  52044. + newargc=0;
  52045. + for (i = 1; i < argc; i++)
  52046. + {
  52047. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  52048. + {
  52049. + if (argv[i][env_set_opt_len] == '=')
  52050. + {
  52051. + const char *p = argv[i] + env_set_opt_len + 1;
  52052. + lt_opt_process_env_set (p);
  52053. + }
  52054. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  52055. + {
  52056. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  52057. + }
  52058. + else
  52059. + lt_fatal ("%s missing required argument", env_set_opt);
  52060. + continue;
  52061. + }
  52062. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  52063. + {
  52064. + if (argv[i][env_prepend_opt_len] == '=')
  52065. + {
  52066. + const char *p = argv[i] + env_prepend_opt_len + 1;
  52067. + lt_opt_process_env_prepend (p);
  52068. + }
  52069. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  52070. + {
  52071. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  52072. + }
  52073. + else
  52074. + lt_fatal ("%s missing required argument", env_prepend_opt);
  52075. + continue;
  52076. + }
  52077. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  52078. + {
  52079. + if (argv[i][env_append_opt_len] == '=')
  52080. + {
  52081. + const char *p = argv[i] + env_append_opt_len + 1;
  52082. + lt_opt_process_env_append (p);
  52083. + }
  52084. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  52085. + {
  52086. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  52087. + }
  52088. + else
  52089. + lt_fatal ("%s missing required argument", env_append_opt);
  52090. + continue;
  52091. + }
  52092. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  52093. + {
  52094. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  52095. + namespace, but it is not one of the ones we know about and
  52096. + have already dealt with, above (inluding dump-script), then
  52097. + report an error. Otherwise, targets might begin to believe
  52098. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  52099. + namespace. The first time any user complains about this, we'll
  52100. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  52101. + or a configure.ac-settable value.
  52102. + */
  52103. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  52104. + ltwrapper_option_prefix, argv[i]);
  52105. + }
  52106. + /* otherwise ... */
  52107. + newargz[++newargc] = xstrdup (argv[i]);
  52108. + }
  52109. + newargz[++newargc] = NULL;
  52110. +
  52111. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  52112. + for (i = 0; i < newargc; i++)
  52113. + {
  52114. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  52115. + }
  52116. - # Transform deplibs into only deplibs that can be linked in shared.
  52117. - name_save=$name
  52118. - libname_save=$libname
  52119. - release_save=$release
  52120. - versuffix_save=$versuffix
  52121. - major_save=$major
  52122. - # I'm not sure if I'm treating the release correctly. I think
  52123. - # release should show up in the -l (ie -lgmp5) so we don't want to
  52124. - # add it in twice. Is that correct?
  52125. - release=""
  52126. - versuffix=""
  52127. - major=""
  52128. - newdeplibs=
  52129. - droppeddeps=no
  52130. - case $deplibs_check_method in
  52131. - pass_all)
  52132. - # Don't check for shared/static. Everything works.
  52133. - # This might be a little naive. We might want to check
  52134. - # whether the library exists or not. But this is on
  52135. - # osf3 & osf4 and I'm not really sure... Just
  52136. - # implementing what was already the behavior.
  52137. - newdeplibs=$deplibs
  52138. - ;;
  52139. - test_compile)
  52140. - # This code stresses the "libraries are programs" paradigm to its
  52141. - # limits. Maybe even breaks it. We compile a program, linking it
  52142. - # against the deplibs as a proxy for the library. Then we can check
  52143. - # whether they linked in statically or dynamically with ldd.
  52144. - $rm conftest.c
  52145. - cat > conftest.c <<EOF
  52146. - int main() { return 0; }
  52147. EOF
  52148. - $rm conftest
  52149. - if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  52150. - ldd_output=`ldd conftest`
  52151. - for i in $deplibs; do
  52152. - name=`expr $i : '-l\(.*\)'`
  52153. - # If $name is empty we are operating on a -L argument.
  52154. - if test "$name" != "" && test "$name" != "0"; then
  52155. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52156. - case " $predeps $postdeps " in
  52157. - *" $i "*)
  52158. - newdeplibs="$newdeplibs $i"
  52159. - i=""
  52160. - ;;
  52161. - esac
  52162. - fi
  52163. - if test -n "$i" ; then
  52164. - libname=`eval \\$echo \"$libname_spec\"`
  52165. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  52166. - set dummy $deplib_matches
  52167. - deplib_match=$2
  52168. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  52169. - newdeplibs="$newdeplibs $i"
  52170. - else
  52171. - droppeddeps=yes
  52172. - $echo
  52173. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  52174. - $echo "*** I have the capability to make that library automatically link in when"
  52175. - $echo "*** you link to this library. But I can only do this if you have a"
  52176. - $echo "*** shared version of the library, which I believe you do not have"
  52177. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  52178. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  52179. - fi
  52180. - fi
  52181. - else
  52182. - newdeplibs="$newdeplibs $i"
  52183. - fi
  52184. - done
  52185. - else
  52186. - # Error occurred in the first compile. Let's try to salvage
  52187. - # the situation: Compile a separate program for each library.
  52188. - for i in $deplibs; do
  52189. - name=`expr $i : '-l\(.*\)'`
  52190. - # If $name is empty we are operating on a -L argument.
  52191. - if test "$name" != "" && test "$name" != "0"; then
  52192. - $rm conftest
  52193. - if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  52194. - ldd_output=`ldd conftest`
  52195. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52196. - case " $predeps $postdeps " in
  52197. - *" $i "*)
  52198. - newdeplibs="$newdeplibs $i"
  52199. - i=""
  52200. - ;;
  52201. - esac
  52202. - fi
  52203. - if test -n "$i" ; then
  52204. - libname=`eval \\$echo \"$libname_spec\"`
  52205. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  52206. - set dummy $deplib_matches
  52207. - deplib_match=$2
  52208. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  52209. - newdeplibs="$newdeplibs $i"
  52210. - else
  52211. - droppeddeps=yes
  52212. - $echo
  52213. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  52214. - $echo "*** I have the capability to make that library automatically link in when"
  52215. - $echo "*** you link to this library. But I can only do this if you have a"
  52216. - $echo "*** shared version of the library, which you do not appear to have"
  52217. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  52218. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  52219. - fi
  52220. - fi
  52221. - else
  52222. - droppeddeps=yes
  52223. - $echo
  52224. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  52225. - $echo "*** make it link in! You will probably need to install it or some"
  52226. - $echo "*** library that it depends on before this library will be fully"
  52227. - $echo "*** functional. Installing it before continuing would be even better."
  52228. - fi
  52229. - else
  52230. - newdeplibs="$newdeplibs $i"
  52231. - fi
  52232. - done
  52233. - fi
  52234. - ;;
  52235. - file_magic*)
  52236. - set dummy $deplibs_check_method
  52237. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  52238. - for a_deplib in $deplibs; do
  52239. - name=`expr $a_deplib : '-l\(.*\)'`
  52240. - # If $name is empty we are operating on a -L argument.
  52241. - if test "$name" != "" && test "$name" != "0"; then
  52242. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52243. - case " $predeps $postdeps " in
  52244. - *" $a_deplib "*)
  52245. - newdeplibs="$newdeplibs $a_deplib"
  52246. - a_deplib=""
  52247. - ;;
  52248. - esac
  52249. - fi
  52250. - if test -n "$a_deplib" ; then
  52251. - libname=`eval \\$echo \"$libname_spec\"`
  52252. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  52253. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  52254. - for potent_lib in $potential_libs; do
  52255. - # Follow soft links.
  52256. - if ls -lLd "$potent_lib" 2>/dev/null \
  52257. - | grep " -> " >/dev/null; then
  52258. - continue
  52259. - fi
  52260. - # The statement above tries to avoid entering an
  52261. - # endless loop below, in case of cyclic links.
  52262. - # We might still enter an endless loop, since a link
  52263. - # loop can be closed while we follow links,
  52264. - # but so what?
  52265. - potlib="$potent_lib"
  52266. - while test -h "$potlib" 2>/dev/null; do
  52267. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  52268. - case $potliblink in
  52269. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  52270. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  52271. - esac
  52272. - done
  52273. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  52274. - | ${SED} 10q \
  52275. - | $EGREP "$file_magic_regex" > /dev/null; then
  52276. - newdeplibs="$newdeplibs $a_deplib"
  52277. - a_deplib=""
  52278. - break 2
  52279. - fi
  52280. - done
  52281. - done
  52282. - fi
  52283. - if test -n "$a_deplib" ; then
  52284. - droppeddeps=yes
  52285. - $echo
  52286. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  52287. - $echo "*** I have the capability to make that library automatically link in when"
  52288. - $echo "*** you link to this library. But I can only do this if you have a"
  52289. - $echo "*** shared version of the library, which you do not appear to have"
  52290. - $echo "*** because I did check the linker path looking for a file starting"
  52291. - if test -z "$potlib" ; then
  52292. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  52293. - else
  52294. - $echo "*** with $libname and none of the candidates passed a file format test"
  52295. - $echo "*** using a file magic. Last file checked: $potlib"
  52296. - fi
  52297. - fi
  52298. - else
  52299. - # Add a -L argument.
  52300. - newdeplibs="$newdeplibs $a_deplib"
  52301. - fi
  52302. - done # Gone through all deplibs.
  52303. - ;;
  52304. - match_pattern*)
  52305. - set dummy $deplibs_check_method
  52306. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  52307. - for a_deplib in $deplibs; do
  52308. - name=`expr $a_deplib : '-l\(.*\)'`
  52309. - # If $name is empty we are operating on a -L argument.
  52310. - if test -n "$name" && test "$name" != "0"; then
  52311. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52312. - case " $predeps $postdeps " in
  52313. - *" $a_deplib "*)
  52314. - newdeplibs="$newdeplibs $a_deplib"
  52315. - a_deplib=""
  52316. - ;;
  52317. - esac
  52318. - fi
  52319. - if test -n "$a_deplib" ; then
  52320. - libname=`eval \\$echo \"$libname_spec\"`
  52321. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  52322. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  52323. - for potent_lib in $potential_libs; do
  52324. - potlib="$potent_lib" # see symlink-check above in file_magic test
  52325. - if eval $echo \"$potent_lib\" 2>/dev/null \
  52326. - | ${SED} 10q \
  52327. - | $EGREP "$match_pattern_regex" > /dev/null; then
  52328. - newdeplibs="$newdeplibs $a_deplib"
  52329. - a_deplib=""
  52330. - break 2
  52331. - fi
  52332. - done
  52333. - done
  52334. - fi
  52335. - if test -n "$a_deplib" ; then
  52336. - droppeddeps=yes
  52337. - $echo
  52338. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  52339. - $echo "*** I have the capability to make that library automatically link in when"
  52340. - $echo "*** you link to this library. But I can only do this if you have a"
  52341. - $echo "*** shared version of the library, which you do not appear to have"
  52342. - $echo "*** because I did check the linker path looking for a file starting"
  52343. - if test -z "$potlib" ; then
  52344. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  52345. - else
  52346. - $echo "*** with $libname and none of the candidates passed a file format test"
  52347. - $echo "*** using a regex pattern. Last file checked: $potlib"
  52348. - fi
  52349. - fi
  52350. - else
  52351. - # Add a -L argument.
  52352. - newdeplibs="$newdeplibs $a_deplib"
  52353. - fi
  52354. - done # Gone through all deplibs.
  52355. - ;;
  52356. - none | unknown | *)
  52357. - newdeplibs=""
  52358. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  52359. - -e 's/ -[LR][^ ]*//g'`
  52360. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52361. - for i in $predeps $postdeps ; do
  52362. - # can't use Xsed below, because $i might contain '/'
  52363. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  52364. - done
  52365. - fi
  52366. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  52367. - | grep . >/dev/null; then
  52368. - $echo
  52369. - if test "X$deplibs_check_method" = "Xnone"; then
  52370. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  52371. - else
  52372. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  52373. - fi
  52374. - $echo "*** All declared inter-library dependencies are being dropped."
  52375. - droppeddeps=yes
  52376. - fi
  52377. - ;;
  52378. - esac
  52379. - versuffix=$versuffix_save
  52380. - major=$major_save
  52381. - release=$release_save
  52382. - libname=$libname_save
  52383. - name=$name_save
  52384. - case $host in
  52385. - *-*-rhapsody* | *-*-darwin1.[012])
  52386. - # On Rhapsody replace the C library is the System framework
  52387. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  52388. - ;;
  52389. - esac
  52390. + case $host_os in
  52391. + mingw*)
  52392. + cat <<"EOF"
  52393. + /* execv doesn't actually work on mingw as expected on unix */
  52394. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  52395. + if (rval == -1)
  52396. + {
  52397. + /* failed to start process */
  52398. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  52399. + return 127;
  52400. + }
  52401. + return rval;
  52402. +EOF
  52403. + ;;
  52404. + *)
  52405. + cat <<"EOF"
  52406. + execv (lt_argv_zero, newargz);
  52407. + return rval; /* =127, but avoids unused variable warning */
  52408. +EOF
  52409. + ;;
  52410. + esac
  52411. - if test "$droppeddeps" = yes; then
  52412. - if test "$module" = yes; then
  52413. - $echo
  52414. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  52415. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  52416. - $echo "*** a static module, that should work as long as the dlopening"
  52417. - $echo "*** application is linked with the -dlopen flag."
  52418. - if test -z "$global_symbol_pipe"; then
  52419. - $echo
  52420. - $echo "*** However, this would only work if libtool was able to extract symbol"
  52421. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  52422. - $echo "*** not find such a program. So, this module is probably useless."
  52423. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  52424. - fi
  52425. - if test "$build_old_libs" = no; then
  52426. - oldlibs="$output_objdir/$libname.$libext"
  52427. - build_libtool_libs=module
  52428. - build_old_libs=yes
  52429. - else
  52430. - build_libtool_libs=no
  52431. - fi
  52432. - else
  52433. - $echo "*** The inter-library dependencies that have been dropped here will be"
  52434. - $echo "*** automatically added whenever a program is linked with this library"
  52435. - $echo "*** or is declared to -dlopen it."
  52436. + cat <<"EOF"
  52437. +}
  52438. - if test "$allow_undefined" = no; then
  52439. - $echo
  52440. - $echo "*** Since this library must not contain undefined symbols,"
  52441. - $echo "*** because either the platform does not support them or"
  52442. - $echo "*** it was explicitly requested with -no-undefined,"
  52443. - $echo "*** libtool will only create a static version of it."
  52444. - if test "$build_old_libs" = no; then
  52445. - oldlibs="$output_objdir/$libname.$libext"
  52446. - build_libtool_libs=module
  52447. - build_old_libs=yes
  52448. - else
  52449. - build_libtool_libs=no
  52450. - fi
  52451. - fi
  52452. - fi
  52453. - fi
  52454. - # Done checking deplibs!
  52455. - deplibs=$newdeplibs
  52456. - fi
  52457. +void *
  52458. +xmalloc (size_t num)
  52459. +{
  52460. + void *p = (void *) malloc (num);
  52461. + if (!p)
  52462. + lt_fatal ("Memory exhausted");
  52463. + return p;
  52464. +}
  52465. - # move library search paths that coincide with paths to not yet
  52466. - # installed libraries to the beginning of the library search list
  52467. - new_libs=
  52468. - for path in $notinst_path; do
  52469. - case " $new_libs " in
  52470. - *" -L$path/$objdir "*) ;;
  52471. - *)
  52472. - case " $deplibs " in
  52473. - *" -L$path/$objdir "*)
  52474. - new_libs="$new_libs -L$path/$objdir" ;;
  52475. - esac
  52476. - ;;
  52477. - esac
  52478. - done
  52479. - for deplib in $deplibs; do
  52480. - case $deplib in
  52481. - -L*)
  52482. - case " $new_libs " in
  52483. - *" $deplib "*) ;;
  52484. - *) new_libs="$new_libs $deplib" ;;
  52485. - esac
  52486. - ;;
  52487. - *) new_libs="$new_libs $deplib" ;;
  52488. - esac
  52489. - done
  52490. - deplibs="$new_libs"
  52491. +char *
  52492. +xstrdup (const char *string)
  52493. +{
  52494. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  52495. + string) : NULL;
  52496. +}
  52497. +const char *
  52498. +base_name (const char *name)
  52499. +{
  52500. + const char *base;
  52501. - # All the library-specific variables (install_libdir is set above).
  52502. - library_names=
  52503. - old_library=
  52504. - dlname=
  52505. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  52506. + /* Skip over the disk name in MSDOS pathnames. */
  52507. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  52508. + name += 2;
  52509. +#endif
  52510. - # Test again, we may have decided not to build it any more
  52511. - if test "$build_libtool_libs" = yes; then
  52512. - if test "$hardcode_into_libs" = yes; then
  52513. - # Hardcode the library paths
  52514. - hardcode_libdirs=
  52515. - dep_rpath=
  52516. - rpath="$finalize_rpath"
  52517. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  52518. - for libdir in $rpath; do
  52519. - if test -n "$hardcode_libdir_flag_spec"; then
  52520. - if test -n "$hardcode_libdir_separator"; then
  52521. - if test -z "$hardcode_libdirs"; then
  52522. - hardcode_libdirs="$libdir"
  52523. - else
  52524. - # Just accumulate the unique libdirs.
  52525. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  52526. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  52527. - ;;
  52528. - *)
  52529. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  52530. - ;;
  52531. - esac
  52532. - fi
  52533. - else
  52534. - eval flag=\"$hardcode_libdir_flag_spec\"
  52535. - dep_rpath="$dep_rpath $flag"
  52536. - fi
  52537. - elif test -n "$runpath_var"; then
  52538. - case "$perm_rpath " in
  52539. - *" $libdir "*) ;;
  52540. - *) perm_rpath="$perm_rpath $libdir" ;;
  52541. - esac
  52542. - fi
  52543. - done
  52544. - # Substitute the hardcoded libdirs into the rpath.
  52545. - if test -n "$hardcode_libdir_separator" &&
  52546. - test -n "$hardcode_libdirs"; then
  52547. - libdir="$hardcode_libdirs"
  52548. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  52549. - case $archive_cmds in
  52550. - *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
  52551. - *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
  52552. - esac
  52553. - else
  52554. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  52555. - fi
  52556. - fi
  52557. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  52558. - # We should set the runpath_var.
  52559. - rpath=
  52560. - for dir in $perm_rpath; do
  52561. - rpath="$rpath$dir:"
  52562. - done
  52563. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  52564. - fi
  52565. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  52566. - fi
  52567. + for (base = name; *name; name++)
  52568. + if (IS_DIR_SEPARATOR (*name))
  52569. + base = name + 1;
  52570. + return base;
  52571. +}
  52572. - shlibpath="$finalize_shlibpath"
  52573. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  52574. - if test -n "$shlibpath"; then
  52575. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  52576. - fi
  52577. +int
  52578. +check_executable (const char *path)
  52579. +{
  52580. + struct stat st;
  52581. - # Get the real and link names of the library.
  52582. - eval shared_ext=\"$shrext_cmds\"
  52583. - eval library_names=\"$library_names_spec\"
  52584. - set dummy $library_names
  52585. - realname="$2"
  52586. - shift; shift
  52587. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  52588. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  52589. + if ((!path) || (!*path))
  52590. + return 0;
  52591. - if test -n "$soname_spec"; then
  52592. - eval soname=\"$soname_spec\"
  52593. - else
  52594. - soname="$realname"
  52595. - fi
  52596. - if test -z "$dlname"; then
  52597. - dlname=$soname
  52598. - fi
  52599. + if ((stat (path, &st) >= 0)
  52600. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  52601. + return 1;
  52602. + else
  52603. + return 0;
  52604. +}
  52605. - lib="$output_objdir/$realname"
  52606. - linknames=
  52607. - for link
  52608. - do
  52609. - linknames="$linknames $link"
  52610. - done
  52611. -
  52612. - # Use standard objects if they are pic
  52613. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  52614. +int
  52615. +make_executable (const char *path)
  52616. +{
  52617. + int rval = 0;
  52618. + struct stat st;
  52619. - # Prepare the list of exported symbols
  52620. - if test -z "$export_symbols"; then
  52621. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  52622. - $show "generating symbol list for \`$libname.la'"
  52623. - export_symbols="$output_objdir/$libname.exp"
  52624. - $run $rm $export_symbols
  52625. - cmds=$export_symbols_cmds
  52626. - save_ifs="$IFS"; IFS='~'
  52627. - for cmd in $cmds; do
  52628. - IFS="$save_ifs"
  52629. - eval cmd=\"$cmd\"
  52630. - if len=`expr "X$cmd" : ".*"` &&
  52631. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  52632. - $show "$cmd"
  52633. - $run eval "$cmd" || exit $?
  52634. - skipped_export=false
  52635. - else
  52636. - # The command line is too long to execute in one step.
  52637. - $show "using reloadable object file for export list..."
  52638. - skipped_export=:
  52639. - # Break out early, otherwise skipped_export may be
  52640. - # set to false by a later but shorter cmd.
  52641. - break
  52642. - fi
  52643. - done
  52644. - IFS="$save_ifs"
  52645. - if test -n "$export_symbols_regex"; then
  52646. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  52647. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  52648. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  52649. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  52650. - fi
  52651. - fi
  52652. - fi
  52653. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  52654. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  52655. + if ((!path) || (!*path))
  52656. + return 0;
  52657. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  52658. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  52659. - fi
  52660. + if (stat (path, &st) >= 0)
  52661. + {
  52662. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  52663. + }
  52664. + return rval;
  52665. +}
  52666. - tmp_deplibs=
  52667. - for test_deplib in $deplibs; do
  52668. - case " $convenience " in
  52669. - *" $test_deplib "*) ;;
  52670. - *)
  52671. - tmp_deplibs="$tmp_deplibs $test_deplib"
  52672. - ;;
  52673. - esac
  52674. - done
  52675. - deplibs="$tmp_deplibs"
  52676. +/* Searches for the full path of the wrapper. Returns
  52677. + newly allocated full path name if found, NULL otherwise
  52678. + Does not chase symlinks, even on platforms that support them.
  52679. +*/
  52680. +char *
  52681. +find_executable (const char *wrapper)
  52682. +{
  52683. + int has_slash = 0;
  52684. + const char *p;
  52685. + const char *p_next;
  52686. + /* static buffer for getcwd */
  52687. + char tmp[LT_PATHMAX + 1];
  52688. + int tmp_len;
  52689. + char *concat_name;
  52690. - if test -n "$convenience"; then
  52691. - if test -n "$whole_archive_flag_spec"; then
  52692. - save_libobjs=$libobjs
  52693. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  52694. - else
  52695. - gentop="$output_objdir/${outputname}x"
  52696. - generated="$generated $gentop"
  52697. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  52698. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  52699. - func_extract_archives $gentop $convenience
  52700. - libobjs="$libobjs $func_extract_archives_result"
  52701. - fi
  52702. - fi
  52703. -
  52704. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  52705. - eval flag=\"$thread_safe_flag_spec\"
  52706. - linker_flags="$linker_flags $flag"
  52707. - fi
  52708. + if ((wrapper == NULL) || (*wrapper == '\0'))
  52709. + return NULL;
  52710. - # Make a backup of the uninstalled library when relinking
  52711. - if test "$mode" = relink; then
  52712. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  52713. - fi
  52714. + /* Absolute path? */
  52715. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  52716. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  52717. + {
  52718. + concat_name = xstrdup (wrapper);
  52719. + if (check_executable (concat_name))
  52720. + return concat_name;
  52721. + XFREE (concat_name);
  52722. + }
  52723. + else
  52724. + {
  52725. +#endif
  52726. + if (IS_DIR_SEPARATOR (wrapper[0]))
  52727. + {
  52728. + concat_name = xstrdup (wrapper);
  52729. + if (check_executable (concat_name))
  52730. + return concat_name;
  52731. + XFREE (concat_name);
  52732. + }
  52733. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  52734. + }
  52735. +#endif
  52736. - # Do each of the archive commands.
  52737. - if test "$module" = yes && test -n "$module_cmds" ; then
  52738. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  52739. - eval test_cmds=\"$module_expsym_cmds\"
  52740. - cmds=$module_expsym_cmds
  52741. - else
  52742. - eval test_cmds=\"$module_cmds\"
  52743. - cmds=$module_cmds
  52744. - fi
  52745. - else
  52746. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  52747. - eval test_cmds=\"$archive_expsym_cmds\"
  52748. - cmds=$archive_expsym_cmds
  52749. - else
  52750. - eval test_cmds=\"$archive_cmds\"
  52751. - cmds=$archive_cmds
  52752. - fi
  52753. - fi
  52754. + for (p = wrapper; *p; p++)
  52755. + if (*p == '/')
  52756. + {
  52757. + has_slash = 1;
  52758. + break;
  52759. + }
  52760. + if (!has_slash)
  52761. + {
  52762. + /* no slashes; search PATH */
  52763. + const char *path = getenv ("PATH");
  52764. + if (path != NULL)
  52765. + {
  52766. + for (p = path; *p; p = p_next)
  52767. + {
  52768. + const char *q;
  52769. + size_t p_len;
  52770. + for (q = p; *q; q++)
  52771. + if (IS_PATH_SEPARATOR (*q))
  52772. + break;
  52773. + p_len = q - p;
  52774. + p_next = (*q == '\0' ? q : q + 1);
  52775. + if (p_len == 0)
  52776. + {
  52777. + /* empty path: current directory */
  52778. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  52779. + lt_fatal ("getcwd failed");
  52780. + tmp_len = strlen (tmp);
  52781. + concat_name =
  52782. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  52783. + memcpy (concat_name, tmp, tmp_len);
  52784. + concat_name[tmp_len] = '/';
  52785. + strcpy (concat_name + tmp_len + 1, wrapper);
  52786. + }
  52787. + else
  52788. + {
  52789. + concat_name =
  52790. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  52791. + memcpy (concat_name, p, p_len);
  52792. + concat_name[p_len] = '/';
  52793. + strcpy (concat_name + p_len + 1, wrapper);
  52794. + }
  52795. + if (check_executable (concat_name))
  52796. + return concat_name;
  52797. + XFREE (concat_name);
  52798. + }
  52799. + }
  52800. + /* not found in PATH; assume curdir */
  52801. + }
  52802. + /* Relative path | not found in path: prepend cwd */
  52803. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  52804. + lt_fatal ("getcwd failed");
  52805. + tmp_len = strlen (tmp);
  52806. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  52807. + memcpy (concat_name, tmp, tmp_len);
  52808. + concat_name[tmp_len] = '/';
  52809. + strcpy (concat_name + tmp_len + 1, wrapper);
  52810. - if test "X$skipped_export" != "X:" &&
  52811. - len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  52812. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  52813. - :
  52814. - else
  52815. - # The command line is too long to link in one step, link piecewise.
  52816. - $echo "creating reloadable object files..."
  52817. + if (check_executable (concat_name))
  52818. + return concat_name;
  52819. + XFREE (concat_name);
  52820. + return NULL;
  52821. +}
  52822. - # Save the value of $output and $libobjs because we want to
  52823. - # use them later. If we have whole_archive_flag_spec, we
  52824. - # want to use save_libobjs as it was before
  52825. - # whole_archive_flag_spec was expanded, because we can't
  52826. - # assume the linker understands whole_archive_flag_spec.
  52827. - # This may have to be revisited, in case too many
  52828. - # convenience libraries get linked in and end up exceeding
  52829. - # the spec.
  52830. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  52831. - save_libobjs=$libobjs
  52832. - fi
  52833. - save_output=$output
  52834. - output_la=`$echo "X$output" | $Xsed -e "$basename"`
  52835. +char *
  52836. +chase_symlinks (const char *pathspec)
  52837. +{
  52838. +#ifndef S_ISLNK
  52839. + return xstrdup (pathspec);
  52840. +#else
  52841. + char buf[LT_PATHMAX];
  52842. + struct stat s;
  52843. + char *tmp_pathspec = xstrdup (pathspec);
  52844. + char *p;
  52845. + int has_symlinks = 0;
  52846. + while (strlen (tmp_pathspec) && !has_symlinks)
  52847. + {
  52848. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  52849. + tmp_pathspec));
  52850. + if (lstat (tmp_pathspec, &s) == 0)
  52851. + {
  52852. + if (S_ISLNK (s.st_mode) != 0)
  52853. + {
  52854. + has_symlinks = 1;
  52855. + break;
  52856. + }
  52857. - # Clear the reloadable object creation command queue and
  52858. - # initialize k to one.
  52859. - test_cmds=
  52860. - concat_cmds=
  52861. - objlist=
  52862. - delfiles=
  52863. - last_robj=
  52864. - k=1
  52865. - output=$output_objdir/$output_la-${k}.$objext
  52866. - # Loop over the list of objects to be linked.
  52867. - for obj in $save_libobjs
  52868. - do
  52869. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  52870. - if test "X$objlist" = X ||
  52871. - { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  52872. - test "$len" -le "$max_cmd_len"; }; then
  52873. - objlist="$objlist $obj"
  52874. - else
  52875. - # The command $test_cmds is almost too long, add a
  52876. - # command to the queue.
  52877. - if test "$k" -eq 1 ; then
  52878. - # The first file doesn't have a previous command to add.
  52879. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  52880. - else
  52881. - # All subsequent reloadable object files will link in
  52882. - # the last one created.
  52883. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  52884. - fi
  52885. - last_robj=$output_objdir/$output_la-${k}.$objext
  52886. - k=`expr $k + 1`
  52887. - output=$output_objdir/$output_la-${k}.$objext
  52888. - objlist=$obj
  52889. - len=1
  52890. - fi
  52891. - done
  52892. - # Handle the remaining objects by creating one last
  52893. - # reloadable object file. All subsequent reloadable object
  52894. - # files will link in the last one created.
  52895. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  52896. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  52897. + /* search backwards for last DIR_SEPARATOR */
  52898. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  52899. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  52900. + p--;
  52901. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  52902. + {
  52903. + /* no more DIR_SEPARATORS left */
  52904. + break;
  52905. + }
  52906. + *p = '\0';
  52907. + }
  52908. + else
  52909. + {
  52910. + char *errstr = strerror (errno);
  52911. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  52912. + }
  52913. + }
  52914. + XFREE (tmp_pathspec);
  52915. - if ${skipped_export-false}; then
  52916. - $show "generating symbol list for \`$libname.la'"
  52917. - export_symbols="$output_objdir/$libname.exp"
  52918. - $run $rm $export_symbols
  52919. - libobjs=$output
  52920. - # Append the command to create the export file.
  52921. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  52922. - fi
  52923. -
  52924. - # Set up a command to remove the reloadable object files
  52925. - # after they are used.
  52926. - i=0
  52927. - while test "$i" -lt "$k"
  52928. - do
  52929. - i=`expr $i + 1`
  52930. - delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
  52931. - done
  52932. + if (!has_symlinks)
  52933. + {
  52934. + return xstrdup (pathspec);
  52935. + }
  52936. - $echo "creating a temporary reloadable object file: $output"
  52937. + tmp_pathspec = realpath (pathspec, buf);
  52938. + if (tmp_pathspec == 0)
  52939. + {
  52940. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  52941. + }
  52942. + return xstrdup (tmp_pathspec);
  52943. +#endif
  52944. +}
  52945. - # Loop through the commands generated above and execute them.
  52946. - save_ifs="$IFS"; IFS='~'
  52947. - for cmd in $concat_cmds; do
  52948. - IFS="$save_ifs"
  52949. - $show "$cmd"
  52950. - $run eval "$cmd" || exit $?
  52951. - done
  52952. - IFS="$save_ifs"
  52953. +char *
  52954. +strendzap (char *str, const char *pat)
  52955. +{
  52956. + size_t len, patlen;
  52957. - libobjs=$output
  52958. - # Restore the value of output.
  52959. - output=$save_output
  52960. + assert (str != NULL);
  52961. + assert (pat != NULL);
  52962. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  52963. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  52964. - fi
  52965. - # Expand the library linking commands again to reset the
  52966. - # value of $libobjs for piecewise linking.
  52967. + len = strlen (str);
  52968. + patlen = strlen (pat);
  52969. - # Do each of the archive commands.
  52970. - if test "$module" = yes && test -n "$module_cmds" ; then
  52971. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  52972. - cmds=$module_expsym_cmds
  52973. - else
  52974. - cmds=$module_cmds
  52975. - fi
  52976. - else
  52977. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  52978. - cmds=$archive_expsym_cmds
  52979. - else
  52980. - cmds=$archive_cmds
  52981. - fi
  52982. - fi
  52983. + if (patlen <= len)
  52984. + {
  52985. + str += len - patlen;
  52986. + if (strcmp (str, pat) == 0)
  52987. + *str = '\0';
  52988. + }
  52989. + return str;
  52990. +}
  52991. - # Append the command to remove the reloadable object files
  52992. - # to the just-reset $cmds.
  52993. - eval cmds=\"\$cmds~\$rm $delfiles\"
  52994. - fi
  52995. - save_ifs="$IFS"; IFS='~'
  52996. - for cmd in $cmds; do
  52997. - IFS="$save_ifs"
  52998. - eval cmd=\"$cmd\"
  52999. - $show "$cmd"
  53000. - $run eval "$cmd" || {
  53001. - lt_exit=$?
  53002. +static void
  53003. +lt_error_core (int exit_status, const char *mode,
  53004. + const char *message, va_list ap)
  53005. +{
  53006. + fprintf (stderr, "%s: %s: ", program_name, mode);
  53007. + vfprintf (stderr, message, ap);
  53008. + fprintf (stderr, ".\n");
  53009. - # Restore the uninstalled library and exit
  53010. - if test "$mode" = relink; then
  53011. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  53012. - fi
  53013. + if (exit_status >= 0)
  53014. + exit (exit_status);
  53015. +}
  53016. - exit $lt_exit
  53017. - }
  53018. - done
  53019. - IFS="$save_ifs"
  53020. +void
  53021. +lt_fatal (const char *message, ...)
  53022. +{
  53023. + va_list ap;
  53024. + va_start (ap, message);
  53025. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  53026. + va_end (ap);
  53027. +}
  53028. - # Restore the uninstalled library and exit
  53029. - if test "$mode" = relink; then
  53030. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  53031. +void
  53032. +lt_setenv (const char *name, const char *value)
  53033. +{
  53034. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  53035. + (name ? name : "<NULL>"),
  53036. + (value ? value : "<NULL>")));
  53037. + {
  53038. +#ifdef HAVE_SETENV
  53039. + /* always make a copy, for consistency with !HAVE_SETENV */
  53040. + char *str = xstrdup (value);
  53041. + setenv (name, str, 1);
  53042. +#else
  53043. + int len = strlen (name) + 1 + strlen (value) + 1;
  53044. + char *str = XMALLOC (char, len);
  53045. + sprintf (str, "%s=%s", name, value);
  53046. + if (putenv (str) != EXIT_SUCCESS)
  53047. + {
  53048. + XFREE (str);
  53049. + }
  53050. +#endif
  53051. + }
  53052. +}
  53053. - if test -n "$convenience"; then
  53054. - if test -z "$whole_archive_flag_spec"; then
  53055. - $show "${rm}r $gentop"
  53056. - $run ${rm}r "$gentop"
  53057. - fi
  53058. - fi
  53059. +char *
  53060. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  53061. +{
  53062. + char *new_value;
  53063. + if (orig_value && *orig_value)
  53064. + {
  53065. + int orig_value_len = strlen (orig_value);
  53066. + int add_len = strlen (add);
  53067. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  53068. + if (to_end)
  53069. + {
  53070. + strcpy (new_value, orig_value);
  53071. + strcpy (new_value + orig_value_len, add);
  53072. + }
  53073. + else
  53074. + {
  53075. + strcpy (new_value, add);
  53076. + strcpy (new_value + add_len, orig_value);
  53077. + }
  53078. + }
  53079. + else
  53080. + {
  53081. + new_value = xstrdup (add);
  53082. + }
  53083. + return new_value;
  53084. +}
  53085. - exit $EXIT_SUCCESS
  53086. - fi
  53087. +int
  53088. +lt_split_name_value (const char *arg, char** name, char** value)
  53089. +{
  53090. + const char *p;
  53091. + int len;
  53092. + if (!arg || !*arg)
  53093. + return 1;
  53094. - # Create links to the real library.
  53095. - for linkname in $linknames; do
  53096. - if test "$realname" != "$linkname"; then
  53097. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  53098. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  53099. - fi
  53100. - done
  53101. + p = strchr (arg, (int)'=');
  53102. - # If -module or -export-dynamic was specified, set the dlname.
  53103. - if test "$module" = yes || test "$export_dynamic" = yes; then
  53104. - # On all known operating systems, these are identical.
  53105. - dlname="$soname"
  53106. - fi
  53107. - fi
  53108. - ;;
  53109. + if (!p)
  53110. + return 1;
  53111. - obj)
  53112. - case " $deplibs" in
  53113. - *\ -l* | *\ -L*)
  53114. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
  53115. - esac
  53116. + *value = xstrdup (++p);
  53117. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  53118. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  53119. - fi
  53120. + len = strlen (arg) - strlen (*value);
  53121. + *name = XMALLOC (char, len);
  53122. + strncpy (*name, arg, len-1);
  53123. + (*name)[len - 1] = '\0';
  53124. - if test -n "$rpath"; then
  53125. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  53126. - fi
  53127. + return 0;
  53128. +}
  53129. - if test -n "$xrpath"; then
  53130. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  53131. - fi
  53132. +void
  53133. +lt_opt_process_env_set (const char *arg)
  53134. +{
  53135. + char *name = NULL;
  53136. + char *value = NULL;
  53137. - if test -n "$vinfo"; then
  53138. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  53139. - fi
  53140. + if (lt_split_name_value (arg, &name, &value) != 0)
  53141. + {
  53142. + XFREE (name);
  53143. + XFREE (value);
  53144. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  53145. + }
  53146. - if test -n "$release"; then
  53147. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  53148. - fi
  53149. + lt_setenv (name, value);
  53150. + XFREE (name);
  53151. + XFREE (value);
  53152. +}
  53153. - case $output in
  53154. - *.lo)
  53155. - if test -n "$objs$old_deplibs"; then
  53156. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  53157. - exit $EXIT_FAILURE
  53158. - fi
  53159. - libobj="$output"
  53160. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  53161. - ;;
  53162. - *)
  53163. - libobj=
  53164. - obj="$output"
  53165. - ;;
  53166. - esac
  53167. +void
  53168. +lt_opt_process_env_prepend (const char *arg)
  53169. +{
  53170. + char *name = NULL;
  53171. + char *value = NULL;
  53172. + char *new_value = NULL;
  53173. - # Delete the old objects.
  53174. - $run $rm $obj $libobj
  53175. + if (lt_split_name_value (arg, &name, &value) != 0)
  53176. + {
  53177. + XFREE (name);
  53178. + XFREE (value);
  53179. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  53180. + }
  53181. - # Objects from convenience libraries. This assumes
  53182. - # single-version convenience libraries. Whenever we create
  53183. - # different ones for PIC/non-PIC, this we'll have to duplicate
  53184. - # the extraction.
  53185. - reload_conv_objs=
  53186. - gentop=
  53187. - # reload_cmds runs $LD directly, so let us get rid of
  53188. - # -Wl from whole_archive_flag_spec and hope we can get by with
  53189. - # turning comma into space..
  53190. - wl=
  53191. + new_value = lt_extend_str (getenv (name), value, 0);
  53192. + lt_setenv (name, new_value);
  53193. + XFREE (new_value);
  53194. + XFREE (name);
  53195. + XFREE (value);
  53196. +}
  53197. - if test -n "$convenience"; then
  53198. - if test -n "$whole_archive_flag_spec"; then
  53199. - eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  53200. - reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  53201. - else
  53202. - gentop="$output_objdir/${obj}x"
  53203. - generated="$generated $gentop"
  53204. +void
  53205. +lt_opt_process_env_append (const char *arg)
  53206. +{
  53207. + char *name = NULL;
  53208. + char *value = NULL;
  53209. + char *new_value = NULL;
  53210. - func_extract_archives $gentop $convenience
  53211. - reload_conv_objs="$reload_objs $func_extract_archives_result"
  53212. - fi
  53213. - fi
  53214. + if (lt_split_name_value (arg, &name, &value) != 0)
  53215. + {
  53216. + XFREE (name);
  53217. + XFREE (value);
  53218. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  53219. + }
  53220. - # Create the old-style object.
  53221. - 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
  53222. + new_value = lt_extend_str (getenv (name), value, 1);
  53223. + lt_setenv (name, new_value);
  53224. + XFREE (new_value);
  53225. + XFREE (name);
  53226. + XFREE (value);
  53227. +}
  53228. - output="$obj"
  53229. - cmds=$reload_cmds
  53230. - save_ifs="$IFS"; IFS='~'
  53231. - for cmd in $cmds; do
  53232. - IFS="$save_ifs"
  53233. - eval cmd=\"$cmd\"
  53234. - $show "$cmd"
  53235. - $run eval "$cmd" || exit $?
  53236. - done
  53237. - IFS="$save_ifs"
  53238. +void
  53239. +lt_update_exe_path (const char *name, const char *value)
  53240. +{
  53241. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  53242. + (name ? name : "<NULL>"),
  53243. + (value ? value : "<NULL>")));
  53244. - # Exit if we aren't doing a library object file.
  53245. - if test -z "$libobj"; then
  53246. - if test -n "$gentop"; then
  53247. - $show "${rm}r $gentop"
  53248. - $run ${rm}r $gentop
  53249. - fi
  53250. + if (name && *name && value && *value)
  53251. + {
  53252. + char *new_value = lt_extend_str (getenv (name), value, 0);
  53253. + /* some systems can't cope with a ':'-terminated path #' */
  53254. + int len = strlen (new_value);
  53255. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  53256. + {
  53257. + new_value[len-1] = '\0';
  53258. + }
  53259. + lt_setenv (name, new_value);
  53260. + XFREE (new_value);
  53261. + }
  53262. +}
  53263. - exit $EXIT_SUCCESS
  53264. - fi
  53265. +void
  53266. +lt_update_lib_path (const char *name, const char *value)
  53267. +{
  53268. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  53269. + (name ? name : "<NULL>"),
  53270. + (value ? value : "<NULL>")));
  53271. - if test "$build_libtool_libs" != yes; then
  53272. - if test -n "$gentop"; then
  53273. - $show "${rm}r $gentop"
  53274. - $run ${rm}r $gentop
  53275. - fi
  53276. + if (name && *name && value && *value)
  53277. + {
  53278. + char *new_value = lt_extend_str (getenv (name), value, 0);
  53279. + lt_setenv (name, new_value);
  53280. + XFREE (new_value);
  53281. + }
  53282. +}
  53283. - # Create an invalid libtool object if no PIC, so that we don't
  53284. - # accidentally link it into a program.
  53285. - # $show "echo timestamp > $libobj"
  53286. - # $run eval "echo timestamp > $libobj" || exit $?
  53287. - exit $EXIT_SUCCESS
  53288. - fi
  53289. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  53290. - # Only do commands if we really have different PIC objects.
  53291. - reload_objs="$libobjs $reload_conv_objs"
  53292. - output="$libobj"
  53293. - cmds=$reload_cmds
  53294. - save_ifs="$IFS"; IFS='~'
  53295. - for cmd in $cmds; do
  53296. - IFS="$save_ifs"
  53297. - eval cmd=\"$cmd\"
  53298. - $show "$cmd"
  53299. - $run eval "$cmd" || exit $?
  53300. - done
  53301. - IFS="$save_ifs"
  53302. - fi
  53303. +EOF
  53304. +}
  53305. +# end: func_emit_cwrapperexe_src
  53306. - if test -n "$gentop"; then
  53307. - $show "${rm}r $gentop"
  53308. - $run ${rm}r $gentop
  53309. - fi
  53310. +# func_mode_link arg...
  53311. +func_mode_link ()
  53312. +{
  53313. + $opt_debug
  53314. + case $host in
  53315. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  53316. + # It is impossible to link a dll without this setting, and
  53317. + # we shouldn't force the makefile maintainer to figure out
  53318. + # which system we are compiling for in order to pass an extra
  53319. + # flag for every libtool invocation.
  53320. + # allow_undefined=no
  53321. - exit $EXIT_SUCCESS
  53322. + # FIXME: Unfortunately, there are problems with the above when trying
  53323. + # to make a dll which has undefined symbols, in which case not
  53324. + # even a static library is built. For now, we need to specify
  53325. + # -no-undefined on the libtool link line when we can be certain
  53326. + # that all symbols are satisfied, otherwise we get a static library.
  53327. + allow_undefined=yes
  53328. ;;
  53329. + *)
  53330. + allow_undefined=yes
  53331. + ;;
  53332. + esac
  53333. + libtool_args=$nonopt
  53334. + base_compile="$nonopt $@"
  53335. + compile_command=$nonopt
  53336. + finalize_command=$nonopt
  53337. - prog)
  53338. - case $host in
  53339. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  53340. - esac
  53341. - if test -n "$vinfo"; then
  53342. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  53343. - fi
  53344. -
  53345. - if test -n "$release"; then
  53346. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  53347. - fi
  53348. + compile_rpath=
  53349. + finalize_rpath=
  53350. + compile_shlibpath=
  53351. + finalize_shlibpath=
  53352. + convenience=
  53353. + old_convenience=
  53354. + deplibs=
  53355. + old_deplibs=
  53356. + compiler_flags=
  53357. + linker_flags=
  53358. + dllsearchpath=
  53359. + lib_search_path=`pwd`
  53360. + inst_prefix_dir=
  53361. + new_inherited_linker_flags=
  53362. - if test "$preload" = yes; then
  53363. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  53364. - test "$dlopen_self_static" = unknown; then
  53365. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  53366. - fi
  53367. - fi
  53368. + avoid_version=no
  53369. + dlfiles=
  53370. + dlprefiles=
  53371. + dlself=no
  53372. + export_dynamic=no
  53373. + export_symbols=
  53374. + export_symbols_regex=
  53375. + generated=
  53376. + libobjs=
  53377. + ltlibs=
  53378. + module=no
  53379. + no_install=no
  53380. + objs=
  53381. + non_pic_objects=
  53382. + precious_files_regex=
  53383. + prefer_static_libs=no
  53384. + preload=no
  53385. + prev=
  53386. + prevarg=
  53387. + release=
  53388. + rpath=
  53389. + xrpath=
  53390. + perm_rpath=
  53391. + temp_rpath=
  53392. + thread_safe=no
  53393. + vinfo=
  53394. + vinfo_number=no
  53395. + weak_libs=
  53396. + single_module="${wl}-single_module"
  53397. + func_infer_tag $base_compile
  53398. - case $host in
  53399. - *-*-rhapsody* | *-*-darwin1.[012])
  53400. - # On Rhapsody replace the C library is the System framework
  53401. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  53402. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  53403. + # We need to know -static, to get the right output filenames.
  53404. + for arg
  53405. + do
  53406. + case $arg in
  53407. + -shared)
  53408. + test "$build_libtool_libs" != yes && \
  53409. + func_fatal_configuration "can not build a shared library"
  53410. + build_old_libs=no
  53411. + break
  53412. + ;;
  53413. + -all-static | -static | -static-libtool-libs)
  53414. + case $arg in
  53415. + -all-static)
  53416. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  53417. + func_warning "complete static linking is impossible in this configuration"
  53418. + fi
  53419. + if test -n "$link_static_flag"; then
  53420. + dlopen_self=$dlopen_self_static
  53421. + fi
  53422. + prefer_static_libs=yes
  53423. + ;;
  53424. + -static)
  53425. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  53426. + dlopen_self=$dlopen_self_static
  53427. + fi
  53428. + prefer_static_libs=built
  53429. + ;;
  53430. + -static-libtool-libs)
  53431. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  53432. + dlopen_self=$dlopen_self_static
  53433. + fi
  53434. + prefer_static_libs=yes
  53435. + ;;
  53436. + esac
  53437. + build_libtool_libs=no
  53438. + build_old_libs=yes
  53439. + break
  53440. ;;
  53441. esac
  53442. + done
  53443. - case $host in
  53444. - *darwin*)
  53445. - # Don't allow lazy linking, it breaks C++ global constructors
  53446. - if test "$tagname" = CXX ; then
  53447. - compile_command="$compile_command ${wl}-bind_at_load"
  53448. - finalize_command="$finalize_command ${wl}-bind_at_load"
  53449. - fi
  53450. - ;;
  53451. - esac
  53452. + # See if our shared archives depend on static archives.
  53453. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  53454. + # Go through the arguments, transforming them on the way.
  53455. + while test "$#" -gt 0; do
  53456. + arg="$1"
  53457. + shift
  53458. + func_quote_for_eval "$arg"
  53459. + qarg=$func_quote_for_eval_unquoted_result
  53460. + func_append libtool_args " $func_quote_for_eval_result"
  53461. - # move library search paths that coincide with paths to not yet
  53462. - # installed libraries to the beginning of the library search list
  53463. - new_libs=
  53464. - for path in $notinst_path; do
  53465. - case " $new_libs " in
  53466. - *" -L$path/$objdir "*) ;;
  53467. - *)
  53468. - case " $compile_deplibs " in
  53469. - *" -L$path/$objdir "*)
  53470. - new_libs="$new_libs -L$path/$objdir" ;;
  53471. - esac
  53472. - ;;
  53473. - esac
  53474. - done
  53475. - for deplib in $compile_deplibs; do
  53476. - case $deplib in
  53477. - -L*)
  53478. - case " $new_libs " in
  53479. - *" $deplib "*) ;;
  53480. - *) new_libs="$new_libs $deplib" ;;
  53481. - esac
  53482. + # If the previous option needs an argument, assign it.
  53483. + if test -n "$prev"; then
  53484. + case $prev in
  53485. + output)
  53486. + func_append compile_command " @OUTPUT@"
  53487. + func_append finalize_command " @OUTPUT@"
  53488. ;;
  53489. - *) new_libs="$new_libs $deplib" ;;
  53490. esac
  53491. - done
  53492. - compile_deplibs="$new_libs"
  53493. -
  53494. - compile_command="$compile_command $compile_deplibs"
  53495. - finalize_command="$finalize_command $finalize_deplibs"
  53496. -
  53497. - if test -n "$rpath$xrpath"; then
  53498. - # If the user specified any rpath flags, then add them.
  53499. - for libdir in $rpath $xrpath; do
  53500. - # This is the magic to use -rpath.
  53501. - case "$finalize_rpath " in
  53502. - *" $libdir "*) ;;
  53503. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  53504. - esac
  53505. - done
  53506. - fi
  53507. -
  53508. - # Now hardcode the library paths
  53509. - rpath=
  53510. - hardcode_libdirs=
  53511. - for libdir in $compile_rpath $finalize_rpath; do
  53512. - if test -n "$hardcode_libdir_flag_spec"; then
  53513. - if test -n "$hardcode_libdir_separator"; then
  53514. - if test -z "$hardcode_libdirs"; then
  53515. - hardcode_libdirs="$libdir"
  53516. + case $prev in
  53517. + dlfiles|dlprefiles)
  53518. + if test "$preload" = no; then
  53519. + # Add the symbol object into the linking commands.
  53520. + func_append compile_command " @SYMFILE@"
  53521. + func_append finalize_command " @SYMFILE@"
  53522. + preload=yes
  53523. + fi
  53524. + case $arg in
  53525. + *.la | *.lo) ;; # We handle these cases below.
  53526. + force)
  53527. + if test "$dlself" = no; then
  53528. + dlself=needless
  53529. + export_dynamic=yes
  53530. + fi
  53531. + prev=
  53532. + continue
  53533. + ;;
  53534. + self)
  53535. + if test "$prev" = dlprefiles; then
  53536. + dlself=yes
  53537. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  53538. + dlself=yes
  53539. else
  53540. - # Just accumulate the unique libdirs.
  53541. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  53542. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  53543. - ;;
  53544. - *)
  53545. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  53546. - ;;
  53547. - esac
  53548. + dlself=needless
  53549. + export_dynamic=yes
  53550. fi
  53551. - else
  53552. - eval flag=\"$hardcode_libdir_flag_spec\"
  53553. - rpath="$rpath $flag"
  53554. - fi
  53555. - elif test -n "$runpath_var"; then
  53556. - case "$perm_rpath " in
  53557. - *" $libdir "*) ;;
  53558. - *) perm_rpath="$perm_rpath $libdir" ;;
  53559. - esac
  53560. - fi
  53561. - case $host in
  53562. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  53563. - testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
  53564. - case :$dllsearchpath: in
  53565. - *":$libdir:"*) ;;
  53566. - *) dllsearchpath="$dllsearchpath:$libdir";;
  53567. - esac
  53568. - case :$dllsearchpath: in
  53569. - *":$testbindir:"*) ;;
  53570. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  53571. + prev=
  53572. + continue
  53573. + ;;
  53574. + *)
  53575. + if test "$prev" = dlfiles; then
  53576. + dlfiles="$dlfiles $arg"
  53577. + else
  53578. + dlprefiles="$dlprefiles $arg"
  53579. + fi
  53580. + prev=
  53581. + continue
  53582. + ;;
  53583. esac
  53584. ;;
  53585. - esac
  53586. - done
  53587. - # Substitute the hardcoded libdirs into the rpath.
  53588. - if test -n "$hardcode_libdir_separator" &&
  53589. - test -n "$hardcode_libdirs"; then
  53590. - libdir="$hardcode_libdirs"
  53591. - eval rpath=\" $hardcode_libdir_flag_spec\"
  53592. - fi
  53593. - compile_rpath="$rpath"
  53594. -
  53595. - rpath=
  53596. - hardcode_libdirs=
  53597. - for libdir in $finalize_rpath; do
  53598. - if test -n "$hardcode_libdir_flag_spec"; then
  53599. - if test -n "$hardcode_libdir_separator"; then
  53600. - if test -z "$hardcode_libdirs"; then
  53601. - hardcode_libdirs="$libdir"
  53602. - else
  53603. - # Just accumulate the unique libdirs.
  53604. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  53605. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  53606. - ;;
  53607. - *)
  53608. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  53609. - ;;
  53610. + expsyms)
  53611. + export_symbols="$arg"
  53612. + test -f "$arg" \
  53613. + || func_fatal_error "symbol file \`$arg' does not exist"
  53614. + prev=
  53615. + continue
  53616. + ;;
  53617. + expsyms_regex)
  53618. + export_symbols_regex="$arg"
  53619. + prev=
  53620. + continue
  53621. + ;;
  53622. + framework)
  53623. + case $host in
  53624. + *-*-darwin*)
  53625. + case "$deplibs " in
  53626. + *" $qarg.ltframework "*) ;;
  53627. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  53628. + ;;
  53629. esac
  53630. - fi
  53631. - else
  53632. - eval flag=\"$hardcode_libdir_flag_spec\"
  53633. - rpath="$rpath $flag"
  53634. - fi
  53635. - elif test -n "$runpath_var"; then
  53636. - case "$finalize_perm_rpath " in
  53637. - *" $libdir "*) ;;
  53638. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  53639. + ;;
  53640. esac
  53641. - fi
  53642. - done
  53643. - # Substitute the hardcoded libdirs into the rpath.
  53644. - if test -n "$hardcode_libdir_separator" &&
  53645. - test -n "$hardcode_libdirs"; then
  53646. - libdir="$hardcode_libdirs"
  53647. - eval rpath=\" $hardcode_libdir_flag_spec\"
  53648. - fi
  53649. - finalize_rpath="$rpath"
  53650. -
  53651. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  53652. - # Transform all the library objects into standard objects.
  53653. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  53654. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  53655. - fi
  53656. + prev=
  53657. + continue
  53658. + ;;
  53659. + inst_prefix)
  53660. + inst_prefix_dir="$arg"
  53661. + prev=
  53662. + continue
  53663. + ;;
  53664. + objectlist)
  53665. + if test -f "$arg"; then
  53666. + save_arg=$arg
  53667. + moreargs=
  53668. + for fil in `cat "$save_arg"`
  53669. + do
  53670. +# moreargs="$moreargs $fil"
  53671. + arg=$fil
  53672. + # A libtool-controlled object.
  53673. - dlsyms=
  53674. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  53675. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  53676. - dlsyms="${outputname}S.c"
  53677. - else
  53678. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  53679. - fi
  53680. - fi
  53681. + # Check to see that this really is a libtool object.
  53682. + if func_lalib_unsafe_p "$arg"; then
  53683. + pic_object=
  53684. + non_pic_object=
  53685. - if test -n "$dlsyms"; then
  53686. - case $dlsyms in
  53687. - "") ;;
  53688. - *.c)
  53689. - # Discover the nlist of each of the dlfiles.
  53690. - nlist="$output_objdir/${outputname}.nm"
  53691. + # Read the .lo file
  53692. + func_source "$arg"
  53693. - $show "$rm $nlist ${nlist}S ${nlist}T"
  53694. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  53695. + if test -z "$pic_object" ||
  53696. + test -z "$non_pic_object" ||
  53697. + test "$pic_object" = none &&
  53698. + test "$non_pic_object" = none; then
  53699. + func_fatal_error "cannot find name of object for \`$arg'"
  53700. + fi
  53701. - # Parse the name list into a source file.
  53702. - $show "creating $output_objdir/$dlsyms"
  53703. + # Extract subdirectory from the argument.
  53704. + func_dirname "$arg" "/" ""
  53705. + xdir="$func_dirname_result"
  53706. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  53707. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  53708. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  53709. + if test "$pic_object" != none; then
  53710. + # Prepend the subdirectory the object is found in.
  53711. + pic_object="$xdir$pic_object"
  53712. -#ifdef __cplusplus
  53713. -extern \"C\" {
  53714. -#endif
  53715. + if test "$prev" = dlfiles; then
  53716. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  53717. + dlfiles="$dlfiles $pic_object"
  53718. + prev=
  53719. + continue
  53720. + else
  53721. + # If libtool objects are unsupported, then we need to preload.
  53722. + prev=dlprefiles
  53723. + fi
  53724. + fi
  53725. -/* Prevent the only kind of declaration conflicts we can make. */
  53726. -#define lt_preloaded_symbols some_other_symbol
  53727. + # CHECK ME: I think I busted this. -Ossama
  53728. + if test "$prev" = dlprefiles; then
  53729. + # Preload the old-style object.
  53730. + dlprefiles="$dlprefiles $pic_object"
  53731. + prev=
  53732. + fi
  53733. -/* External symbol declarations for the compiler. */\
  53734. -"
  53735. + # A PIC object.
  53736. + func_append libobjs " $pic_object"
  53737. + arg="$pic_object"
  53738. + fi
  53739. - if test "$dlself" = yes; then
  53740. - $show "generating symbol list for \`$output'"
  53741. + # Non-PIC object.
  53742. + if test "$non_pic_object" != none; then
  53743. + # Prepend the subdirectory the object is found in.
  53744. + non_pic_object="$xdir$non_pic_object"
  53745. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  53746. + # A standard non-PIC object
  53747. + func_append non_pic_objects " $non_pic_object"
  53748. + if test -z "$pic_object" || test "$pic_object" = none ; then
  53749. + arg="$non_pic_object"
  53750. + fi
  53751. + else
  53752. + # If the PIC object exists, use it instead.
  53753. + # $xdir was prepended to $pic_object above.
  53754. + non_pic_object="$pic_object"
  53755. + func_append non_pic_objects " $non_pic_object"
  53756. + fi
  53757. + else
  53758. + # Only an error if not doing a dry-run.
  53759. + if $opt_dry_run; then
  53760. + # Extract subdirectory from the argument.
  53761. + func_dirname "$arg" "/" ""
  53762. + xdir="$func_dirname_result"
  53763. - # Add our own program objects to the symbol list.
  53764. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  53765. - for arg in $progfiles; do
  53766. - $show "extracting global C symbols from \`$arg'"
  53767. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  53768. + func_lo2o "$arg"
  53769. + pic_object=$xdir$objdir/$func_lo2o_result
  53770. + non_pic_object=$xdir$func_lo2o_result
  53771. + func_append libobjs " $pic_object"
  53772. + func_append non_pic_objects " $non_pic_object"
  53773. + else
  53774. + func_fatal_error "\`$arg' is not a valid libtool object"
  53775. + fi
  53776. + fi
  53777. done
  53778. -
  53779. - if test -n "$exclude_expsyms"; then
  53780. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  53781. - $run eval '$mv "$nlist"T "$nlist"'
  53782. - fi
  53783. -
  53784. - if test -n "$export_symbols_regex"; then
  53785. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  53786. - $run eval '$mv "$nlist"T "$nlist"'
  53787. - fi
  53788. -
  53789. - # Prepare the list of exported symbols
  53790. - if test -z "$export_symbols"; then
  53791. - export_symbols="$output_objdir/$outputname.exp"
  53792. - $run $rm $export_symbols
  53793. - $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  53794. - case $host in
  53795. - *cygwin* | *mingw* )
  53796. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  53797. - $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  53798. - ;;
  53799. - esac
  53800. - else
  53801. - $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  53802. - $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  53803. - $run eval 'mv "$nlist"T "$nlist"'
  53804. - case $host in
  53805. - *cygwin* | *mingw* )
  53806. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  53807. - $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  53808. - ;;
  53809. - esac
  53810. - fi
  53811. + else
  53812. + func_fatal_error "link input file \`$arg' does not exist"
  53813. fi
  53814. -
  53815. - for arg in $dlprefiles; do
  53816. - $show "extracting global C symbols from \`$arg'"
  53817. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  53818. - $run eval '$echo ": $name " >> "$nlist"'
  53819. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  53820. - done
  53821. -
  53822. - if test -z "$run"; then
  53823. - # Make sure we have at least an empty file.
  53824. - test -f "$nlist" || : > "$nlist"
  53825. -
  53826. - if test -n "$exclude_expsyms"; then
  53827. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  53828. - $mv "$nlist"T "$nlist"
  53829. - fi
  53830. -
  53831. - # Try sorting and uniquifying the output.
  53832. - if grep -v "^: " < "$nlist" |
  53833. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  53834. - sort -k 3
  53835. - else
  53836. - sort +2
  53837. - fi |
  53838. - uniq > "$nlist"S; then
  53839. - :
  53840. - else
  53841. - grep -v "^: " < "$nlist" > "$nlist"S
  53842. - fi
  53843. -
  53844. - if test -f "$nlist"S; then
  53845. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  53846. - else
  53847. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  53848. - fi
  53849. -
  53850. - $echo >> "$output_objdir/$dlsyms" "\
  53851. -
  53852. -#undef lt_preloaded_symbols
  53853. -
  53854. -#if defined (__STDC__) && __STDC__
  53855. -# define lt_ptr void *
  53856. -#else
  53857. -# define lt_ptr char *
  53858. -# define const
  53859. -#endif
  53860. -
  53861. -/* The mapping between symbol names and symbols. */
  53862. -"
  53863. -
  53864. - case $host in
  53865. - *cygwin* | *mingw* )
  53866. - $echo >> "$output_objdir/$dlsyms" "\
  53867. -/* DATA imports from DLLs on WIN32 can't be const, because
  53868. - runtime relocations are performed -- see ld's documentation
  53869. - on pseudo-relocs */
  53870. -struct {
  53871. -"
  53872. - ;;
  53873. - * )
  53874. - $echo >> "$output_objdir/$dlsyms" "\
  53875. -const struct {
  53876. -"
  53877. - ;;
  53878. - esac
  53879. -
  53880. -
  53881. - $echo >> "$output_objdir/$dlsyms" "\
  53882. - const char *name;
  53883. - lt_ptr address;
  53884. -}
  53885. -lt_preloaded_symbols[] =
  53886. -{\
  53887. -"
  53888. -
  53889. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  53890. -
  53891. - $echo >> "$output_objdir/$dlsyms" "\
  53892. - {0, (lt_ptr) 0}
  53893. -};
  53894. -
  53895. -/* This works around a problem in FreeBSD linker */
  53896. -#ifdef FREEBSD_WORKAROUND
  53897. -static const void *lt_preloaded_setup() {
  53898. - return lt_preloaded_symbols;
  53899. -}
  53900. -#endif
  53901. -
  53902. -#ifdef __cplusplus
  53903. -}
  53904. -#endif\
  53905. -"
  53906. - fi
  53907. -
  53908. - pic_flag_for_symtable=
  53909. - case $host in
  53910. - # compiling the symbol table file with pic_flag works around
  53911. - # a FreeBSD bug that causes programs to crash when -lm is
  53912. - # linked before any other PIC object. But we must not use
  53913. - # pic_flag when linking with -static. The problem exists in
  53914. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  53915. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  53916. - case "$compile_command " in
  53917. - *" -static "*) ;;
  53918. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  53919. - esac;;
  53920. - *-*-hpux*)
  53921. - case "$compile_command " in
  53922. - *" -static "*) ;;
  53923. - *) pic_flag_for_symtable=" $pic_flag";;
  53924. - esac
  53925. + arg=$save_arg
  53926. + prev=
  53927. + continue
  53928. + ;;
  53929. + precious_regex)
  53930. + precious_files_regex="$arg"
  53931. + prev=
  53932. + continue
  53933. + ;;
  53934. + release)
  53935. + release="-$arg"
  53936. + prev=
  53937. + continue
  53938. + ;;
  53939. + rpath | xrpath)
  53940. + # We need an absolute path.
  53941. + case $arg in
  53942. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  53943. + *)
  53944. + func_fatal_error "only absolute run-paths are allowed"
  53945. + ;;
  53946. esac
  53947. -
  53948. - # Now compile the dynamic symbol file.
  53949. - $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  53950. - $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  53951. -
  53952. - # Clean up the generated files.
  53953. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  53954. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  53955. -
  53956. - # Transform the symbol file into the correct name.
  53957. - case $host in
  53958. - *cygwin* | *mingw* )
  53959. - if test -f "$output_objdir/${outputname}.def" ; then
  53960. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
  53961. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
  53962. - else
  53963. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  53964. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  53965. - fi
  53966. - ;;
  53967. - * )
  53968. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  53969. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  53970. - ;;
  53971. - esac
  53972. + if test "$prev" = rpath; then
  53973. + case "$rpath " in
  53974. + *" $arg "*) ;;
  53975. + *) rpath="$rpath $arg" ;;
  53976. + esac
  53977. + else
  53978. + case "$xrpath " in
  53979. + *" $arg "*) ;;
  53980. + *) xrpath="$xrpath $arg" ;;
  53981. + esac
  53982. + fi
  53983. + prev=
  53984. + continue
  53985. + ;;
  53986. + shrext)
  53987. + shrext_cmds="$arg"
  53988. + prev=
  53989. + continue
  53990. + ;;
  53991. + weak)
  53992. + weak_libs="$weak_libs $arg"
  53993. + prev=
  53994. + continue
  53995. + ;;
  53996. + xcclinker)
  53997. + linker_flags="$linker_flags $qarg"
  53998. + compiler_flags="$compiler_flags $qarg"
  53999. + prev=
  54000. + func_append compile_command " $qarg"
  54001. + func_append finalize_command " $qarg"
  54002. + continue
  54003. + ;;
  54004. + xcompiler)
  54005. + compiler_flags="$compiler_flags $qarg"
  54006. + prev=
  54007. + func_append compile_command " $qarg"
  54008. + func_append finalize_command " $qarg"
  54009. + continue
  54010. + ;;
  54011. + xlinker)
  54012. + linker_flags="$linker_flags $qarg"
  54013. + compiler_flags="$compiler_flags $wl$qarg"
  54014. + prev=
  54015. + func_append compile_command " $wl$qarg"
  54016. + func_append finalize_command " $wl$qarg"
  54017. + continue
  54018. ;;
  54019. *)
  54020. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  54021. - exit $EXIT_FAILURE
  54022. + eval "$prev=\"\$arg\""
  54023. + prev=
  54024. + continue
  54025. ;;
  54026. esac
  54027. - else
  54028. - # We keep going just in case the user didn't refer to
  54029. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  54030. - # really was required.
  54031. -
  54032. - # Nullify the symbol file.
  54033. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
  54034. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
  54035. - fi
  54036. -
  54037. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  54038. - # Replace the output file specification.
  54039. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
  54040. - link_command="$compile_command$compile_rpath"
  54041. + fi # test -n "$prev"
  54042. - # We have no uninstalled library dependencies, so finalize right now.
  54043. - $show "$link_command"
  54044. - $run eval "$link_command"
  54045. - exit_status=$?
  54046. + prevarg="$arg"
  54047. - # Delete the generated files.
  54048. - if test -n "$dlsyms"; then
  54049. - $show "$rm $output_objdir/${outputname}S.${objext}"
  54050. - $run $rm "$output_objdir/${outputname}S.${objext}"
  54051. + case $arg in
  54052. + -all-static)
  54053. + if test -n "$link_static_flag"; then
  54054. + # See comment for -static flag below, for more details.
  54055. + func_append compile_command " $link_static_flag"
  54056. + func_append finalize_command " $link_static_flag"
  54057. fi
  54058. + continue
  54059. + ;;
  54060. - exit $exit_status
  54061. - fi
  54062. -
  54063. - if test -n "$shlibpath_var"; then
  54064. - # We should set the shlibpath_var
  54065. - rpath=
  54066. - for dir in $temp_rpath; do
  54067. - case $dir in
  54068. - [\\/]* | [A-Za-z]:[\\/]*)
  54069. - # Absolute path.
  54070. - rpath="$rpath$dir:"
  54071. - ;;
  54072. - *)
  54073. - # Relative path: add a thisdir entry.
  54074. - rpath="$rpath\$thisdir/$dir:"
  54075. - ;;
  54076. - esac
  54077. - done
  54078. - temp_rpath="$rpath"
  54079. - fi
  54080. + -allow-undefined)
  54081. + # FIXME: remove this flag sometime in the future.
  54082. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  54083. + ;;
  54084. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  54085. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  54086. - fi
  54087. - if test -n "$finalize_shlibpath"; then
  54088. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  54089. - fi
  54090. + -avoid-version)
  54091. + avoid_version=yes
  54092. + continue
  54093. + ;;
  54094. - compile_var=
  54095. - finalize_var=
  54096. - if test -n "$runpath_var"; then
  54097. - if test -n "$perm_rpath"; then
  54098. - # We should set the runpath_var.
  54099. - rpath=
  54100. - for dir in $perm_rpath; do
  54101. - rpath="$rpath$dir:"
  54102. - done
  54103. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  54104. - fi
  54105. - if test -n "$finalize_perm_rpath"; then
  54106. - # We should set the runpath_var.
  54107. - rpath=
  54108. - for dir in $finalize_perm_rpath; do
  54109. - rpath="$rpath$dir:"
  54110. - done
  54111. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  54112. - fi
  54113. - fi
  54114. + -dlopen)
  54115. + prev=dlfiles
  54116. + continue
  54117. + ;;
  54118. - if test "$no_install" = yes; then
  54119. - # We don't need to create a wrapper script.
  54120. - link_command="$compile_var$compile_command$compile_rpath"
  54121. - # Replace the output file specification.
  54122. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  54123. - # Delete the old output file.
  54124. - $run $rm $output
  54125. - # Link the executable and exit
  54126. - $show "$link_command"
  54127. - $run eval "$link_command" || exit $?
  54128. - exit $EXIT_SUCCESS
  54129. - fi
  54130. + -dlpreopen)
  54131. + prev=dlprefiles
  54132. + continue
  54133. + ;;
  54134. - if test "$hardcode_action" = relink; then
  54135. - # Fast installation is not supported
  54136. - link_command="$compile_var$compile_command$compile_rpath"
  54137. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  54138. + -export-dynamic)
  54139. + export_dynamic=yes
  54140. + continue
  54141. + ;;
  54142. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  54143. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  54144. - else
  54145. - if test "$fast_install" != no; then
  54146. - link_command="$finalize_var$compile_command$finalize_rpath"
  54147. - if test "$fast_install" = yes; then
  54148. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
  54149. - else
  54150. - # fast_install is set to needless
  54151. - relink_command=
  54152. - fi
  54153. + -export-symbols | -export-symbols-regex)
  54154. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  54155. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  54156. + fi
  54157. + if test "X$arg" = "X-export-symbols"; then
  54158. + prev=expsyms
  54159. else
  54160. - link_command="$compile_var$compile_command$compile_rpath"
  54161. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  54162. + prev=expsyms_regex
  54163. fi
  54164. - fi
  54165. -
  54166. - # Replace the output file specification.
  54167. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  54168. + continue
  54169. + ;;
  54170. - # Delete the old output files.
  54171. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  54172. + -framework)
  54173. + prev=framework
  54174. + continue
  54175. + ;;
  54176. - $show "$link_command"
  54177. - $run eval "$link_command" || exit $?
  54178. + -inst-prefix-dir)
  54179. + prev=inst_prefix
  54180. + continue
  54181. + ;;
  54182. - # Now create the wrapper script.
  54183. - $show "creating $output"
  54184. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  54185. + # so, if we see these flags be careful not to treat them like -L
  54186. + -L[A-Z][A-Z]*:*)
  54187. + case $with_gcc/$host in
  54188. + no/*-*-irix* | /*-*-irix*)
  54189. + func_append compile_command " $arg"
  54190. + func_append finalize_command " $arg"
  54191. + ;;
  54192. + esac
  54193. + continue
  54194. + ;;
  54195. - # Quote the relink command for shipping.
  54196. - if test -n "$relink_command"; then
  54197. - # Preserve any variables that may affect compiler behavior
  54198. - for var in $variables_saved_for_relink; do
  54199. - if eval test -z \"\${$var+set}\"; then
  54200. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  54201. - elif eval var_value=\$$var; test -z "$var_value"; then
  54202. - relink_command="$var=; export $var; $relink_command"
  54203. + -L*)
  54204. + func_stripname '-L' '' "$arg"
  54205. + dir=$func_stripname_result
  54206. + if test -z "$dir"; then
  54207. + if test "$#" -gt 0; then
  54208. + func_fatal_error "require no space between \`-L' and \`$1'"
  54209. else
  54210. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  54211. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  54212. + func_fatal_error "need path for \`-L' option"
  54213. fi
  54214. - done
  54215. - relink_command="(cd `pwd`; $relink_command)"
  54216. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
  54217. - fi
  54218. -
  54219. - # Quote $echo for shipping.
  54220. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  54221. - case $progpath in
  54222. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  54223. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  54224. + fi
  54225. + # We need an absolute path.
  54226. + case $dir in
  54227. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  54228. + *)
  54229. + absdir=`cd "$dir" && pwd`
  54230. + test -z "$absdir" && \
  54231. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  54232. + dir="$absdir"
  54233. + ;;
  54234. esac
  54235. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  54236. - else
  54237. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  54238. - fi
  54239. -
  54240. - # Only actually do things if our run command is non-null.
  54241. - if test -z "$run"; then
  54242. - # win32 will think the script is a binary if it has
  54243. - # a .exe suffix, so we strip it off here.
  54244. - case $output in
  54245. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  54246. + case "$deplibs " in
  54247. + *" -L$dir "*) ;;
  54248. + *)
  54249. + deplibs="$deplibs -L$dir"
  54250. + lib_search_path="$lib_search_path $dir"
  54251. + ;;
  54252. esac
  54253. - # test for cygwin because mv fails w/o .exe extensions
  54254. case $host in
  54255. - *cygwin*)
  54256. - exeext=.exe
  54257. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  54258. - *) exeext= ;;
  54259. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  54260. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  54261. + case :$dllsearchpath: in
  54262. + *":$dir:"*) ;;
  54263. + ::) dllsearchpath=$dir;;
  54264. + *) dllsearchpath="$dllsearchpath:$dir";;
  54265. + esac
  54266. + case :$dllsearchpath: in
  54267. + *":$testbindir:"*) ;;
  54268. + ::) dllsearchpath=$testbindir;;
  54269. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  54270. + esac
  54271. + ;;
  54272. esac
  54273. - case $host in
  54274. - *cygwin* | *mingw* )
  54275. - output_name=`basename $output`
  54276. - output_path=`dirname $output`
  54277. - cwrappersource="$output_path/$objdir/lt-$output_name.c"
  54278. - cwrapper="$output_path/$output_name.exe"
  54279. - $rm $cwrappersource $cwrapper
  54280. - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  54281. -
  54282. - cat > $cwrappersource <<EOF
  54283. + continue
  54284. + ;;
  54285. -/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  54286. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  54287. + -l*)
  54288. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  54289. + case $host in
  54290. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  54291. + # These systems don't actually have a C or math library (as such)
  54292. + continue
  54293. + ;;
  54294. + *-*-os2*)
  54295. + # These systems don't actually have a C library (as such)
  54296. + test "X$arg" = "X-lc" && continue
  54297. + ;;
  54298. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  54299. + # Do not include libc due to us having libc/libc_r.
  54300. + test "X$arg" = "X-lc" && continue
  54301. + ;;
  54302. + *-*-rhapsody* | *-*-darwin1.[012])
  54303. + # Rhapsody C and math libraries are in the System framework
  54304. + deplibs="$deplibs System.ltframework"
  54305. + continue
  54306. + ;;
  54307. + *-*-sco3.2v5* | *-*-sco5v6*)
  54308. + # Causes problems with __ctype
  54309. + test "X$arg" = "X-lc" && continue
  54310. + ;;
  54311. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  54312. + # Compiler inserts libc in the correct place for threads to work
  54313. + test "X$arg" = "X-lc" && continue
  54314. + ;;
  54315. + esac
  54316. + elif test "X$arg" = "X-lc_r"; then
  54317. + case $host in
  54318. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  54319. + # Do not include libc_r directly, use -pthread flag.
  54320. + continue
  54321. + ;;
  54322. + esac
  54323. + fi
  54324. + deplibs="$deplibs $arg"
  54325. + continue
  54326. + ;;
  54327. - The $output program cannot be directly executed until all the libtool
  54328. - libraries that it depends on are installed.
  54329. + -module)
  54330. + module=yes
  54331. + continue
  54332. + ;;
  54333. - This wrapper executable should never be moved out of the build directory.
  54334. - If it is, it will not operate correctly.
  54335. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  54336. + # classes, name mangling, and exception handling.
  54337. + # Darwin uses the -arch flag to determine output architecture.
  54338. + -model|-arch|-isysroot)
  54339. + compiler_flags="$compiler_flags $arg"
  54340. + func_append compile_command " $arg"
  54341. + func_append finalize_command " $arg"
  54342. + prev=xcompiler
  54343. + continue
  54344. + ;;
  54345. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  54346. - but could eventually absorb all of the scripts functionality and
  54347. - exec $objdir/$outputname directly.
  54348. -*/
  54349. -EOF
  54350. - cat >> $cwrappersource<<"EOF"
  54351. -#include <stdio.h>
  54352. -#include <stdlib.h>
  54353. -#include <unistd.h>
  54354. -#include <malloc.h>
  54355. -#include <stdarg.h>
  54356. -#include <assert.h>
  54357. -#include <string.h>
  54358. -#include <ctype.h>
  54359. -#include <sys/stat.h>
  54360. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  54361. + compiler_flags="$compiler_flags $arg"
  54362. + func_append compile_command " $arg"
  54363. + func_append finalize_command " $arg"
  54364. + case "$new_inherited_linker_flags " in
  54365. + *" $arg "*) ;;
  54366. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  54367. + esac
  54368. + continue
  54369. + ;;
  54370. -#if defined(PATH_MAX)
  54371. -# define LT_PATHMAX PATH_MAX
  54372. -#elif defined(MAXPATHLEN)
  54373. -# define LT_PATHMAX MAXPATHLEN
  54374. -#else
  54375. -# define LT_PATHMAX 1024
  54376. -#endif
  54377. + -multi_module)
  54378. + single_module="${wl}-multi_module"
  54379. + continue
  54380. + ;;
  54381. -#ifndef DIR_SEPARATOR
  54382. -# define DIR_SEPARATOR '/'
  54383. -# define PATH_SEPARATOR ':'
  54384. -#endif
  54385. + -no-fast-install)
  54386. + fast_install=no
  54387. + continue
  54388. + ;;
  54389. -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  54390. - defined (__OS2__)
  54391. -# define HAVE_DOS_BASED_FILE_SYSTEM
  54392. -# ifndef DIR_SEPARATOR_2
  54393. -# define DIR_SEPARATOR_2 '\\'
  54394. -# endif
  54395. -# ifndef PATH_SEPARATOR_2
  54396. -# define PATH_SEPARATOR_2 ';'
  54397. -# endif
  54398. -#endif
  54399. + -no-install)
  54400. + case $host in
  54401. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  54402. + # The PATH hackery in wrapper scripts is required on Windows
  54403. + # and Darwin in order for the loader to find any dlls it needs.
  54404. + func_warning "\`-no-install' is ignored for $host"
  54405. + func_warning "assuming \`-no-fast-install' instead"
  54406. + fast_install=no
  54407. + ;;
  54408. + *) no_install=yes ;;
  54409. + esac
  54410. + continue
  54411. + ;;
  54412. -#ifndef DIR_SEPARATOR_2
  54413. -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  54414. -#else /* DIR_SEPARATOR_2 */
  54415. -# define IS_DIR_SEPARATOR(ch) \
  54416. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  54417. -#endif /* DIR_SEPARATOR_2 */
  54418. + -no-undefined)
  54419. + allow_undefined=no
  54420. + continue
  54421. + ;;
  54422. -#ifndef PATH_SEPARATOR_2
  54423. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  54424. -#else /* PATH_SEPARATOR_2 */
  54425. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  54426. -#endif /* PATH_SEPARATOR_2 */
  54427. + -objectlist)
  54428. + prev=objectlist
  54429. + continue
  54430. + ;;
  54431. -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  54432. -#define XFREE(stale) do { \
  54433. - if (stale) { free ((void *) stale); stale = 0; } \
  54434. -} while (0)
  54435. + -o) prev=output ;;
  54436. -/* -DDEBUG is fairly common in CFLAGS. */
  54437. -#undef DEBUG
  54438. -#if defined DEBUGWRAPPER
  54439. -# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
  54440. -#else
  54441. -# define DEBUG(format, ...)
  54442. -#endif
  54443. + -precious-files-regex)
  54444. + prev=precious_regex
  54445. + continue
  54446. + ;;
  54447. -const char *program_name = NULL;
  54448. + -release)
  54449. + prev=release
  54450. + continue
  54451. + ;;
  54452. -void * xmalloc (size_t num);
  54453. -char * xstrdup (const char *string);
  54454. -const char * base_name (const char *name);
  54455. -char * find_executable(const char *wrapper);
  54456. -int check_executable(const char *path);
  54457. -char * strendzap(char *str, const char *pat);
  54458. -void lt_fatal (const char *message, ...);
  54459. + -rpath)
  54460. + prev=rpath
  54461. + continue
  54462. + ;;
  54463. -int
  54464. -main (int argc, char *argv[])
  54465. -{
  54466. - char **newargz;
  54467. - int i;
  54468. + -R)
  54469. + prev=xrpath
  54470. + continue
  54471. + ;;
  54472. - program_name = (char *) xstrdup (base_name (argv[0]));
  54473. - DEBUG("(main) argv[0] : %s\n",argv[0]);
  54474. - DEBUG("(main) program_name : %s\n",program_name);
  54475. - newargz = XMALLOC(char *, argc+2);
  54476. -EOF
  54477. + -R*)
  54478. + func_stripname '-R' '' "$arg"
  54479. + dir=$func_stripname_result
  54480. + # We need an absolute path.
  54481. + case $dir in
  54482. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  54483. + *)
  54484. + func_fatal_error "only absolute run-paths are allowed"
  54485. + ;;
  54486. + esac
  54487. + case "$xrpath " in
  54488. + *" $dir "*) ;;
  54489. + *) xrpath="$xrpath $dir" ;;
  54490. + esac
  54491. + continue
  54492. + ;;
  54493. - cat >> $cwrappersource <<EOF
  54494. - newargz[0] = (char *) xstrdup("$SHELL");
  54495. -EOF
  54496. + -shared)
  54497. + # The effects of -shared are defined in a previous loop.
  54498. + continue
  54499. + ;;
  54500. - cat >> $cwrappersource <<"EOF"
  54501. - newargz[1] = find_executable(argv[0]);
  54502. - if (newargz[1] == NULL)
  54503. - lt_fatal("Couldn't find %s", argv[0]);
  54504. - DEBUG("(main) found exe at : %s\n",newargz[1]);
  54505. - /* we know the script has the same name, without the .exe */
  54506. - /* so make sure newargz[1] doesn't end in .exe */
  54507. - strendzap(newargz[1],".exe");
  54508. - for (i = 1; i < argc; i++)
  54509. - newargz[i+1] = xstrdup(argv[i]);
  54510. - newargz[argc+1] = NULL;
  54511. + -shrext)
  54512. + prev=shrext
  54513. + continue
  54514. + ;;
  54515. - for (i=0; i<argc+1; i++)
  54516. - {
  54517. - DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
  54518. - ;
  54519. - }
  54520. + -static | -static-libtool-libs)
  54521. + # The effects of -static are defined in a previous loop.
  54522. + # We used to do the same as -all-static on platforms that
  54523. + # didn't have a PIC flag, but the assumption that the effects
  54524. + # would be equivalent was wrong. It would break on at least
  54525. + # Digital Unix and AIX.
  54526. + continue
  54527. + ;;
  54528. -EOF
  54529. + -thread-safe)
  54530. + thread_safe=yes
  54531. + continue
  54532. + ;;
  54533. - case $host_os in
  54534. - mingw*)
  54535. - cat >> $cwrappersource <<EOF
  54536. - execv("$SHELL",(char const **)newargz);
  54537. -EOF
  54538. - ;;
  54539. - *)
  54540. - cat >> $cwrappersource <<EOF
  54541. - execv("$SHELL",newargz);
  54542. -EOF
  54543. - ;;
  54544. - esac
  54545. + -version-info)
  54546. + prev=vinfo
  54547. + continue
  54548. + ;;
  54549. - cat >> $cwrappersource <<"EOF"
  54550. - return 127;
  54551. -}
  54552. + -version-number)
  54553. + prev=vinfo
  54554. + vinfo_number=yes
  54555. + continue
  54556. + ;;
  54557. -void *
  54558. -xmalloc (size_t num)
  54559. -{
  54560. - void * p = (void *) malloc (num);
  54561. - if (!p)
  54562. - lt_fatal ("Memory exhausted");
  54563. + -weak)
  54564. + prev=weak
  54565. + continue
  54566. + ;;
  54567. - return p;
  54568. -}
  54569. + -Wc,*)
  54570. + func_stripname '-Wc,' '' "$arg"
  54571. + args=$func_stripname_result
  54572. + arg=
  54573. + save_ifs="$IFS"; IFS=','
  54574. + for flag in $args; do
  54575. + IFS="$save_ifs"
  54576. + func_quote_for_eval "$flag"
  54577. + arg="$arg $wl$func_quote_for_eval_result"
  54578. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  54579. + done
  54580. + IFS="$save_ifs"
  54581. + func_stripname ' ' '' "$arg"
  54582. + arg=$func_stripname_result
  54583. + ;;
  54584. -char *
  54585. -xstrdup (const char *string)
  54586. -{
  54587. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  54588. -;
  54589. -}
  54590. + -Wl,*)
  54591. + func_stripname '-Wl,' '' "$arg"
  54592. + args=$func_stripname_result
  54593. + arg=
  54594. + save_ifs="$IFS"; IFS=','
  54595. + for flag in $args; do
  54596. + IFS="$save_ifs"
  54597. + func_quote_for_eval "$flag"
  54598. + arg="$arg $wl$func_quote_for_eval_result"
  54599. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  54600. + linker_flags="$linker_flags $func_quote_for_eval_result"
  54601. + done
  54602. + IFS="$save_ifs"
  54603. + func_stripname ' ' '' "$arg"
  54604. + arg=$func_stripname_result
  54605. + ;;
  54606. -const char *
  54607. -base_name (const char *name)
  54608. -{
  54609. - const char *base;
  54610. + -Xcompiler)
  54611. + prev=xcompiler
  54612. + continue
  54613. + ;;
  54614. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  54615. - /* Skip over the disk name in MSDOS pathnames. */
  54616. - if (isalpha ((unsigned char)name[0]) && name[1] == ':')
  54617. - name += 2;
  54618. -#endif
  54619. + -Xlinker)
  54620. + prev=xlinker
  54621. + continue
  54622. + ;;
  54623. - for (base = name; *name; name++)
  54624. - if (IS_DIR_SEPARATOR (*name))
  54625. - base = name + 1;
  54626. - return base;
  54627. -}
  54628. + -XCClinker)
  54629. + prev=xcclinker
  54630. + continue
  54631. + ;;
  54632. -int
  54633. -check_executable(const char * path)
  54634. -{
  54635. - struct stat st;
  54636. + # -msg_* for osf cc
  54637. + -msg_*)
  54638. + func_quote_for_eval "$arg"
  54639. + arg="$func_quote_for_eval_result"
  54640. + ;;
  54641. - DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
  54642. - if ((!path) || (!*path))
  54643. - return 0;
  54644. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  54645. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  54646. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  54647. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  54648. + # -q* pass through compiler args for the IBM compiler
  54649. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  54650. + # compiler args for GCC
  54651. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  54652. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  54653. + # @file GCC response files
  54654. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  54655. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto*)
  54656. + func_quote_for_eval "$arg"
  54657. + arg="$func_quote_for_eval_result"
  54658. + func_append compile_command " $arg"
  54659. + func_append finalize_command " $arg"
  54660. + compiler_flags="$compiler_flags $arg"
  54661. + continue
  54662. + ;;
  54663. - if ((stat (path, &st) >= 0) &&
  54664. - (
  54665. - /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
  54666. -#if defined (S_IXOTH)
  54667. - ((st.st_mode & S_IXOTH) == S_IXOTH) ||
  54668. -#endif
  54669. -#if defined (S_IXGRP)
  54670. - ((st.st_mode & S_IXGRP) == S_IXGRP) ||
  54671. -#endif
  54672. - ((st.st_mode & S_IXUSR) == S_IXUSR))
  54673. - )
  54674. - return 1;
  54675. - else
  54676. - return 0;
  54677. -}
  54678. + # Some other compiler flag.
  54679. + -* | +*)
  54680. + func_quote_for_eval "$arg"
  54681. + arg="$func_quote_for_eval_result"
  54682. + ;;
  54683. -/* Searches for the full path of the wrapper. Returns
  54684. - newly allocated full path name if found, NULL otherwise */
  54685. -char *
  54686. -find_executable (const char* wrapper)
  54687. -{
  54688. - int has_slash = 0;
  54689. - const char* p;
  54690. - const char* p_next;
  54691. - /* static buffer for getcwd */
  54692. - char tmp[LT_PATHMAX + 1];
  54693. - int tmp_len;
  54694. - char* concat_name;
  54695. + *.$objext)
  54696. + # A standard object.
  54697. + objs="$objs $arg"
  54698. + ;;
  54699. - DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
  54700. + *.lo)
  54701. + # A libtool-controlled object.
  54702. - if ((wrapper == NULL) || (*wrapper == '\0'))
  54703. - return NULL;
  54704. + # Check to see that this really is a libtool object.
  54705. + if func_lalib_unsafe_p "$arg"; then
  54706. + pic_object=
  54707. + non_pic_object=
  54708. - /* Absolute path? */
  54709. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  54710. - if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
  54711. - {
  54712. - concat_name = xstrdup (wrapper);
  54713. - if (check_executable(concat_name))
  54714. - return concat_name;
  54715. - XFREE(concat_name);
  54716. - }
  54717. - else
  54718. - {
  54719. -#endif
  54720. - if (IS_DIR_SEPARATOR (wrapper[0]))
  54721. - {
  54722. - concat_name = xstrdup (wrapper);
  54723. - if (check_executable(concat_name))
  54724. - return concat_name;
  54725. - XFREE(concat_name);
  54726. - }
  54727. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  54728. - }
  54729. -#endif
  54730. + # Read the .lo file
  54731. + func_source "$arg"
  54732. - for (p = wrapper; *p; p++)
  54733. - if (*p == '/')
  54734. - {
  54735. - has_slash = 1;
  54736. - break;
  54737. - }
  54738. - if (!has_slash)
  54739. - {
  54740. - /* no slashes; search PATH */
  54741. - const char* path = getenv ("PATH");
  54742. - if (path != NULL)
  54743. - {
  54744. - for (p = path; *p; p = p_next)
  54745. - {
  54746. - const char* q;
  54747. - size_t p_len;
  54748. - for (q = p; *q; q++)
  54749. - if (IS_PATH_SEPARATOR(*q))
  54750. - break;
  54751. - p_len = q - p;
  54752. - p_next = (*q == '\0' ? q : q + 1);
  54753. - if (p_len == 0)
  54754. - {
  54755. - /* empty path: current directory */
  54756. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  54757. - lt_fatal ("getcwd failed");
  54758. - tmp_len = strlen(tmp);
  54759. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  54760. - memcpy (concat_name, tmp, tmp_len);
  54761. - concat_name[tmp_len] = '/';
  54762. - strcpy (concat_name + tmp_len + 1, wrapper);
  54763. - }
  54764. - else
  54765. - {
  54766. - concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
  54767. - memcpy (concat_name, p, p_len);
  54768. - concat_name[p_len] = '/';
  54769. - strcpy (concat_name + p_len + 1, wrapper);
  54770. - }
  54771. - if (check_executable(concat_name))
  54772. - return concat_name;
  54773. - XFREE(concat_name);
  54774. - }
  54775. - }
  54776. - /* not found in PATH; assume curdir */
  54777. - }
  54778. - /* Relative path | not found in path: prepend cwd */
  54779. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  54780. - lt_fatal ("getcwd failed");
  54781. - tmp_len = strlen(tmp);
  54782. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  54783. - memcpy (concat_name, tmp, tmp_len);
  54784. - concat_name[tmp_len] = '/';
  54785. - strcpy (concat_name + tmp_len + 1, wrapper);
  54786. + if test -z "$pic_object" ||
  54787. + test -z "$non_pic_object" ||
  54788. + test "$pic_object" = none &&
  54789. + test "$non_pic_object" = none; then
  54790. + func_fatal_error "cannot find name of object for \`$arg'"
  54791. + fi
  54792. - if (check_executable(concat_name))
  54793. - return concat_name;
  54794. - XFREE(concat_name);
  54795. - return NULL;
  54796. -}
  54797. + # Extract subdirectory from the argument.
  54798. + func_dirname "$arg" "/" ""
  54799. + xdir="$func_dirname_result"
  54800. -char *
  54801. -strendzap(char *str, const char *pat)
  54802. -{
  54803. - size_t len, patlen;
  54804. + if test "$pic_object" != none; then
  54805. + # Prepend the subdirectory the object is found in.
  54806. + pic_object="$xdir$pic_object"
  54807. - assert(str != NULL);
  54808. - assert(pat != NULL);
  54809. + if test "$prev" = dlfiles; then
  54810. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  54811. + dlfiles="$dlfiles $pic_object"
  54812. + prev=
  54813. + continue
  54814. + else
  54815. + # If libtool objects are unsupported, then we need to preload.
  54816. + prev=dlprefiles
  54817. + fi
  54818. + fi
  54819. - len = strlen(str);
  54820. - patlen = strlen(pat);
  54821. + # CHECK ME: I think I busted this. -Ossama
  54822. + if test "$prev" = dlprefiles; then
  54823. + # Preload the old-style object.
  54824. + dlprefiles="$dlprefiles $pic_object"
  54825. + prev=
  54826. + fi
  54827. - if (patlen <= len)
  54828. - {
  54829. - str += len - patlen;
  54830. - if (strcmp(str, pat) == 0)
  54831. - *str = '\0';
  54832. - }
  54833. - return str;
  54834. -}
  54835. + # A PIC object.
  54836. + func_append libobjs " $pic_object"
  54837. + arg="$pic_object"
  54838. + fi
  54839. -static void
  54840. -lt_error_core (int exit_status, const char * mode,
  54841. - const char * message, va_list ap)
  54842. -{
  54843. - fprintf (stderr, "%s: %s: ", program_name, mode);
  54844. - vfprintf (stderr, message, ap);
  54845. - fprintf (stderr, ".\n");
  54846. + # Non-PIC object.
  54847. + if test "$non_pic_object" != none; then
  54848. + # Prepend the subdirectory the object is found in.
  54849. + non_pic_object="$xdir$non_pic_object"
  54850. - if (exit_status >= 0)
  54851. - exit (exit_status);
  54852. -}
  54853. + # A standard non-PIC object
  54854. + func_append non_pic_objects " $non_pic_object"
  54855. + if test -z "$pic_object" || test "$pic_object" = none ; then
  54856. + arg="$non_pic_object"
  54857. + fi
  54858. + else
  54859. + # If the PIC object exists, use it instead.
  54860. + # $xdir was prepended to $pic_object above.
  54861. + non_pic_object="$pic_object"
  54862. + func_append non_pic_objects " $non_pic_object"
  54863. + fi
  54864. + else
  54865. + # Only an error if not doing a dry-run.
  54866. + if $opt_dry_run; then
  54867. + # Extract subdirectory from the argument.
  54868. + func_dirname "$arg" "/" ""
  54869. + xdir="$func_dirname_result"
  54870. -void
  54871. -lt_fatal (const char *message, ...)
  54872. -{
  54873. - va_list ap;
  54874. - va_start (ap, message);
  54875. - lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  54876. - va_end (ap);
  54877. -}
  54878. -EOF
  54879. - # we should really use a build-platform specific compiler
  54880. - # here, but OTOH, the wrappers (shell script and this C one)
  54881. - # are only useful if you want to execute the "real" binary.
  54882. - # Since the "real" binary is built for $host, then this
  54883. - # wrapper might as well be built for $host, too.
  54884. - $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
  54885. - ;;
  54886. - esac
  54887. - $rm $output
  54888. - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  54889. + func_lo2o "$arg"
  54890. + pic_object=$xdir$objdir/$func_lo2o_result
  54891. + non_pic_object=$xdir$func_lo2o_result
  54892. + func_append libobjs " $pic_object"
  54893. + func_append non_pic_objects " $non_pic_object"
  54894. + else
  54895. + func_fatal_error "\`$arg' is not a valid libtool object"
  54896. + fi
  54897. + fi
  54898. + ;;
  54899. - $echo > $output "\
  54900. -#! $SHELL
  54901. + *.$libext)
  54902. + # An archive.
  54903. + deplibs="$deplibs $arg"
  54904. + old_deplibs="$old_deplibs $arg"
  54905. + continue
  54906. + ;;
  54907. -# $output - temporary wrapper script for $objdir/$outputname
  54908. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  54909. -#
  54910. -# The $output program cannot be directly executed until all the libtool
  54911. -# libraries that it depends on are installed.
  54912. -#
  54913. -# This wrapper script should never be moved out of the build directory.
  54914. -# If it is, it will not operate correctly.
  54915. + *.la)
  54916. + # A libtool-controlled library.
  54917. -# Sed substitution that helps us do robust quoting. It backslashifies
  54918. -# metacharacters that are still active within double-quoted strings.
  54919. -Xsed='${SED} -e 1s/^X//'
  54920. -sed_quote_subst='$sed_quote_subst'
  54921. + if test "$prev" = dlfiles; then
  54922. + # This library was specified with -dlopen.
  54923. + dlfiles="$dlfiles $arg"
  54924. + prev=
  54925. + elif test "$prev" = dlprefiles; then
  54926. + # The library was specified with -dlpreopen.
  54927. + dlprefiles="$dlprefiles $arg"
  54928. + prev=
  54929. + else
  54930. + deplibs="$deplibs $arg"
  54931. + fi
  54932. + continue
  54933. + ;;
  54934. -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
  54935. -if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  54936. - emulate sh
  54937. - NULLCMD=:
  54938. - # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  54939. - # is contrary to our usage. Disable this feature.
  54940. - alias -g '\${1+\"\$@\"}'='\"\$@\"'
  54941. - setopt NO_GLOB_SUBST
  54942. -else
  54943. - case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  54944. -fi
  54945. -BIN_SH=xpg4; export BIN_SH # for Tru64
  54946. -DUALCASE=1; export DUALCASE # for MKS sh
  54947. + # Some other compiler argument.
  54948. + *)
  54949. + # Unknown arguments in both finalize_command and compile_command need
  54950. + # to be aesthetically quoted because they are evaled later.
  54951. + func_quote_for_eval "$arg"
  54952. + arg="$func_quote_for_eval_result"
  54953. + ;;
  54954. + esac # arg
  54955. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  54956. -# if CDPATH is set.
  54957. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  54958. + # Now actually substitute the argument into the commands.
  54959. + if test -n "$arg"; then
  54960. + func_append compile_command " $arg"
  54961. + func_append finalize_command " $arg"
  54962. + fi
  54963. + done # argument parsing loop
  54964. -relink_command=\"$relink_command\"
  54965. + test -n "$prev" && \
  54966. + func_fatal_help "the \`$prevarg' option requires an argument"
  54967. -# This environment variable determines our operation mode.
  54968. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  54969. - # install mode needs the following variable:
  54970. - notinst_deplibs='$notinst_deplibs'
  54971. -else
  54972. - # When we are sourced in execute mode, \$file and \$echo are already set.
  54973. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  54974. - echo=\"$qecho\"
  54975. - file=\"\$0\"
  54976. - # Make sure echo works.
  54977. - if test \"X\$1\" = X--no-reexec; then
  54978. - # Discard the --no-reexec flag, and continue.
  54979. - shift
  54980. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  54981. - # Yippee, \$echo works!
  54982. - :
  54983. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  54984. + eval arg=\"$export_dynamic_flag_spec\"
  54985. + func_append compile_command " $arg"
  54986. + func_append finalize_command " $arg"
  54987. + fi
  54988. +
  54989. + oldlibs=
  54990. + # calculate the name of the file, without its directory
  54991. + func_basename "$output"
  54992. + outputname="$func_basename_result"
  54993. + libobjs_save="$libobjs"
  54994. +
  54995. + if test -n "$shlibpath_var"; then
  54996. + # get the directories listed in $shlibpath_var
  54997. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  54998. else
  54999. - # Restart under the correct shell, and then maybe \$echo will work.
  55000. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  55001. + shlib_search_path=
  55002. fi
  55003. - fi\
  55004. -"
  55005. - $echo >> $output "\
  55006. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  55007. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  55008. - # Find the directory that this script lives in.
  55009. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  55010. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  55011. + func_dirname "$output" "/" ""
  55012. + output_objdir="$func_dirname_result$objdir"
  55013. + # Create the object directory.
  55014. + func_mkdir_p "$output_objdir"
  55015. - # Follow symbolic links until we get to the real thisdir.
  55016. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  55017. - while test -n \"\$file\"; do
  55018. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  55019. + # Determine the type of output
  55020. + case $output in
  55021. + "")
  55022. + func_fatal_help "you must specify an output file"
  55023. + ;;
  55024. + *.$libext) linkmode=oldlib ;;
  55025. + *.lo | *.$objext) linkmode=obj ;;
  55026. + *.la) linkmode=lib ;;
  55027. + *) linkmode=prog ;; # Anything else should be a program.
  55028. + esac
  55029. +
  55030. + specialdeplibs=
  55031. +
  55032. + libs=
  55033. + # Find all interdependent deplibs by searching for libraries
  55034. + # that are linked more than once (e.g. -la -lb -la)
  55035. + for deplib in $deplibs; do
  55036. + if $opt_duplicate_deps ; then
  55037. + case "$libs " in
  55038. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  55039. + esac
  55040. + fi
  55041. + libs="$libs $deplib"
  55042. + done
  55043. +
  55044. + if test "$linkmode" = lib; then
  55045. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  55046. +
  55047. + # Compute libraries that are listed more than once in $predeps
  55048. + # $postdeps and mark them as special (i.e., whose duplicates are
  55049. + # not to be eliminated).
  55050. + pre_post_deps=
  55051. + if $opt_duplicate_compiler_generated_deps; then
  55052. + for pre_post_dep in $predeps $postdeps; do
  55053. + case "$pre_post_deps " in
  55054. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  55055. + esac
  55056. + pre_post_deps="$pre_post_deps $pre_post_dep"
  55057. + done
  55058. + fi
  55059. + pre_post_deps=
  55060. + fi
  55061. +
  55062. + deplibs=
  55063. + newdependency_libs=
  55064. + newlib_search_path=
  55065. + need_relink=no # whether we're linking any uninstalled libtool libraries
  55066. + notinst_deplibs= # not-installed libtool libraries
  55067. + notinst_path= # paths that contain not-installed libtool libraries
  55068. +
  55069. + case $linkmode in
  55070. + lib)
  55071. + passes="conv dlpreopen link"
  55072. + for file in $dlfiles $dlprefiles; do
  55073. + case $file in
  55074. + *.la) ;;
  55075. + *)
  55076. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  55077. + ;;
  55078. + esac
  55079. + done
  55080. + ;;
  55081. + prog)
  55082. + compile_deplibs=
  55083. + finalize_deplibs=
  55084. + alldeplibs=no
  55085. + newdlfiles=
  55086. + newdlprefiles=
  55087. + passes="conv scan dlopen dlpreopen link"
  55088. + ;;
  55089. + *) passes="conv"
  55090. + ;;
  55091. + esac
  55092. +
  55093. + for pass in $passes; do
  55094. + # The preopen pass in lib mode reverses $deplibs; put it back here
  55095. + # so that -L comes before libs that need it for instance...
  55096. + if test "$linkmode,$pass" = "lib,link"; then
  55097. + ## FIXME: Find the place where the list is rebuilt in the wrong
  55098. + ## order, and fix it there properly
  55099. + tmp_deplibs=
  55100. + for deplib in $deplibs; do
  55101. + tmp_deplibs="$deplib $tmp_deplibs"
  55102. + done
  55103. + deplibs="$tmp_deplibs"
  55104. + fi
  55105. +
  55106. + if test "$linkmode,$pass" = "lib,link" ||
  55107. + test "$linkmode,$pass" = "prog,scan"; then
  55108. + libs="$deplibs"
  55109. + deplibs=
  55110. + fi
  55111. + if test "$linkmode" = prog; then
  55112. + case $pass in
  55113. + dlopen) libs="$dlfiles" ;;
  55114. + dlpreopen) libs="$dlprefiles" ;;
  55115. + link)
  55116. + libs="$deplibs %DEPLIBS%"
  55117. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  55118. + ;;
  55119. + esac
  55120. + fi
  55121. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  55122. + # Collect and forward deplibs of preopened libtool libs
  55123. + for lib in $dlprefiles; do
  55124. + # Ignore non-libtool-libs
  55125. + dependency_libs=
  55126. + case $lib in
  55127. + *.la) func_source "$lib" ;;
  55128. + esac
  55129. +
  55130. + # Collect preopened libtool deplibs, except any this library
  55131. + # has declared as weak libs
  55132. + for deplib in $dependency_libs; do
  55133. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  55134. + case " $weak_libs " in
  55135. + *" $deplib_base "*) ;;
  55136. + *) deplibs="$deplibs $deplib" ;;
  55137. + esac
  55138. + done
  55139. + done
  55140. + libs="$dlprefiles"
  55141. + fi
  55142. + if test "$pass" = dlopen; then
  55143. + # Collect dlpreopened libraries
  55144. + save_deplibs="$deplibs"
  55145. + deplibs=
  55146. + fi
  55147. +
  55148. + for deplib in $libs; do
  55149. + lib=
  55150. + found=no
  55151. + case $deplib in
  55152. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  55153. + if test "$linkmode,$pass" = "prog,link"; then
  55154. + compile_deplibs="$deplib $compile_deplibs"
  55155. + finalize_deplibs="$deplib $finalize_deplibs"
  55156. + else
  55157. + compiler_flags="$compiler_flags $deplib"
  55158. + if test "$linkmode" = lib ; then
  55159. + case "$new_inherited_linker_flags " in
  55160. + *" $deplib "*) ;;
  55161. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  55162. + esac
  55163. + fi
  55164. + fi
  55165. + continue
  55166. + ;;
  55167. + -l*)
  55168. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  55169. + func_warning "\`-l' is ignored for archives/objects"
  55170. + continue
  55171. + fi
  55172. + func_stripname '-l' '' "$deplib"
  55173. + name=$func_stripname_result
  55174. + if test "$linkmode" = lib; then
  55175. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  55176. + else
  55177. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  55178. + fi
  55179. + for searchdir in $searchdirs; do
  55180. + for search_ext in .la $std_shrext .so .a; do
  55181. + # Search the libtool library
  55182. + lib="$searchdir/lib${name}${search_ext}"
  55183. + if test -f "$lib"; then
  55184. + if test "$search_ext" = ".la"; then
  55185. + found=yes
  55186. + else
  55187. + found=no
  55188. + fi
  55189. + break 2
  55190. + fi
  55191. + done
  55192. + done
  55193. + if test "$found" != yes; then
  55194. + # deplib doesn't seem to be a libtool library
  55195. + if test "$linkmode,$pass" = "prog,link"; then
  55196. + compile_deplibs="$deplib $compile_deplibs"
  55197. + finalize_deplibs="$deplib $finalize_deplibs"
  55198. + else
  55199. + deplibs="$deplib $deplibs"
  55200. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  55201. + fi
  55202. + continue
  55203. + else # deplib is a libtool library
  55204. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  55205. + # We need to do some special things here, and not later.
  55206. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  55207. + case " $predeps $postdeps " in
  55208. + *" $deplib "*)
  55209. + if func_lalib_p "$lib"; then
  55210. + library_names=
  55211. + old_library=
  55212. + func_source "$lib"
  55213. + for l in $old_library $library_names; do
  55214. + ll="$l"
  55215. + done
  55216. + if test "X$ll" = "X$old_library" ; then # only static version available
  55217. + found=no
  55218. + func_dirname "$lib" "" "."
  55219. + ladir="$func_dirname_result"
  55220. + lib=$ladir/$old_library
  55221. + if test "$linkmode,$pass" = "prog,link"; then
  55222. + compile_deplibs="$deplib $compile_deplibs"
  55223. + finalize_deplibs="$deplib $finalize_deplibs"
  55224. + else
  55225. + deplibs="$deplib $deplibs"
  55226. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  55227. + fi
  55228. + continue
  55229. + fi
  55230. + fi
  55231. + ;;
  55232. + *) ;;
  55233. + esac
  55234. + fi
  55235. + fi
  55236. + ;; # -l
  55237. + *.ltframework)
  55238. + if test "$linkmode,$pass" = "prog,link"; then
  55239. + compile_deplibs="$deplib $compile_deplibs"
  55240. + finalize_deplibs="$deplib $finalize_deplibs"
  55241. + else
  55242. + deplibs="$deplib $deplibs"
  55243. + if test "$linkmode" = lib ; then
  55244. + case "$new_inherited_linker_flags " in
  55245. + *" $deplib "*) ;;
  55246. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  55247. + esac
  55248. + fi
  55249. + fi
  55250. + continue
  55251. + ;;
  55252. + -L*)
  55253. + case $linkmode in
  55254. + lib)
  55255. + deplibs="$deplib $deplibs"
  55256. + test "$pass" = conv && continue
  55257. + newdependency_libs="$deplib $newdependency_libs"
  55258. + func_stripname '-L' '' "$deplib"
  55259. + newlib_search_path="$newlib_search_path $func_stripname_result"
  55260. + ;;
  55261. + prog)
  55262. + if test "$pass" = conv; then
  55263. + deplibs="$deplib $deplibs"
  55264. + continue
  55265. + fi
  55266. + if test "$pass" = scan; then
  55267. + deplibs="$deplib $deplibs"
  55268. + else
  55269. + compile_deplibs="$deplib $compile_deplibs"
  55270. + finalize_deplibs="$deplib $finalize_deplibs"
  55271. + fi
  55272. + func_stripname '-L' '' "$deplib"
  55273. + newlib_search_path="$newlib_search_path $func_stripname_result"
  55274. + ;;
  55275. + *)
  55276. + func_warning "\`-L' is ignored for archives/objects"
  55277. + ;;
  55278. + esac # linkmode
  55279. + continue
  55280. + ;; # -L
  55281. + -R*)
  55282. + if test "$pass" = link; then
  55283. + func_stripname '-R' '' "$deplib"
  55284. + dir=$func_stripname_result
  55285. + # Make sure the xrpath contains only unique directories.
  55286. + case "$xrpath " in
  55287. + *" $dir "*) ;;
  55288. + *) xrpath="$xrpath $dir" ;;
  55289. + esac
  55290. + fi
  55291. + deplibs="$deplib $deplibs"
  55292. + continue
  55293. + ;;
  55294. + *.la) lib="$deplib" ;;
  55295. + *.$libext)
  55296. + if test "$pass" = conv; then
  55297. + deplibs="$deplib $deplibs"
  55298. + continue
  55299. + fi
  55300. + case $linkmode in
  55301. + lib)
  55302. + # Linking convenience modules into shared libraries is allowed,
  55303. + # but linking other static libraries is non-portable.
  55304. + case " $dlpreconveniencelibs " in
  55305. + *" $deplib "*) ;;
  55306. + *)
  55307. + valid_a_lib=no
  55308. + case $deplibs_check_method in
  55309. + match_pattern*)
  55310. + set dummy $deplibs_check_method; shift
  55311. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  55312. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  55313. + | $EGREP "$match_pattern_regex" > /dev/null; then
  55314. + valid_a_lib=yes
  55315. + fi
  55316. + ;;
  55317. + pass_all)
  55318. + valid_a_lib=yes
  55319. + ;;
  55320. + esac
  55321. + if test "$valid_a_lib" != yes; then
  55322. + $ECHO
  55323. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  55324. + $ECHO "*** I have the capability to make that library automatically link in when"
  55325. + $ECHO "*** you link to this library. But I can only do this if you have a"
  55326. + $ECHO "*** shared version of the library, which you do not appear to have"
  55327. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  55328. + $ECHO "*** that it is just a static archive that I should not use here."
  55329. + else
  55330. + $ECHO
  55331. + $ECHO "*** Warning: Linking the shared library $output against the"
  55332. + $ECHO "*** static library $deplib is not portable!"
  55333. + deplibs="$deplib $deplibs"
  55334. + fi
  55335. + ;;
  55336. + esac
  55337. + continue
  55338. + ;;
  55339. + prog)
  55340. + if test "$pass" != link; then
  55341. + deplibs="$deplib $deplibs"
  55342. + else
  55343. + compile_deplibs="$deplib $compile_deplibs"
  55344. + finalize_deplibs="$deplib $finalize_deplibs"
  55345. + fi
  55346. + continue
  55347. + ;;
  55348. + esac # linkmode
  55349. + ;; # *.$libext
  55350. + *.lo | *.$objext)
  55351. + if test "$pass" = conv; then
  55352. + deplibs="$deplib $deplibs"
  55353. + elif test "$linkmode" = prog; then
  55354. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  55355. + # If there is no dlopen support or we're linking statically,
  55356. + # we need to preload.
  55357. + newdlprefiles="$newdlprefiles $deplib"
  55358. + compile_deplibs="$deplib $compile_deplibs"
  55359. + finalize_deplibs="$deplib $finalize_deplibs"
  55360. + else
  55361. + newdlfiles="$newdlfiles $deplib"
  55362. + fi
  55363. + fi
  55364. + continue
  55365. + ;;
  55366. + %DEPLIBS%)
  55367. + alldeplibs=yes
  55368. + continue
  55369. + ;;
  55370. + esac # case $deplib
  55371. +
  55372. + if test "$found" = yes || test -f "$lib"; then :
  55373. + else
  55374. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  55375. + fi
  55376. +
  55377. + # Check to see that this really is a libtool archive.
  55378. + func_lalib_unsafe_p "$lib" \
  55379. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  55380. +
  55381. + func_dirname "$lib" "" "."
  55382. + ladir="$func_dirname_result"
  55383. +
  55384. + dlname=
  55385. + dlopen=
  55386. + dlpreopen=
  55387. + libdir=
  55388. + library_names=
  55389. + old_library=
  55390. + inherited_linker_flags=
  55391. + # If the library was installed with an old release of libtool,
  55392. + # it will not redefine variables installed, or shouldnotlink
  55393. + installed=yes
  55394. + shouldnotlink=no
  55395. + avoidtemprpath=
  55396. +
  55397. +
  55398. + # Read the .la file
  55399. + func_source "$lib"
  55400. +
  55401. + # Convert "-framework foo" to "foo.ltframework"
  55402. + if test -n "$inherited_linker_flags"; then
  55403. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  55404. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  55405. + case " $new_inherited_linker_flags " in
  55406. + *" $tmp_inherited_linker_flag "*) ;;
  55407. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  55408. + esac
  55409. + done
  55410. + fi
  55411. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  55412. + if test "$linkmode,$pass" = "lib,link" ||
  55413. + test "$linkmode,$pass" = "prog,scan" ||
  55414. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  55415. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  55416. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  55417. + fi
  55418. +
  55419. + if test "$pass" = conv; then
  55420. + # Only check for convenience libraries
  55421. + deplibs="$lib $deplibs"
  55422. + if test -z "$libdir"; then
  55423. + if test -z "$old_library"; then
  55424. + func_fatal_error "cannot find name of link library for \`$lib'"
  55425. + fi
  55426. + # It is a libtool convenience library, so add in its objects.
  55427. + convenience="$convenience $ladir/$objdir/$old_library"
  55428. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  55429. + tmp_libs=
  55430. + for deplib in $dependency_libs; do
  55431. + deplibs="$deplib $deplibs"
  55432. + if $opt_duplicate_deps ; then
  55433. + case "$tmp_libs " in
  55434. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  55435. + esac
  55436. + fi
  55437. + tmp_libs="$tmp_libs $deplib"
  55438. + done
  55439. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  55440. + func_fatal_error "\`$lib' is not a convenience library"
  55441. + fi
  55442. + continue
  55443. + fi # $pass = conv
  55444. +
  55445. +
  55446. + # Get the name of the library we link against.
  55447. + linklib=
  55448. + for l in $old_library $library_names; do
  55449. + linklib="$l"
  55450. + done
  55451. + if test -z "$linklib"; then
  55452. + func_fatal_error "cannot find name of link library for \`$lib'"
  55453. + fi
  55454. +
  55455. + # This library was specified with -dlopen.
  55456. + if test "$pass" = dlopen; then
  55457. + if test -z "$libdir"; then
  55458. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  55459. + fi
  55460. + if test -z "$dlname" ||
  55461. + test "$dlopen_support" != yes ||
  55462. + test "$build_libtool_libs" = no; then
  55463. + # If there is no dlname, no dlopen support or we're linking
  55464. + # statically, we need to preload. We also need to preload any
  55465. + # dependent libraries so libltdl's deplib preloader doesn't
  55466. + # bomb out in the load deplibs phase.
  55467. + dlprefiles="$dlprefiles $lib $dependency_libs"
  55468. + else
  55469. + newdlfiles="$newdlfiles $lib"
  55470. + fi
  55471. + continue
  55472. + fi # $pass = dlopen
  55473. +
  55474. + # We need an absolute path.
  55475. + case $ladir in
  55476. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  55477. + *)
  55478. + abs_ladir=`cd "$ladir" && pwd`
  55479. + if test -z "$abs_ladir"; then
  55480. + func_warning "cannot determine absolute directory name of \`$ladir'"
  55481. + func_warning "passing it literally to the linker, although it might fail"
  55482. + abs_ladir="$ladir"
  55483. + fi
  55484. + ;;
  55485. + esac
  55486. + func_basename "$lib"
  55487. + laname="$func_basename_result"
  55488. +
  55489. + # Find the relevant object directory and library name.
  55490. + if test "X$installed" = Xyes; then
  55491. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  55492. + func_warning "library \`$lib' was moved."
  55493. + dir="$ladir"
  55494. + absdir="$abs_ladir"
  55495. + libdir="$abs_ladir"
  55496. + else
  55497. + dir="$libdir"
  55498. + absdir="$libdir"
  55499. + fi
  55500. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  55501. + else
  55502. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  55503. + dir="$ladir"
  55504. + absdir="$abs_ladir"
  55505. + # Remove this search path later
  55506. + notinst_path="$notinst_path $abs_ladir"
  55507. + else
  55508. + dir="$ladir/$objdir"
  55509. + absdir="$abs_ladir/$objdir"
  55510. + # Remove this search path later
  55511. + notinst_path="$notinst_path $abs_ladir"
  55512. + fi
  55513. + fi # $installed = yes
  55514. + func_stripname 'lib' '.la' "$laname"
  55515. + name=$func_stripname_result
  55516. +
  55517. + # This library was specified with -dlpreopen.
  55518. + if test "$pass" = dlpreopen; then
  55519. + if test -z "$libdir" && test "$linkmode" = prog; then
  55520. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  55521. + fi
  55522. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  55523. + # are required to link).
  55524. + if test -n "$old_library"; then
  55525. + newdlprefiles="$newdlprefiles $dir/$old_library"
  55526. + # Keep a list of preopened convenience libraries to check
  55527. + # that they are being used correctly in the link pass.
  55528. + test -z "$libdir" && \
  55529. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  55530. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  55531. + elif test -n "$dlname"; then
  55532. + newdlprefiles="$newdlprefiles $dir/$dlname"
  55533. + else
  55534. + newdlprefiles="$newdlprefiles $dir/$linklib"
  55535. + fi
  55536. + fi # $pass = dlpreopen
  55537. +
  55538. + if test -z "$libdir"; then
  55539. + # Link the convenience library
  55540. + if test "$linkmode" = lib; then
  55541. + deplibs="$dir/$old_library $deplibs"
  55542. + elif test "$linkmode,$pass" = "prog,link"; then
  55543. + compile_deplibs="$dir/$old_library $compile_deplibs"
  55544. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  55545. + else
  55546. + deplibs="$lib $deplibs" # used for prog,scan pass
  55547. + fi
  55548. + continue
  55549. + fi
  55550. +
  55551. +
  55552. + if test "$linkmode" = prog && test "$pass" != link; then
  55553. + newlib_search_path="$newlib_search_path $ladir"
  55554. + deplibs="$lib $deplibs"
  55555. +
  55556. + linkalldeplibs=no
  55557. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  55558. + test "$build_libtool_libs" = no; then
  55559. + linkalldeplibs=yes
  55560. + fi
  55561. +
  55562. + tmp_libs=
  55563. + for deplib in $dependency_libs; do
  55564. + case $deplib in
  55565. + -L*) func_stripname '-L' '' "$deplib"
  55566. + newlib_search_path="$newlib_search_path $func_stripname_result"
  55567. + ;;
  55568. + esac
  55569. + # Need to link against all dependency_libs?
  55570. + if test "$linkalldeplibs" = yes; then
  55571. + deplibs="$deplib $deplibs"
  55572. + else
  55573. + # Need to hardcode shared library paths
  55574. + # or/and link against static libraries
  55575. + newdependency_libs="$deplib $newdependency_libs"
  55576. + fi
  55577. + if $opt_duplicate_deps ; then
  55578. + case "$tmp_libs " in
  55579. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  55580. + esac
  55581. + fi
  55582. + tmp_libs="$tmp_libs $deplib"
  55583. + done # for deplib
  55584. + continue
  55585. + fi # $linkmode = prog...
  55586. +
  55587. + if test "$linkmode,$pass" = "prog,link"; then
  55588. + if test -n "$library_names" &&
  55589. + { { test "$prefer_static_libs" = no ||
  55590. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  55591. + test -z "$old_library"; }; then
  55592. + # We need to hardcode the library path
  55593. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  55594. + # Make sure the rpath contains only unique directories.
  55595. + case "$temp_rpath:" in
  55596. + *"$absdir:"*) ;;
  55597. + *) temp_rpath="$temp_rpath$absdir:" ;;
  55598. + esac
  55599. + fi
  55600. +
  55601. + # Hardcode the library path.
  55602. + # Skip directories that are in the system default run-time
  55603. + # search path.
  55604. + case " $sys_lib_dlsearch_path " in
  55605. + *" $absdir "*) ;;
  55606. + *)
  55607. + case "$compile_rpath " in
  55608. + *" $absdir "*) ;;
  55609. + *) compile_rpath="$compile_rpath $absdir"
  55610. + esac
  55611. + ;;
  55612. + esac
  55613. + case " $sys_lib_dlsearch_path " in
  55614. + *" $libdir "*) ;;
  55615. + *)
  55616. + case "$finalize_rpath " in
  55617. + *" $libdir "*) ;;
  55618. + *) finalize_rpath="$finalize_rpath $libdir"
  55619. + esac
  55620. + ;;
  55621. + esac
  55622. + fi # $linkmode,$pass = prog,link...
  55623. +
  55624. + if test "$alldeplibs" = yes &&
  55625. + { test "$deplibs_check_method" = pass_all ||
  55626. + { test "$build_libtool_libs" = yes &&
  55627. + test -n "$library_names"; }; }; then
  55628. + # We only need to search for static libraries
  55629. + continue
  55630. + fi
  55631. + fi
  55632. +
  55633. + link_static=no # Whether the deplib will be linked statically
  55634. + use_static_libs=$prefer_static_libs
  55635. + if test "$use_static_libs" = built && test "$installed" = yes; then
  55636. + use_static_libs=no
  55637. + fi
  55638. + if test -n "$library_names" &&
  55639. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  55640. + case $host in
  55641. + *cygwin* | *mingw* | *cegcc*)
  55642. + # No point in relinking DLLs because paths are not encoded
  55643. + notinst_deplibs="$notinst_deplibs $lib"
  55644. + need_relink=no
  55645. + ;;
  55646. + *)
  55647. + if test "$installed" = no; then
  55648. + notinst_deplibs="$notinst_deplibs $lib"
  55649. + need_relink=yes
  55650. + fi
  55651. + ;;
  55652. + esac
  55653. + # This is a shared library
  55654. +
  55655. + # Warn about portability, can't link against -module's on some
  55656. + # systems (darwin). Don't bleat about dlopened modules though!
  55657. + dlopenmodule=""
  55658. + for dlpremoduletest in $dlprefiles; do
  55659. + if test "X$dlpremoduletest" = "X$lib"; then
  55660. + dlopenmodule="$dlpremoduletest"
  55661. + break
  55662. + fi
  55663. + done
  55664. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  55665. + $ECHO
  55666. + if test "$linkmode" = prog; then
  55667. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  55668. + else
  55669. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  55670. + fi
  55671. + $ECHO "*** $linklib is not portable!"
  55672. + fi
  55673. + if test "$linkmode" = lib &&
  55674. + test "$hardcode_into_libs" = yes; then
  55675. + # Hardcode the library path.
  55676. + # Skip directories that are in the system default run-time
  55677. + # search path.
  55678. + case " $sys_lib_dlsearch_path " in
  55679. + *" $absdir "*) ;;
  55680. + *)
  55681. + case "$compile_rpath " in
  55682. + *" $absdir "*) ;;
  55683. + *) compile_rpath="$compile_rpath $absdir"
  55684. + esac
  55685. + ;;
  55686. + esac
  55687. + case " $sys_lib_dlsearch_path " in
  55688. + *" $libdir "*) ;;
  55689. + *)
  55690. + case "$finalize_rpath " in
  55691. + *" $libdir "*) ;;
  55692. + *) finalize_rpath="$finalize_rpath $libdir"
  55693. + esac
  55694. + ;;
  55695. + esac
  55696. + fi
  55697. +
  55698. + if test -n "$old_archive_from_expsyms_cmds"; then
  55699. + # figure out the soname
  55700. + set dummy $library_names
  55701. + shift
  55702. + realname="$1"
  55703. + shift
  55704. + libname=`eval "\\$ECHO \"$libname_spec\""`
  55705. + # use dlname if we got it. it's perfectly good, no?
  55706. + if test -n "$dlname"; then
  55707. + soname="$dlname"
  55708. + elif test -n "$soname_spec"; then
  55709. + # bleh windows
  55710. + case $host in
  55711. + *cygwin* | mingw* | *cegcc*)
  55712. + func_arith $current - $age
  55713. + major=$func_arith_result
  55714. + versuffix="-$major"
  55715. + ;;
  55716. + esac
  55717. + eval soname=\"$soname_spec\"
  55718. + else
  55719. + soname="$realname"
  55720. + fi
  55721. +
  55722. + # Make a new name for the extract_expsyms_cmds to use
  55723. + soroot="$soname"
  55724. + func_basename "$soroot"
  55725. + soname="$func_basename_result"
  55726. + func_stripname 'lib' '.dll' "$soname"
  55727. + newlib=libimp-$func_stripname_result.a
  55728. +
  55729. + # If the library has no export list, then create one now
  55730. + if test -f "$output_objdir/$soname-def"; then :
  55731. + else
  55732. + func_verbose "extracting exported symbol list from \`$soname'"
  55733. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  55734. + fi
  55735. +
  55736. + # Create $newlib
  55737. + if test -f "$output_objdir/$newlib"; then :; else
  55738. + func_verbose "generating import library for \`$soname'"
  55739. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  55740. + fi
  55741. + # make sure the library variables are pointing to the new library
  55742. + dir=$output_objdir
  55743. + linklib=$newlib
  55744. + fi # test -n "$old_archive_from_expsyms_cmds"
  55745. +
  55746. + if test "$linkmode" = prog || test "$mode" != relink; then
  55747. + add_shlibpath=
  55748. + add_dir=
  55749. + add=
  55750. + lib_linked=yes
  55751. + case $hardcode_action in
  55752. + immediate | unsupported)
  55753. + if test "$hardcode_direct" = no; then
  55754. + add="$dir/$linklib"
  55755. + case $host in
  55756. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  55757. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  55758. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  55759. + *-*-unixware7*) add_dir="-L$dir" ;;
  55760. + *-*-darwin* )
  55761. + # if the lib is a (non-dlopened) module then we can not
  55762. + # link against it, someone is ignoring the earlier warnings
  55763. + if /usr/bin/file -L $add 2> /dev/null |
  55764. + $GREP ": [^:]* bundle" >/dev/null ; then
  55765. + if test "X$dlopenmodule" != "X$lib"; then
  55766. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  55767. + if test -z "$old_library" ; then
  55768. + $ECHO
  55769. + $ECHO "*** And there doesn't seem to be a static archive available"
  55770. + $ECHO "*** The link will probably fail, sorry"
  55771. + else
  55772. + add="$dir/$old_library"
  55773. + fi
  55774. + elif test -n "$old_library"; then
  55775. + add="$dir/$old_library"
  55776. + fi
  55777. + fi
  55778. + esac
  55779. + elif test "$hardcode_minus_L" = no; then
  55780. + case $host in
  55781. + *-*-sunos*) add_shlibpath="$dir" ;;
  55782. + esac
  55783. + add_dir="-L$dir"
  55784. + add="-l$name"
  55785. + elif test "$hardcode_shlibpath_var" = no; then
  55786. + add_shlibpath="$dir"
  55787. + add="-l$name"
  55788. + else
  55789. + lib_linked=no
  55790. + fi
  55791. + ;;
  55792. + relink)
  55793. + if test "$hardcode_direct" = yes &&
  55794. + test "$hardcode_direct_absolute" = no; then
  55795. + add="$dir/$linklib"
  55796. + elif test "$hardcode_minus_L" = yes; then
  55797. + add_dir="-L$dir"
  55798. + # Try looking first in the location we're being installed to.
  55799. + if test -n "$inst_prefix_dir"; then
  55800. + case $libdir in
  55801. + [\\/]*)
  55802. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  55803. + ;;
  55804. + esac
  55805. + fi
  55806. + add="-l$name"
  55807. + elif test "$hardcode_shlibpath_var" = yes; then
  55808. + add_shlibpath="$dir"
  55809. + add="-l$name"
  55810. + else
  55811. + lib_linked=no
  55812. + fi
  55813. + ;;
  55814. + *) lib_linked=no ;;
  55815. + esac
  55816. +
  55817. + if test "$lib_linked" != yes; then
  55818. + func_fatal_configuration "unsupported hardcode properties"
  55819. + fi
  55820. +
  55821. + if test -n "$add_shlibpath"; then
  55822. + case :$compile_shlibpath: in
  55823. + *":$add_shlibpath:"*) ;;
  55824. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  55825. + esac
  55826. + fi
  55827. + if test "$linkmode" = prog; then
  55828. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  55829. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  55830. + else
  55831. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  55832. + test -n "$add" && deplibs="$add $deplibs"
  55833. + if test "$hardcode_direct" != yes &&
  55834. + test "$hardcode_minus_L" != yes &&
  55835. + test "$hardcode_shlibpath_var" = yes; then
  55836. + case :$finalize_shlibpath: in
  55837. + *":$libdir:"*) ;;
  55838. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  55839. + esac
  55840. + fi
  55841. + fi
  55842. + fi
  55843. +
  55844. + if test "$linkmode" = prog || test "$mode" = relink; then
  55845. + add_shlibpath=
  55846. + add_dir=
  55847. + add=
  55848. + # Finalize command for both is simple: just hardcode it.
  55849. + if test "$hardcode_direct" = yes &&
  55850. + test "$hardcode_direct_absolute" = no; then
  55851. + add="$libdir/$linklib"
  55852. + elif test "$hardcode_minus_L" = yes; then
  55853. + add_dir="-L$libdir"
  55854. + add="-l$name"
  55855. + elif test "$hardcode_shlibpath_var" = yes; then
  55856. + case :$finalize_shlibpath: in
  55857. + *":$libdir:"*) ;;
  55858. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  55859. + esac
  55860. + add="-l$name"
  55861. + elif test "$hardcode_automatic" = yes; then
  55862. + if test -n "$inst_prefix_dir" &&
  55863. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  55864. + add="$inst_prefix_dir$libdir/$linklib"
  55865. + else
  55866. + add="$libdir/$linklib"
  55867. + fi
  55868. + else
  55869. + # We cannot seem to hardcode it, guess we'll fake it.
  55870. + add_dir="-L$libdir"
  55871. + # Try looking first in the location we're being installed to.
  55872. + if test -n "$inst_prefix_dir"; then
  55873. + case $libdir in
  55874. + [\\/]*)
  55875. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  55876. + ;;
  55877. + esac
  55878. + fi
  55879. + add="-l$name"
  55880. + fi
  55881. +
  55882. + if test "$linkmode" = prog; then
  55883. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  55884. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  55885. + else
  55886. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  55887. + test -n "$add" && deplibs="$add $deplibs"
  55888. + fi
  55889. + fi
  55890. + elif test "$linkmode" = prog; then
  55891. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  55892. + # is not unsupported. This is valid on all known static and
  55893. + # shared platforms.
  55894. + if test "$hardcode_direct" != unsupported; then
  55895. + test -n "$old_library" && linklib="$old_library"
  55896. + compile_deplibs="$dir/$linklib $compile_deplibs"
  55897. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  55898. + else
  55899. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  55900. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  55901. + fi
  55902. + elif test "$build_libtool_libs" = yes; then
  55903. + # Not a shared library
  55904. + if test "$deplibs_check_method" != pass_all; then
  55905. + # We're trying link a shared library against a static one
  55906. + # but the system doesn't support it.
  55907. +
  55908. + # Just print a warning and add the library to dependency_libs so
  55909. + # that the program can be linked against the static library.
  55910. + $ECHO
  55911. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  55912. + $ECHO "*** I have the capability to make that library automatically link in when"
  55913. + $ECHO "*** you link to this library. But I can only do this if you have a"
  55914. + $ECHO "*** shared version of the library, which you do not appear to have."
  55915. + if test "$module" = yes; then
  55916. + $ECHO "*** But as you try to build a module library, libtool will still create "
  55917. + $ECHO "*** a static module, that should work as long as the dlopening application"
  55918. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  55919. + if test -z "$global_symbol_pipe"; then
  55920. + $ECHO
  55921. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  55922. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  55923. + $ECHO "*** not find such a program. So, this module is probably useless."
  55924. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  55925. + fi
  55926. + if test "$build_old_libs" = no; then
  55927. + build_libtool_libs=module
  55928. + build_old_libs=yes
  55929. + else
  55930. + build_libtool_libs=no
  55931. + fi
  55932. + fi
  55933. + else
  55934. + deplibs="$dir/$old_library $deplibs"
  55935. + link_static=yes
  55936. + fi
  55937. + fi # link shared/static library?
  55938. +
  55939. + if test "$linkmode" = lib; then
  55940. + if test -n "$dependency_libs" &&
  55941. + { test "$hardcode_into_libs" != yes ||
  55942. + test "$build_old_libs" = yes ||
  55943. + test "$link_static" = yes; }; then
  55944. + # Extract -R from dependency_libs
  55945. + temp_deplibs=
  55946. + for libdir in $dependency_libs; do
  55947. + case $libdir in
  55948. + -R*) func_stripname '-R' '' "$libdir"
  55949. + temp_xrpath=$func_stripname_result
  55950. + case " $xrpath " in
  55951. + *" $temp_xrpath "*) ;;
  55952. + *) xrpath="$xrpath $temp_xrpath";;
  55953. + esac;;
  55954. + *) temp_deplibs="$temp_deplibs $libdir";;
  55955. + esac
  55956. + done
  55957. + dependency_libs="$temp_deplibs"
  55958. + fi
  55959. +
  55960. + newlib_search_path="$newlib_search_path $absdir"
  55961. + # Link against this library
  55962. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  55963. + # ... and its dependency_libs
  55964. + tmp_libs=
  55965. + for deplib in $dependency_libs; do
  55966. + newdependency_libs="$deplib $newdependency_libs"
  55967. + if $opt_duplicate_deps ; then
  55968. + case "$tmp_libs " in
  55969. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  55970. + esac
  55971. + fi
  55972. + tmp_libs="$tmp_libs $deplib"
  55973. + done
  55974. +
  55975. + if test "$link_all_deplibs" != no; then
  55976. + # Add the search paths of all dependency libraries
  55977. + for deplib in $dependency_libs; do
  55978. + path=
  55979. + case $deplib in
  55980. + -L*) path="$deplib" ;;
  55981. + *.la)
  55982. + func_dirname "$deplib" "" "."
  55983. + dir="$func_dirname_result"
  55984. + # We need an absolute path.
  55985. + case $dir in
  55986. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  55987. + *)
  55988. + absdir=`cd "$dir" && pwd`
  55989. + if test -z "$absdir"; then
  55990. + func_warning "cannot determine absolute directory name of \`$dir'"
  55991. + absdir="$dir"
  55992. + fi
  55993. + ;;
  55994. + esac
  55995. + if $GREP "^installed=no" $deplib > /dev/null; then
  55996. + case $host in
  55997. + *-*-darwin*)
  55998. + depdepl=
  55999. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  56000. + if test -n "$deplibrary_names" ; then
  56001. + for tmp in $deplibrary_names ; do
  56002. + depdepl=$tmp
  56003. + done
  56004. + if test -f "$absdir/$objdir/$depdepl" ; then
  56005. + depdepl="$absdir/$objdir/$depdepl"
  56006. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  56007. + if test -z "$darwin_install_name"; then
  56008. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  56009. + fi
  56010. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  56011. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  56012. + path=
  56013. + fi
  56014. + fi
  56015. + ;;
  56016. + *)
  56017. + path="-L$absdir/$objdir"
  56018. + ;;
  56019. + esac
  56020. + else
  56021. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  56022. + test -z "$libdir" && \
  56023. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  56024. + test "$absdir" != "$libdir" && \
  56025. + func_warning "\`$deplib' seems to be moved"
  56026. +
  56027. + path="-L$absdir"
  56028. + fi
  56029. + ;;
  56030. + esac
  56031. + case " $deplibs " in
  56032. + *" $path "*) ;;
  56033. + *) deplibs="$path $deplibs" ;;
  56034. + esac
  56035. + done
  56036. + fi # link_all_deplibs != no
  56037. + fi # linkmode = lib
  56038. + done # for deplib in $libs
  56039. + if test "$pass" = link; then
  56040. + if test "$linkmode" = "prog"; then
  56041. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  56042. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  56043. + else
  56044. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  56045. + fi
  56046. + fi
  56047. + dependency_libs="$newdependency_libs"
  56048. + if test "$pass" = dlpreopen; then
  56049. + # Link the dlpreopened libraries before other libraries
  56050. + for deplib in $save_deplibs; do
  56051. + deplibs="$deplib $deplibs"
  56052. + done
  56053. + fi
  56054. + if test "$pass" != dlopen; then
  56055. + if test "$pass" != conv; then
  56056. + # Make sure lib_search_path contains only unique directories.
  56057. + lib_search_path=
  56058. + for dir in $newlib_search_path; do
  56059. + case "$lib_search_path " in
  56060. + *" $dir "*) ;;
  56061. + *) lib_search_path="$lib_search_path $dir" ;;
  56062. + esac
  56063. + done
  56064. + newlib_search_path=
  56065. + fi
  56066. +
  56067. + if test "$linkmode,$pass" != "prog,link"; then
  56068. + vars="deplibs"
  56069. + else
  56070. + vars="compile_deplibs finalize_deplibs"
  56071. + fi
  56072. + for var in $vars dependency_libs; do
  56073. + # Add libraries to $var in reverse order
  56074. + eval tmp_libs=\"\$$var\"
  56075. + new_libs=
  56076. + for deplib in $tmp_libs; do
  56077. + # FIXME: Pedantically, this is the right thing to do, so
  56078. + # that some nasty dependency loop isn't accidentally
  56079. + # broken:
  56080. + #new_libs="$deplib $new_libs"
  56081. + # Pragmatically, this seems to cause very few problems in
  56082. + # practice:
  56083. + case $deplib in
  56084. + -L*) new_libs="$deplib $new_libs" ;;
  56085. + -R*) ;;
  56086. + *)
  56087. + # And here is the reason: when a library appears more
  56088. + # than once as an explicit dependence of a library, or
  56089. + # is implicitly linked in more than once by the
  56090. + # compiler, it is considered special, and multiple
  56091. + # occurrences thereof are not removed. Compare this
  56092. + # with having the same library being listed as a
  56093. + # dependency of multiple other libraries: in this case,
  56094. + # we know (pedantically, we assume) the library does not
  56095. + # need to be listed more than once, so we keep only the
  56096. + # last copy. This is not always right, but it is rare
  56097. + # enough that we require users that really mean to play
  56098. + # such unportable linking tricks to link the library
  56099. + # using -Wl,-lname, so that libtool does not consider it
  56100. + # for duplicate removal.
  56101. + case " $specialdeplibs " in
  56102. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  56103. + *)
  56104. + case " $new_libs " in
  56105. + *" $deplib "*) ;;
  56106. + *) new_libs="$deplib $new_libs" ;;
  56107. + esac
  56108. + ;;
  56109. + esac
  56110. + ;;
  56111. + esac
  56112. + done
  56113. + tmp_libs=
  56114. + for deplib in $new_libs; do
  56115. + case $deplib in
  56116. + -L*)
  56117. + case " $tmp_libs " in
  56118. + *" $deplib "*) ;;
  56119. + *) tmp_libs="$tmp_libs $deplib" ;;
  56120. + esac
  56121. + ;;
  56122. + *) tmp_libs="$tmp_libs $deplib" ;;
  56123. + esac
  56124. + done
  56125. + eval $var=\"$tmp_libs\"
  56126. + done # for var
  56127. + fi
  56128. + # Last step: remove runtime libs from dependency_libs
  56129. + # (they stay in deplibs)
  56130. + tmp_libs=
  56131. + for i in $dependency_libs ; do
  56132. + case " $predeps $postdeps $compiler_lib_search_path " in
  56133. + *" $i "*)
  56134. + i=""
  56135. + ;;
  56136. + esac
  56137. + if test -n "$i" ; then
  56138. + tmp_libs="$tmp_libs $i"
  56139. + fi
  56140. + done
  56141. + dependency_libs=$tmp_libs
  56142. + done # for pass
  56143. + if test "$linkmode" = prog; then
  56144. + dlfiles="$newdlfiles"
  56145. + fi
  56146. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  56147. + dlprefiles="$newdlprefiles"
  56148. + fi
  56149. +
  56150. + case $linkmode in
  56151. + oldlib)
  56152. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  56153. + func_warning "\`-dlopen' is ignored for archives"
  56154. + fi
  56155. +
  56156. + case " $deplibs" in
  56157. + *\ -l* | *\ -L*)
  56158. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  56159. + esac
  56160. +
  56161. + test -n "$rpath" && \
  56162. + func_warning "\`-rpath' is ignored for archives"
  56163. +
  56164. + test -n "$xrpath" && \
  56165. + func_warning "\`-R' is ignored for archives"
  56166. +
  56167. + test -n "$vinfo" && \
  56168. + func_warning "\`-version-info/-version-number' is ignored for archives"
  56169. +
  56170. + test -n "$release" && \
  56171. + func_warning "\`-release' is ignored for archives"
  56172. +
  56173. + test -n "$export_symbols$export_symbols_regex" && \
  56174. + func_warning "\`-export-symbols' is ignored for archives"
  56175. +
  56176. + # Now set the variables for building old libraries.
  56177. + build_libtool_libs=no
  56178. + oldlibs="$output"
  56179. + objs="$objs$old_deplibs"
  56180. + ;;
  56181. +
  56182. + lib)
  56183. + # Make sure we only generate libraries of the form `libNAME.la'.
  56184. + case $outputname in
  56185. + lib*)
  56186. + func_stripname 'lib' '.la' "$outputname"
  56187. + name=$func_stripname_result
  56188. + eval shared_ext=\"$shrext_cmds\"
  56189. + eval libname=\"$libname_spec\"
  56190. + ;;
  56191. + *)
  56192. + test "$module" = no && \
  56193. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  56194. +
  56195. + if test "$need_lib_prefix" != no; then
  56196. + # Add the "lib" prefix for modules if required
  56197. + func_stripname '' '.la' "$outputname"
  56198. + name=$func_stripname_result
  56199. + eval shared_ext=\"$shrext_cmds\"
  56200. + eval libname=\"$libname_spec\"
  56201. + else
  56202. + func_stripname '' '.la' "$outputname"
  56203. + libname=$func_stripname_result
  56204. + fi
  56205. + ;;
  56206. + esac
  56207. +
  56208. + if test -n "$objs"; then
  56209. + if test "$deplibs_check_method" != pass_all; then
  56210. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  56211. + else
  56212. + $ECHO
  56213. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  56214. + $ECHO "*** objects $objs is not portable!"
  56215. + libobjs="$libobjs $objs"
  56216. + fi
  56217. + fi
  56218. +
  56219. + test "$dlself" != no && \
  56220. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  56221. +
  56222. + set dummy $rpath
  56223. + shift
  56224. + test "$#" -gt 1 && \
  56225. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  56226. +
  56227. + install_libdir="$1"
  56228. +
  56229. + oldlibs=
  56230. + if test -z "$rpath"; then
  56231. + if test "$build_libtool_libs" = yes; then
  56232. + # Building a libtool convenience library.
  56233. + # Some compilers have problems with a `.al' extension so
  56234. + # convenience libraries should have the same extension an
  56235. + # archive normally would.
  56236. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  56237. + build_libtool_libs=convenience
  56238. + build_old_libs=yes
  56239. + fi
  56240. +
  56241. + test -n "$vinfo" && \
  56242. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  56243. +
  56244. + test -n "$release" && \
  56245. + func_warning "\`-release' is ignored for convenience libraries"
  56246. + else
  56247. +
  56248. + # Parse the version information argument.
  56249. + save_ifs="$IFS"; IFS=':'
  56250. + set dummy $vinfo 0 0 0
  56251. + shift
  56252. + IFS="$save_ifs"
  56253. +
  56254. + test -n "$7" && \
  56255. + func_fatal_help "too many parameters to \`-version-info'"
  56256. +
  56257. + # convert absolute version numbers to libtool ages
  56258. + # this retains compatibility with .la files and attempts
  56259. + # to make the code below a bit more comprehensible
  56260. +
  56261. + case $vinfo_number in
  56262. + yes)
  56263. + number_major="$1"
  56264. + number_minor="$2"
  56265. + number_revision="$3"
  56266. + #
  56267. + # There are really only two kinds -- those that
  56268. + # use the current revision as the major version
  56269. + # and those that subtract age and use age as
  56270. + # a minor version. But, then there is irix
  56271. + # which has an extra 1 added just for fun
  56272. + #
  56273. + case $version_type in
  56274. + darwin|linux|osf|windows|none)
  56275. + func_arith $number_major + $number_minor
  56276. + current=$func_arith_result
  56277. + age="$number_minor"
  56278. + revision="$number_revision"
  56279. + ;;
  56280. + freebsd-aout|freebsd-elf|sunos)
  56281. + current="$number_major"
  56282. + revision="$number_minor"
  56283. + age="0"
  56284. + ;;
  56285. + irix|nonstopux)
  56286. + func_arith $number_major + $number_minor
  56287. + current=$func_arith_result
  56288. + age="$number_minor"
  56289. + revision="$number_minor"
  56290. + lt_irix_increment=no
  56291. + ;;
  56292. + *)
  56293. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  56294. + ;;
  56295. + esac
  56296. + ;;
  56297. + no)
  56298. + current="$1"
  56299. + revision="$2"
  56300. + age="$3"
  56301. + ;;
  56302. + esac
  56303. +
  56304. + # Check that each of the things are valid numbers.
  56305. + case $current in
  56306. + 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]) ;;
  56307. + *)
  56308. + func_error "CURRENT \`$current' must be a nonnegative integer"
  56309. + func_fatal_error "\`$vinfo' is not valid version information"
  56310. + ;;
  56311. + esac
  56312. +
  56313. + case $revision in
  56314. + 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]) ;;
  56315. + *)
  56316. + func_error "REVISION \`$revision' must be a nonnegative integer"
  56317. + func_fatal_error "\`$vinfo' is not valid version information"
  56318. + ;;
  56319. + esac
  56320. +
  56321. + case $age in
  56322. + 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]) ;;
  56323. + *)
  56324. + func_error "AGE \`$age' must be a nonnegative integer"
  56325. + func_fatal_error "\`$vinfo' is not valid version information"
  56326. + ;;
  56327. + esac
  56328. +
  56329. + if test "$age" -gt "$current"; then
  56330. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  56331. + func_fatal_error "\`$vinfo' is not valid version information"
  56332. + fi
  56333. +
  56334. + # Calculate the version variables.
  56335. + major=
  56336. + versuffix=
  56337. + verstring=
  56338. + case $version_type in
  56339. + none) ;;
  56340. +
  56341. + darwin)
  56342. + # Like Linux, but with the current version available in
  56343. + # verstring for coding it into the library header
  56344. + func_arith $current - $age
  56345. + major=.$func_arith_result
  56346. + versuffix="$major.$age.$revision"
  56347. + # Darwin ld doesn't like 0 for these options...
  56348. + func_arith $current + 1
  56349. + minor_current=$func_arith_result
  56350. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  56351. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  56352. + ;;
  56353. +
  56354. + freebsd-aout)
  56355. + major=".$current"
  56356. + versuffix=".$current.$revision";
  56357. + ;;
  56358. +
  56359. + freebsd-elf)
  56360. + major=".$current"
  56361. + versuffix=".$current"
  56362. + ;;
  56363. +
  56364. + irix | nonstopux)
  56365. + if test "X$lt_irix_increment" = "Xno"; then
  56366. + func_arith $current - $age
  56367. + else
  56368. + func_arith $current - $age + 1
  56369. + fi
  56370. + major=$func_arith_result
  56371. +
  56372. + case $version_type in
  56373. + nonstopux) verstring_prefix=nonstopux ;;
  56374. + *) verstring_prefix=sgi ;;
  56375. + esac
  56376. + verstring="$verstring_prefix$major.$revision"
  56377. +
  56378. + # Add in all the interfaces that we are compatible with.
  56379. + loop=$revision
  56380. + while test "$loop" -ne 0; do
  56381. + func_arith $revision - $loop
  56382. + iface=$func_arith_result
  56383. + func_arith $loop - 1
  56384. + loop=$func_arith_result
  56385. + verstring="$verstring_prefix$major.$iface:$verstring"
  56386. + done
  56387. +
  56388. + # Before this point, $major must not contain `.'.
  56389. + major=.$major
  56390. + versuffix="$major.$revision"
  56391. + ;;
  56392. +
  56393. + linux)
  56394. + func_arith $current - $age
  56395. + major=.$func_arith_result
  56396. + versuffix="$major.$age.$revision"
  56397. + ;;
  56398. +
  56399. + osf)
  56400. + func_arith $current - $age
  56401. + major=.$func_arith_result
  56402. + versuffix=".$current.$age.$revision"
  56403. + verstring="$current.$age.$revision"
  56404. +
  56405. + # Add in all the interfaces that we are compatible with.
  56406. + loop=$age
  56407. + while test "$loop" -ne 0; do
  56408. + func_arith $current - $loop
  56409. + iface=$func_arith_result
  56410. + func_arith $loop - 1
  56411. + loop=$func_arith_result
  56412. + verstring="$verstring:${iface}.0"
  56413. + done
  56414. +
  56415. + # Make executables depend on our current version.
  56416. + verstring="$verstring:${current}.0"
  56417. + ;;
  56418. +
  56419. + qnx)
  56420. + major=".$current"
  56421. + versuffix=".$current"
  56422. + ;;
  56423. +
  56424. + sunos)
  56425. + major=".$current"
  56426. + versuffix=".$current.$revision"
  56427. + ;;
  56428. +
  56429. + windows)
  56430. + # Use '-' rather than '.', since we only want one
  56431. + # extension on DOS 8.3 filesystems.
  56432. + func_arith $current - $age
  56433. + major=$func_arith_result
  56434. + versuffix="-$major"
  56435. + ;;
  56436. +
  56437. + *)
  56438. + func_fatal_configuration "unknown library version type \`$version_type'"
  56439. + ;;
  56440. + esac
  56441. +
  56442. + # Clear the version info if we defaulted, and they specified a release.
  56443. + if test -z "$vinfo" && test -n "$release"; then
  56444. + major=
  56445. + case $version_type in
  56446. + darwin)
  56447. + # we can't check for "0.0" in archive_cmds due to quoting
  56448. + # problems, so we reset it completely
  56449. + verstring=
  56450. + ;;
  56451. + *)
  56452. + verstring="0.0"
  56453. + ;;
  56454. + esac
  56455. + if test "$need_version" = no; then
  56456. + versuffix=
  56457. + else
  56458. + versuffix=".0.0"
  56459. + fi
  56460. + fi
  56461. +
  56462. + # Remove version info from name if versioning should be avoided
  56463. + if test "$avoid_version" = yes && test "$need_version" = no; then
  56464. + major=
  56465. + versuffix=
  56466. + verstring=""
  56467. + fi
  56468. +
  56469. + # Check to see if the archive will have undefined symbols.
  56470. + if test "$allow_undefined" = yes; then
  56471. + if test "$allow_undefined_flag" = unsupported; then
  56472. + func_warning "undefined symbols not allowed in $host shared libraries"
  56473. + build_libtool_libs=no
  56474. + build_old_libs=yes
  56475. + fi
  56476. + else
  56477. + # Don't allow undefined symbols.
  56478. + allow_undefined_flag="$no_undefined_flag"
  56479. + fi
  56480. +
  56481. + fi
  56482. +
  56483. + func_generate_dlsyms "$libname" "$libname" "yes"
  56484. + libobjs="$libobjs $symfileobj"
  56485. + test "X$libobjs" = "X " && libobjs=
  56486. +
  56487. + if test "$mode" != relink; then
  56488. + # Remove our outputs, but don't remove object files since they
  56489. + # may have been created when compiling PIC objects.
  56490. + removelist=
  56491. + tempremovelist=`$ECHO "$output_objdir/*"`
  56492. + for p in $tempremovelist; do
  56493. + case $p in
  56494. + *.$objext | *.gcno)
  56495. + ;;
  56496. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  56497. + if test "X$precious_files_regex" != "X"; then
  56498. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  56499. + then
  56500. + continue
  56501. + fi
  56502. + fi
  56503. + removelist="$removelist $p"
  56504. + ;;
  56505. + *) ;;
  56506. + esac
  56507. + done
  56508. + test -n "$removelist" && \
  56509. + func_show_eval "${RM}r \$removelist"
  56510. + fi
  56511. +
  56512. + # Now set the variables for building old libraries.
  56513. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  56514. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  56515. +
  56516. + # Transform .lo files to .o files.
  56517. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  56518. + fi
  56519. +
  56520. + # Eliminate all temporary directories.
  56521. + #for path in $notinst_path; do
  56522. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  56523. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  56524. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  56525. + #done
  56526. +
  56527. + if test -n "$xrpath"; then
  56528. + # If the user specified any rpath flags, then add them.
  56529. + temp_xrpath=
  56530. + for libdir in $xrpath; do
  56531. + temp_xrpath="$temp_xrpath -R$libdir"
  56532. + case "$finalize_rpath " in
  56533. + *" $libdir "*) ;;
  56534. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  56535. + esac
  56536. + done
  56537. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  56538. + dependency_libs="$temp_xrpath $dependency_libs"
  56539. + fi
  56540. + fi
  56541. +
  56542. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  56543. + old_dlfiles="$dlfiles"
  56544. + dlfiles=
  56545. + for lib in $old_dlfiles; do
  56546. + case " $dlprefiles $dlfiles " in
  56547. + *" $lib "*) ;;
  56548. + *) dlfiles="$dlfiles $lib" ;;
  56549. + esac
  56550. + done
  56551. +
  56552. + # Make sure dlprefiles contains only unique files
  56553. + old_dlprefiles="$dlprefiles"
  56554. + dlprefiles=
  56555. + for lib in $old_dlprefiles; do
  56556. + case "$dlprefiles " in
  56557. + *" $lib "*) ;;
  56558. + *) dlprefiles="$dlprefiles $lib" ;;
  56559. + esac
  56560. + done
  56561. +
  56562. + if test "$build_libtool_libs" = yes; then
  56563. + if test -n "$rpath"; then
  56564. + case $host in
  56565. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  56566. + # these systems don't actually have a c library (as such)!
  56567. + ;;
  56568. + *-*-rhapsody* | *-*-darwin1.[012])
  56569. + # Rhapsody C library is in the System framework
  56570. + deplibs="$deplibs System.ltframework"
  56571. + ;;
  56572. + *-*-netbsd*)
  56573. + # Don't link with libc until the a.out ld.so is fixed.
  56574. + ;;
  56575. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  56576. + # Do not include libc due to us having libc/libc_r.
  56577. + ;;
  56578. + *-*-sco3.2v5* | *-*-sco5v6*)
  56579. + # Causes problems with __ctype
  56580. + ;;
  56581. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  56582. + # Compiler inserts libc in the correct place for threads to work
  56583. + ;;
  56584. + *)
  56585. + # Add libc to deplibs on all other systems if necessary.
  56586. + if test "$build_libtool_need_lc" = "yes"; then
  56587. + deplibs="$deplibs -lc"
  56588. + fi
  56589. + ;;
  56590. + esac
  56591. + fi
  56592. +
  56593. + # Transform deplibs into only deplibs that can be linked in shared.
  56594. + name_save=$name
  56595. + libname_save=$libname
  56596. + release_save=$release
  56597. + versuffix_save=$versuffix
  56598. + major_save=$major
  56599. + # I'm not sure if I'm treating the release correctly. I think
  56600. + # release should show up in the -l (ie -lgmp5) so we don't want to
  56601. + # add it in twice. Is that correct?
  56602. + release=""
  56603. + versuffix=""
  56604. + major=""
  56605. + newdeplibs=
  56606. + droppeddeps=no
  56607. + case $deplibs_check_method in
  56608. + pass_all)
  56609. + # Don't check for shared/static. Everything works.
  56610. + # This might be a little naive. We might want to check
  56611. + # whether the library exists or not. But this is on
  56612. + # osf3 & osf4 and I'm not really sure... Just
  56613. + # implementing what was already the behavior.
  56614. + newdeplibs=$deplibs
  56615. + ;;
  56616. + test_compile)
  56617. + # This code stresses the "libraries are programs" paradigm to its
  56618. + # limits. Maybe even breaks it. We compile a program, linking it
  56619. + # against the deplibs as a proxy for the library. Then we can check
  56620. + # whether they linked in statically or dynamically with ldd.
  56621. + $opt_dry_run || $RM conftest.c
  56622. + cat > conftest.c <<EOF
  56623. + int main() { return 0; }
  56624. +EOF
  56625. + $opt_dry_run || $RM conftest
  56626. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  56627. + ldd_output=`ldd conftest`
  56628. + for i in $deplibs; do
  56629. + case $i in
  56630. + -l*)
  56631. + func_stripname -l '' "$i"
  56632. + name=$func_stripname_result
  56633. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  56634. + case " $predeps $postdeps " in
  56635. + *" $i "*)
  56636. + newdeplibs="$newdeplibs $i"
  56637. + i=""
  56638. + ;;
  56639. + esac
  56640. + fi
  56641. + if test -n "$i" ; then
  56642. + libname=`eval "\\$ECHO \"$libname_spec\""`
  56643. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  56644. + set dummy $deplib_matches; shift
  56645. + deplib_match=$1
  56646. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  56647. + newdeplibs="$newdeplibs $i"
  56648. + else
  56649. + droppeddeps=yes
  56650. + $ECHO
  56651. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  56652. + $ECHO "*** I have the capability to make that library automatically link in when"
  56653. + $ECHO "*** you link to this library. But I can only do this if you have a"
  56654. + $ECHO "*** shared version of the library, which I believe you do not have"
  56655. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  56656. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  56657. + fi
  56658. + fi
  56659. + ;;
  56660. + *)
  56661. + newdeplibs="$newdeplibs $i"
  56662. + ;;
  56663. + esac
  56664. + done
  56665. + else
  56666. + # Error occurred in the first compile. Let's try to salvage
  56667. + # the situation: Compile a separate program for each library.
  56668. + for i in $deplibs; do
  56669. + case $i in
  56670. + -l*)
  56671. + func_stripname -l '' "$i"
  56672. + name=$func_stripname_result
  56673. + $opt_dry_run || $RM conftest
  56674. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  56675. + ldd_output=`ldd conftest`
  56676. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  56677. + case " $predeps $postdeps " in
  56678. + *" $i "*)
  56679. + newdeplibs="$newdeplibs $i"
  56680. + i=""
  56681. + ;;
  56682. + esac
  56683. + fi
  56684. + if test -n "$i" ; then
  56685. + libname=`eval "\\$ECHO \"$libname_spec\""`
  56686. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  56687. + set dummy $deplib_matches; shift
  56688. + deplib_match=$1
  56689. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  56690. + newdeplibs="$newdeplibs $i"
  56691. + else
  56692. + droppeddeps=yes
  56693. + $ECHO
  56694. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  56695. + $ECHO "*** I have the capability to make that library automatically link in when"
  56696. + $ECHO "*** you link to this library. But I can only do this if you have a"
  56697. + $ECHO "*** shared version of the library, which you do not appear to have"
  56698. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  56699. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  56700. + fi
  56701. + fi
  56702. + else
  56703. + droppeddeps=yes
  56704. + $ECHO
  56705. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  56706. + $ECHO "*** make it link in! You will probably need to install it or some"
  56707. + $ECHO "*** library that it depends on before this library will be fully"
  56708. + $ECHO "*** functional. Installing it before continuing would be even better."
  56709. + fi
  56710. + ;;
  56711. + *)
  56712. + newdeplibs="$newdeplibs $i"
  56713. + ;;
  56714. + esac
  56715. + done
  56716. + fi
  56717. + ;;
  56718. + file_magic*)
  56719. + set dummy $deplibs_check_method; shift
  56720. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  56721. + for a_deplib in $deplibs; do
  56722. + case $a_deplib in
  56723. + -l*)
  56724. + func_stripname -l '' "$a_deplib"
  56725. + name=$func_stripname_result
  56726. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  56727. + case " $predeps $postdeps " in
  56728. + *" $a_deplib "*)
  56729. + newdeplibs="$newdeplibs $a_deplib"
  56730. + a_deplib=""
  56731. + ;;
  56732. + esac
  56733. + fi
  56734. + if test -n "$a_deplib" ; then
  56735. + libname=`eval "\\$ECHO \"$libname_spec\""`
  56736. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  56737. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  56738. + for potent_lib in $potential_libs; do
  56739. + # Follow soft links.
  56740. + if ls -lLd "$potent_lib" 2>/dev/null |
  56741. + $GREP " -> " >/dev/null; then
  56742. + continue
  56743. + fi
  56744. + # The statement above tries to avoid entering an
  56745. + # endless loop below, in case of cyclic links.
  56746. + # We might still enter an endless loop, since a link
  56747. + # loop can be closed while we follow links,
  56748. + # but so what?
  56749. + potlib="$potent_lib"
  56750. + while test -h "$potlib" 2>/dev/null; do
  56751. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  56752. + case $potliblink in
  56753. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  56754. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  56755. + esac
  56756. + done
  56757. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  56758. + $SED -e 10q |
  56759. + $EGREP "$file_magic_regex" > /dev/null; then
  56760. + newdeplibs="$newdeplibs $a_deplib"
  56761. + a_deplib=""
  56762. + break 2
  56763. + fi
  56764. + done
  56765. + done
  56766. + fi
  56767. + if test -n "$a_deplib" ; then
  56768. + droppeddeps=yes
  56769. + $ECHO
  56770. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  56771. + $ECHO "*** I have the capability to make that library automatically link in when"
  56772. + $ECHO "*** you link to this library. But I can only do this if you have a"
  56773. + $ECHO "*** shared version of the library, which you do not appear to have"
  56774. + $ECHO "*** because I did check the linker path looking for a file starting"
  56775. + if test -z "$potlib" ; then
  56776. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  56777. + else
  56778. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  56779. + $ECHO "*** using a file magic. Last file checked: $potlib"
  56780. + fi
  56781. + fi
  56782. + ;;
  56783. + *)
  56784. + # Add a -L argument.
  56785. + newdeplibs="$newdeplibs $a_deplib"
  56786. + ;;
  56787. + esac
  56788. + done # Gone through all deplibs.
  56789. + ;;
  56790. + match_pattern*)
  56791. + set dummy $deplibs_check_method; shift
  56792. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  56793. + for a_deplib in $deplibs; do
  56794. + case $a_deplib in
  56795. + -l*)
  56796. + func_stripname -l '' "$a_deplib"
  56797. + name=$func_stripname_result
  56798. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  56799. + case " $predeps $postdeps " in
  56800. + *" $a_deplib "*)
  56801. + newdeplibs="$newdeplibs $a_deplib"
  56802. + a_deplib=""
  56803. + ;;
  56804. + esac
  56805. + fi
  56806. + if test -n "$a_deplib" ; then
  56807. + libname=`eval "\\$ECHO \"$libname_spec\""`
  56808. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  56809. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  56810. + for potent_lib in $potential_libs; do
  56811. + potlib="$potent_lib" # see symlink-check above in file_magic test
  56812. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  56813. + $EGREP "$match_pattern_regex" > /dev/null; then
  56814. + newdeplibs="$newdeplibs $a_deplib"
  56815. + a_deplib=""
  56816. + break 2
  56817. + fi
  56818. + done
  56819. + done
  56820. + fi
  56821. + if test -n "$a_deplib" ; then
  56822. + droppeddeps=yes
  56823. + $ECHO
  56824. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  56825. + $ECHO "*** I have the capability to make that library automatically link in when"
  56826. + $ECHO "*** you link to this library. But I can only do this if you have a"
  56827. + $ECHO "*** shared version of the library, which you do not appear to have"
  56828. + $ECHO "*** because I did check the linker path looking for a file starting"
  56829. + if test -z "$potlib" ; then
  56830. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  56831. + else
  56832. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  56833. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  56834. + fi
  56835. + fi
  56836. + ;;
  56837. + *)
  56838. + # Add a -L argument.
  56839. + newdeplibs="$newdeplibs $a_deplib"
  56840. + ;;
  56841. + esac
  56842. + done # Gone through all deplibs.
  56843. + ;;
  56844. + none | unknown | *)
  56845. + newdeplibs=""
  56846. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  56847. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  56848. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  56849. + for i in $predeps $postdeps ; do
  56850. + # can't use Xsed below, because $i might contain '/'
  56851. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  56852. + done
  56853. + fi
  56854. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  56855. + $GREP . >/dev/null; then
  56856. + $ECHO
  56857. + if test "X$deplibs_check_method" = "Xnone"; then
  56858. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  56859. + else
  56860. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  56861. + fi
  56862. + $ECHO "*** All declared inter-library dependencies are being dropped."
  56863. + droppeddeps=yes
  56864. + fi
  56865. + ;;
  56866. + esac
  56867. + versuffix=$versuffix_save
  56868. + major=$major_save
  56869. + release=$release_save
  56870. + libname=$libname_save
  56871. + name=$name_save
  56872. - # If there was a directory component, then change thisdir.
  56873. - if test \"x\$destdir\" != \"x\$file\"; then
  56874. - case \"\$destdir\" in
  56875. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  56876. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  56877. + case $host in
  56878. + *-*-rhapsody* | *-*-darwin1.[012])
  56879. + # On Rhapsody replace the C library with the System framework
  56880. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  56881. + ;;
  56882. + esac
  56883. +
  56884. + if test "$droppeddeps" = yes; then
  56885. + if test "$module" = yes; then
  56886. + $ECHO
  56887. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  56888. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  56889. + $ECHO "*** a static module, that should work as long as the dlopening"
  56890. + $ECHO "*** application is linked with the -dlopen flag."
  56891. + if test -z "$global_symbol_pipe"; then
  56892. + $ECHO
  56893. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  56894. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  56895. + $ECHO "*** not find such a program. So, this module is probably useless."
  56896. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  56897. + fi
  56898. + if test "$build_old_libs" = no; then
  56899. + oldlibs="$output_objdir/$libname.$libext"
  56900. + build_libtool_libs=module
  56901. + build_old_libs=yes
  56902. + else
  56903. + build_libtool_libs=no
  56904. + fi
  56905. + else
  56906. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  56907. + $ECHO "*** automatically added whenever a program is linked with this library"
  56908. + $ECHO "*** or is declared to -dlopen it."
  56909. +
  56910. + if test "$allow_undefined" = no; then
  56911. + $ECHO
  56912. + $ECHO "*** Since this library must not contain undefined symbols,"
  56913. + $ECHO "*** because either the platform does not support them or"
  56914. + $ECHO "*** it was explicitly requested with -no-undefined,"
  56915. + $ECHO "*** libtool will only create a static version of it."
  56916. + if test "$build_old_libs" = no; then
  56917. + oldlibs="$output_objdir/$libname.$libext"
  56918. + build_libtool_libs=module
  56919. + build_old_libs=yes
  56920. + else
  56921. + build_libtool_libs=no
  56922. + fi
  56923. + fi
  56924. + fi
  56925. + fi
  56926. + # Done checking deplibs!
  56927. + deplibs=$newdeplibs
  56928. + fi
  56929. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  56930. + case $host in
  56931. + *-*-darwin*)
  56932. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  56933. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  56934. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  56935. + ;;
  56936. esac
  56937. - fi
  56938. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  56939. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  56940. - done
  56941. + # move library search paths that coincide with paths to not yet
  56942. + # installed libraries to the beginning of the library search list
  56943. + new_libs=
  56944. + for path in $notinst_path; do
  56945. + case " $new_libs " in
  56946. + *" -L$path/$objdir "*) ;;
  56947. + *)
  56948. + case " $deplibs " in
  56949. + *" -L$path/$objdir "*)
  56950. + new_libs="$new_libs -L$path/$objdir" ;;
  56951. + esac
  56952. + ;;
  56953. + esac
  56954. + done
  56955. + for deplib in $deplibs; do
  56956. + case $deplib in
  56957. + -L*)
  56958. + case " $new_libs " in
  56959. + *" $deplib "*) ;;
  56960. + *) new_libs="$new_libs $deplib" ;;
  56961. + esac
  56962. + ;;
  56963. + *) new_libs="$new_libs $deplib" ;;
  56964. + esac
  56965. + done
  56966. + deplibs="$new_libs"
  56967. - # Try to get the absolute directory name.
  56968. - absdir=\`cd \"\$thisdir\" && pwd\`
  56969. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  56970. -"
  56971. + # All the library-specific variables (install_libdir is set above).
  56972. + library_names=
  56973. + old_library=
  56974. + dlname=
  56975. +
  56976. + # Test again, we may have decided not to build it any more
  56977. + if test "$build_libtool_libs" = yes; then
  56978. + if test "$hardcode_into_libs" = yes; then
  56979. + # Hardcode the library paths
  56980. + hardcode_libdirs=
  56981. + dep_rpath=
  56982. + rpath="$finalize_rpath"
  56983. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  56984. + for libdir in $rpath; do
  56985. + if test -n "$hardcode_libdir_flag_spec"; then
  56986. + if test -n "$hardcode_libdir_separator"; then
  56987. + if test -z "$hardcode_libdirs"; then
  56988. + hardcode_libdirs="$libdir"
  56989. + else
  56990. + # Just accumulate the unique libdirs.
  56991. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  56992. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  56993. + ;;
  56994. + *)
  56995. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  56996. + ;;
  56997. + esac
  56998. + fi
  56999. + else
  57000. + eval flag=\"$hardcode_libdir_flag_spec\"
  57001. + dep_rpath="$dep_rpath $flag"
  57002. + fi
  57003. + elif test -n "$runpath_var"; then
  57004. + case "$perm_rpath " in
  57005. + *" $libdir "*) ;;
  57006. + *) perm_rpath="$perm_rpath $libdir" ;;
  57007. + esac
  57008. + fi
  57009. + done
  57010. + # Substitute the hardcoded libdirs into the rpath.
  57011. + if test -n "$hardcode_libdir_separator" &&
  57012. + test -n "$hardcode_libdirs"; then
  57013. + libdir="$hardcode_libdirs"
  57014. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  57015. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  57016. + else
  57017. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  57018. + fi
  57019. + fi
  57020. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  57021. + # We should set the runpath_var.
  57022. + rpath=
  57023. + for dir in $perm_rpath; do
  57024. + rpath="$rpath$dir:"
  57025. + done
  57026. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  57027. + fi
  57028. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  57029. + fi
  57030. - if test "$fast_install" = yes; then
  57031. - $echo >> $output "\
  57032. - program=lt-'$outputname'$exeext
  57033. - progdir=\"\$thisdir/$objdir\"
  57034. + shlibpath="$finalize_shlibpath"
  57035. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  57036. + if test -n "$shlibpath"; then
  57037. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  57038. + fi
  57039. - if test ! -f \"\$progdir/\$program\" || \\
  57040. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  57041. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  57042. + # Get the real and link names of the library.
  57043. + eval shared_ext=\"$shrext_cmds\"
  57044. + eval library_names=\"$library_names_spec\"
  57045. + set dummy $library_names
  57046. + shift
  57047. + realname="$1"
  57048. + shift
  57049. - file=\"\$\$-\$program\"
  57050. + if test -n "$soname_spec"; then
  57051. + eval soname=\"$soname_spec\"
  57052. + else
  57053. + soname="$realname"
  57054. + fi
  57055. + if test -z "$dlname"; then
  57056. + dlname=$soname
  57057. + fi
  57058. - if test ! -d \"\$progdir\"; then
  57059. - $mkdir \"\$progdir\"
  57060. - else
  57061. - $rm \"\$progdir/\$file\"
  57062. - fi"
  57063. + lib="$output_objdir/$realname"
  57064. + linknames=
  57065. + for link
  57066. + do
  57067. + linknames="$linknames $link"
  57068. + done
  57069. - $echo >> $output "\
  57070. + # Use standard objects if they are pic
  57071. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  57072. + test "X$libobjs" = "X " && libobjs=
  57073. - # relink executable if necessary
  57074. - if test -n \"\$relink_command\"; then
  57075. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  57076. - else
  57077. - $echo \"\$relink_command_output\" >&2
  57078. - $rm \"\$progdir/\$file\"
  57079. - exit $EXIT_FAILURE
  57080. - fi
  57081. - fi
  57082. + delfiles=
  57083. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  57084. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  57085. + export_symbols="$output_objdir/$libname.uexp"
  57086. + delfiles="$delfiles $export_symbols"
  57087. + fi
  57088. +
  57089. + orig_export_symbols=
  57090. + case $host_os in
  57091. + cygwin* | mingw* | cegcc*)
  57092. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  57093. + # exporting using user supplied symfile
  57094. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  57095. + # and it's NOT already a .def file. Must figure out
  57096. + # which of the given symbols are data symbols and tag
  57097. + # them as such. So, trigger use of export_symbols_cmds.
  57098. + # export_symbols gets reassigned inside the "prepare
  57099. + # the list of exported symbols" if statement, so the
  57100. + # include_expsyms logic still works.
  57101. + orig_export_symbols="$export_symbols"
  57102. + export_symbols=
  57103. + always_export_symbols=yes
  57104. + fi
  57105. + fi
  57106. + ;;
  57107. + esac
  57108. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  57109. - { $rm \"\$progdir/\$program\";
  57110. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  57111. - $rm \"\$progdir/\$file\"
  57112. - fi"
  57113. - else
  57114. - $echo >> $output "\
  57115. - program='$outputname'
  57116. - progdir=\"\$thisdir/$objdir\"
  57117. -"
  57118. + # Prepare the list of exported symbols
  57119. + if test -z "$export_symbols"; then
  57120. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  57121. + func_verbose "generating symbol list for \`$libname.la'"
  57122. + export_symbols="$output_objdir/$libname.exp"
  57123. + $opt_dry_run || $RM $export_symbols
  57124. + cmds=$export_symbols_cmds
  57125. + save_ifs="$IFS"; IFS='~'
  57126. + for cmd in $cmds; do
  57127. + IFS="$save_ifs"
  57128. + eval cmd=\"$cmd\"
  57129. + func_len " $cmd"
  57130. + len=$func_len_result
  57131. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  57132. + func_show_eval "$cmd" 'exit $?'
  57133. + skipped_export=false
  57134. + else
  57135. + # The command line is too long to execute in one step.
  57136. + func_verbose "using reloadable object file for export list..."
  57137. + skipped_export=:
  57138. + # Break out early, otherwise skipped_export may be
  57139. + # set to false by a later but shorter cmd.
  57140. + break
  57141. + fi
  57142. + done
  57143. + IFS="$save_ifs"
  57144. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  57145. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  57146. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  57147. + fi
  57148. + fi
  57149. fi
  57150. - $echo >> $output "\
  57151. -
  57152. - if test -f \"\$progdir/\$program\"; then"
  57153. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  57154. + tmp_export_symbols="$export_symbols"
  57155. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  57156. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  57157. + fi
  57158. +
  57159. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  57160. + # The given exports_symbols file has to be filtered, so filter it.
  57161. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  57162. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  57163. + # 's' commands which not all seds can handle. GNU sed should be fine
  57164. + # though. Also, the filter scales superlinearly with the number of
  57165. + # global variables. join(1) would be nice here, but unfortunately
  57166. + # isn't a blessed tool.
  57167. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  57168. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  57169. + export_symbols=$output_objdir/$libname.def
  57170. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  57171. + fi
  57172. - # Export our shlibpath_var if we have one.
  57173. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  57174. - $echo >> $output "\
  57175. - # Add our own library path to $shlibpath_var
  57176. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  57177. + tmp_deplibs=
  57178. + for test_deplib in $deplibs; do
  57179. + case " $convenience " in
  57180. + *" $test_deplib "*) ;;
  57181. + *)
  57182. + tmp_deplibs="$tmp_deplibs $test_deplib"
  57183. + ;;
  57184. + esac
  57185. + done
  57186. + deplibs="$tmp_deplibs"
  57187. - # Some systems cannot cope with colon-terminated $shlibpath_var
  57188. - # The second colon is a workaround for a bug in BeOS R4 sed
  57189. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  57190. + if test -n "$convenience"; then
  57191. + if test -n "$whole_archive_flag_spec" &&
  57192. + test "$compiler_needs_object" = yes &&
  57193. + test -z "$libobjs"; then
  57194. + # extract the archives, so we have objects to list.
  57195. + # TODO: could optimize this to just extract one archive.
  57196. + whole_archive_flag_spec=
  57197. + fi
  57198. + if test -n "$whole_archive_flag_spec"; then
  57199. + save_libobjs=$libobjs
  57200. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  57201. + test "X$libobjs" = "X " && libobjs=
  57202. + else
  57203. + gentop="$output_objdir/${outputname}x"
  57204. + generated="$generated $gentop"
  57205. - export $shlibpath_var
  57206. -"
  57207. + func_extract_archives $gentop $convenience
  57208. + libobjs="$libobjs $func_extract_archives_result"
  57209. + test "X$libobjs" = "X " && libobjs=
  57210. + fi
  57211. fi
  57212. - # fixup the dll searchpath if we need to.
  57213. - if test -n "$dllsearchpath"; then
  57214. - $echo >> $output "\
  57215. - # Add the dll search path components to the executable PATH
  57216. - PATH=$dllsearchpath:\$PATH
  57217. -"
  57218. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  57219. + eval flag=\"$thread_safe_flag_spec\"
  57220. + linker_flags="$linker_flags $flag"
  57221. fi
  57222. - $echo >> $output "\
  57223. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  57224. - # Run the actual program with our arguments.
  57225. -"
  57226. - case $host in
  57227. - # Backslashes separate directories on plain windows
  57228. - *-*-mingw | *-*-os2*)
  57229. - $echo >> $output "\
  57230. - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  57231. -"
  57232. - ;;
  57233. -
  57234. - *)
  57235. - $echo >> $output "\
  57236. - exec \"\$progdir/\$program\" \${1+\"\$@\"}
  57237. -"
  57238. - ;;
  57239. - esac
  57240. - $echo >> $output "\
  57241. - \$echo \"\$0: cannot exec \$program \$*\"
  57242. - exit $EXIT_FAILURE
  57243. - fi
  57244. - else
  57245. - # The program doesn't exist.
  57246. - \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  57247. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  57248. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  57249. - exit $EXIT_FAILURE
  57250. - fi
  57251. -fi\
  57252. -"
  57253. - chmod +x $output
  57254. - fi
  57255. - exit $EXIT_SUCCESS
  57256. - ;;
  57257. - esac
  57258. -
  57259. - # See if we need to build an old-fashioned archive.
  57260. - for oldlib in $oldlibs; do
  57261. + # Make a backup of the uninstalled library when relinking
  57262. + if test "$mode" = relink; then
  57263. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  57264. + fi
  57265. - if test "$build_libtool_libs" = convenience; then
  57266. - oldobjs="$libobjs_save"
  57267. - addlibs="$convenience"
  57268. - build_libtool_libs=no
  57269. - else
  57270. - if test "$build_libtool_libs" = module; then
  57271. - oldobjs="$libobjs_save"
  57272. - build_libtool_libs=no
  57273. + # Do each of the archive commands.
  57274. + if test "$module" = yes && test -n "$module_cmds" ; then
  57275. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  57276. + eval test_cmds=\"$module_expsym_cmds\"
  57277. + cmds=$module_expsym_cmds
  57278. + else
  57279. + eval test_cmds=\"$module_cmds\"
  57280. + cmds=$module_cmds
  57281. + fi
  57282. else
  57283. - oldobjs="$old_deplibs $non_pic_objects"
  57284. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  57285. + eval test_cmds=\"$archive_expsym_cmds\"
  57286. + cmds=$archive_expsym_cmds
  57287. + else
  57288. + eval test_cmds=\"$archive_cmds\"
  57289. + cmds=$archive_cmds
  57290. + fi
  57291. fi
  57292. - addlibs="$old_convenience"
  57293. - fi
  57294. - if test -n "$addlibs"; then
  57295. - gentop="$output_objdir/${outputname}x"
  57296. - generated="$generated $gentop"
  57297. + if test "X$skipped_export" != "X:" &&
  57298. + func_len " $test_cmds" &&
  57299. + len=$func_len_result &&
  57300. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  57301. + :
  57302. + else
  57303. + # The command line is too long to link in one step, link piecewise
  57304. + # or, if using GNU ld and skipped_export is not :, use a linker
  57305. + # script.
  57306. - func_extract_archives $gentop $addlibs
  57307. - oldobjs="$oldobjs $func_extract_archives_result"
  57308. - fi
  57309. + # Save the value of $output and $libobjs because we want to
  57310. + # use them later. If we have whole_archive_flag_spec, we
  57311. + # want to use save_libobjs as it was before
  57312. + # whole_archive_flag_spec was expanded, because we can't
  57313. + # assume the linker understands whole_archive_flag_spec.
  57314. + # This may have to be revisited, in case too many
  57315. + # convenience libraries get linked in and end up exceeding
  57316. + # the spec.
  57317. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  57318. + save_libobjs=$libobjs
  57319. + fi
  57320. + save_output=$output
  57321. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  57322. - # Do each command in the archive commands.
  57323. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  57324. - cmds=$old_archive_from_new_cmds
  57325. - else
  57326. - # POSIX demands no paths to be encoded in archives. We have
  57327. - # to avoid creating archives with duplicate basenames if we
  57328. - # might have to extract them afterwards, e.g., when creating a
  57329. - # static archive out of a convenience library, or when linking
  57330. - # the entirety of a libtool archive into another (currently
  57331. - # not supported by libtool).
  57332. - if (for obj in $oldobjs
  57333. + # Clear the reloadable object creation command queue and
  57334. + # initialize k to one.
  57335. + test_cmds=
  57336. + concat_cmds=
  57337. + objlist=
  57338. + last_robj=
  57339. + k=1
  57340. +
  57341. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  57342. + output=${output_objdir}/${output_la}.lnkscript
  57343. + func_verbose "creating GNU ld script: $output"
  57344. + $ECHO 'INPUT (' > $output
  57345. + for obj in $save_libobjs
  57346. do
  57347. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  57348. - done | sort | sort -uc >/dev/null 2>&1); then
  57349. - :
  57350. - else
  57351. - $echo "copying selected object files to avoid basename conflicts..."
  57352. + $ECHO "$obj" >> $output
  57353. + done
  57354. + $ECHO ')' >> $output
  57355. + delfiles="$delfiles $output"
  57356. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  57357. + output=${output_objdir}/${output_la}.lnk
  57358. + func_verbose "creating linker input file list: $output"
  57359. + : > $output
  57360. + set x $save_libobjs
  57361. + shift
  57362. + firstobj=
  57363. + if test "$compiler_needs_object" = yes; then
  57364. + firstobj="$1 "
  57365. + shift
  57366. + fi
  57367. + for obj
  57368. + do
  57369. + $ECHO "$obj" >> $output
  57370. + done
  57371. + delfiles="$delfiles $output"
  57372. + output=$firstobj\"$file_list_spec$output\"
  57373. + else
  57374. + if test -n "$save_libobjs"; then
  57375. + func_verbose "creating reloadable object files..."
  57376. + output=$output_objdir/$output_la-${k}.$objext
  57377. + eval test_cmds=\"$reload_cmds\"
  57378. + func_len " $test_cmds"
  57379. + len0=$func_len_result
  57380. + len=$len0
  57381. +
  57382. + # Loop over the list of objects to be linked.
  57383. + for obj in $save_libobjs
  57384. + do
  57385. + func_len " $obj"
  57386. + func_arith $len + $func_len_result
  57387. + len=$func_arith_result
  57388. + if test "X$objlist" = X ||
  57389. + test "$len" -lt "$max_cmd_len"; then
  57390. + func_append objlist " $obj"
  57391. + else
  57392. + # The command $test_cmds is almost too long, add a
  57393. + # command to the queue.
  57394. + if test "$k" -eq 1 ; then
  57395. + # The first file doesn't have a previous command to add.
  57396. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  57397. + else
  57398. + # All subsequent reloadable object files will link in
  57399. + # the last one created.
  57400. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  57401. + fi
  57402. + last_robj=$output_objdir/$output_la-${k}.$objext
  57403. + func_arith $k + 1
  57404. + k=$func_arith_result
  57405. + output=$output_objdir/$output_la-${k}.$objext
  57406. + objlist=$obj
  57407. + func_len " $last_robj"
  57408. + func_arith $len0 + $func_len_result
  57409. + len=$func_arith_result
  57410. + fi
  57411. + done
  57412. + # Handle the remaining objects by creating one last
  57413. + # reloadable object file. All subsequent reloadable object
  57414. + # files will link in the last one created.
  57415. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  57416. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  57417. + if test -n "$last_robj"; then
  57418. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  57419. + fi
  57420. + delfiles="$delfiles $output"
  57421. - if test -z "$gentop"; then
  57422. - gentop="$output_objdir/${outputname}x"
  57423. - generated="$generated $gentop"
  57424. + else
  57425. + output=
  57426. + fi
  57427. +
  57428. + if ${skipped_export-false}; then
  57429. + func_verbose "generating symbol list for \`$libname.la'"
  57430. + export_symbols="$output_objdir/$libname.exp"
  57431. + $opt_dry_run || $RM $export_symbols
  57432. + libobjs=$output
  57433. + # Append the command to create the export file.
  57434. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  57435. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  57436. + if test -n "$last_robj"; then
  57437. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  57438. + fi
  57439. + fi
  57440. +
  57441. + test -n "$save_libobjs" &&
  57442. + func_verbose "creating a temporary reloadable object file: $output"
  57443. +
  57444. + # Loop through the commands generated above and execute them.
  57445. + save_ifs="$IFS"; IFS='~'
  57446. + for cmd in $concat_cmds; do
  57447. + IFS="$save_ifs"
  57448. + $opt_silent || {
  57449. + func_quote_for_expand "$cmd"
  57450. + eval "func_echo $func_quote_for_expand_result"
  57451. + }
  57452. + $opt_dry_run || eval "$cmd" || {
  57453. + lt_exit=$?
  57454. +
  57455. + # Restore the uninstalled library and exit
  57456. + if test "$mode" = relink; then
  57457. + ( cd "$output_objdir" && \
  57458. + $RM "${realname}T" && \
  57459. + $MV "${realname}U" "$realname" )
  57460. + fi
  57461. +
  57462. + exit $lt_exit
  57463. + }
  57464. + done
  57465. + IFS="$save_ifs"
  57466. - $show "${rm}r $gentop"
  57467. - $run ${rm}r "$gentop"
  57468. - $show "$mkdir $gentop"
  57469. - $run $mkdir "$gentop"
  57470. - exit_status=$?
  57471. - if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
  57472. - exit $exit_status
  57473. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  57474. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  57475. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  57476. fi
  57477. fi
  57478. - save_oldobjs=$oldobjs
  57479. - oldobjs=
  57480. - counter=1
  57481. - for obj in $save_oldobjs
  57482. - do
  57483. - objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  57484. - case " $oldobjs " in
  57485. - " ") oldobjs=$obj ;;
  57486. - *[\ /]"$objbase "*)
  57487. - while :; do
  57488. - # Make sure we don't pick an alternate name that also
  57489. - # overlaps.
  57490. - newobj=lt$counter-$objbase
  57491. - counter=`expr $counter + 1`
  57492. - case " $oldobjs " in
  57493. - *[\ /]"$newobj "*) ;;
  57494. - *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  57495. - esac
  57496. - done
  57497. - $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  57498. - $run ln "$obj" "$gentop/$newobj" ||
  57499. - $run cp "$obj" "$gentop/$newobj"
  57500. - oldobjs="$oldobjs $gentop/$newobj"
  57501. - ;;
  57502. - *) oldobjs="$oldobjs $obj" ;;
  57503. - esac
  57504. - done
  57505. - fi
  57506. + if ${skipped_export-false}; then
  57507. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  57508. + tmp_export_symbols="$export_symbols"
  57509. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  57510. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  57511. + fi
  57512. +
  57513. + if test -n "$orig_export_symbols"; then
  57514. + # The given exports_symbols file has to be filtered, so filter it.
  57515. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  57516. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  57517. + # 's' commands which not all seds can handle. GNU sed should be fine
  57518. + # though. Also, the filter scales superlinearly with the number of
  57519. + # global variables. join(1) would be nice here, but unfortunately
  57520. + # isn't a blessed tool.
  57521. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  57522. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  57523. + export_symbols=$output_objdir/$libname.def
  57524. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  57525. + fi
  57526. + fi
  57527. - eval cmds=\"$old_archive_cmds\"
  57528. + libobjs=$output
  57529. + # Restore the value of output.
  57530. + output=$save_output
  57531. - if len=`expr "X$cmds" : ".*"` &&
  57532. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  57533. - cmds=$old_archive_cmds
  57534. - else
  57535. - # the command line is too long to link in one step, link in parts
  57536. - $echo "using piecewise archive linking..."
  57537. - save_RANLIB=$RANLIB
  57538. - RANLIB=:
  57539. - objlist=
  57540. - concat_cmds=
  57541. - save_oldobjs=$oldobjs
  57542. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  57543. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  57544. + test "X$libobjs" = "X " && libobjs=
  57545. + fi
  57546. + # Expand the library linking commands again to reset the
  57547. + # value of $libobjs for piecewise linking.
  57548. - # Is there a better way of finding the last object in the list?
  57549. - for obj in $save_oldobjs
  57550. - do
  57551. - last_oldobj=$obj
  57552. - done
  57553. - for obj in $save_oldobjs
  57554. - do
  57555. - oldobjs="$objlist $obj"
  57556. - objlist="$objlist $obj"
  57557. - eval test_cmds=\"$old_archive_cmds\"
  57558. - if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  57559. - test "$len" -le "$max_cmd_len"; then
  57560. - :
  57561. + # Do each of the archive commands.
  57562. + if test "$module" = yes && test -n "$module_cmds" ; then
  57563. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  57564. + cmds=$module_expsym_cmds
  57565. else
  57566. - # the above command should be used before it gets too long
  57567. - oldobjs=$objlist
  57568. - if test "$obj" = "$last_oldobj" ; then
  57569. - RANLIB=$save_RANLIB
  57570. - fi
  57571. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  57572. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  57573. - objlist=
  57574. + cmds=$module_cmds
  57575. fi
  57576. - done
  57577. - RANLIB=$save_RANLIB
  57578. - oldobjs=$objlist
  57579. - if test "X$oldobjs" = "X" ; then
  57580. - eval cmds=\"\$concat_cmds\"
  57581. else
  57582. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  57583. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  57584. + cmds=$archive_expsym_cmds
  57585. + else
  57586. + cmds=$archive_cmds
  57587. + fi
  57588. fi
  57589. fi
  57590. - fi
  57591. - save_ifs="$IFS"; IFS='~'
  57592. - for cmd in $cmds; do
  57593. - eval cmd=\"$cmd\"
  57594. - IFS="$save_ifs"
  57595. - $show "$cmd"
  57596. - $run eval "$cmd" || exit $?
  57597. - done
  57598. - IFS="$save_ifs"
  57599. - done
  57600. - if test -n "$generated"; then
  57601. - $show "${rm}r$generated"
  57602. - $run ${rm}r$generated
  57603. - fi
  57604. + if test -n "$delfiles"; then
  57605. + # Append the command to remove temporary files to $cmds.
  57606. + eval cmds=\"\$cmds~\$RM $delfiles\"
  57607. + fi
  57608. - # Now create the libtool archive.
  57609. - case $output in
  57610. - *.la)
  57611. - old_library=
  57612. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  57613. - $show "creating $output"
  57614. + # Add any objects from preloaded convenience libraries
  57615. + if test -n "$dlprefiles"; then
  57616. + gentop="$output_objdir/${outputname}x"
  57617. + generated="$generated $gentop"
  57618. - # Preserve any variables that may affect compiler behavior
  57619. - for var in $variables_saved_for_relink; do
  57620. - if eval test -z \"\${$var+set}\"; then
  57621. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  57622. - elif eval var_value=\$$var; test -z "$var_value"; then
  57623. - relink_command="$var=; export $var; $relink_command"
  57624. - else
  57625. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  57626. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  57627. + func_extract_archives $gentop $dlprefiles
  57628. + libobjs="$libobjs $func_extract_archives_result"
  57629. + test "X$libobjs" = "X " && libobjs=
  57630. fi
  57631. - done
  57632. - # Quote the link command for shipping.
  57633. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  57634. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
  57635. - if test "$hardcode_automatic" = yes ; then
  57636. - relink_command=
  57637. - fi
  57638. + save_ifs="$IFS"; IFS='~'
  57639. + for cmd in $cmds; do
  57640. + IFS="$save_ifs"
  57641. + eval cmd=\"$cmd\"
  57642. + $opt_silent || {
  57643. + func_quote_for_expand "$cmd"
  57644. + eval "func_echo $func_quote_for_expand_result"
  57645. + }
  57646. + $opt_dry_run || eval "$cmd" || {
  57647. + lt_exit=$?
  57648. - # Only create the output if not a dry run.
  57649. - if test -z "$run"; then
  57650. - for installed in no yes; do
  57651. - if test "$installed" = yes; then
  57652. - if test -z "$install_libdir"; then
  57653. - break
  57654. + # Restore the uninstalled library and exit
  57655. + if test "$mode" = relink; then
  57656. + ( cd "$output_objdir" && \
  57657. + $RM "${realname}T" && \
  57658. + $MV "${realname}U" "$realname" )
  57659. fi
  57660. - output="$output_objdir/$outputname"i
  57661. - # Replace all uninstalled libtool libraries with the installed ones
  57662. - newdependency_libs=
  57663. - for deplib in $dependency_libs; do
  57664. - case $deplib in
  57665. - *.la)
  57666. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  57667. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  57668. - if test -z "$libdir"; then
  57669. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  57670. - exit $EXIT_FAILURE
  57671. - fi
  57672. - newdependency_libs="$newdependency_libs $libdir/$name"
  57673. - ;;
  57674. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  57675. - esac
  57676. - done
  57677. - dependency_libs="$newdependency_libs"
  57678. - newdlfiles=
  57679. - for lib in $dlfiles; do
  57680. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  57681. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  57682. - if test -z "$libdir"; then
  57683. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  57684. - exit $EXIT_FAILURE
  57685. - fi
  57686. - newdlfiles="$newdlfiles $libdir/$name"
  57687. - done
  57688. - dlfiles="$newdlfiles"
  57689. - newdlprefiles=
  57690. - for lib in $dlprefiles; do
  57691. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  57692. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  57693. - if test -z "$libdir"; then
  57694. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  57695. - exit $EXIT_FAILURE
  57696. - fi
  57697. - newdlprefiles="$newdlprefiles $libdir/$name"
  57698. - done
  57699. - dlprefiles="$newdlprefiles"
  57700. - else
  57701. - newdlfiles=
  57702. - for lib in $dlfiles; do
  57703. - case $lib in
  57704. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  57705. - *) abs=`pwd`"/$lib" ;;
  57706. - esac
  57707. - newdlfiles="$newdlfiles $abs"
  57708. - done
  57709. - dlfiles="$newdlfiles"
  57710. - newdlprefiles=
  57711. - for lib in $dlprefiles; do
  57712. - case $lib in
  57713. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  57714. - *) abs=`pwd`"/$lib" ;;
  57715. - esac
  57716. - newdlprefiles="$newdlprefiles $abs"
  57717. - done
  57718. - dlprefiles="$newdlprefiles"
  57719. - fi
  57720. - $rm $output
  57721. - # place dlname in correct position for cygwin
  57722. - tdlname=$dlname
  57723. - case $host,$output,$installed,$module,$dlname in
  57724. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  57725. - esac
  57726. - $echo > $output "\
  57727. -# $outputname - a libtool library file
  57728. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  57729. -#
  57730. -# Please DO NOT delete this file!
  57731. -# It is necessary for linking the library.
  57732. -# The name that we can dlopen(3).
  57733. -dlname='$tdlname'
  57734. + exit $lt_exit
  57735. + }
  57736. + done
  57737. + IFS="$save_ifs"
  57738. -# Names of this library.
  57739. -library_names='$library_names'
  57740. + # Restore the uninstalled library and exit
  57741. + if test "$mode" = relink; then
  57742. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  57743. -# The name of the static archive.
  57744. -old_library='$old_library'
  57745. + if test -n "$convenience"; then
  57746. + if test -z "$whole_archive_flag_spec"; then
  57747. + func_show_eval '${RM}r "$gentop"'
  57748. + fi
  57749. + fi
  57750. -# Libraries that this one depends upon.
  57751. -dependency_libs='$dependency_libs'
  57752. + exit $EXIT_SUCCESS
  57753. + fi
  57754. -# Version information for $libname.
  57755. -current=$current
  57756. -age=$age
  57757. -revision=$revision
  57758. + # Create links to the real library.
  57759. + for linkname in $linknames; do
  57760. + if test "$realname" != "$linkname"; then
  57761. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  57762. + fi
  57763. + done
  57764. -# Is this an already installed library?
  57765. -installed=$installed
  57766. + # If -module or -export-dynamic was specified, set the dlname.
  57767. + if test "$module" = yes || test "$export_dynamic" = yes; then
  57768. + # On all known operating systems, these are identical.
  57769. + dlname="$soname"
  57770. + fi
  57771. + fi
  57772. + ;;
  57773. -# Should we warn about portability when linking against -modules?
  57774. -shouldnotlink=$module
  57775. + obj)
  57776. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  57777. + func_warning "\`-dlopen' is ignored for objects"
  57778. + fi
  57779. -# Files to dlopen/dlpreopen
  57780. -dlopen='$dlfiles'
  57781. -dlpreopen='$dlprefiles'
  57782. + case " $deplibs" in
  57783. + *\ -l* | *\ -L*)
  57784. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  57785. + esac
  57786. -# Directory that this library needs to be installed in:
  57787. -libdir='$install_libdir'"
  57788. - if test "$installed" = no && test "$need_relink" = yes; then
  57789. - $echo >> $output "\
  57790. -relink_command=\"$relink_command\""
  57791. - fi
  57792. - done
  57793. - fi
  57794. + test -n "$rpath" && \
  57795. + func_warning "\`-rpath' is ignored for objects"
  57796. - # Do a symbolic link so that the libtool archive can be found in
  57797. - # LD_LIBRARY_PATH before the program is installed.
  57798. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  57799. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  57800. - ;;
  57801. - esac
  57802. - exit $EXIT_SUCCESS
  57803. - ;;
  57804. + test -n "$xrpath" && \
  57805. + func_warning "\`-R' is ignored for objects"
  57806. - # libtool install mode
  57807. - install)
  57808. - modename="$modename: install"
  57809. + test -n "$vinfo" && \
  57810. + func_warning "\`-version-info' is ignored for objects"
  57811. - # There may be an optional sh(1) argument at the beginning of
  57812. - # install_prog (especially on Windows NT).
  57813. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  57814. - # Allow the use of GNU shtool's install command.
  57815. - $echo "X$nonopt" | grep shtool > /dev/null; then
  57816. - # Aesthetically quote it.
  57817. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  57818. - case $arg in
  57819. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  57820. - arg="\"$arg\""
  57821. + test -n "$release" && \
  57822. + func_warning "\`-release' is ignored for objects"
  57823. +
  57824. + case $output in
  57825. + *.lo)
  57826. + test -n "$objs$old_deplibs" && \
  57827. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  57828. +
  57829. + libobj=$output
  57830. + func_lo2o "$libobj"
  57831. + obj=$func_lo2o_result
  57832. + ;;
  57833. + *)
  57834. + libobj=
  57835. + obj="$output"
  57836. ;;
  57837. esac
  57838. - install_prog="$arg "
  57839. - arg="$1"
  57840. - shift
  57841. - else
  57842. - install_prog=
  57843. - arg=$nonopt
  57844. - fi
  57845. - # The real first argument should be the name of the installation program.
  57846. - # Aesthetically quote it.
  57847. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  57848. - case $arg in
  57849. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  57850. - arg="\"$arg\""
  57851. - ;;
  57852. - esac
  57853. - install_prog="$install_prog$arg"
  57854. + # Delete the old objects.
  57855. + $opt_dry_run || $RM $obj $libobj
  57856. - # We need to accept at least all the BSD install flags.
  57857. - dest=
  57858. - files=
  57859. - opts=
  57860. - prev=
  57861. - install_type=
  57862. - isdir=no
  57863. - stripme=
  57864. - for arg
  57865. - do
  57866. - if test -n "$dest"; then
  57867. - files="$files $dest"
  57868. - dest=$arg
  57869. - continue
  57870. - fi
  57871. + # Objects from convenience libraries. This assumes
  57872. + # single-version convenience libraries. Whenever we create
  57873. + # different ones for PIC/non-PIC, this we'll have to duplicate
  57874. + # the extraction.
  57875. + reload_conv_objs=
  57876. + gentop=
  57877. + # reload_cmds runs $LD directly, so let us get rid of
  57878. + # -Wl from whole_archive_flag_spec and hope we can get by with
  57879. + # turning comma into space..
  57880. + wl=
  57881. - case $arg in
  57882. - -d) isdir=yes ;;
  57883. - -f)
  57884. - case " $install_prog " in
  57885. - *[\\\ /]cp\ *) ;;
  57886. - *) prev=$arg ;;
  57887. - esac
  57888. - ;;
  57889. - -g | -m | -o) prev=$arg ;;
  57890. - -s)
  57891. - stripme=" -s"
  57892. - continue
  57893. - ;;
  57894. - -*)
  57895. - ;;
  57896. - *)
  57897. - # If the previous option needed an argument, then skip it.
  57898. - if test -n "$prev"; then
  57899. - prev=
  57900. + if test -n "$convenience"; then
  57901. + if test -n "$whole_archive_flag_spec"; then
  57902. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  57903. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  57904. else
  57905. - dest=$arg
  57906. - continue
  57907. + gentop="$output_objdir/${obj}x"
  57908. + generated="$generated $gentop"
  57909. +
  57910. + func_extract_archives $gentop $convenience
  57911. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  57912. fi
  57913. - ;;
  57914. - esac
  57915. + fi
  57916. - # Aesthetically quote the argument.
  57917. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  57918. - case $arg in
  57919. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  57920. - arg="\"$arg\""
  57921. - ;;
  57922. - esac
  57923. - install_prog="$install_prog $arg"
  57924. - done
  57925. + # Create the old-style object.
  57926. + 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
  57927. - if test -z "$install_prog"; then
  57928. - $echo "$modename: you must specify an install program" 1>&2
  57929. - $echo "$help" 1>&2
  57930. - exit $EXIT_FAILURE
  57931. - fi
  57932. + output="$obj"
  57933. + func_execute_cmds "$reload_cmds" 'exit $?'
  57934. - if test -n "$prev"; then
  57935. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  57936. - $echo "$help" 1>&2
  57937. - exit $EXIT_FAILURE
  57938. - fi
  57939. + # Exit if we aren't doing a library object file.
  57940. + if test -z "$libobj"; then
  57941. + if test -n "$gentop"; then
  57942. + func_show_eval '${RM}r "$gentop"'
  57943. + fi
  57944. - if test -z "$files"; then
  57945. - if test -z "$dest"; then
  57946. - $echo "$modename: no file or destination specified" 1>&2
  57947. - else
  57948. - $echo "$modename: you must specify a destination" 1>&2
  57949. + exit $EXIT_SUCCESS
  57950. fi
  57951. - $echo "$help" 1>&2
  57952. - exit $EXIT_FAILURE
  57953. - fi
  57954. - # Strip any trailing slash from the destination.
  57955. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  57956. + if test "$build_libtool_libs" != yes; then
  57957. + if test -n "$gentop"; then
  57958. + func_show_eval '${RM}r "$gentop"'
  57959. + fi
  57960. - # Check to see that the destination is a directory.
  57961. - test -d "$dest" && isdir=yes
  57962. - if test "$isdir" = yes; then
  57963. - destdir="$dest"
  57964. - destname=
  57965. - else
  57966. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  57967. - test "X$destdir" = "X$dest" && destdir=.
  57968. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  57969. + # Create an invalid libtool object if no PIC, so that we don't
  57970. + # accidentally link it into a program.
  57971. + # $show "echo timestamp > $libobj"
  57972. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  57973. + exit $EXIT_SUCCESS
  57974. + fi
  57975. - # Not a directory, so check to see that there is only one file specified.
  57976. - set dummy $files
  57977. - if test "$#" -gt 2; then
  57978. - $echo "$modename: \`$dest' is not a directory" 1>&2
  57979. - $echo "$help" 1>&2
  57980. - exit $EXIT_FAILURE
  57981. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  57982. + # Only do commands if we really have different PIC objects.
  57983. + reload_objs="$libobjs $reload_conv_objs"
  57984. + output="$libobj"
  57985. + func_execute_cmds "$reload_cmds" 'exit $?'
  57986. fi
  57987. - fi
  57988. - case $destdir in
  57989. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  57990. - *)
  57991. - for file in $files; do
  57992. - case $file in
  57993. - *.lo) ;;
  57994. - *)
  57995. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  57996. - $echo "$help" 1>&2
  57997. - exit $EXIT_FAILURE
  57998. - ;;
  57999. - esac
  58000. - done
  58001. +
  58002. + if test -n "$gentop"; then
  58003. + func_show_eval '${RM}r "$gentop"'
  58004. + fi
  58005. +
  58006. + exit $EXIT_SUCCESS
  58007. ;;
  58008. - esac
  58009. - # This variable tells wrapper scripts just to set variables rather
  58010. - # than running their programs.
  58011. - libtool_install_magic="$magic"
  58012. + prog)
  58013. + case $host in
  58014. + *cygwin*) func_stripname '' '.exe' "$output"
  58015. + output=$func_stripname_result.exe;;
  58016. + esac
  58017. + test -n "$vinfo" && \
  58018. + func_warning "\`-version-info' is ignored for programs"
  58019. - staticlibs=
  58020. - future_libdirs=
  58021. - current_libdirs=
  58022. - for file in $files; do
  58023. + test -n "$release" && \
  58024. + func_warning "\`-release' is ignored for programs"
  58025. - # Do each installation.
  58026. - case $file in
  58027. - *.$libext)
  58028. - # Do the static libraries later.
  58029. - staticlibs="$staticlibs $file"
  58030. + test "$preload" = yes \
  58031. + && test "$dlopen_support" = unknown \
  58032. + && test "$dlopen_self" = unknown \
  58033. + && test "$dlopen_self_static" = unknown && \
  58034. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  58035. +
  58036. + case $host in
  58037. + *-*-rhapsody* | *-*-darwin1.[012])
  58038. + # On Rhapsody replace the C library is the System framework
  58039. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  58040. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  58041. ;;
  58042. + esac
  58043. - *.la)
  58044. - # Check to see that this really is a libtool archive.
  58045. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  58046. - else
  58047. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  58048. - $echo "$help" 1>&2
  58049. - exit $EXIT_FAILURE
  58050. + case $host in
  58051. + *-*-darwin*)
  58052. + # Don't allow lazy linking, it breaks C++ global constructors
  58053. + # But is supposedly fixed on 10.4 or later (yay!).
  58054. + if test "$tagname" = CXX ; then
  58055. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  58056. + 10.[0123])
  58057. + compile_command="$compile_command ${wl}-bind_at_load"
  58058. + finalize_command="$finalize_command ${wl}-bind_at_load"
  58059. + ;;
  58060. + esac
  58061. fi
  58062. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  58063. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  58064. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  58065. + ;;
  58066. + esac
  58067. - library_names=
  58068. - old_library=
  58069. - relink_command=
  58070. - # If there is no directory component, then add one.
  58071. - case $file in
  58072. - */* | *\\*) . $file ;;
  58073. - *) . ./$file ;;
  58074. - esac
  58075. - # Add the libdir to current_libdirs if it is the destination.
  58076. - if test "X$destdir" = "X$libdir"; then
  58077. - case "$current_libdirs " in
  58078. - *" $libdir "*) ;;
  58079. - *) current_libdirs="$current_libdirs $libdir" ;;
  58080. + # move library search paths that coincide with paths to not yet
  58081. + # installed libraries to the beginning of the library search list
  58082. + new_libs=
  58083. + for path in $notinst_path; do
  58084. + case " $new_libs " in
  58085. + *" -L$path/$objdir "*) ;;
  58086. + *)
  58087. + case " $compile_deplibs " in
  58088. + *" -L$path/$objdir "*)
  58089. + new_libs="$new_libs -L$path/$objdir" ;;
  58090. esac
  58091. - else
  58092. - # Note the libdir as a future libdir.
  58093. - case "$future_libdirs " in
  58094. - *" $libdir "*) ;;
  58095. - *) future_libdirs="$future_libdirs $libdir" ;;
  58096. + ;;
  58097. + esac
  58098. + done
  58099. + for deplib in $compile_deplibs; do
  58100. + case $deplib in
  58101. + -L*)
  58102. + case " $new_libs " in
  58103. + *" $deplib "*) ;;
  58104. + *) new_libs="$new_libs $deplib" ;;
  58105. esac
  58106. - fi
  58107. + ;;
  58108. + *) new_libs="$new_libs $deplib" ;;
  58109. + esac
  58110. + done
  58111. + compile_deplibs="$new_libs"
  58112. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  58113. - test "X$dir" = "X$file/" && dir=
  58114. - dir="$dir$objdir"
  58115. - if test -n "$relink_command"; then
  58116. - # Determine the prefix the user has applied to our future dir.
  58117. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  58118. + compile_command="$compile_command $compile_deplibs"
  58119. + finalize_command="$finalize_command $finalize_deplibs"
  58120. - # Don't allow the user to place us outside of our expected
  58121. - # location b/c this prevents finding dependent libraries that
  58122. - # are installed to the same prefix.
  58123. - # At present, this check doesn't affect windows .dll's that
  58124. - # are installed into $libdir/../bin (currently, that works fine)
  58125. - # but it's something to keep an eye on.
  58126. - if test "$inst_prefix_dir" = "$destdir"; then
  58127. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  58128. - exit $EXIT_FAILURE
  58129. - fi
  58130. + if test -n "$rpath$xrpath"; then
  58131. + # If the user specified any rpath flags, then add them.
  58132. + for libdir in $rpath $xrpath; do
  58133. + # This is the magic to use -rpath.
  58134. + case "$finalize_rpath " in
  58135. + *" $libdir "*) ;;
  58136. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  58137. + esac
  58138. + done
  58139. + fi
  58140. - if test -n "$inst_prefix_dir"; then
  58141. - # Stick the inst_prefix_dir data into the link command.
  58142. - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
  58143. + # Now hardcode the library paths
  58144. + rpath=
  58145. + hardcode_libdirs=
  58146. + for libdir in $compile_rpath $finalize_rpath; do
  58147. + if test -n "$hardcode_libdir_flag_spec"; then
  58148. + if test -n "$hardcode_libdir_separator"; then
  58149. + if test -z "$hardcode_libdirs"; then
  58150. + hardcode_libdirs="$libdir"
  58151. + else
  58152. + # Just accumulate the unique libdirs.
  58153. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  58154. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  58155. + ;;
  58156. + *)
  58157. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  58158. + ;;
  58159. + esac
  58160. + fi
  58161. else
  58162. - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
  58163. + eval flag=\"$hardcode_libdir_flag_spec\"
  58164. + rpath="$rpath $flag"
  58165. fi
  58166. + elif test -n "$runpath_var"; then
  58167. + case "$perm_rpath " in
  58168. + *" $libdir "*) ;;
  58169. + *) perm_rpath="$perm_rpath $libdir" ;;
  58170. + esac
  58171. + fi
  58172. + case $host in
  58173. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  58174. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  58175. + case :$dllsearchpath: in
  58176. + *":$libdir:"*) ;;
  58177. + ::) dllsearchpath=$libdir;;
  58178. + *) dllsearchpath="$dllsearchpath:$libdir";;
  58179. + esac
  58180. + case :$dllsearchpath: in
  58181. + *":$testbindir:"*) ;;
  58182. + ::) dllsearchpath=$testbindir;;
  58183. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  58184. + esac
  58185. + ;;
  58186. + esac
  58187. + done
  58188. + # Substitute the hardcoded libdirs into the rpath.
  58189. + if test -n "$hardcode_libdir_separator" &&
  58190. + test -n "$hardcode_libdirs"; then
  58191. + libdir="$hardcode_libdirs"
  58192. + eval rpath=\" $hardcode_libdir_flag_spec\"
  58193. + fi
  58194. + compile_rpath="$rpath"
  58195. - $echo "$modename: warning: relinking \`$file'" 1>&2
  58196. - $show "$relink_command"
  58197. - if $run eval "$relink_command"; then :
  58198. + rpath=
  58199. + hardcode_libdirs=
  58200. + for libdir in $finalize_rpath; do
  58201. + if test -n "$hardcode_libdir_flag_spec"; then
  58202. + if test -n "$hardcode_libdir_separator"; then
  58203. + if test -z "$hardcode_libdirs"; then
  58204. + hardcode_libdirs="$libdir"
  58205. + else
  58206. + # Just accumulate the unique libdirs.
  58207. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  58208. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  58209. + ;;
  58210. + *)
  58211. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  58212. + ;;
  58213. + esac
  58214. + fi
  58215. else
  58216. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  58217. - exit $EXIT_FAILURE
  58218. + eval flag=\"$hardcode_libdir_flag_spec\"
  58219. + rpath="$rpath $flag"
  58220. fi
  58221. + elif test -n "$runpath_var"; then
  58222. + case "$finalize_perm_rpath " in
  58223. + *" $libdir "*) ;;
  58224. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  58225. + esac
  58226. fi
  58227. + done
  58228. + # Substitute the hardcoded libdirs into the rpath.
  58229. + if test -n "$hardcode_libdir_separator" &&
  58230. + test -n "$hardcode_libdirs"; then
  58231. + libdir="$hardcode_libdirs"
  58232. + eval rpath=\" $hardcode_libdir_flag_spec\"
  58233. + fi
  58234. + finalize_rpath="$rpath"
  58235. - # See the names of the shared library.
  58236. - set dummy $library_names
  58237. - if test -n "$2"; then
  58238. - realname="$2"
  58239. - shift
  58240. - shift
  58241. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  58242. + # Transform all the library objects into standard objects.
  58243. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  58244. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  58245. + fi
  58246. - srcname="$realname"
  58247. - test -n "$relink_command" && srcname="$realname"T
  58248. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  58249. - # Install the shared library and build the symlinks.
  58250. - $show "$install_prog $dir/$srcname $destdir/$realname"
  58251. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  58252. - if test -n "$stripme" && test -n "$striplib"; then
  58253. - $show "$striplib $destdir/$realname"
  58254. - $run eval "$striplib $destdir/$realname" || exit $?
  58255. - fi
  58256. + # template prelinking step
  58257. + if test -n "$prelink_cmds"; then
  58258. + func_execute_cmds "$prelink_cmds" 'exit $?'
  58259. + fi
  58260. - if test "$#" -gt 0; then
  58261. - # Delete the old symlinks, and create new ones.
  58262. - # Try `ln -sf' first, because the `ln' binary might depend on
  58263. - # the symlink we replace! Solaris /bin/ln does not understand -f,
  58264. - # so we also need to try rm && ln -s.
  58265. - for linkname
  58266. - do
  58267. - if test "$linkname" != "$realname"; then
  58268. - $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  58269. - $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  58270. - fi
  58271. - done
  58272. - fi
  58273. + wrappers_required=yes
  58274. + case $host in
  58275. + *cygwin* | *mingw* )
  58276. + if test "$build_libtool_libs" != yes; then
  58277. + wrappers_required=no
  58278. + fi
  58279. + ;;
  58280. + *cegcc)
  58281. + # Disable wrappers for cegcc, we are cross compiling anyway.
  58282. + wrappers_required=no
  58283. + ;;
  58284. + *)
  58285. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  58286. + wrappers_required=no
  58287. + fi
  58288. + ;;
  58289. + esac
  58290. + if test "$wrappers_required" = no; then
  58291. + # Replace the output file specification.
  58292. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  58293. + link_command="$compile_command$compile_rpath"
  58294. - # Do each command in the postinstall commands.
  58295. - lib="$destdir/$realname"
  58296. - cmds=$postinstall_cmds
  58297. - save_ifs="$IFS"; IFS='~'
  58298. - for cmd in $cmds; do
  58299. - IFS="$save_ifs"
  58300. - eval cmd=\"$cmd\"
  58301. - $show "$cmd"
  58302. - $run eval "$cmd" || {
  58303. - lt_exit=$?
  58304. -
  58305. - # Restore the uninstalled library and exit
  58306. - if test "$mode" = relink; then
  58307. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  58308. - fi
  58309. + # We have no uninstalled library dependencies, so finalize right now.
  58310. + exit_status=0
  58311. + func_show_eval "$link_command" 'exit_status=$?'
  58312. - exit $lt_exit
  58313. - }
  58314. - done
  58315. - IFS="$save_ifs"
  58316. + # Delete the generated files.
  58317. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  58318. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  58319. fi
  58320. - # Install the pseudo-library for information purposes.
  58321. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  58322. - instname="$dir/$name"i
  58323. - $show "$install_prog $instname $destdir/$name"
  58324. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  58325. -
  58326. - # Maybe install the static library, too.
  58327. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  58328. - ;;
  58329. + exit $exit_status
  58330. + fi
  58331. - *.lo)
  58332. - # Install (i.e. copy) a libtool object.
  58333. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  58334. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  58335. + fi
  58336. + if test -n "$finalize_shlibpath"; then
  58337. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  58338. + fi
  58339. - # Figure out destination file name, if it wasn't already specified.
  58340. - if test -n "$destname"; then
  58341. - destfile="$destdir/$destname"
  58342. - else
  58343. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  58344. - destfile="$destdir/$destfile"
  58345. + compile_var=
  58346. + finalize_var=
  58347. + if test -n "$runpath_var"; then
  58348. + if test -n "$perm_rpath"; then
  58349. + # We should set the runpath_var.
  58350. + rpath=
  58351. + for dir in $perm_rpath; do
  58352. + rpath="$rpath$dir:"
  58353. + done
  58354. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  58355. fi
  58356. -
  58357. - # Deduce the name of the destination old-style object file.
  58358. - case $destfile in
  58359. - *.lo)
  58360. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  58361. - ;;
  58362. - *.$objext)
  58363. - staticdest="$destfile"
  58364. - destfile=
  58365. - ;;
  58366. - *)
  58367. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  58368. - $echo "$help" 1>&2
  58369. - exit $EXIT_FAILURE
  58370. - ;;
  58371. - esac
  58372. -
  58373. - # Install the libtool object if requested.
  58374. - if test -n "$destfile"; then
  58375. - $show "$install_prog $file $destfile"
  58376. - $run eval "$install_prog $file $destfile" || exit $?
  58377. + if test -n "$finalize_perm_rpath"; then
  58378. + # We should set the runpath_var.
  58379. + rpath=
  58380. + for dir in $finalize_perm_rpath; do
  58381. + rpath="$rpath$dir:"
  58382. + done
  58383. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  58384. fi
  58385. + fi
  58386. - # Install the old object if enabled.
  58387. - if test "$build_old_libs" = yes; then
  58388. - # Deduce the name of the old-style object file.
  58389. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  58390. -
  58391. - $show "$install_prog $staticobj $staticdest"
  58392. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  58393. - fi
  58394. + if test "$no_install" = yes; then
  58395. + # We don't need to create a wrapper script.
  58396. + link_command="$compile_var$compile_command$compile_rpath"
  58397. + # Replace the output file specification.
  58398. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  58399. + # Delete the old output file.
  58400. + $opt_dry_run || $RM $output
  58401. + # Link the executable and exit
  58402. + func_show_eval "$link_command" 'exit $?'
  58403. exit $EXIT_SUCCESS
  58404. - ;;
  58405. + fi
  58406. - *)
  58407. - # Figure out destination file name, if it wasn't already specified.
  58408. - if test -n "$destname"; then
  58409. - destfile="$destdir/$destname"
  58410. + if test "$hardcode_action" = relink; then
  58411. + # Fast installation is not supported
  58412. + link_command="$compile_var$compile_command$compile_rpath"
  58413. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  58414. +
  58415. + func_warning "this platform does not like uninstalled shared libraries"
  58416. + func_warning "\`$output' will be relinked during installation"
  58417. + else
  58418. + if test "$fast_install" != no; then
  58419. + link_command="$finalize_var$compile_command$finalize_rpath"
  58420. + if test "$fast_install" = yes; then
  58421. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  58422. + else
  58423. + # fast_install is set to needless
  58424. + relink_command=
  58425. + fi
  58426. else
  58427. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  58428. - destfile="$destdir/$destfile"
  58429. + link_command="$compile_var$compile_command$compile_rpath"
  58430. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  58431. fi
  58432. + fi
  58433. - # If the file is missing, and there is a .exe on the end, strip it
  58434. - # because it is most likely a libtool script we actually want to
  58435. - # install
  58436. - stripped_ext=""
  58437. - case $file in
  58438. - *.exe)
  58439. - if test ! -f "$file"; then
  58440. - file=`$echo $file|${SED} 's,.exe$,,'`
  58441. - stripped_ext=".exe"
  58442. - fi
  58443. - ;;
  58444. - esac
  58445. -
  58446. - # Do a test to see if this is really a libtool program.
  58447. - case $host in
  58448. - *cygwin*|*mingw*)
  58449. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  58450. - ;;
  58451. - *)
  58452. - wrapper=$file
  58453. - ;;
  58454. - esac
  58455. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  58456. - notinst_deplibs=
  58457. - relink_command=
  58458. -
  58459. - # Note that it is not necessary on cygwin/mingw to append a dot to
  58460. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  58461. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  58462. - # `FILE.' does not work on cygwin managed mounts.
  58463. - #
  58464. - # If there is no directory component, then add one.
  58465. - case $wrapper in
  58466. - */* | *\\*) . ${wrapper} ;;
  58467. - *) . ./${wrapper} ;;
  58468. - esac
  58469. -
  58470. - # Check the variables that should have been set.
  58471. - if test -z "$notinst_deplibs"; then
  58472. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  58473. - exit $EXIT_FAILURE
  58474. - fi
  58475. + # Replace the output file specification.
  58476. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  58477. - finalize=yes
  58478. - for lib in $notinst_deplibs; do
  58479. - # Check to see that each library is installed.
  58480. - libdir=
  58481. - if test -f "$lib"; then
  58482. - # If there is no directory component, then add one.
  58483. - case $lib in
  58484. - */* | *\\*) . $lib ;;
  58485. - *) . ./$lib ;;
  58486. - esac
  58487. - fi
  58488. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  58489. - if test -n "$libdir" && test ! -f "$libfile"; then
  58490. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  58491. - finalize=no
  58492. - fi
  58493. - done
  58494. + # Delete the old output files.
  58495. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  58496. - relink_command=
  58497. - # Note that it is not necessary on cygwin/mingw to append a dot to
  58498. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  58499. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  58500. - # `FILE.' does not work on cygwin managed mounts.
  58501. - #
  58502. - # If there is no directory component, then add one.
  58503. - case $wrapper in
  58504. - */* | *\\*) . ${wrapper} ;;
  58505. - *) . ./${wrapper} ;;
  58506. - esac
  58507. + func_show_eval "$link_command" 'exit $?'
  58508. - outputname=
  58509. - if test "$fast_install" = no && test -n "$relink_command"; then
  58510. - if test "$finalize" = yes && test -z "$run"; then
  58511. - tmpdir=`func_mktempdir`
  58512. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  58513. - outputname="$tmpdir/$file"
  58514. - # Replace the output file specification.
  58515. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
  58516. + # Now create the wrapper script.
  58517. + func_verbose "creating $output"
  58518. - $show "$relink_command"
  58519. - if $run eval "$relink_command"; then :
  58520. - else
  58521. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  58522. - ${rm}r "$tmpdir"
  58523. - continue
  58524. - fi
  58525. - file="$outputname"
  58526. - else
  58527. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  58528. - fi
  58529. + # Quote the relink command for shipping.
  58530. + if test -n "$relink_command"; then
  58531. + # Preserve any variables that may affect compiler behavior
  58532. + for var in $variables_saved_for_relink; do
  58533. + if eval test -z \"\${$var+set}\"; then
  58534. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  58535. + elif eval var_value=\$$var; test -z "$var_value"; then
  58536. + relink_command="$var=; export $var; $relink_command"
  58537. else
  58538. - # Install the binary that we compiled earlier.
  58539. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  58540. + func_quote_for_eval "$var_value"
  58541. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  58542. fi
  58543. - fi
  58544. + done
  58545. + relink_command="(cd `pwd`; $relink_command)"
  58546. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  58547. + fi
  58548. - # remove .exe since cygwin /usr/bin/install will append another
  58549. - # one anyway
  58550. - case $install_prog,$host in
  58551. - */usr/bin/install*,*cygwin*)
  58552. - case $file:$destfile in
  58553. - *.exe:*.exe)
  58554. - # this is ok
  58555. - ;;
  58556. - *.exe:*)
  58557. - destfile=$destfile.exe
  58558. - ;;
  58559. - *:*.exe)
  58560. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  58561. - ;;
  58562. - esac
  58563. - ;;
  58564. + # Quote $ECHO for shipping.
  58565. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  58566. + case $progpath in
  58567. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  58568. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  58569. + esac
  58570. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  58571. + else
  58572. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  58573. + fi
  58574. +
  58575. + # Only actually do things if not in dry run mode.
  58576. + $opt_dry_run || {
  58577. + # win32 will think the script is a binary if it has
  58578. + # a .exe suffix, so we strip it off here.
  58579. + case $output in
  58580. + *.exe) func_stripname '' '.exe' "$output"
  58581. + output=$func_stripname_result ;;
  58582. + esac
  58583. + # test for cygwin because mv fails w/o .exe extensions
  58584. + case $host in
  58585. + *cygwin*)
  58586. + exeext=.exe
  58587. + func_stripname '' '.exe' "$outputname"
  58588. + outputname=$func_stripname_result ;;
  58589. + *) exeext= ;;
  58590. esac
  58591. - $show "$install_prog$stripme $file $destfile"
  58592. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  58593. - test -n "$outputname" && ${rm}r "$tmpdir"
  58594. - ;;
  58595. - esac
  58596. - done
  58597. + case $host in
  58598. + *cygwin* | *mingw* )
  58599. + func_dirname_and_basename "$output" "" "."
  58600. + output_name=$func_basename_result
  58601. + output_path=$func_dirname_result
  58602. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  58603. + cwrapper="$output_path/$output_name.exe"
  58604. + $RM $cwrappersource $cwrapper
  58605. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  58606. +
  58607. + func_emit_cwrapperexe_src > $cwrappersource
  58608. +
  58609. + # The wrapper executable is built using the $host compiler,
  58610. + # because it contains $host paths and files. If cross-
  58611. + # compiling, it, like the target executable, must be
  58612. + # executed on the $host or under an emulation environment.
  58613. + $opt_dry_run || {
  58614. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  58615. + $STRIP $cwrapper
  58616. + }
  58617. - for file in $staticlibs; do
  58618. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  58619. + # Now, create the wrapper script for func_source use:
  58620. + func_ltwrapper_scriptname $cwrapper
  58621. + $RM $func_ltwrapper_scriptname_result
  58622. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  58623. + $opt_dry_run || {
  58624. + # note: this script will not be executed, so do not chmod.
  58625. + if test "x$build" = "x$host" ; then
  58626. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  58627. + else
  58628. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  58629. + fi
  58630. + }
  58631. + ;;
  58632. + * )
  58633. + $RM $output
  58634. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  58635. - # Set up the ranlib parameters.
  58636. - oldlib="$destdir/$name"
  58637. + func_emit_wrapper no > $output
  58638. + chmod +x $output
  58639. + ;;
  58640. + esac
  58641. + }
  58642. + exit $EXIT_SUCCESS
  58643. + ;;
  58644. + esac
  58645. - $show "$install_prog $file $oldlib"
  58646. - $run eval "$install_prog \$file \$oldlib" || exit $?
  58647. + # See if we need to build an old-fashioned archive.
  58648. + for oldlib in $oldlibs; do
  58649. - if test -n "$stripme" && test -n "$old_striplib"; then
  58650. - $show "$old_striplib $oldlib"
  58651. - $run eval "$old_striplib $oldlib" || exit $?
  58652. + if test "$build_libtool_libs" = convenience; then
  58653. + oldobjs="$libobjs_save $symfileobj"
  58654. + addlibs="$convenience"
  58655. + build_libtool_libs=no
  58656. + else
  58657. + if test "$build_libtool_libs" = module; then
  58658. + oldobjs="$libobjs_save"
  58659. + build_libtool_libs=no
  58660. + else
  58661. + oldobjs="$old_deplibs $non_pic_objects"
  58662. + if test "$preload" = yes && test -f "$symfileobj"; then
  58663. + oldobjs="$oldobjs $symfileobj"
  58664. + fi
  58665. + fi
  58666. + addlibs="$old_convenience"
  58667. fi
  58668. - # Do each command in the postinstall commands.
  58669. - cmds=$old_postinstall_cmds
  58670. - save_ifs="$IFS"; IFS='~'
  58671. - for cmd in $cmds; do
  58672. - IFS="$save_ifs"
  58673. - eval cmd=\"$cmd\"
  58674. - $show "$cmd"
  58675. - $run eval "$cmd" || exit $?
  58676. - done
  58677. - IFS="$save_ifs"
  58678. - done
  58679. + if test -n "$addlibs"; then
  58680. + gentop="$output_objdir/${outputname}x"
  58681. + generated="$generated $gentop"
  58682. - if test -n "$future_libdirs"; then
  58683. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  58684. - fi
  58685. + func_extract_archives $gentop $addlibs
  58686. + oldobjs="$oldobjs $func_extract_archives_result"
  58687. + fi
  58688. - if test -n "$current_libdirs"; then
  58689. - # Maybe just do a dry run.
  58690. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  58691. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  58692. - else
  58693. - exit $EXIT_SUCCESS
  58694. - fi
  58695. - ;;
  58696. + # Do each command in the archive commands.
  58697. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  58698. + cmds=$old_archive_from_new_cmds
  58699. + else
  58700. - # libtool finish mode
  58701. - finish)
  58702. - modename="$modename: finish"
  58703. - libdirs="$nonopt"
  58704. - admincmds=
  58705. + # Add any objects from preloaded convenience libraries
  58706. + if test -n "$dlprefiles"; then
  58707. + gentop="$output_objdir/${outputname}x"
  58708. + generated="$generated $gentop"
  58709. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  58710. - for dir
  58711. - do
  58712. - libdirs="$libdirs $dir"
  58713. - done
  58714. + func_extract_archives $gentop $dlprefiles
  58715. + oldobjs="$oldobjs $func_extract_archives_result"
  58716. + fi
  58717. - for libdir in $libdirs; do
  58718. - if test -n "$finish_cmds"; then
  58719. - # Do each command in the finish commands.
  58720. - cmds=$finish_cmds
  58721. - save_ifs="$IFS"; IFS='~'
  58722. - for cmd in $cmds; do
  58723. - IFS="$save_ifs"
  58724. - eval cmd=\"$cmd\"
  58725. - $show "$cmd"
  58726. - $run eval "$cmd" || admincmds="$admincmds
  58727. - $cmd"
  58728. + # POSIX demands no paths to be encoded in archives. We have
  58729. + # to avoid creating archives with duplicate basenames if we
  58730. + # might have to extract them afterwards, e.g., when creating a
  58731. + # static archive out of a convenience library, or when linking
  58732. + # the entirety of a libtool archive into another (currently
  58733. + # not supported by libtool).
  58734. + if (for obj in $oldobjs
  58735. + do
  58736. + func_basename "$obj"
  58737. + $ECHO "$func_basename_result"
  58738. + done | sort | sort -uc >/dev/null 2>&1); then
  58739. + :
  58740. + else
  58741. + $ECHO "copying selected object files to avoid basename conflicts..."
  58742. + gentop="$output_objdir/${outputname}x"
  58743. + generated="$generated $gentop"
  58744. + func_mkdir_p "$gentop"
  58745. + save_oldobjs=$oldobjs
  58746. + oldobjs=
  58747. + counter=1
  58748. + for obj in $save_oldobjs
  58749. + do
  58750. + func_basename "$obj"
  58751. + objbase="$func_basename_result"
  58752. + case " $oldobjs " in
  58753. + " ") oldobjs=$obj ;;
  58754. + *[\ /]"$objbase "*)
  58755. + while :; do
  58756. + # Make sure we don't pick an alternate name that also
  58757. + # overlaps.
  58758. + newobj=lt$counter-$objbase
  58759. + func_arith $counter + 1
  58760. + counter=$func_arith_result
  58761. + case " $oldobjs " in
  58762. + *[\ /]"$newobj "*) ;;
  58763. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  58764. + esac
  58765. + done
  58766. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  58767. + oldobjs="$oldobjs $gentop/$newobj"
  58768. + ;;
  58769. + *) oldobjs="$oldobjs $obj" ;;
  58770. + esac
  58771. done
  58772. - IFS="$save_ifs"
  58773. - fi
  58774. - if test -n "$finish_eval"; then
  58775. - # Do the single finish_eval.
  58776. - eval cmds=\"$finish_eval\"
  58777. - $run eval "$cmds" || admincmds="$admincmds
  58778. - $cmds"
  58779. fi
  58780. - done
  58781. - fi
  58782. -
  58783. - # Exit here if they wanted silent mode.
  58784. - test "$show" = : && exit $EXIT_SUCCESS
  58785. + eval cmds=\"$old_archive_cmds\"
  58786. - $echo "X----------------------------------------------------------------------" | $Xsed
  58787. - $echo "Libraries have been installed in:"
  58788. - for libdir in $libdirs; do
  58789. - $echo " $libdir"
  58790. + func_len " $cmds"
  58791. + len=$func_len_result
  58792. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  58793. + cmds=$old_archive_cmds
  58794. + else
  58795. + # the command line is too long to link in one step, link in parts
  58796. + func_verbose "using piecewise archive linking..."
  58797. + save_RANLIB=$RANLIB
  58798. + RANLIB=:
  58799. + objlist=
  58800. + concat_cmds=
  58801. + save_oldobjs=$oldobjs
  58802. + oldobjs=
  58803. + # Is there a better way of finding the last object in the list?
  58804. + for obj in $save_oldobjs
  58805. + do
  58806. + last_oldobj=$obj
  58807. + done
  58808. + eval test_cmds=\"$old_archive_cmds\"
  58809. + func_len " $test_cmds"
  58810. + len0=$func_len_result
  58811. + len=$len0
  58812. + for obj in $save_oldobjs
  58813. + do
  58814. + func_len " $obj"
  58815. + func_arith $len + $func_len_result
  58816. + len=$func_arith_result
  58817. + func_append objlist " $obj"
  58818. + if test "$len" -lt "$max_cmd_len"; then
  58819. + :
  58820. + else
  58821. + # the above command should be used before it gets too long
  58822. + oldobjs=$objlist
  58823. + if test "$obj" = "$last_oldobj" ; then
  58824. + RANLIB=$save_RANLIB
  58825. + fi
  58826. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  58827. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  58828. + objlist=
  58829. + len=$len0
  58830. + fi
  58831. + done
  58832. + RANLIB=$save_RANLIB
  58833. + oldobjs=$objlist
  58834. + if test "X$oldobjs" = "X" ; then
  58835. + eval cmds=\"\$concat_cmds\"
  58836. + else
  58837. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  58838. + fi
  58839. + fi
  58840. + fi
  58841. + func_execute_cmds "$cmds" 'exit $?'
  58842. done
  58843. - $echo
  58844. - $echo "If you ever happen to want to link against installed libraries"
  58845. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  58846. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  58847. - $echo "flag during linking and do at least one of the following:"
  58848. - if test -n "$shlibpath_var"; then
  58849. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  58850. - $echo " during execution"
  58851. - fi
  58852. - if test -n "$runpath_var"; then
  58853. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  58854. - $echo " during linking"
  58855. - fi
  58856. - if test -n "$hardcode_libdir_flag_spec"; then
  58857. - libdir=LIBDIR
  58858. - eval flag=\"$hardcode_libdir_flag_spec\"
  58859. -
  58860. - $echo " - use the \`$flag' linker flag"
  58861. - fi
  58862. - if test -n "$admincmds"; then
  58863. - $echo " - have your system administrator run these commands:$admincmds"
  58864. - fi
  58865. - if test -f /etc/ld.so.conf; then
  58866. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  58867. - fi
  58868. - $echo
  58869. - $echo "See any operating system documentation about shared libraries for"
  58870. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  58871. - $echo "X----------------------------------------------------------------------" | $Xsed
  58872. - exit $EXIT_SUCCESS
  58873. - ;;
  58874. -
  58875. - # libtool execute mode
  58876. - execute)
  58877. - modename="$modename: execute"
  58878. - # The first argument is the command name.
  58879. - cmd="$nonopt"
  58880. - if test -z "$cmd"; then
  58881. - $echo "$modename: you must specify a COMMAND" 1>&2
  58882. - $echo "$help"
  58883. - exit $EXIT_FAILURE
  58884. - fi
  58885. + test -n "$generated" && \
  58886. + func_show_eval "${RM}r$generated"
  58887. - # Handle -dlopen flags immediately.
  58888. - for file in $execute_dlfiles; do
  58889. - if test ! -f "$file"; then
  58890. - $echo "$modename: \`$file' is not a file" 1>&2
  58891. - $echo "$help" 1>&2
  58892. - exit $EXIT_FAILURE
  58893. - fi
  58894. + # Now create the libtool archive.
  58895. + case $output in
  58896. + *.la)
  58897. + old_library=
  58898. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  58899. + func_verbose "creating $output"
  58900. - dir=
  58901. - case $file in
  58902. - *.la)
  58903. - # Check to see that this really is a libtool archive.
  58904. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  58905. + # Preserve any variables that may affect compiler behavior
  58906. + for var in $variables_saved_for_relink; do
  58907. + if eval test -z \"\${$var+set}\"; then
  58908. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  58909. + elif eval var_value=\$$var; test -z "$var_value"; then
  58910. + relink_command="$var=; export $var; $relink_command"
  58911. else
  58912. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  58913. - $echo "$help" 1>&2
  58914. - exit $EXIT_FAILURE
  58915. + func_quote_for_eval "$var_value"
  58916. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  58917. fi
  58918. + done
  58919. + # Quote the link command for shipping.
  58920. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  58921. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  58922. + if test "$hardcode_automatic" = yes ; then
  58923. + relink_command=
  58924. + fi
  58925. - # Read the libtool library.
  58926. - dlname=
  58927. - library_names=
  58928. + # Only create the output if not a dry run.
  58929. + $opt_dry_run || {
  58930. + for installed in no yes; do
  58931. + if test "$installed" = yes; then
  58932. + if test -z "$install_libdir"; then
  58933. + break
  58934. + fi
  58935. + output="$output_objdir/$outputname"i
  58936. + # Replace all uninstalled libtool libraries with the installed ones
  58937. + newdependency_libs=
  58938. + for deplib in $dependency_libs; do
  58939. + case $deplib in
  58940. + *.la)
  58941. + func_basename "$deplib"
  58942. + name="$func_basename_result"
  58943. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  58944. + test -z "$libdir" && \
  58945. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  58946. + newdependency_libs="$newdependency_libs $libdir/$name"
  58947. + ;;
  58948. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  58949. + esac
  58950. + done
  58951. + dependency_libs="$newdependency_libs"
  58952. + newdlfiles=
  58953. +
  58954. + for lib in $dlfiles; do
  58955. + case $lib in
  58956. + *.la)
  58957. + func_basename "$lib"
  58958. + name="$func_basename_result"
  58959. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  58960. + test -z "$libdir" && \
  58961. + func_fatal_error "\`$lib' is not a valid libtool archive"
  58962. + newdlfiles="$newdlfiles $libdir/$name"
  58963. + ;;
  58964. + *) newdlfiles="$newdlfiles $lib" ;;
  58965. + esac
  58966. + done
  58967. + dlfiles="$newdlfiles"
  58968. + newdlprefiles=
  58969. + for lib in $dlprefiles; do
  58970. + case $lib in
  58971. + *.la)
  58972. + # Only pass preopened files to the pseudo-archive (for
  58973. + # eventual linking with the app. that links it) if we
  58974. + # didn't already link the preopened objects directly into
  58975. + # the library:
  58976. + func_basename "$lib"
  58977. + name="$func_basename_result"
  58978. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  58979. + test -z "$libdir" && \
  58980. + func_fatal_error "\`$lib' is not a valid libtool archive"
  58981. + newdlprefiles="$newdlprefiles $libdir/$name"
  58982. + ;;
  58983. + esac
  58984. + done
  58985. + dlprefiles="$newdlprefiles"
  58986. + else
  58987. + newdlfiles=
  58988. + for lib in $dlfiles; do
  58989. + case $lib in
  58990. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  58991. + *) abs=`pwd`"/$lib" ;;
  58992. + esac
  58993. + newdlfiles="$newdlfiles $abs"
  58994. + done
  58995. + dlfiles="$newdlfiles"
  58996. + newdlprefiles=
  58997. + for lib in $dlprefiles; do
  58998. + case $lib in
  58999. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  59000. + *) abs=`pwd`"/$lib" ;;
  59001. + esac
  59002. + newdlprefiles="$newdlprefiles $abs"
  59003. + done
  59004. + dlprefiles="$newdlprefiles"
  59005. + fi
  59006. + $RM $output
  59007. + # place dlname in correct position for cygwin
  59008. + tdlname=$dlname
  59009. + case $host,$output,$installed,$module,$dlname in
  59010. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  59011. + esac
  59012. + $ECHO > $output "\
  59013. +# $outputname - a libtool library file
  59014. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  59015. +#
  59016. +# Please DO NOT delete this file!
  59017. +# It is necessary for linking the library.
  59018. - # If there is no directory component, then add one.
  59019. - case $file in
  59020. - */* | *\\*) . $file ;;
  59021. - *) . ./$file ;;
  59022. - esac
  59023. +# The name that we can dlopen(3).
  59024. +dlname='$tdlname'
  59025. - # Skip this library if it cannot be dlopened.
  59026. - if test -z "$dlname"; then
  59027. - # Warn if it was a shared library.
  59028. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  59029. - continue
  59030. - fi
  59031. +# Names of this library.
  59032. +library_names='$library_names'
  59033. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  59034. - test "X$dir" = "X$file" && dir=.
  59035. +# The name of the static archive.
  59036. +old_library='$old_library'
  59037. - if test -f "$dir/$objdir/$dlname"; then
  59038. - dir="$dir/$objdir"
  59039. - else
  59040. - if test ! -f "$dir/$dlname"; then
  59041. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  59042. - exit $EXIT_FAILURE
  59043. - fi
  59044. - fi
  59045. - ;;
  59046. +# Linker flags that can not go in dependency_libs.
  59047. +inherited_linker_flags='$new_inherited_linker_flags'
  59048. - *.lo)
  59049. - # Just add the directory containing the .lo file.
  59050. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  59051. - test "X$dir" = "X$file" && dir=.
  59052. - ;;
  59053. +# Libraries that this one depends upon.
  59054. +dependency_libs='$dependency_libs'
  59055. - *)
  59056. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  59057. - continue
  59058. - ;;
  59059. - esac
  59060. +# Names of additional weak libraries provided by this library
  59061. +weak_library_names='$weak_libs'
  59062. - # Get the absolute pathname.
  59063. - absdir=`cd "$dir" && pwd`
  59064. - test -n "$absdir" && dir="$absdir"
  59065. +# Version information for $libname.
  59066. +current=$current
  59067. +age=$age
  59068. +revision=$revision
  59069. - # Now add the directory to shlibpath_var.
  59070. - if eval "test -z \"\$$shlibpath_var\""; then
  59071. - eval "$shlibpath_var=\"\$dir\""
  59072. - else
  59073. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  59074. - fi
  59075. - done
  59076. +# Is this an already installed library?
  59077. +installed=$installed
  59078. - # This variable tells wrapper scripts just to set shlibpath_var
  59079. - # rather than running their programs.
  59080. - libtool_execute_magic="$magic"
  59081. +# Should we warn about portability when linking against -modules?
  59082. +shouldnotlink=$module
  59083. - # Check if any of the arguments is a wrapper script.
  59084. - args=
  59085. - for file
  59086. - do
  59087. - case $file in
  59088. - -*) ;;
  59089. - *)
  59090. - # Do a test to see if this is really a libtool program.
  59091. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  59092. - # If there is no directory component, then add one.
  59093. - case $file in
  59094. - */* | *\\*) . $file ;;
  59095. - *) . ./$file ;;
  59096. - esac
  59097. +# Files to dlopen/dlpreopen
  59098. +dlopen='$dlfiles'
  59099. +dlpreopen='$dlprefiles'
  59100. - # Transform arg to wrapped name.
  59101. - file="$progdir/$program"
  59102. - fi
  59103. - ;;
  59104. - esac
  59105. - # Quote arguments (to preserve shell metacharacters).
  59106. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  59107. - args="$args \"$file\""
  59108. - done
  59109. +# Directory that this library needs to be installed in:
  59110. +libdir='$install_libdir'"
  59111. + if test "$installed" = no && test "$need_relink" = yes; then
  59112. + $ECHO >> $output "\
  59113. +relink_command=\"$relink_command\""
  59114. + fi
  59115. + done
  59116. + }
  59117. - if test -z "$run"; then
  59118. - if test -n "$shlibpath_var"; then
  59119. - # Export the shlibpath_var.
  59120. - eval "export $shlibpath_var"
  59121. - fi
  59122. + # Do a symbolic link so that the libtool archive can be found in
  59123. + # LD_LIBRARY_PATH before the program is installed.
  59124. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  59125. + ;;
  59126. + esac
  59127. + exit $EXIT_SUCCESS
  59128. +}
  59129. - # Restore saved environment variables
  59130. - for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  59131. - do
  59132. - eval "if test \"\${save_$lt_var+set}\" = set; then
  59133. - $lt_var=\$save_$lt_var; export $lt_var
  59134. - fi"
  59135. - done
  59136. +{ test "$mode" = link || test "$mode" = relink; } &&
  59137. + func_mode_link ${1+"$@"}
  59138. - # Now prepare to actually exec the command.
  59139. - exec_cmd="\$cmd$args"
  59140. - else
  59141. - # Display what would be done.
  59142. - if test -n "$shlibpath_var"; then
  59143. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  59144. - $echo "export $shlibpath_var"
  59145. - fi
  59146. - $echo "$cmd$args"
  59147. - exit $EXIT_SUCCESS
  59148. - fi
  59149. - ;;
  59150. - # libtool clean and uninstall mode
  59151. - clean | uninstall)
  59152. - modename="$modename: $mode"
  59153. - rm="$nonopt"
  59154. +# func_mode_uninstall arg...
  59155. +func_mode_uninstall ()
  59156. +{
  59157. + $opt_debug
  59158. + RM="$nonopt"
  59159. files=
  59160. rmforce=
  59161. exit_status=0
  59162. @@ -6539,30 +8209,28 @@
  59163. for arg
  59164. do
  59165. case $arg in
  59166. - -f) rm="$rm $arg"; rmforce=yes ;;
  59167. - -*) rm="$rm $arg" ;;
  59168. + -f) RM="$RM $arg"; rmforce=yes ;;
  59169. + -*) RM="$RM $arg" ;;
  59170. *) files="$files $arg" ;;
  59171. esac
  59172. done
  59173. - if test -z "$rm"; then
  59174. - $echo "$modename: you must specify an RM program" 1>&2
  59175. - $echo "$help" 1>&2
  59176. - exit $EXIT_FAILURE
  59177. - fi
  59178. + test -z "$RM" && \
  59179. + func_fatal_help "you must specify an RM program"
  59180. rmdirs=
  59181. origobjdir="$objdir"
  59182. for file in $files; do
  59183. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  59184. - if test "X$dir" = "X$file"; then
  59185. - dir=.
  59186. + func_dirname "$file" "" "."
  59187. + dir="$func_dirname_result"
  59188. + if test "X$dir" = X.; then
  59189. objdir="$origobjdir"
  59190. else
  59191. objdir="$dir/$origobjdir"
  59192. fi
  59193. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  59194. + func_basename "$file"
  59195. + name="$func_basename_result"
  59196. test "$mode" = uninstall && objdir="$dir"
  59197. # Remember objdir for removal later, being careful to avoid duplicates
  59198. @@ -6574,9 +8242,9 @@
  59199. fi
  59200. # Don't error if the file doesn't exist and rm -f was used.
  59201. - if (test -L "$file") >/dev/null 2>&1 \
  59202. - || (test -h "$file") >/dev/null 2>&1 \
  59203. - || test -f "$file"; then
  59204. + if { test -L "$file"; } >/dev/null 2>&1 ||
  59205. + { test -h "$file"; } >/dev/null 2>&1 ||
  59206. + test -f "$file"; then
  59207. :
  59208. elif test -d "$file"; then
  59209. exit_status=1
  59210. @@ -6590,8 +8258,8 @@
  59211. case $name in
  59212. *.la)
  59213. # Possibly a libtool archive, so verify it.
  59214. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  59215. - . $dir/$name
  59216. + if func_lalib_p "$file"; then
  59217. + func_source $dir/$name
  59218. # Delete the libtool libraries and symlinks.
  59219. for n in $library_names; do
  59220. @@ -6606,39 +8274,17 @@
  59221. *" $dlname "*) ;;
  59222. *) rmfiles="$rmfiles $objdir/$dlname" ;;
  59223. esac
  59224. - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  59225. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  59226. ;;
  59227. uninstall)
  59228. if test -n "$library_names"; then
  59229. # Do each command in the postuninstall commands.
  59230. - cmds=$postuninstall_cmds
  59231. - save_ifs="$IFS"; IFS='~'
  59232. - for cmd in $cmds; do
  59233. - IFS="$save_ifs"
  59234. - eval cmd=\"$cmd\"
  59235. - $show "$cmd"
  59236. - $run eval "$cmd"
  59237. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  59238. - exit_status=1
  59239. - fi
  59240. - done
  59241. - IFS="$save_ifs"
  59242. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  59243. fi
  59244. if test -n "$old_library"; then
  59245. # Do each command in the old_postuninstall commands.
  59246. - cmds=$old_postuninstall_cmds
  59247. - save_ifs="$IFS"; IFS='~'
  59248. - for cmd in $cmds; do
  59249. - IFS="$save_ifs"
  59250. - eval cmd=\"$cmd\"
  59251. - $show "$cmd"
  59252. - $run eval "$cmd"
  59253. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  59254. - exit_status=1
  59255. - fi
  59256. - done
  59257. - IFS="$save_ifs"
  59258. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  59259. fi
  59260. # FIXME: should reinstall the best remaining shared library.
  59261. ;;
  59262. @@ -6648,20 +8294,20 @@
  59263. *.lo)
  59264. # Possibly a libtool object, so verify it.
  59265. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  59266. + if func_lalib_p "$file"; then
  59267. # Read the .lo file
  59268. - . $dir/$name
  59269. + func_source $dir/$name
  59270. # Add PIC object to the list of files to remove.
  59271. - if test -n "$pic_object" \
  59272. - && test "$pic_object" != none; then
  59273. + if test -n "$pic_object" &&
  59274. + test "$pic_object" != none; then
  59275. rmfiles="$rmfiles $dir/$pic_object"
  59276. fi
  59277. # Add non-PIC object to the list of files to remove.
  59278. - if test -n "$non_pic_object" \
  59279. - && test "$non_pic_object" != none; then
  59280. + if test -n "$non_pic_object" &&
  59281. + test "$non_pic_object" != none; then
  59282. rmfiles="$rmfiles $dir/$non_pic_object"
  59283. fi
  59284. fi
  59285. @@ -6672,17 +8318,26 @@
  59286. noexename=$name
  59287. case $file in
  59288. *.exe)
  59289. - file=`$echo $file|${SED} 's,.exe$,,'`
  59290. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  59291. + func_stripname '' '.exe' "$file"
  59292. + file=$func_stripname_result
  59293. + func_stripname '' '.exe' "$name"
  59294. + noexename=$func_stripname_result
  59295. # $file with .exe has already been added to rmfiles,
  59296. # add $file without .exe
  59297. rmfiles="$rmfiles $file"
  59298. ;;
  59299. esac
  59300. # Do a test to see if this is a libtool program.
  59301. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  59302. - relink_command=
  59303. - . $dir/$noexename
  59304. + if func_ltwrapper_p "$file"; then
  59305. + if func_ltwrapper_executable_p "$file"; then
  59306. + func_ltwrapper_scriptname "$file"
  59307. + relink_command=
  59308. + func_source $func_ltwrapper_scriptname_result
  59309. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  59310. + else
  59311. + relink_command=
  59312. + func_source $dir/$noexename
  59313. + fi
  59314. # note $name still contains .exe if it was in $file originally
  59315. # as does the version of $file that was added into $rmfiles
  59316. @@ -6697,239 +8352,38 @@
  59317. fi
  59318. ;;
  59319. esac
  59320. - $show "$rm $rmfiles"
  59321. - $run $rm $rmfiles || exit_status=1
  59322. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  59323. done
  59324. objdir="$origobjdir"
  59325. # Try to remove the ${objdir}s in the directories where we deleted files
  59326. for dir in $rmdirs; do
  59327. if test -d "$dir"; then
  59328. - $show "rmdir $dir"
  59329. - $run rmdir $dir >/dev/null 2>&1
  59330. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  59331. fi
  59332. done
  59333. exit $exit_status
  59334. - ;;
  59335. +}
  59336. - "")
  59337. - $echo "$modename: you must specify a MODE" 1>&2
  59338. - $echo "$generic_help" 1>&2
  59339. - exit $EXIT_FAILURE
  59340. - ;;
  59341. - esac
  59342. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  59343. + func_mode_uninstall ${1+"$@"}
  59344. - if test -z "$exec_cmd"; then
  59345. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  59346. - $echo "$generic_help" 1>&2
  59347. - exit $EXIT_FAILURE
  59348. - fi
  59349. -fi # test -z "$show_help"
  59350. +test -z "$mode" && {
  59351. + help="$generic_help"
  59352. + func_fatal_help "you must specify a MODE"
  59353. +}
  59354. +
  59355. +test -z "$exec_cmd" && \
  59356. + func_fatal_help "invalid operation mode \`$mode'"
  59357. if test -n "$exec_cmd"; then
  59358. - eval exec $exec_cmd
  59359. + eval exec "$exec_cmd"
  59360. exit $EXIT_FAILURE
  59361. fi
  59362. -# We need to display help for each of the modes.
  59363. -case $mode in
  59364. -"") $echo \
  59365. -"Usage: $modename [OPTION]... [MODE-ARG]...
  59366. -
  59367. -Provide generalized library-building support services.
  59368. -
  59369. - --config show all configuration variables
  59370. - --debug enable verbose shell tracing
  59371. --n, --dry-run display commands without modifying any files
  59372. - --features display basic configuration information and exit
  59373. - --finish same as \`--mode=finish'
  59374. - --help display this help message and exit
  59375. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  59376. - --quiet same as \`--silent'
  59377. - --silent don't print informational messages
  59378. - --tag=TAG use configuration variables from tag TAG
  59379. - --version print version information
  59380. -
  59381. -MODE must be one of the following:
  59382. -
  59383. - clean remove files from the build directory
  59384. - compile compile a source file into a libtool object
  59385. - execute automatically set library path, then run a program
  59386. - finish complete the installation of libtool libraries
  59387. - install install libraries or executables
  59388. - link create a library or an executable
  59389. - uninstall remove libraries from an installed directory
  59390. -
  59391. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  59392. -a more detailed description of MODE.
  59393. -
  59394. -Report bugs to <bug-libtool@gnu.org>."
  59395. - exit $EXIT_SUCCESS
  59396. - ;;
  59397. -
  59398. -clean)
  59399. - $echo \
  59400. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  59401. -
  59402. -Remove files from the build directory.
  59403. -
  59404. -RM is the name of the program to use to delete files associated with each FILE
  59405. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  59406. -to RM.
  59407. -
  59408. -If FILE is a libtool library, object or program, all the files associated
  59409. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  59410. - ;;
  59411. -
  59412. -compile)
  59413. - $echo \
  59414. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  59415. -
  59416. -Compile a source file into a libtool library object.
  59417. -
  59418. -This mode accepts the following additional options:
  59419. -
  59420. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  59421. - -prefer-pic try to building PIC objects only
  59422. - -prefer-non-pic try to building non-PIC objects only
  59423. - -static always build a \`.o' file suitable for static linking
  59424. -
  59425. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  59426. -from the given SOURCEFILE.
  59427. -
  59428. -The output file name is determined by removing the directory component from
  59429. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  59430. -library object suffix, \`.lo'."
  59431. - ;;
  59432. -
  59433. -execute)
  59434. - $echo \
  59435. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  59436. -
  59437. -Automatically set library path, then run a program.
  59438. -
  59439. -This mode accepts the following additional options:
  59440. -
  59441. - -dlopen FILE add the directory containing FILE to the library path
  59442. -
  59443. -This mode sets the library path environment variable according to \`-dlopen'
  59444. -flags.
  59445. -
  59446. -If any of the ARGS are libtool executable wrappers, then they are translated
  59447. -into their corresponding uninstalled binary, and any of their required library
  59448. -directories are added to the library path.
  59449. -
  59450. -Then, COMMAND is executed, with ARGS as arguments."
  59451. - ;;
  59452. -
  59453. -finish)
  59454. - $echo \
  59455. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  59456. -
  59457. -Complete the installation of libtool libraries.
  59458. -
  59459. -Each LIBDIR is a directory that contains libtool libraries.
  59460. -
  59461. -The commands that this mode executes may require superuser privileges. Use
  59462. -the \`--dry-run' option if you just want to see what would be executed."
  59463. - ;;
  59464. -
  59465. -install)
  59466. - $echo \
  59467. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  59468. -
  59469. -Install executables or libraries.
  59470. -
  59471. -INSTALL-COMMAND is the installation command. The first component should be
  59472. -either the \`install' or \`cp' program.
  59473. -
  59474. -The rest of the components are interpreted as arguments to that command (only
  59475. -BSD-compatible install options are recognized)."
  59476. - ;;
  59477. -
  59478. -link)
  59479. - $echo \
  59480. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  59481. -
  59482. -Link object files or libraries together to form another library, or to
  59483. -create an executable program.
  59484. +exit $exit_status
  59485. -LINK-COMMAND is a command using the C compiler that you would use to create
  59486. -a program from several object files.
  59487. -
  59488. -The following components of LINK-COMMAND are treated specially:
  59489. -
  59490. - -all-static do not do any dynamic linking at all
  59491. - -avoid-version do not add a version suffix if possible
  59492. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  59493. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  59494. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  59495. - -export-symbols SYMFILE
  59496. - try to export only the symbols listed in SYMFILE
  59497. - -export-symbols-regex REGEX
  59498. - try to export only the symbols matching REGEX
  59499. - -LLIBDIR search LIBDIR for required installed libraries
  59500. - -lNAME OUTPUT-FILE requires the installed library libNAME
  59501. - -module build a library that can dlopened
  59502. - -no-fast-install disable the fast-install mode
  59503. - -no-install link a not-installable executable
  59504. - -no-undefined declare that a library does not refer to external symbols
  59505. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  59506. - -objectlist FILE Use a list of object files found in FILE to specify objects
  59507. - -precious-files-regex REGEX
  59508. - don't remove output files matching REGEX
  59509. - -release RELEASE specify package release information
  59510. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  59511. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  59512. - -static do not do any dynamic linking of uninstalled libtool libraries
  59513. - -static-libtool-libs
  59514. - do not do any dynamic linking of libtool libraries
  59515. - -version-info CURRENT[:REVISION[:AGE]]
  59516. - specify library version info [each variable defaults to 0]
  59517. -
  59518. -All other options (arguments beginning with \`-') are ignored.
  59519. -
  59520. -Every other argument is treated as a filename. Files ending in \`.la' are
  59521. -treated as uninstalled libtool libraries, other files are standard or library
  59522. -object files.
  59523. -
  59524. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  59525. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  59526. -required, except when creating a convenience library.
  59527. -
  59528. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  59529. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  59530. -
  59531. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  59532. -is created, otherwise an executable program is created."
  59533. - ;;
  59534. -
  59535. -uninstall)
  59536. - $echo \
  59537. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  59538. -
  59539. -Remove libraries from an installation directory.
  59540. -
  59541. -RM is the name of the program to use to delete files associated with each FILE
  59542. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  59543. -to RM.
  59544. -
  59545. -If FILE is a libtool library, all the files associated with it are deleted.
  59546. -Otherwise, only FILE itself is deleted using RM."
  59547. - ;;
  59548. -
  59549. -*)
  59550. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  59551. - $echo "$help" 1>&2
  59552. - exit $EXIT_FAILURE
  59553. - ;;
  59554. -esac
  59555. -
  59556. -$echo
  59557. -$echo "Try \`$modename --help' for more information about other modes."
  59558. -
  59559. -exit $?
  59560. # The TAGs below are defined such that we never get into a situation
  59561. # in which we disable both kinds of libraries. Given conflicting
  59562. @@ -6943,14 +8397,17 @@
  59563. # configuration. But we'll never go from static-only to shared-only.
  59564. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
  59565. -disable_libs=shared
  59566. +build_libtool_libs=no
  59567. +build_old_libs=yes
  59568. # ### END LIBTOOL TAG CONFIG: disable-shared
  59569. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  59570. -disable_libs=static
  59571. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  59572. # ### END LIBTOOL TAG CONFIG: disable-static
  59573. # Local Variables:
  59574. # mode:shell-script
  59575. # sh-indentation:2
  59576. # End:
  59577. +# vi:sw=2
  59578. +
  59579. diff -Nur libdaemon-0.13.orig/Makefile.in libdaemon-0.13/Makefile.in
  59580. --- libdaemon-0.13.orig/Makefile.in 2008-07-29 00:35:32.000000000 +0200
  59581. +++ libdaemon-0.13/Makefile.in 2011-02-20 22:17:59.886063043 +0100
  59582. @@ -1,8 +1,9 @@
  59583. -# Makefile.in generated by automake 1.10.1 from Makefile.am.
  59584. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  59585. # @configure_input@
  59586. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  59587. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  59588. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  59589. +# Inc.
  59590. # This Makefile.in is free software; the Free Software Foundation
  59591. # gives unlimited permission to copy and/or distribute it,
  59592. # with or without modifications, as long as this notice is preserved.
  59593. @@ -34,8 +35,9 @@
  59594. VPATH = @srcdir@
  59595. pkgdatadir = $(datadir)/@PACKAGE@
  59596. -pkglibdir = $(libdir)/@PACKAGE@
  59597. pkgincludedir = $(includedir)/@PACKAGE@
  59598. +pkglibdir = $(libdir)/@PACKAGE@
  59599. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  59600. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  59601. install_sh_DATA = $(install_sh) -c -m 644
  59602. install_sh_PROGRAM = $(install_sh) -c
  59603. @@ -67,6 +69,7 @@
  59604. mkinstalldirs = $(install_sh) -d
  59605. CONFIG_HEADER = config.h
  59606. CONFIG_CLEAN_FILES = libdaemon.pc
  59607. +CONFIG_CLEAN_VPATH_FILES =
  59608. SOURCES =
  59609. DIST_SOURCES =
  59610. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  59611. @@ -81,12 +84,29 @@
  59612. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  59613. *) f=$$p;; \
  59614. esac;
  59615. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  59616. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  59617. +am__install_max = 40
  59618. +am__nobase_strip_setup = \
  59619. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  59620. +am__nobase_strip = \
  59621. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  59622. +am__nobase_list = $(am__nobase_strip_setup); \
  59623. + for p in $$list; do echo "$$p $$p"; done | \
  59624. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  59625. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  59626. + if (++n[$$2] == $(am__install_max)) \
  59627. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  59628. + END { for (dir in files) print dir, files[dir] }'
  59629. +am__base_list = \
  59630. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  59631. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  59632. am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
  59633. -pkgconfigDATA_INSTALL = $(INSTALL_DATA)
  59634. DATA = $(noinst_DATA) $(pkgconfig_DATA)
  59635. RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  59636. distclean-recursive maintainer-clean-recursive
  59637. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  59638. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  59639. + distdir dist dist-all distcheck
  59640. ETAGS = etags
  59641. CTAGS = ctags
  59642. DIST_SUBDIRS = $(SUBDIRS)
  59643. @@ -94,9 +114,34 @@
  59644. distdir = $(PACKAGE)-$(VERSION)
  59645. top_distdir = $(distdir)
  59646. am__remove_distdir = \
  59647. - { test ! -d $(distdir) \
  59648. - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  59649. - && rm -fr $(distdir); }; }
  59650. + { test ! -d "$(distdir)" \
  59651. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  59652. + && rm -fr "$(distdir)"; }; }
  59653. +am__relativize = \
  59654. + dir0=`pwd`; \
  59655. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  59656. + sed_rest='s,^[^/]*/*,,'; \
  59657. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  59658. + sed_butlast='s,/*[^/]*$$,,'; \
  59659. + while test -n "$$dir1"; do \
  59660. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  59661. + if test "$$first" != "."; then \
  59662. + if test "$$first" = ".."; then \
  59663. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  59664. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  59665. + else \
  59666. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  59667. + if test "$$first2" = "$$first"; then \
  59668. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  59669. + else \
  59670. + dir2="../$$dir2"; \
  59671. + fi; \
  59672. + dir0="$$dir0"/"$$first"; \
  59673. + fi; \
  59674. + fi; \
  59675. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  59676. + done; \
  59677. + reldir="$$dir2"
  59678. DIST_ARCHIVES = $(distdir).tar.gz
  59679. GZIP_ENV = --best
  59680. distuninstallcheck_listfiles = find . -type f -print
  59681. @@ -121,31 +166,36 @@
  59682. DEFS = @DEFS@
  59683. DEPDIR = @DEPDIR@
  59684. DSYMUTIL = @DSYMUTIL@
  59685. -ECHO = @ECHO@
  59686. +DUMPBIN = @DUMPBIN@
  59687. ECHO_C = @ECHO_C@
  59688. ECHO_N = @ECHO_N@
  59689. ECHO_T = @ECHO_T@
  59690. EGREP = @EGREP@
  59691. EXEEXT = @EXEEXT@
  59692. -F77 = @F77@
  59693. -FFLAGS = @FFLAGS@
  59694. +FGREP = @FGREP@
  59695. GREP = @GREP@
  59696. INSTALL = @INSTALL@
  59697. INSTALL_DATA = @INSTALL_DATA@
  59698. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  59699. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  59700. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  59701. +LD = @LD@
  59702. LDFLAGS = @LDFLAGS@
  59703. LIBDAEMON_VERSION_INFO = @LIBDAEMON_VERSION_INFO@
  59704. LIBOBJS = @LIBOBJS@
  59705. LIBS = @LIBS@
  59706. LIBTOOL = @LIBTOOL@
  59707. +LIPO = @LIPO@
  59708. LN_S = @LN_S@
  59709. LTLIBOBJS = @LTLIBOBJS@
  59710. MAKEINFO = @MAKEINFO@
  59711. MKDIR_P = @MKDIR_P@
  59712. +NM = @NM@
  59713. NMEDIT = @NMEDIT@
  59714. +OBJDUMP = @OBJDUMP@
  59715. OBJEXT = @OBJEXT@
  59716. +OTOOL = @OTOOL@
  59717. +OTOOL64 = @OTOOL64@
  59718. PACKAGE = @PACKAGE@
  59719. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  59720. PACKAGE_NAME = @PACKAGE_NAME@
  59721. @@ -166,7 +216,7 @@
  59722. abs_top_srcdir = @abs_top_srcdir@
  59723. ac_ct_CC = @ac_ct_CC@
  59724. ac_ct_CXX = @ac_ct_CXX@
  59725. -ac_ct_F77 = @ac_ct_F77@
  59726. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  59727. am__include = @am__include@
  59728. am__leading_dot = @am__leading_dot@
  59729. am__quote = @am__quote@
  59730. @@ -198,6 +248,7 @@
  59731. libexecdir = @libexecdir@
  59732. localedir = @localedir@
  59733. localstatedir = @localstatedir@
  59734. +lt_ECHO = @lt_ECHO@
  59735. mandir = @mandir@
  59736. mkdir_p = @mkdir_p@
  59737. oldincludedir = @oldincludedir@
  59738. @@ -229,15 +280,15 @@
  59739. @for dep in $?; do \
  59740. case '$(am__configure_deps)' in \
  59741. *$$dep*) \
  59742. - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
  59743. - cd $(srcdir) && $(AUTOMAKE) --foreign \
  59744. + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
  59745. + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
  59746. && exit 0; \
  59747. exit 1;; \
  59748. esac; \
  59749. done; \
  59750. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
  59751. - cd $(top_srcdir) && \
  59752. - $(AUTOMAKE) --foreign Makefile
  59753. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
  59754. + $(am__cd) $(top_srcdir) && \
  59755. + $(AUTOMAKE) --foreign Makefile
  59756. .PRECIOUS: Makefile
  59757. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  59758. @case '$?' in \
  59759. @@ -253,9 +304,10 @@
  59760. $(SHELL) ./config.status --recheck
  59761. $(top_srcdir)/configure: $(am__configure_deps)
  59762. - cd $(srcdir) && $(AUTOCONF)
  59763. + $(am__cd) $(srcdir) && $(AUTOCONF)
  59764. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  59765. - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  59766. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  59767. +$(am__aclocal_m4_deps):
  59768. config.h: stamp-h1
  59769. @if test ! -f $@; then \
  59770. @@ -267,7 +319,7 @@
  59771. @rm -f stamp-h1
  59772. cd $(top_builddir) && $(SHELL) ./config.status config.h
  59773. $(srcdir)/config.h.in: $(am__configure_deps)
  59774. - cd $(top_srcdir) && $(AUTOHEADER)
  59775. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  59776. rm -f stamp-h1
  59777. touch $@
  59778. @@ -283,24 +335,27 @@
  59779. -rm -rf .libs _libs
  59780. distclean-libtool:
  59781. - -rm -f libtool
  59782. + -rm -f libtool config.lt
  59783. install-pkgconfigDATA: $(pkgconfig_DATA)
  59784. @$(NORMAL_INSTALL)
  59785. test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
  59786. - @list='$(pkgconfig_DATA)'; for p in $$list; do \
  59787. + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
  59788. + for p in $$list; do \
  59789. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  59790. - f=$(am__strip_dir) \
  59791. - echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
  59792. - $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
  59793. + echo "$$d$$p"; \
  59794. + done | $(am__base_list) | \
  59795. + while read files; do \
  59796. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
  59797. + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
  59798. done
  59799. uninstall-pkgconfigDATA:
  59800. @$(NORMAL_UNINSTALL)
  59801. - @list='$(pkgconfig_DATA)'; for p in $$list; do \
  59802. - f=$(am__strip_dir) \
  59803. - echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
  59804. - rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
  59805. - done
  59806. + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
  59807. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  59808. + test -n "$$files" || exit 0; \
  59809. + echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
  59810. + cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
  59811. # This directory's subdirectories are mostly independent; you can cd
  59812. # into them and run `make' without going through this Makefile.
  59813. @@ -309,7 +364,7 @@
  59814. # (which will cause the Makefiles to be regenerated when you run `make');
  59815. # (2) otherwise, pass the desired values on the `make' command line.
  59816. $(RECURSIVE_TARGETS):
  59817. - @failcom='exit 1'; \
  59818. + @fail= failcom='exit 1'; \
  59819. for f in x $$MAKEFLAGS; do \
  59820. case $$f in \
  59821. *=* | --[!k]*);; \
  59822. @@ -326,7 +381,7 @@
  59823. else \
  59824. local_target="$$target"; \
  59825. fi; \
  59826. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  59827. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  59828. || eval $$failcom; \
  59829. done; \
  59830. if test "$$dot_seen" = "no"; then \
  59831. @@ -334,7 +389,7 @@
  59832. fi; test -z "$$fail"
  59833. $(RECURSIVE_CLEAN_TARGETS):
  59834. - @failcom='exit 1'; \
  59835. + @fail= failcom='exit 1'; \
  59836. for f in x $$MAKEFLAGS; do \
  59837. case $$f in \
  59838. *=* | --[!k]*);; \
  59839. @@ -360,16 +415,16 @@
  59840. else \
  59841. local_target="$$target"; \
  59842. fi; \
  59843. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  59844. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  59845. || eval $$failcom; \
  59846. done && test -z "$$fail"
  59847. tags-recursive:
  59848. list='$(SUBDIRS)'; for subdir in $$list; do \
  59849. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  59850. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  59851. done
  59852. ctags-recursive:
  59853. list='$(SUBDIRS)'; for subdir in $$list; do \
  59854. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  59855. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  59856. done
  59857. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  59858. @@ -377,14 +432,14 @@
  59859. unique=`for i in $$list; do \
  59860. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  59861. done | \
  59862. - $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
  59863. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  59864. END { if (nonempty) { for (i in files) print i; }; }'`; \
  59865. mkid -fID $$unique
  59866. tags: TAGS
  59867. TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  59868. $(TAGS_FILES) $(LISP)
  59869. - tags=; \
  59870. + set x; \
  59871. here=`pwd`; \
  59872. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  59873. include_option=--etags-include; \
  59874. @@ -396,7 +451,7 @@
  59875. list='$(SUBDIRS)'; for subdir in $$list; do \
  59876. if test "$$subdir" = .; then :; else \
  59877. test ! -f $$subdir/TAGS || \
  59878. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  59879. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  59880. fi; \
  59881. done; \
  59882. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  59883. @@ -405,36 +460,41 @@
  59884. done | \
  59885. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  59886. END { if (nonempty) { for (i in files) print i; }; }'`; \
  59887. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  59888. + shift; \
  59889. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  59890. test -n "$$unique" || unique=$$empty_fix; \
  59891. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  59892. - $$tags $$unique; \
  59893. + if test $$# -gt 0; then \
  59894. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  59895. + "$$@" $$unique; \
  59896. + else \
  59897. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  59898. + $$unique; \
  59899. + fi; \
  59900. fi
  59901. ctags: CTAGS
  59902. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  59903. $(TAGS_FILES) $(LISP)
  59904. - tags=; \
  59905. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  59906. unique=`for i in $$list; do \
  59907. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  59908. done | \
  59909. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  59910. END { if (nonempty) { for (i in files) print i; }; }'`; \
  59911. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  59912. + test -z "$(CTAGS_ARGS)$$unique" \
  59913. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  59914. - $$tags $$unique
  59915. + $$unique
  59916. GTAGS:
  59917. here=`$(am__cd) $(top_builddir) && pwd` \
  59918. - && cd $(top_srcdir) \
  59919. - && gtags -i $(GTAGS_ARGS) $$here
  59920. + && $(am__cd) $(top_srcdir) \
  59921. + && gtags -i $(GTAGS_ARGS) "$$here"
  59922. distclean-tags:
  59923. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  59924. distdir: $(DISTFILES)
  59925. $(am__remove_distdir)
  59926. - test -d $(distdir) || mkdir $(distdir)
  59927. + test -d "$(distdir)" || mkdir "$(distdir)"
  59928. @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  59929. topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  59930. list='$(DISTFILES)'; \
  59931. @@ -450,38 +510,55 @@
  59932. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  59933. if test -d $$d/$$file; then \
  59934. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  59935. + if test -d "$(distdir)/$$file"; then \
  59936. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  59937. + fi; \
  59938. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  59939. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  59940. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  59941. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  59942. fi; \
  59943. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  59944. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  59945. else \
  59946. - test -f $(distdir)/$$file \
  59947. - || cp -p $$d/$$file $(distdir)/$$file \
  59948. + test -f "$(distdir)/$$file" \
  59949. + || cp -p $$d/$$file "$(distdir)/$$file" \
  59950. || exit 1; \
  59951. fi; \
  59952. done
  59953. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  59954. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  59955. if test "$$subdir" = .; then :; else \
  59956. test -d "$(distdir)/$$subdir" \
  59957. || $(MKDIR_P) "$(distdir)/$$subdir" \
  59958. || exit 1; \
  59959. - distdir=`$(am__cd) $(distdir) && pwd`; \
  59960. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  59961. - (cd $$subdir && \
  59962. + fi; \
  59963. + done
  59964. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  59965. + if test "$$subdir" = .; then :; else \
  59966. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  59967. + $(am__relativize); \
  59968. + new_distdir=$$reldir; \
  59969. + dir1=$$subdir; dir2="$(top_distdir)"; \
  59970. + $(am__relativize); \
  59971. + new_top_distdir=$$reldir; \
  59972. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  59973. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  59974. + ($(am__cd) $$subdir && \
  59975. $(MAKE) $(AM_MAKEFLAGS) \
  59976. - top_distdir="$$top_distdir" \
  59977. - distdir="$$distdir/$$subdir" \
  59978. + top_distdir="$$new_top_distdir" \
  59979. + distdir="$$new_distdir" \
  59980. am__remove_distdir=: \
  59981. am__skip_length_check=: \
  59982. + am__skip_mode_fix=: \
  59983. distdir) \
  59984. || exit 1; \
  59985. fi; \
  59986. done
  59987. - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  59988. + -test -n "$(am__skip_mode_fix)" \
  59989. + || find "$(distdir)" -type d ! -perm -755 \
  59990. + -exec chmod u+rwx,go+rx {} \; -o \
  59991. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  59992. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  59993. ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  59994. - || chmod -R a+r $(distdir)
  59995. + || chmod -R a+r "$(distdir)"
  59996. dist-gzip: distdir
  59997. tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  59998. $(am__remove_distdir)
  59999. @@ -494,6 +571,10 @@
  60000. tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  60001. $(am__remove_distdir)
  60002. +dist-xz: distdir
  60003. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  60004. + $(am__remove_distdir)
  60005. +
  60006. dist-tarZ: distdir
  60007. tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  60008. $(am__remove_distdir)
  60009. @@ -517,15 +598,17 @@
  60010. distcheck: dist
  60011. case '$(DIST_ARCHIVES)' in \
  60012. *.tar.gz*) \
  60013. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  60014. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  60015. *.tar.bz2*) \
  60016. - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  60017. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  60018. *.tar.lzma*) \
  60019. - unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
  60020. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  60021. + *.tar.xz*) \
  60022. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  60023. *.tar.Z*) \
  60024. uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  60025. *.shar.gz*) \
  60026. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  60027. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  60028. *.zip*) \
  60029. unzip $(distdir).zip ;;\
  60030. esac
  60031. @@ -533,9 +616,11 @@
  60032. mkdir $(distdir)/_build
  60033. mkdir $(distdir)/_inst
  60034. chmod a-w $(distdir)
  60035. + test -d $(distdir)/_build || exit 0; \
  60036. dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  60037. && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  60038. - && cd $(distdir)/_build \
  60039. + && am__cwd=`pwd` \
  60040. + && $(am__cd) $(distdir)/_build \
  60041. && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  60042. $(DISTCHECK_CONFIGURE_FLAGS) \
  60043. && $(MAKE) $(AM_MAKEFLAGS) \
  60044. @@ -557,13 +642,15 @@
  60045. && rm -rf "$$dc_destdir" \
  60046. && $(MAKE) $(AM_MAKEFLAGS) dist \
  60047. && rm -rf $(DIST_ARCHIVES) \
  60048. - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  60049. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  60050. + && cd "$$am__cwd" \
  60051. + || exit 1
  60052. $(am__remove_distdir)
  60053. @(echo "$(distdir) archives ready for distribution: "; \
  60054. list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  60055. sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  60056. distuninstallcheck:
  60057. - @cd $(distuninstallcheck_dir) \
  60058. + @$(am__cd) '$(distuninstallcheck_dir)' \
  60059. && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  60060. || { echo "ERROR: files left after uninstall:" ; \
  60061. if test -n "$(DESTDIR)"; then \
  60062. @@ -608,6 +695,7 @@
  60063. distclean-generic:
  60064. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  60065. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  60066. maintainer-clean-generic:
  60067. @echo "This command is intended for maintainers to use"
  60068. @@ -629,6 +717,8 @@
  60069. html: html-recursive
  60070. +html-am:
  60071. +
  60072. info: info-recursive
  60073. info-am:
  60074. @@ -637,18 +727,28 @@
  60075. install-dvi: install-dvi-recursive
  60076. +install-dvi-am:
  60077. +
  60078. install-exec-am:
  60079. install-html: install-html-recursive
  60080. +install-html-am:
  60081. +
  60082. install-info: install-info-recursive
  60083. +install-info-am:
  60084. +
  60085. install-man:
  60086. install-pdf: install-pdf-recursive
  60087. +install-pdf-am:
  60088. +
  60089. install-ps: install-ps-recursive
  60090. +install-ps-am:
  60091. +
  60092. installcheck-am:
  60093. maintainer-clean: maintainer-clean-recursive
  60094. @@ -671,25 +771,25 @@
  60095. uninstall-am: uninstall-pkgconfigDATA
  60096. -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
  60097. - install-strip
  60098. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
  60099. + ctags-recursive install-am install-strip tags-recursive
  60100. .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  60101. all all-am am--refresh check check-am clean clean-generic \
  60102. clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
  60103. - dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \
  60104. - distclean distclean-generic distclean-hdr distclean-libtool \
  60105. - distclean-tags distcleancheck distdir distuninstallcheck dvi \
  60106. - dvi-am html html-am info info-am install install-am \
  60107. - install-data install-data-am install-dvi install-dvi-am \
  60108. - install-exec install-exec-am install-html install-html-am \
  60109. - install-info install-info-am install-man install-pdf \
  60110. - install-pdf-am install-pkgconfigDATA install-ps install-ps-am \
  60111. - install-strip installcheck installcheck-am installdirs \
  60112. - installdirs-am maintainer-clean maintainer-clean-generic \
  60113. - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
  60114. - ps ps-am tags tags-recursive uninstall uninstall-am \
  60115. - uninstall-pkgconfigDATA
  60116. + dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
  60117. + distcheck distclean distclean-generic distclean-hdr \
  60118. + distclean-libtool distclean-tags distcleancheck distdir \
  60119. + distuninstallcheck dvi dvi-am html html-am info info-am \
  60120. + install install-am install-data install-data-am install-dvi \
  60121. + install-dvi-am install-exec install-exec-am install-html \
  60122. + install-html-am install-info install-info-am install-man \
  60123. + install-pdf install-pdf-am install-pkgconfigDATA install-ps \
  60124. + install-ps-am install-strip installcheck installcheck-am \
  60125. + installdirs installdirs-am maintainer-clean \
  60126. + maintainer-clean-generic mostlyclean mostlyclean-generic \
  60127. + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
  60128. + uninstall uninstall-am uninstall-pkgconfigDATA
  60129. @USE_LYNX_TRUE@README:
  60130. @@ -709,6 +809,7 @@
  60131. cp -av doc/reference/ $$HOME/homepage/private/projects/libdaemon/
  60132. .PHONY: homepage doxygen
  60133. +
  60134. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  60135. # Otherwise a system limit (for SysV at least) may be exceeded.
  60136. .NOEXPORT:
  60137. diff -Nur libdaemon-0.13.orig/missing libdaemon-0.13/missing
  60138. --- libdaemon-0.13.orig/missing 2008-06-18 03:24:09.000000000 +0200
  60139. +++ libdaemon-0.13/missing 2011-02-20 22:17:59.636057255 +0100
  60140. @@ -1,10 +1,10 @@
  60141. #! /bin/sh
  60142. # Common stub for a few missing GNU programs while installing.
  60143. -scriptversion=2006-05-10.23
  60144. +scriptversion=2009-04-28.21; # UTC
  60145. -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
  60146. -# Free Software Foundation, Inc.
  60147. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
  60148. +# 2008, 2009 Free Software Foundation, Inc.
  60149. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  60150. # This program is free software; you can redistribute it and/or modify
  60151. @@ -18,9 +18,7 @@
  60152. # GNU General Public License for more details.
  60153. # You should have received a copy of the GNU General Public License
  60154. -# along with this program; if not, write to the Free Software
  60155. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  60156. -# 02110-1301, USA.
  60157. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  60158. # As a special exception to the GNU General Public License, if you
  60159. # distribute this file as part of a program that contains a
  60160. @@ -89,6 +87,9 @@
  60161. tar try tar, gnutar, gtar, then tar without non-portable flags
  60162. yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  60163. +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
  60164. +\`g' are ignored when checking the name.
  60165. +
  60166. Send bug reports to <bug-automake@gnu.org>."
  60167. exit $?
  60168. ;;
  60169. @@ -106,15 +107,22 @@
  60170. esac
  60171. +# normalize program name to check for.
  60172. +program=`echo "$1" | sed '
  60173. + s/^gnu-//; t
  60174. + s/^gnu//; t
  60175. + s/^g//; t'`
  60176. +
  60177. # Now exit if we have it, but it failed. Also exit now if we
  60178. # don't have it and --version was passed (most likely to detect
  60179. -# the program).
  60180. +# the program). This is about non-GNU programs, so use $1 not
  60181. +# $program.
  60182. case $1 in
  60183. - lex|yacc)
  60184. + lex*|yacc*)
  60185. # Not GNU programs, they don't have --version.
  60186. ;;
  60187. - tar)
  60188. + tar*)
  60189. if test -n "$run"; then
  60190. echo 1>&2 "ERROR: \`tar' requires --run"
  60191. exit 1
  60192. @@ -138,7 +146,7 @@
  60193. # If it does not exist, or fails to run (possibly an outdated version),
  60194. # try to emulate it.
  60195. -case $1 in
  60196. +case $program in
  60197. aclocal*)
  60198. echo 1>&2 "\
  60199. WARNING: \`$1' is $msg. You should only need it if
  60200. @@ -148,7 +156,7 @@
  60201. touch aclocal.m4
  60202. ;;
  60203. - autoconf)
  60204. + autoconf*)
  60205. echo 1>&2 "\
  60206. WARNING: \`$1' is $msg. You should only need it if
  60207. you modified \`${configure_ac}'. You might want to install the
  60208. @@ -157,7 +165,7 @@
  60209. touch configure
  60210. ;;
  60211. - autoheader)
  60212. + autoheader*)
  60213. echo 1>&2 "\
  60214. WARNING: \`$1' is $msg. You should only need it if
  60215. you modified \`acconfig.h' or \`${configure_ac}'. You might want
  60216. @@ -187,7 +195,7 @@
  60217. while read f; do touch "$f"; done
  60218. ;;
  60219. - autom4te)
  60220. + autom4te*)
  60221. echo 1>&2 "\
  60222. WARNING: \`$1' is needed, but is $msg.
  60223. You might have modified some files without having the
  60224. @@ -210,7 +218,7 @@
  60225. fi
  60226. ;;
  60227. - bison|yacc)
  60228. + bison*|yacc*)
  60229. echo 1>&2 "\
  60230. WARNING: \`$1' $msg. You should only need it if
  60231. you modified a \`.y' file. You may need the \`Bison' package
  60232. @@ -240,7 +248,7 @@
  60233. fi
  60234. ;;
  60235. - lex|flex)
  60236. + lex*|flex*)
  60237. echo 1>&2 "\
  60238. WARNING: \`$1' is $msg. You should only need it if
  60239. you modified a \`.l' file. You may need the \`Flex' package
  60240. @@ -263,7 +271,7 @@
  60241. fi
  60242. ;;
  60243. - help2man)
  60244. + help2man*)
  60245. echo 1>&2 "\
  60246. WARNING: \`$1' is $msg. You should only need it if
  60247. you modified a dependency of a manual page. You may need the
  60248. @@ -277,11 +285,11 @@
  60249. else
  60250. test -z "$file" || exec >$file
  60251. echo ".ab help2man is required to generate this page"
  60252. - exit 1
  60253. + exit $?
  60254. fi
  60255. ;;
  60256. - makeinfo)
  60257. + makeinfo*)
  60258. echo 1>&2 "\
  60259. WARNING: \`$1' is $msg. You should only need it if
  60260. you modified a \`.texi' or \`.texinfo' file, or any other file
  60261. @@ -310,7 +318,7 @@
  60262. touch $file
  60263. ;;
  60264. - tar)
  60265. + tar*)
  60266. shift
  60267. # We have already tried tar in the generic part.
  60268. @@ -363,5 +371,6 @@
  60269. # eval: (add-hook 'write-file-hooks 'time-stamp)
  60270. # time-stamp-start: "scriptversion="
  60271. # time-stamp-format: "%:y-%02m-%02d.%02H"
  60272. -# time-stamp-end: "$"
  60273. +# time-stamp-time-zone: "UTC"
  60274. +# time-stamp-end: "; # UTC"
  60275. # End: