autotool.patch 2.3 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659636606366163662636636366463665636666366763668636696367063671636726367363674636756367663677636786367963680636816368263683636846368563686636876368863689636906369163692636936369463695636966369763698636996370063701637026370363704637056370663707637086370963710637116371263713637146371563716637176371863719637206372163722637236372463725637266372763728637296373063731637326373363734637356373663737637386373963740637416374263743637446374563746637476374863749637506375163752637536375463755637566375763758637596376063761637626376363764637656376663767637686376963770637716377263773637746377563776637776377863779637806378163782637836378463785637866378763788637896379063791637926379363794637956379663797637986379963800638016380263803638046380563806638076380863809638106381163812638136381463815638166381763818638196382063821638226382363824638256382663827638286382963830638316383263833638346383563836638376383863839638406384163842638436384463845638466384763848638496385063851638526385363854638556385663857638586385963860638616386263863638646386563866638676386863869638706387163872638736387463875638766387763878638796388063881638826388363884638856388663887638886388963890638916389263893638946389563896638976389863899639006390163902639036390463905639066390763908639096391063911639126391363914639156391663917639186391963920639216392263923639246392563926639276392863929639306393163932639336393463935639366393763938639396394063941639426394363944639456394663947639486394963950639516395263953639546395563956639576395863959639606396163962639636396463965639666396763968639696397063971639726397363974639756397663977639786397963980639816398263983639846398563986639876398863989639906399163992639936399463995639966399763998639996400064001640026400364004640056400664007640086400964010640116401264013640146401564016640176401864019640206402164022640236402464025640266402764028640296403064031640326403364034640356403664037640386403964040640416404264043640446404564046640476404864049640506405164052640536405464055640566405764058640596406064061640626406364064640656406664067640686406964070640716407264073640746407564076640776407864079640806408164082640836408464085640866408764088640896409064091640926409364094640956409664097640986409964100641016410264103641046410564106641076410864109641106411164112641136411464115641166411764118641196412064121641226412364124641256412664127641286412964130641316413264133641346413564136641376413864139641406414164142641436414464145641466414764148641496415064151641526415364154641556415664157641586415964160641616416264163641646416564166641676416864169641706417164172641736417464175641766417764178641796418064181641826418364184641856418664187641886418964190641916419264193641946419564196641976419864199642006420164202642036420464205642066420764208642096421064211642126421364214642156421664217642186421964220642216422264223642246422564226642276422864229642306423164232642336423464235642366423764238642396424064241642426424364244642456424664247642486424964250642516425264253642546425564256642576425864259642606426164262642636426464265642666426764268642696427064271642726427364274642756427664277642786427964280642816428264283642846428564286642876428864289642906429164292642936429464295642966429764298642996430064301643026430364304643056430664307643086430964310643116431264313643146431564316643176431864319643206432164322643236432464325643266432764328643296433064331643326433364334643356433664337643386433964340643416434264343643446434564346643476434864349643506435164352643536435464355643566435764358643596436064361643626436364364643656436664367643686436964370643716437264373643746437564376643776437864379643806438164382643836438464385643866438764388643896439064391643926439364394643956439664397643986439964400644016440264403644046440564406644076440864409644106441164412644136441464415644166441764418644196442064421644226442364424644256442664427644286442964430644316443264433644346443564436644376443864439644406444164442644436444464445644466444764448644496445064451644526445364454644556445664457644586445964460644616446264463644646446564466644676446864469644706447164472644736447464475644766447764478644796448064481644826448364484644856448664487644886448964490644916449264493644946449564496644976449864499645006450164502645036450464505645066450764508645096451064511645126451364514645156451664517645186451964520645216452264523645246452564526645276452864529645306453164532645336453464535645366453764538645396454064541645426454364544645456454664547645486454964550645516455264553645546455564556645576455864559645606456164562645636456464565645666456764568645696457064571645726457364574645756457664577645786457964580645816458264583645846458564586645876458864589645906459164592645936459464595645966459764598645996460064601646026460364604646056460664607646086460964610646116461264613646146461564616646176461864619646206462164622646236462464625646266462764628646296463064631646326463364634646356463664637646386463964640646416464264643646446464564646646476464864649646506465164652646536465464655646566465764658646596466064661646626466364664646656466664667646686466964670646716467264673646746467564676646776467864679646806468164682646836468464685646866468764688646896469064691646926469364694646956469664697646986469964700647016470264703647046470564706647076470864709647106471164712647136471464715647166471764718647196472064721647226472364724647256472664727647286472964730647316473264733647346473564736647376473864739647406474164742647436474464745647466474764748647496475064751647526475364754647556475664757647586475964760647616476264763647646476564766647676476864769647706477164772647736477464775647766477764778647796478064781647826478364784647856478664787647886478964790647916479264793647946479564796647976479864799648006480164802648036480464805648066480764808648096481064811648126481364814648156481664817648186481964820648216482264823648246482564826648276482864829648306483164832648336483464835648366483764838648396484064841648426484364844648456484664847648486484964850648516485264853648546485564856648576485864859648606486164862648636486464865648666486764868648696487064871648726487364874648756487664877648786487964880648816488264883648846488564886648876488864889648906489164892648936489464895648966489764898648996490064901649026490364904649056490664907649086490964910649116491264913649146491564916649176491864919649206492164922649236492464925649266492764928649296493064931649326493364934649356493664937649386493964940649416494264943649446494564946649476494864949649506495164952649536495464955649566495764958649596496064961649626496364964649656496664967649686496964970649716497264973649746497564976649776497864979649806498164982649836498464985649866498764988649896499064991649926499364994649956499664997649986499965000650016500265003650046500565006650076500865009650106501165012650136501465015650166501765018650196502065021650226502365024650256502665027650286502965030650316503265033650346503565036650376503865039650406504165042650436504465045650466504765048650496505065051650526505365054650556505665057650586505965060650616506265063650646506565066650676506865069650706507165072650736507465075650766507765078650796508065081650826508365084650856508665087650886508965090650916509265093650946509565096650976509865099651006510165102651036510465105651066510765108651096511065111651126511365114651156511665117651186511965120651216512265123651246512565126651276512865129651306513165132651336513465135651366513765138651396514065141651426514365144651456514665147651486514965150651516515265153651546515565156651576515865159651606516165162651636516465165651666516765168651696517065171651726517365174651756517665177651786517965180651816518265183651846518565186651876518865189651906519165192651936519465195651966519765198651996520065201652026520365204652056520665207652086520965210652116521265213652146521565216652176521865219652206522165222652236522465225652266522765228652296523065231652326523365234652356523665237652386523965240652416524265243652446524565246652476524865249652506525165252652536525465255652566525765258652596526065261652626526365264652656526665267652686526965270652716527265273652746527565276652776527865279652806528165282652836528465285652866528765288652896529065291652926529365294652956529665297652986529965300653016530265303653046530565306653076530865309653106531165312653136531465315653166531765318653196532065321653226532365324653256532665327653286532965330653316533265333653346533565336653376533865339653406534165342653436534465345653466534765348653496535065351653526535365354653556535665357653586535965360653616536265363653646536565366653676536865369653706537165372653736537465375653766537765378653796538065381653826538365384653856538665387653886538965390653916539265393653946539565396653976539865399654006540165402654036540465405654066540765408654096541065411654126541365414654156541665417654186541965420654216542265423654246542565426654276542865429654306543165432654336543465435654366543765438654396544065441654426544365444654456544665447654486544965450654516545265453654546545565456654576545865459654606546165462654636546465465654666546765468654696547065471654726547365474654756547665477654786547965480654816548265483654846548565486654876548865489654906549165492654936549465495654966549765498654996550065501655026550365504655056550665507655086550965510655116551265513655146551565516655176551865519655206552165522655236552465525655266552765528655296553065531655326553365534655356553665537655386553965540655416554265543655446554565546655476554865549655506555165552655536555465555655566555765558655596556065561655626556365564655656556665567655686556965570655716557265573655746557565576655776557865579655806558165582655836558465585655866558765588655896559065591655926559365594655956559665597655986559965600656016560265603656046560565606656076560865609656106561165612656136561465615656166561765618656196562065621656226562365624656256562665627656286562965630656316563265633656346563565636656376563865639656406564165642656436564465645656466564765648656496565065651656526565365654656556565665657656586565965660656616566265663656646566565666656676566865669656706567165672656736567465675656766567765678656796568065681656826568365684656856568665687656886568965690656916569265693656946569565696656976569865699657006570165702657036570465705657066570765708657096571065711657126571365714657156571665717657186571965720657216572265723657246572565726657276572865729657306573165732657336573465735657366573765738657396574065741657426574365744657456574665747657486574965750657516575265753657546575565756657576575865759657606576165762657636576465765657666576765768657696577065771657726577365774657756577665777657786577965780657816578265783657846578565786657876578865789657906579165792657936579465795657966579765798657996580065801658026580365804658056580665807658086580965810658116581265813658146581565816658176581865819658206582165822658236582465825658266582765828658296583065831658326583365834658356583665837658386583965840658416584265843658446584565846658476584865849658506585165852658536585465855658566585765858658596586065861658626586365864658656586665867658686586965870658716587265873658746587565876658776587865879658806588165882658836588465885658866588765888658896589065891658926589365894658956589665897658986589965900659016590265903659046590565906659076590865909659106591165912659136591465915659166591765918659196592065921659226592365924659256592665927659286592965930659316593265933659346593565936659376593865939659406594165942659436594465945659466594765948659496595065951659526595365954659556595665957659586595965960659616596265963659646596565966659676596865969659706597165972659736597465975659766597765978659796598065981659826598365984659856598665987659886598965990659916599265993659946599565996659976599865999660006600166002660036600466005660066600766008660096601066011660126601366014660156601666017660186601966020660216602266023660246602566026660276602866029660306603166032660336603466035660366603766038660396604066041660426604366044660456604666047660486604966050660516605266053660546605566056660576605866059660606606166062660636606466065660666606766068660696607066071660726607366074660756607666077660786607966080660816608266083660846608566086660876608866089660906609166092660936609466095660966609766098660996610066101661026610366104661056610666107661086610966110661116611266113661146611566116661176611866119661206612166122661236612466125661266612766128661296613066131661326613366134661356613666137661386613966140661416614266143661446614566146661476614866149661506615166152661536615466155661566615766158661596616066161661626616366164661656616666167661686616966170661716617266173661746617566176661776617866179661806618166182661836618466185661866618766188661896619066191661926619366194661956619666197661986619966200662016620266203662046620566206662076620866209662106621166212662136621466215662166621766218662196622066221662226622366224662256622666227662286622966230662316623266233662346623566236662376623866239662406624166242662436624466245662466624766248662496625066251662526625366254662556625666257662586625966260662616626266263662646626566266662676626866269662706627166272662736627466275662766627766278662796628066281662826628366284662856628666287662886628966290662916629266293662946629566296662976629866299663006630166302663036630466305663066630766308663096631066311663126631366314663156631666317663186631966320663216632266323663246632566326663276632866329663306633166332663336633466335663366633766338663396634066341663426634366344663456634666347663486634966350663516635266353663546635566356663576635866359663606636166362663636636466365663666636766368663696637066371663726637366374663756637666377663786637966380663816638266383663846638566386663876638866389663906639166392663936639466395663966639766398663996640066401664026640366404664056640666407664086640966410664116641266413664146641566416664176641866419664206642166422664236642466425664266642766428664296643066431664326643366434664356643666437664386643966440664416644266443664446644566446664476644866449664506645166452664536645466455664566645766458664596646066461664626646366464664656646666467664686646966470664716647266473664746647566476664776647866479664806648166482664836648466485664866648766488664896649066491664926649366494664956649666497664986649966500665016650266503665046650566506665076650866509665106651166512665136651466515665166651766518665196652066521665226652366524665256652666527665286652966530665316653266533665346653566536665376653866539665406654166542665436654466545665466654766548665496655066551665526655366554665556655666557665586655966560665616656266563665646656566566665676656866569665706657166572665736657466575665766657766578665796658066581665826658366584665856658666587665886658966590665916659266593665946659566596665976659866599666006660166602666036660466605666066660766608666096661066611666126661366614666156661666617666186661966620666216662266623666246662566626666276662866629666306663166632666336663466635666366663766638666396664066641666426664366644666456664666647666486664966650666516665266653666546665566656666576665866659666606666166662666636666466665666666666766668666696667066671666726667366674666756667666677666786667966680666816668266683666846668566686666876668866689666906669166692666936669466695666966669766698666996670066701667026670366704667056670666707667086670966710667116671266713667146671566716667176671866719667206672166722667236672466725667266672766728667296673066731667326673366734667356673666737667386673966740667416674266743667446674566746667476674866749667506675166752667536675466755667566675766758667596676066761667626676366764667656676666767667686676966770667716677266773667746677566776667776677866779667806678166782667836678466785667866678766788667896679066791667926679366794667956679666797667986679966800668016680266803668046680566806668076680866809668106681166812668136681466815668166681766818668196682066821668226682366824668256682666827668286682966830668316683266833668346683566836668376683866839668406684166842668436684466845668466684766848668496685066851668526685366854668556685666857668586685966860668616686266863668646686566866668676686866869668706687166872668736687466875668766687766878668796688066881668826688366884668856688666887668886688966890668916689266893668946689566896668976689866899669006690166902669036690466905669066690766908669096691066911669126691366914669156691666917669186691966920669216692266923669246692566926669276692866929669306693166932669336693466935669366693766938669396694066941669426694366944669456694666947669486694966950669516695266953669546695566956669576695866959669606696166962669636696466965669666696766968669696697066971669726697366974669756697666977669786697966980669816698266983669846698566986669876698866989669906699166992669936699466995669966699766998669996700067001670026700367004670056700667007670086700967010670116701267013670146701567016670176701867019670206702167022670236702467025670266702767028670296703067031670326703367034670356703667037670386703967040670416704267043670446704567046670476704867049670506705167052670536705467055670566705767058670596706067061670626706367064670656706667067670686706967070670716707267073670746707567076670776707867079670806708167082670836708467085670866708767088670896709067091670926709367094670956709667097670986709967100671016710267103671046710567106671076710867109671106711167112671136711467115671166711767118671196712067121671226712367124671256712667127671286712967130671316713267133671346713567136671376713867139671406714167142671436714467145671466714767148671496715067151671526715367154671556715667157671586715967160671616716267163671646716567166671676716867169671706717167172671736717467175671766717767178671796718067181671826718367184671856718667187671886718967190671916719267193671946719567196671976719867199672006720167202672036720467205672066720767208672096721067211672126721367214672156721667217672186721967220672216722267223672246722567226672276722867229672306723167232672336723467235672366723767238672396724067241672426724367244672456724667247672486724967250672516725267253672546725567256672576725867259672606726167262672636726467265672666726767268672696727067271672726727367274672756727667277672786727967280672816728267283672846728567286672876728867289672906729167292672936729467295672966729767298672996730067301673026730367304673056730667307673086730967310673116731267313673146731567316673176731867319673206732167322673236732467325673266732767328673296733067331673326733367334673356733667337673386733967340673416734267343673446734567346673476734867349673506735167352673536735467355673566735767358673596736067361673626736367364673656736667367673686736967370673716737267373673746737567376673776737867379673806738167382673836738467385673866738767388673896739067391673926739367394673956739667397673986739967400674016740267403674046740567406674076740867409674106741167412674136741467415674166741767418674196742067421674226742367424674256742667427674286742967430674316743267433674346743567436674376743867439674406744167442674436744467445674466744767448674496745067451674526745367454674556745667457674586745967460674616746267463674646746567466674676746867469674706747167472674736747467475674766747767478674796748067481674826748367484674856748667487674886748967490674916749267493674946749567496674976749867499675006750167502675036750467505675066750767508675096751067511675126751367514675156751667517675186751967520675216752267523675246752567526675276752867529675306753167532675336753467535675366753767538675396754067541675426754367544675456754667547675486754967550675516755267553675546755567556675576755867559675606756167562675636756467565675666756767568675696757067571675726757367574675756757667577675786757967580675816758267583675846758567586675876758867589675906759167592675936759467595675966759767598675996760067601676026760367604676056760667607676086760967610676116761267613676146761567616676176761867619676206762167622676236762467625676266762767628676296763067631676326763367634676356763667637676386763967640676416764267643676446764567646676476764867649676506765167652676536765467655676566765767658676596766067661676626766367664676656766667667676686766967670676716767267673676746767567676676776767867679676806768167682676836768467685676866768767688676896769067691676926769367694676956769667697676986769967700677016770267703677046770567706677076770867709677106771167712677136771467715677166771767718677196772067721677226772367724677256772667727677286772967730677316773267733677346773567736677376773867739677406774167742677436774467745677466774767748677496775067751677526775367754677556775667757677586775967760677616776267763677646776567766677676776867769677706777167772677736777467775677766777767778677796778067781677826778367784677856778667787677886778967790677916779267793677946779567796677976779867799678006780167802678036780467805678066780767808678096781067811678126781367814678156781667817678186781967820678216782267823678246782567826678276782867829678306783167832678336783467835678366783767838678396784067841678426784367844678456784667847678486784967850678516785267853678546785567856678576785867859678606786167862678636786467865678666786767868678696787067871678726787367874678756787667877678786787967880678816788267883678846788567886678876788867889678906789167892678936789467895678966789767898678996790067901679026790367904679056790667907679086790967910679116791267913679146791567916679176791867919679206792167922679236792467925679266792767928679296793067931679326793367934679356793667937679386793967940679416794267943679446794567946679476794867949679506795167952679536795467955679566795767958679596796067961679626796367964679656796667967679686796967970679716797267973679746797567976679776797867979679806798167982679836798467985679866798767988679896799067991679926799367994679956799667997679986799968000680016800268003680046800568006680076800868009680106801168012680136801468015680166801768018680196802068021680226802368024680256802668027680286802968030680316803268033680346803568036680376803868039680406804168042680436804468045680466804768048680496805068051680526805368054680556805668057680586805968060680616806268063680646806568066680676806868069680706807168072680736807468075680766807768078680796808068081680826808368084680856808668087680886808968090680916809268093680946809568096680976809868099681006810168102681036810468105681066810768108681096811068111681126811368114681156811668117681186811968120681216812268123681246812568126681276812868129681306813168132681336813468135681366813768138681396814068141681426814368144681456814668147681486814968150681516815268153681546815568156681576815868159681606816168162681636816468165681666816768168681696817068171681726817368174681756817668177681786817968180681816818268183681846818568186681876818868189681906819168192681936819468195681966819768198681996820068201682026820368204682056820668207682086820968210682116821268213682146821568216682176821868219682206822168222682236822468225682266822768228682296823068231682326823368234682356823668237682386823968240682416824268243682446824568246682476824868249682506825168252682536825468255682566825768258682596826068261682626826368264682656826668267682686826968270682716827268273682746827568276682776827868279682806828168282682836828468285682866828768288682896829068291682926829368294682956829668297682986829968300683016830268303683046830568306683076830868309683106831168312683136831468315683166831768318683196832068321683226832368324683256832668327683286832968330683316833268333683346833568336683376833868339683406834168342683436834468345683466834768348683496835068351683526835368354683556835668357683586835968360683616836268363683646836568366683676836868369683706837168372683736837468375683766837768378683796838068381683826838368384683856838668387683886838968390683916839268393683946839568396683976839868399684006840168402684036840468405684066840768408684096841068411684126841368414684156841668417684186841968420684216842268423684246842568426684276842868429684306843168432684336843468435684366843768438684396844068441684426844368444684456844668447684486844968450684516845268453684546845568456684576845868459684606846168462684636846468465684666846768468684696847068471684726847368474684756847668477684786847968480684816848268483684846848568486684876848868489684906849168492684936849468495684966849768498684996850068501685026850368504685056850668507685086850968510685116851268513685146851568516685176851868519685206852168522685236852468525685266852768528685296853068531685326853368534685356853668537685386853968540685416854268543685446854568546685476854868549685506855168552685536855468555685566855768558685596856068561685626856368564685656856668567685686856968570685716857268573685746857568576685776857868579685806858168582685836858468585685866858768588685896859068591685926859368594685956859668597685986859968600686016860268603686046860568606686076860868609686106861168612686136861468615686166861768618686196862068621686226862368624686256862668627686286862968630686316863268633686346863568636686376863868639686406864168642686436864468645686466864768648686496865068651686526865368654686556865668657686586865968660686616866268663686646866568666686676866868669686706867168672686736867468675686766867768678686796868068681686826868368684686856868668687686886868968690686916869268693686946869568696686976869868699687006870168702687036870468705687066870768708687096871068711687126871368714687156871668717687186871968720687216872268723687246872568726687276872868729687306873168732687336873468735687366873768738687396874068741687426874368744687456874668747687486874968750687516875268753687546875568756687576875868759687606876168762687636876468765687666876768768687696877068771687726877368774687756877668777687786877968780687816878268783687846878568786687876878868789687906879168792687936879468795687966879768798687996880068801688026880368804688056880668807688086880968810688116881268813688146881568816688176881868819688206882168822688236882468825688266882768828688296883068831688326883368834688356883668837688386883968840688416884268843688446884568846688476884868849688506885168852688536885468855688566885768858688596886068861688626886368864688656886668867688686886968870688716887268873688746887568876688776887868879688806888168882688836888468885688866888768888688896889068891688926889368894688956889668897688986889968900689016890268903689046890568906689076890868909689106891168912689136891468915689166891768918689196892068921689226892368924689256892668927689286892968930689316893268933689346893568936689376893868939689406894168942689436894468945689466894768948689496895068951689526895368954689556895668957689586895968960689616896268963689646896568966689676896868969689706897168972689736897468975689766897768978689796898068981689826898368984689856898668987689886898968990689916899268993689946899568996689976899868999690006900169002690036900469005690066900769008690096901069011690126901369014690156901669017690186901969020690216902269023690246902569026690276902869029690306903169032690336903469035690366903769038690396904069041690426904369044690456904669047690486904969050690516905269053690546905569056690576905869059690606906169062690636906469065690666906769068690696907069071690726907369074690756907669077690786907969080690816908269083690846908569086690876908869089690906909169092690936909469095690966909769098690996910069101691026910369104691056910669107691086910969110691116911269113691146911569116691176911869119691206912169122691236912469125691266912769128691296913069131691326913369134691356913669137691386913969140691416914269143691446914569146691476914869149691506915169152691536915469155691566915769158691596916069161691626916369164691656916669167691686916969170691716917269173691746917569176691776917869179691806918169182691836918469185691866918769188691896919069191691926919369194691956919669197691986919969200692016920269203692046920569206692076920869209692106921169212692136921469215692166921769218692196922069221692226922369224692256922669227692286922969230692316923269233692346923569236692376923869239692406924169242692436924469245692466924769248692496925069251692526925369254692556925669257692586925969260692616926269263692646926569266692676926869269692706927169272692736927469275692766927769278692796928069281692826928369284692856928669287692886928969290692916929269293692946929569296692976929869299693006930169302693036930469305693066930769308693096931069311693126931369314693156931669317693186931969320693216932269323693246932569326693276932869329693306933169332693336933469335693366933769338693396934069341693426934369344693456934669347693486934969350693516935269353693546935569356693576935869359693606936169362693636936469365693666936769368693696937069371693726937369374693756937669377693786937969380693816938269383693846938569386693876938869389693906939169392693936939469395693966939769398693996940069401694026940369404694056940669407694086940969410694116941269413694146941569416694176941869419694206942169422694236942469425694266942769428694296943069431694326943369434694356943669437694386943969440694416944269443694446944569446694476944869449694506945169452694536945469455694566945769458694596946069461694626946369464694656946669467694686946969470694716947269473694746947569476694776947869479694806948169482694836948469485694866948769488694896949069491694926949369494694956949669497694986949969500695016950269503695046950569506695076950869509695106951169512695136951469515695166951769518695196952069521695226952369524695256952669527695286952969530695316953269533695346953569536695376953869539695406954169542695436954469545695466954769548695496955069551695526955369554695556955669557695586955969560695616956269563695646956569566695676956869569695706957169572695736957469575695766957769578695796958069581695826958369584695856958669587695886958969590695916959269593695946959569596695976959869599696006960169602696036960469605696066960769608696096961069611696126961369614696156961669617696186961969620696216962269623696246962569626696276962869629696306963169632696336963469635696366963769638696396964069641696426964369644696456964669647696486964969650696516965269653696546965569656696576965869659696606966169662696636966469665696666966769668696696967069671696726967369674696756967669677696786967969680696816968269683696846968569686696876968869689696906969169692696936969469695696966969769698696996970069701697026970369704697056970669707697086970969710697116971269713697146971569716697176971869719697206972169722697236972469725697266972769728697296973069731697326973369734697356973669737697386973969740697416974269743697446974569746697476974869749697506975169752697536975469755697566975769758697596976069761697626976369764697656976669767697686976969770697716977269773697746977569776697776977869779697806978169782697836978469785697866978769788697896979069791697926979369794697956979669797697986979969800698016980269803698046980569806698076980869809698106981169812698136981469815698166981769818698196982069821698226982369824698256982669827698286982969830698316983269833698346983569836698376983869839698406984169842698436984469845698466984769848698496985069851698526985369854698556985669857698586985969860698616986269863698646986569866698676986869869698706987169872698736987469875698766987769878698796988069881698826988369884698856988669887698886988969890698916989269893698946989569896698976989869899699006990169902699036990469905699066990769908699096991069911699126991369914699156991669917699186991969920699216992269923699246992569926699276992869929699306993169932699336993469935699366993769938699396994069941699426994369944699456994669947699486994969950699516995269953699546995569956699576995869959699606996169962699636996469965699666996769968699696997069971699726997369974699756997669977699786997969980699816998269983699846998569986699876998869989699906999169992699936999469995699966999769998699997000070001700027000370004700057000670007700087000970010700117001270013700147001570016700177001870019700207002170022700237002470025700267002770028700297003070031700327003370034700357003670037700387003970040700417004270043700447004570046700477004870049700507005170052700537005470055700567005770058700597006070061700627006370064700657006670067700687006970070700717007270073700747007570076700777007870079700807008170082700837008470085700867008770088700897009070091700927009370094700957009670097700987009970100701017010270103701047010570106701077010870109701107011170112701137011470115701167011770118701197012070121701227012370124701257012670127701287012970130701317013270133701347013570136701377013870139701407014170142701437014470145701467014770148701497015070151701527015370154701557015670157701587015970160701617016270163701647016570166701677016870169701707017170172701737017470175701767017770178701797018070181701827018370184701857018670187701887018970190701917019270193701947019570196701977019870199702007020170202702037020470205702067020770208702097021070211702127021370214702157021670217702187021970220702217022270223702247022570226702277022870229702307023170232702337023470235702367023770238702397024070241702427024370244702457024670247702487024970250702517025270253702547025570256702577025870259702607026170262702637026470265702667026770268702697027070271702727027370274702757027670277702787027970280702817028270283702847028570286702877028870289702907029170292702937029470295702967029770298702997030070301703027030370304703057030670307703087030970310703117031270313703147031570316703177031870319703207032170322703237032470325703267032770328703297033070331703327033370334703357033670337703387033970340703417034270343703447034570346703477034870349703507035170352703537035470355703567035770358703597036070361703627036370364703657036670367703687036970370703717037270373703747037570376703777037870379703807038170382703837038470385703867038770388703897039070391703927039370394703957039670397703987039970400704017040270403704047040570406704077040870409704107041170412704137041470415704167041770418704197042070421704227042370424704257042670427704287042970430704317043270433704347043570436704377043870439704407044170442704437044470445704467044770448704497045070451704527045370454704557045670457704587045970460704617046270463704647046570466704677046870469704707047170472704737047470475704767047770478704797048070481704827048370484704857048670487704887048970490704917049270493704947049570496704977049870499705007050170502705037050470505705067050770508705097051070511705127051370514705157051670517705187051970520705217052270523705247052570526705277052870529705307053170532705337053470535705367053770538705397054070541705427054370544705457054670547705487054970550705517055270553705547055570556705577055870559705607056170562705637056470565705667056770568705697057070571705727057370574705757057670577705787057970580705817058270583705847058570586705877058870589705907059170592705937059470595705967059770598705997060070601706027060370604706057060670607706087060970610706117061270613706147061570616706177061870619706207062170622706237062470625706267062770628706297063070631706327063370634706357063670637706387063970640706417064270643706447064570646706477064870649706507065170652706537065470655706567065770658706597066070661706627066370664706657066670667706687066970670706717067270673706747067570676706777067870679706807068170682706837068470685706867068770688706897069070691706927069370694706957069670697706987069970700707017070270703707047070570706707077070870709707107071170712707137071470715707167071770718707197072070721707227072370724707257072670727707287072970730707317073270733707347073570736707377073870739707407074170742707437074470745707467074770748707497075070751707527075370754707557075670757707587075970760707617076270763707647076570766707677076870769707707077170772707737077470775707767077770778707797078070781707827078370784707857078670787707887078970790707917079270793707947079570796707977079870799708007080170802708037080470805708067080770808708097081070811708127081370814708157081670817708187081970820708217082270823708247082570826708277082870829708307083170832708337083470835708367083770838708397084070841708427084370844708457084670847708487084970850708517085270853708547085570856708577085870859708607086170862708637086470865708667086770868708697087070871708727087370874708757087670877708787087970880708817088270883708847088570886708877088870889708907089170892708937089470895708967089770898708997090070901709027090370904709057090670907709087090970910709117091270913709147091570916709177091870919709207092170922709237092470925709267092770928709297093070931709327093370934709357093670937709387093970940709417094270943709447094570946709477094870949709507095170952709537095470955709567095770958709597096070961709627096370964709657096670967709687096970970709717097270973709747097570976709777097870979709807098170982709837098470985709867098770988709897099070991709927099370994709957099670997709987099971000710017100271003710047100571006710077100871009710107101171012710137101471015710167101771018710197102071021710227102371024710257102671027710287102971030710317103271033710347103571036710377103871039710407104171042710437104471045710467104771048710497105071051710527105371054710557105671057710587105971060710617106271063710647106571066710677106871069710707107171072710737107471075710767107771078710797108071081710827108371084710857108671087710887108971090710917109271093710947109571096710977109871099711007110171102711037110471105711067110771108711097111071111711127111371114711157111671117711187111971120711217112271123711247112571126711277112871129711307113171132711337113471135711367113771138711397114071141711427114371144711457114671147711487114971150711517115271153711547115571156711577115871159711607116171162711637116471165711667116771168711697117071171711727117371174711757117671177711787117971180711817118271183711847118571186711877118871189711907119171192711937119471195711967119771198711997120071201712027120371204712057120671207712087120971210712117121271213712147121571216712177121871219712207122171222712237122471225712267122771228712297123071231712327123371234712357123671237712387123971240712417124271243712447124571246712477124871249712507125171252712537125471255712567125771258712597126071261712627126371264712657126671267712687126971270712717127271273712747127571276712777127871279712807128171282712837128471285712867128771288712897129071291712927129371294712957129671297712987129971300713017130271303713047130571306713077130871309713107131171312713137131471315713167131771318713197132071321713227132371324713257132671327713287132971330713317133271333713347133571336713377133871339713407134171342713437134471345713467134771348713497135071351713527135371354713557135671357713587135971360713617136271363713647136571366713677136871369713707137171372713737137471375713767137771378713797138071381713827138371384713857138671387713887138971390713917139271393713947139571396713977139871399714007140171402714037140471405714067140771408714097141071411714127141371414714157141671417714187141971420714217142271423714247142571426714277142871429714307143171432714337143471435714367143771438714397144071441714427144371444714457144671447714487144971450714517145271453714547145571456714577145871459714607146171462714637146471465714667146771468714697147071471714727147371474714757147671477714787147971480714817148271483714847148571486714877148871489714907149171492714937149471495714967149771498714997150071501715027150371504715057150671507715087150971510715117151271513715147151571516715177151871519715207152171522715237152471525715267152771528715297153071531715327153371534715357153671537715387153971540715417154271543715447154571546715477154871549715507155171552715537155471555715567155771558715597156071561715627156371564715657156671567715687156971570715717157271573715747157571576715777157871579715807158171582715837158471585715867158771588715897159071591715927159371594715957159671597715987159971600716017160271603716047160571606716077160871609716107161171612716137161471615716167161771618716197162071621716227162371624716257162671627716287162971630716317163271633716347163571636716377163871639716407164171642716437164471645716467164771648716497165071651716527165371654716557165671657716587165971660716617166271663716647166571666716677166871669716707167171672716737167471675716767167771678716797168071681716827168371684716857168671687716887168971690716917169271693716947169571696716977169871699717007170171702717037170471705717067170771708717097171071711717127171371714717157171671717717187171971720717217172271723717247172571726717277172871729717307173171732717337173471735717367173771738717397174071741717427174371744717457174671747717487174971750717517175271753717547175571756717577175871759717607176171762717637176471765717667176771768717697177071771
  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 libdnet-1.11.orig/aclocal.m4 libdnet-1.11/aclocal.m4
  6. --- libdnet-1.11.orig/aclocal.m4 2006-01-19 09:24:35.000000000 +0100
  7. +++ libdnet-1.11/aclocal.m4 2011-02-19 12:27:11.983554880 +0100
  8. @@ -1,7 +1,7 @@
  9. -# aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*-
  10. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  11. -# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
  12. -# Free Software Foundation, Inc.
  13. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  14. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  15. # This file is free software; the Free Software Foundation
  16. # gives unlimited permission to copy and/or distribute it,
  17. # with or without modifications, as long as this notice is preserved.
  18. @@ -11,1149 +11,1084 @@
  19. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  20. # PARTICULAR PURPOSE.
  21. -# Do all the work for Automake. -*- Autoconf -*-
  22. -
  23. -# This macro actually does too much some checks are only needed if
  24. -# your package does certain things. But this isn't really a big deal.
  25. -
  26. -# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
  27. -# Free Software Foundation, Inc.
  28. -
  29. -# This program is free software; you can redistribute it and/or modify
  30. -# it under the terms of the GNU General Public License as published by
  31. -# the Free Software Foundation; either version 2, or (at your option)
  32. -# any later version.
  33. +m4_ifndef([AC_AUTOCONF_VERSION],
  34. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  35. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  36. +[m4_warning([this file was generated for autoconf 2.65.
  37. +You have another version of autoconf. It may work, but is not guaranteed to.
  38. +If you have problems, you may need to regenerate the build system entirely.
  39. +To do so, use the procedure documented by the package, typically `autoreconf'.])])
  40. -# This program is distributed in the hope that it will be useful,
  41. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  42. +#
  43. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  44. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  45. +# Written by Gordon Matzigkeit, 1996
  46. +#
  47. +# This file is free software; the Free Software Foundation gives
  48. +# unlimited permission to copy and/or distribute it, with or without
  49. +# modifications, as long as this notice is preserved.
  50. +
  51. +m4_define([_LT_COPYING], [dnl
  52. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  53. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  54. +# Written by Gordon Matzigkeit, 1996
  55. +#
  56. +# This file is part of GNU Libtool.
  57. +#
  58. +# GNU Libtool is free software; you can redistribute it and/or
  59. +# modify it under the terms of the GNU General Public License as
  60. +# published by the Free Software Foundation; either version 2 of
  61. +# the License, or (at your option) any later version.
  62. +#
  63. +# As a special exception to the GNU General Public License,
  64. +# if you distribute this file as part of a program or library that
  65. +# is built using GNU Libtool, you may include this file under the
  66. +# same distribution terms that you use for the rest of that program.
  67. +#
  68. +# GNU Libtool is distributed in the hope that it will be useful,
  69. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  70. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  71. # GNU General Public License for more details.
  72. -
  73. +#
  74. # You should have received a copy of the GNU General Public License
  75. -# along with this program; if not, write to the Free Software
  76. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  77. -# 02111-1307, USA.
  78. +# along with GNU Libtool; see the file COPYING. If not, a copy
  79. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  80. +# obtained by writing to the Free Software Foundation, Inc.,
  81. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  82. +])
  83. -# serial 8
  84. +# serial 56 LT_INIT
  85. -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  86. -# written in clear, in which case automake, when reading aclocal.m4,
  87. -# will think it sees a *use*, and therefore will trigger all it's
  88. -# C support machinery. Also note that it means that autoscan, seeing
  89. -# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  90. +# LT_PREREQ(VERSION)
  91. +# ------------------
  92. +# Complain and exit if this libtool version is less that VERSION.
  93. +m4_defun([LT_PREREQ],
  94. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  95. + [m4_default([$3],
  96. + [m4_fatal([Libtool version $1 or higher is required],
  97. + 63)])],
  98. + [$2])])
  99. -AC_PREREQ([2.52])
  100. -# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
  101. -# the ones we care about.
  102. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  103. +# _LT_CHECK_BUILDDIR
  104. +# ------------------
  105. +# Complain if the absolute build directory name contains unusual characters
  106. +m4_defun([_LT_CHECK_BUILDDIR],
  107. +[case `pwd` in
  108. + *\ * | *\ *)
  109. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  110. +esac
  111. +])
  112. -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  113. -# AM_INIT_AUTOMAKE([OPTIONS])
  114. -# -----------------------------------------------
  115. -# The call with PACKAGE and VERSION arguments is the old style
  116. -# call (pre autoconf-2.50), which is being phased out. PACKAGE
  117. -# and VERSION should now be passed to AC_INIT and removed from
  118. -# the call to AM_INIT_AUTOMAKE.
  119. -# We support both call styles for the transition. After
  120. -# the next Automake release, Autoconf can make the AC_INIT
  121. -# arguments mandatory, and then we can depend on a new Autoconf
  122. -# release and drop the old call support.
  123. -AC_DEFUN([AM_INIT_AUTOMAKE],
  124. -[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  125. - AC_REQUIRE([AC_PROG_INSTALL])dnl
  126. -# test to see if srcdir already configured
  127. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  128. - test -f $srcdir/config.status; then
  129. - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  130. -fi
  131. -# Define the identity of the package.
  132. -dnl Distinguish between old-style and new-style calls.
  133. -m4_ifval([$2],
  134. -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  135. - AC_SUBST([PACKAGE], [$1])dnl
  136. - AC_SUBST([VERSION], [$2])],
  137. -[_AM_SET_OPTIONS([$1])dnl
  138. - AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
  139. - AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
  140. +# LT_INIT([OPTIONS])
  141. +# ------------------
  142. +AC_DEFUN([LT_INIT],
  143. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  144. +AC_BEFORE([$0], [LT_LANG])dnl
  145. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  146. +AC_BEFORE([$0], [LTDL_INIT])dnl
  147. +m4_require([_LT_CHECK_BUILDDIR])dnl
  148. +
  149. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  150. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  151. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  152. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  153. +dnl unless we require an AC_DEFUNed macro:
  154. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  155. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  156. +AC_REQUIRE([LTVERSION_VERSION])dnl
  157. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  158. +m4_require([_LT_PROG_LTMAIN])dnl
  159. -_AM_IF_OPTION([no-define],,
  160. -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  161. - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  162. +dnl Parse OPTIONS
  163. +_LT_SET_OPTIONS([$0], [$1])
  164. -# Some tools Automake needs.
  165. -AC_REQUIRE([AM_SANITY_CHECK])dnl
  166. -AC_REQUIRE([AC_ARG_PROGRAM])dnl
  167. -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  168. -AM_MISSING_PROG(AUTOCONF, autoconf)
  169. -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  170. -AM_MISSING_PROG(AUTOHEADER, autoheader)
  171. -AM_MISSING_PROG(MAKEINFO, makeinfo)
  172. -AM_MISSING_PROG(AMTAR, tar)
  173. -AM_PROG_INSTALL_SH
  174. -AM_PROG_INSTALL_STRIP
  175. -# We need awk for the "check" target. The system "awk" is bad on
  176. -# some platforms.
  177. -AC_REQUIRE([AC_PROG_AWK])dnl
  178. -AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  179. +# This can be used to rebuild libtool when needed
  180. +LIBTOOL_DEPS="$ltmain"
  181. -_AM_IF_OPTION([no-dependencies],,
  182. -[AC_PROVIDE_IFELSE([AC_PROG_][CC],
  183. - [_AM_DEPENDENCIES(CC)],
  184. - [define([AC_PROG_][CC],
  185. - defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
  186. -AC_PROVIDE_IFELSE([AC_PROG_][CXX],
  187. - [_AM_DEPENDENCIES(CXX)],
  188. - [define([AC_PROG_][CXX],
  189. - defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  190. -])
  191. +# Always use our own libtool.
  192. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  193. +AC_SUBST(LIBTOOL)dnl
  194. +
  195. +_LT_SETUP
  196. +
  197. +# Only expand once:
  198. +m4_define([LT_INIT])
  199. +])# LT_INIT
  200. +
  201. +# Old names:
  202. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  203. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  204. +dnl aclocal-1.4 backwards compatibility:
  205. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  206. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  207. +
  208. +
  209. +# _LT_CC_BASENAME(CC)
  210. +# -------------------
  211. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  212. +m4_defun([_LT_CC_BASENAME],
  213. +[for cc_temp in $1""; do
  214. + case $cc_temp in
  215. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  216. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  217. + \-*) ;;
  218. + *) break;;
  219. + esac
  220. +done
  221. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  222. ])
  223. -# Copyright 2002 Free Software Foundation, Inc.
  224. -
  225. -# This program is free software; you can redistribute it and/or modify
  226. -# it under the terms of the GNU General Public License as published by
  227. -# the Free Software Foundation; either version 2, or (at your option)
  228. -# any later version.
  229. -# This program is distributed in the hope that it will be useful,
  230. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  231. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  232. -# GNU General Public License for more details.
  233. +# _LT_FILEUTILS_DEFAULTS
  234. +# ----------------------
  235. +# It is okay to use these file commands and assume they have been set
  236. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  237. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  238. +[: ${CP="cp -f"}
  239. +: ${MV="mv -f"}
  240. +: ${RM="rm -f"}
  241. +])# _LT_FILEUTILS_DEFAULTS
  242. -# You should have received a copy of the GNU General Public License
  243. -# along with this program; if not, write to the Free Software
  244. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  245. -# AM_AUTOMAKE_VERSION(VERSION)
  246. -# ----------------------------
  247. -# Automake X.Y traces this macro to ensure aclocal.m4 has been
  248. -# generated from the m4 files accompanying Automake X.Y.
  249. -AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"])
  250. +# _LT_SETUP
  251. +# ---------
  252. +m4_defun([_LT_SETUP],
  253. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  254. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  255. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  256. +_LT_DECL([], [host], [0])dnl
  257. +_LT_DECL([], [host_os], [0])dnl
  258. +dnl
  259. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  260. +_LT_DECL([], [build], [0])dnl
  261. +_LT_DECL([], [build_os], [0])dnl
  262. +dnl
  263. +AC_REQUIRE([AC_PROG_CC])dnl
  264. +AC_REQUIRE([LT_PATH_LD])dnl
  265. +AC_REQUIRE([LT_PATH_NM])dnl
  266. +dnl
  267. +AC_REQUIRE([AC_PROG_LN_S])dnl
  268. +test -z "$LN_S" && LN_S="ln -s"
  269. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  270. +dnl
  271. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  272. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  273. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  274. +dnl
  275. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  276. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  277. +m4_require([_LT_CMD_RELOAD])dnl
  278. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  279. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  280. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  281. +
  282. +_LT_CONFIG_LIBTOOL_INIT([
  283. +# See if we are running on zsh, and set the options which allow our
  284. +# commands through without removal of \ escapes INIT.
  285. +if test -n "\${ZSH_VERSION+set}" ; then
  286. + setopt NO_GLOB_SUBST
  287. +fi
  288. +])
  289. +if test -n "${ZSH_VERSION+set}" ; then
  290. + setopt NO_GLOB_SUBST
  291. +fi
  292. -# AM_SET_CURRENT_AUTOMAKE_VERSION
  293. -# -------------------------------
  294. -# Call AM_AUTOMAKE_VERSION so it can be traced.
  295. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  296. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  297. - [AM_AUTOMAKE_VERSION([1.6.3])])
  298. +_LT_CHECK_OBJDIR
  299. -# Helper functions for option handling. -*- Autoconf -*-
  300. +m4_require([_LT_TAG_COMPILER])dnl
  301. +_LT_PROG_ECHO_BACKSLASH
  302. -# Copyright 2001, 2002 Free Software Foundation, Inc.
  303. +case $host_os in
  304. +aix3*)
  305. + # AIX sometimes has problems with the GCC collect2 program. For some
  306. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  307. + # vanish in a puff of smoke.
  308. + if test "X${COLLECT_NAMES+set}" != Xset; then
  309. + COLLECT_NAMES=
  310. + export COLLECT_NAMES
  311. + fi
  312. + ;;
  313. +esac
  314. -# This program is free software; you can redistribute it and/or modify
  315. -# it under the terms of the GNU General Public License as published by
  316. -# the Free Software Foundation; either version 2, or (at your option)
  317. -# any later version.
  318. +# Sed substitution that helps us do robust quoting. It backslashifies
  319. +# metacharacters that are still active within double-quoted strings.
  320. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  321. -# This program is distributed in the hope that it will be useful,
  322. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  323. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  324. -# GNU General Public License for more details.
  325. +# Same as above, but do not quote variable references.
  326. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  327. -# You should have received a copy of the GNU General Public License
  328. -# along with this program; if not, write to the Free Software
  329. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  330. -# 02111-1307, USA.
  331. +# Sed substitution to delay expansion of an escaped shell variable in a
  332. +# double_quote_subst'ed string.
  333. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  334. -# serial 2
  335. +# Sed substitution to delay expansion of an escaped single quote.
  336. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  337. -# _AM_MANGLE_OPTION(NAME)
  338. -# -----------------------
  339. -AC_DEFUN([_AM_MANGLE_OPTION],
  340. -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  341. +# Sed substitution to avoid accidental globbing in evaled expressions
  342. +no_glob_subst='s/\*/\\\*/g'
  343. -# _AM_SET_OPTION(NAME)
  344. -# ------------------------------
  345. -# Set option NAME. Presently that only means defining a flag for this option.
  346. -AC_DEFUN([_AM_SET_OPTION],
  347. -[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  348. +# Global variables:
  349. +ofile=libtool
  350. +can_build_shared=yes
  351. -# _AM_SET_OPTIONS(OPTIONS)
  352. -# ----------------------------------
  353. -# OPTIONS is a space-separated list of Automake options.
  354. -AC_DEFUN([_AM_SET_OPTIONS],
  355. -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  356. +# All known linkers require a `.a' archive for static linking (except MSVC,
  357. +# which needs '.lib').
  358. +libext=a
  359. -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  360. -# -------------------------------------------
  361. -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  362. -AC_DEFUN([_AM_IF_OPTION],
  363. -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  364. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  365. -#
  366. -# Check to make sure that the build environment is sane.
  367. -#
  368. +old_CC="$CC"
  369. +old_CFLAGS="$CFLAGS"
  370. -# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
  371. +# Set sane defaults for various variables
  372. +test -z "$CC" && CC=cc
  373. +test -z "$LTCC" && LTCC=$CC
  374. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  375. +test -z "$LD" && LD=ld
  376. +test -z "$ac_objext" && ac_objext=o
  377. -# This program is free software; you can redistribute it and/or modify
  378. -# it under the terms of the GNU General Public License as published by
  379. -# the Free Software Foundation; either version 2, or (at your option)
  380. -# any later version.
  381. +_LT_CC_BASENAME([$compiler])
  382. -# This program is distributed in the hope that it will be useful,
  383. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  384. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  385. -# GNU General Public License for more details.
  386. +# Only perform the check for file, if the check method requires it
  387. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  388. +case $deplibs_check_method in
  389. +file_magic*)
  390. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  391. + _LT_PATH_MAGIC
  392. + fi
  393. + ;;
  394. +esac
  395. -# You should have received a copy of the GNU General Public License
  396. -# along with this program; if not, write to the Free Software
  397. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  398. -# 02111-1307, USA.
  399. +# Use C for the default configuration in the libtool script
  400. +LT_SUPPORTED_TAG([CC])
  401. +_LT_LANG_C_CONFIG
  402. +_LT_LANG_DEFAULT_CONFIG
  403. +_LT_CONFIG_COMMANDS
  404. +])# _LT_SETUP
  405. -# serial 3
  406. -# AM_SANITY_CHECK
  407. +# _LT_PROG_LTMAIN
  408. # ---------------
  409. -AC_DEFUN([AM_SANITY_CHECK],
  410. -[AC_MSG_CHECKING([whether build environment is sane])
  411. -# Just in case
  412. -sleep 1
  413. -echo timestamp > conftest.file
  414. -# Do `set' in a subshell so we don't clobber the current shell's
  415. -# arguments. Must try -L first in case configure is actually a
  416. -# symlink; some systems play weird games with the mod time of symlinks
  417. -# (eg FreeBSD returns the mod time of the symlink's containing
  418. -# directory).
  419. -if (
  420. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  421. - if test "$[*]" = "X"; then
  422. - # -L didn't work.
  423. - set X `ls -t $srcdir/configure conftest.file`
  424. - fi
  425. - rm -f conftest.file
  426. - if test "$[*]" != "X $srcdir/configure conftest.file" \
  427. - && test "$[*]" != "X conftest.file $srcdir/configure"; then
  428. +# Note that this code is called both from `configure', and `config.status'
  429. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  430. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  431. +# so we pass a copy along to make sure it has a sensible value anyway.
  432. +m4_defun([_LT_PROG_LTMAIN],
  433. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  434. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  435. +ltmain="$ac_aux_dir/ltmain.sh"
  436. +])# _LT_PROG_LTMAIN
  437. - # If neither matched, then we have a broken ls. This can happen
  438. - # if, for instance, CONFIG_SHELL is bash and it inherits a
  439. - # broken ls alias from the environment. This has actually
  440. - # happened. Such a system could not be considered "sane".
  441. - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  442. -alias in your environment])
  443. - fi
  444. - test "$[2]" = conftest.file
  445. - )
  446. -then
  447. - # Ok.
  448. - :
  449. -else
  450. - AC_MSG_ERROR([newly created file is older than distributed files!
  451. -Check your system clock])
  452. -fi
  453. -AC_MSG_RESULT(yes)])
  454. -# -*- Autoconf -*-
  455. +# So that we can recreate a full libtool script including additional
  456. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  457. +# in macros and then make a single call at the end using the `libtool'
  458. +# label.
  459. -# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
  460. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  461. +# ----------------------------------------
  462. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  463. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  464. +[m4_ifval([$1],
  465. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  466. + [$1
  467. +])])])
  468. -# This program is free software; you can redistribute it and/or modify
  469. -# it under the terms of the GNU General Public License as published by
  470. -# the Free Software Foundation; either version 2, or (at your option)
  471. -# any later version.
  472. +# Initialize.
  473. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  474. -# This program is distributed in the hope that it will be useful,
  475. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  476. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  477. -# GNU General Public License for more details.
  478. -# You should have received a copy of the GNU General Public License
  479. -# along with this program; if not, write to the Free Software
  480. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  481. -# 02111-1307, USA.
  482. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  483. +# ------------------------------
  484. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  485. +m4_define([_LT_CONFIG_LIBTOOL],
  486. +[m4_ifval([$1],
  487. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  488. + [$1
  489. +])])])
  490. +
  491. +# Initialize.
  492. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  493. +
  494. +
  495. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  496. +# -----------------------------------------------------
  497. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  498. +[_LT_CONFIG_LIBTOOL([$1])
  499. +_LT_CONFIG_LIBTOOL_INIT([$2])
  500. +])
  501. -# serial 3
  502. -# AM_MISSING_PROG(NAME, PROGRAM)
  503. -# ------------------------------
  504. -AC_DEFUN([AM_MISSING_PROG],
  505. -[AC_REQUIRE([AM_MISSING_HAS_RUN])
  506. -$1=${$1-"${am_missing_run}$2"}
  507. -AC_SUBST($1)])
  508. +# _LT_FORMAT_COMMENT([COMMENT])
  509. +# -----------------------------
  510. +# Add leading comment marks to the start of each line, and a trailing
  511. +# full-stop to the whole comment if one is not present already.
  512. +m4_define([_LT_FORMAT_COMMENT],
  513. +[m4_ifval([$1], [
  514. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  515. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  516. +)])
  517. -# AM_MISSING_HAS_RUN
  518. -# ------------------
  519. -# Define MISSING if not defined so far and test if it supports --run.
  520. -# If it does, set am_missing_run to use it, otherwise, to nothing.
  521. -AC_DEFUN([AM_MISSING_HAS_RUN],
  522. -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  523. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  524. -# Use eval to expand $SHELL
  525. -if eval "$MISSING --run true"; then
  526. - am_missing_run="$MISSING --run "
  527. -else
  528. - am_missing_run=
  529. - AC_MSG_WARN([`missing' script is too old or missing])
  530. -fi
  531. +
  532. +
  533. +
  534. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  535. +# -------------------------------------------------------------------
  536. +# CONFIGNAME is the name given to the value in the libtool script.
  537. +# VARNAME is the (base) name used in the configure script.
  538. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  539. +# VARNAME. Any other value will be used directly.
  540. +m4_define([_LT_DECL],
  541. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  542. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  543. + [m4_ifval([$1], [$1], [$2])])
  544. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  545. + m4_ifval([$4],
  546. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  547. + lt_dict_add_subkey([lt_decl_dict], [$2],
  548. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  549. ])
  550. -# AM_AUX_DIR_EXPAND
  551. -# Copyright 2001 Free Software Foundation, Inc.
  552. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  553. +# --------------------------------------------------------
  554. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  555. +
  556. +
  557. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  558. +# ------------------------------------------------
  559. +m4_define([lt_decl_tag_varnames],
  560. +[_lt_decl_filter([tagged?], [yes], $@)])
  561. +
  562. +
  563. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  564. +# ---------------------------------------------------------
  565. +m4_define([_lt_decl_filter],
  566. +[m4_case([$#],
  567. + [0], [m4_fatal([$0: too few arguments: $#])],
  568. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  569. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  570. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  571. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  572. +])
  573. -# This program is free software; you can redistribute it and/or modify
  574. -# it under the terms of the GNU General Public License as published by
  575. -# the Free Software Foundation; either version 2, or (at your option)
  576. -# any later version.
  577. -# This program is distributed in the hope that it will be useful,
  578. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  579. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  580. -# GNU General Public License for more details.
  581. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  582. +# --------------------------------------------------
  583. +m4_define([lt_decl_quote_varnames],
  584. +[_lt_decl_filter([value], [1], $@)])
  585. +
  586. +
  587. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  588. +# ---------------------------------------------------
  589. +m4_define([lt_decl_dquote_varnames],
  590. +[_lt_decl_filter([value], [2], $@)])
  591. +
  592. +
  593. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  594. +# ---------------------------------------------------
  595. +m4_define([lt_decl_varnames_tagged],
  596. +[m4_assert([$# <= 2])dnl
  597. +_$0(m4_quote(m4_default([$1], [[, ]])),
  598. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  599. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  600. +m4_define([_lt_decl_varnames_tagged],
  601. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  602. +
  603. +
  604. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  605. +# ------------------------------------------------
  606. +m4_define([lt_decl_all_varnames],
  607. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  608. + m4_if([$2], [],
  609. + m4_quote(lt_decl_varnames),
  610. + m4_quote(m4_shift($@))))[]dnl
  611. +])
  612. +m4_define([_lt_decl_all_varnames],
  613. +[lt_join($@, lt_decl_varnames_tagged([$1],
  614. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  615. +])
  616. -# You should have received a copy of the GNU General Public License
  617. -# along with this program; if not, write to the Free Software
  618. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  619. -# 02111-1307, USA.
  620. -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  621. -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  622. -# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  623. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  624. +# ------------------------------------
  625. +# Quote a variable value, and forward it to `config.status' so that its
  626. +# declaration there will have the same value as in `configure'. VARNAME
  627. +# must have a single quote delimited value for this to work.
  628. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  629. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  630. +
  631. +
  632. +# _LT_CONFIG_STATUS_DECLARATIONS
  633. +# ------------------------------
  634. +# We delimit libtool config variables with single quotes, so when
  635. +# we write them to config.status, we have to be sure to quote all
  636. +# embedded single quotes properly. In configure, this macro expands
  637. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  638. #
  639. -# Of course, Automake must honor this variable whenever it calls a
  640. -# tool from the auxiliary directory. The problem is that $srcdir (and
  641. -# therefore $ac_aux_dir as well) can be either absolute or relative,
  642. -# depending on how configure is run. This is pretty annoying, since
  643. -# it makes $ac_aux_dir quite unusable in subdirectories: in the top
  644. -# source directory, any form will work fine, but in subdirectories a
  645. -# relative path needs to be adjusted first.
  646. -#
  647. -# $ac_aux_dir/missing
  648. -# fails when called from a subdirectory if $ac_aux_dir is relative
  649. -# $top_srcdir/$ac_aux_dir/missing
  650. -# fails if $ac_aux_dir is absolute,
  651. -# fails when called from a subdirectory in a VPATH build with
  652. -# a relative $ac_aux_dir
  653. -#
  654. -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  655. -# are both prefixed by $srcdir. In an in-source build this is usually
  656. -# harmless because $srcdir is `.', but things will broke when you
  657. -# start a VPATH build or use an absolute $srcdir.
  658. -#
  659. -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  660. -# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  661. -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  662. -# and then we would define $MISSING as
  663. -# MISSING="\${SHELL} $am_aux_dir/missing"
  664. -# This will work as long as MISSING is not called from configure, because
  665. -# unfortunately $(top_srcdir) has no meaning in configure.
  666. -# However there are other variables, like CC, which are often used in
  667. -# configure, and could therefore not use this "fixed" $ac_aux_dir.
  668. -#
  669. -# Another solution, used here, is to always expand $ac_aux_dir to an
  670. -# absolute PATH. The drawback is that using absolute paths prevent a
  671. -# configured tree to be moved without reconfiguration.
  672. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  673. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  674. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  675. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  676. -# Rely on autoconf to set up CDPATH properly.
  677. -AC_PREREQ([2.50])
  678. -AC_DEFUN([AM_AUX_DIR_EXPAND], [
  679. -# expand $ac_aux_dir to an absolute path
  680. -am_aux_dir=`cd $ac_aux_dir && pwd`
  681. +# _LT_LIBTOOL_TAGS
  682. +# ----------------
  683. +# Output comment and list of tags supported by the script
  684. +m4_defun([_LT_LIBTOOL_TAGS],
  685. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  686. +available_tags="_LT_TAGS"dnl
  687. ])
  688. -# AM_PROG_INSTALL_SH
  689. -# ------------------
  690. -# Define $install_sh.
  691. -
  692. -# Copyright 2001 Free Software Foundation, Inc.
  693. -# This program is free software; you can redistribute it and/or modify
  694. -# it under the terms of the GNU General Public License as published by
  695. -# the Free Software Foundation; either version 2, or (at your option)
  696. -# any later version.
  697. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  698. +# -----------------------------------
  699. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  700. +# expand to a commented shell variable setting:
  701. +#
  702. +# # Some comment about what VAR is for.
  703. +# visible_name=$lt_internal_name
  704. +m4_define([_LT_LIBTOOL_DECLARE],
  705. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  706. + [description])))[]dnl
  707. +m4_pushdef([_libtool_name],
  708. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  709. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  710. + [0], [_libtool_name=[$]$1],
  711. + [1], [_libtool_name=$lt_[]$1],
  712. + [2], [_libtool_name=$lt_[]$1],
  713. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  714. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  715. +])
  716. -# This program is distributed in the hope that it will be useful,
  717. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  718. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  719. -# GNU General Public License for more details.
  720. -# You should have received a copy of the GNU General Public License
  721. -# along with this program; if not, write to the Free Software
  722. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  723. -# 02111-1307, USA.
  724. +# _LT_LIBTOOL_CONFIG_VARS
  725. +# -----------------------
  726. +# Produce commented declarations of non-tagged libtool config variables
  727. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  728. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  729. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  730. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  731. +[m4_foreach([_lt_var],
  732. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  733. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  734. +
  735. +
  736. +# _LT_LIBTOOL_TAG_VARS(TAG)
  737. +# -------------------------
  738. +m4_define([_LT_LIBTOOL_TAG_VARS],
  739. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  740. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  741. -AC_DEFUN([AM_PROG_INSTALL_SH],
  742. -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  743. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  744. -AC_SUBST(install_sh)])
  745. -# AM_PROG_INSTALL_STRIP
  746. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  747. +# ------------------------------
  748. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  749. -# Copyright 2001 Free Software Foundation, Inc.
  750. -# This program is free software; you can redistribute it and/or modify
  751. -# it under the terms of the GNU General Public License as published by
  752. -# the Free Software Foundation; either version 2, or (at your option)
  753. -# any later version.
  754. +# _LT_CONFIG_COMMANDS
  755. +# -------------------
  756. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  757. +# variables for single and double quote escaping we saved from calls
  758. +# to _LT_DECL, we can put quote escaped variables declarations
  759. +# into `config.status', and then the shell code to quote escape them in
  760. +# for loops in `config.status'. Finally, any additional code accumulated
  761. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  762. +m4_defun([_LT_CONFIG_COMMANDS],
  763. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  764. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  765. + dnl instead of duplicating it all over again into config.status,
  766. + dnl then we will have config.status run $CONFIG_LT later, so it
  767. + dnl needs to know what name is stored there:
  768. + [AC_CONFIG_COMMANDS([libtool],
  769. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  770. + dnl If the libtool generation code is destined for config.status,
  771. + dnl expand the accumulated commands and init code now:
  772. + [AC_CONFIG_COMMANDS([libtool],
  773. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  774. +])#_LT_CONFIG_COMMANDS
  775. -# This program is distributed in the hope that it will be useful,
  776. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  777. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  778. -# GNU General Public License for more details.
  779. -# You should have received a copy of the GNU General Public License
  780. -# along with this program; if not, write to the Free Software
  781. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  782. -# 02111-1307, USA.
  783. +# Initialize.
  784. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  785. +[
  786. -# One issue with vendor `install' (even GNU) is that you can't
  787. -# specify the program used to strip binaries. This is especially
  788. -# annoying in cross-compiling environments, where the build's strip
  789. -# is unlikely to handle the host's binaries.
  790. -# Fortunately install-sh will honor a STRIPPROG variable, so we
  791. -# always use install-sh in `make install-strip', and initialize
  792. -# STRIPPROG with the value of the STRIP variable (set by the user).
  793. -AC_DEFUN([AM_PROG_INSTALL_STRIP],
  794. -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  795. -# Installed binaries are usually stripped using `strip' when the user
  796. -# run `make install-strip'. However `strip' might not be the right
  797. -# tool to use in cross-compilation environments, therefore Automake
  798. -# will honor the `STRIP' environment variable to overrule this program.
  799. -dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  800. -if test "$cross_compiling" != no; then
  801. - AC_CHECK_TOOL([STRIP], [strip], :)
  802. -fi
  803. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  804. -AC_SUBST([INSTALL_STRIP_PROGRAM])])
  805. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  806. +# if CDPATH is set.
  807. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  808. -# serial 4 -*- Autoconf -*-
  809. +sed_quote_subst='$sed_quote_subst'
  810. +double_quote_subst='$double_quote_subst'
  811. +delay_variable_subst='$delay_variable_subst'
  812. +_LT_CONFIG_STATUS_DECLARATIONS
  813. +LTCC='$LTCC'
  814. +LTCFLAGS='$LTCFLAGS'
  815. +compiler='$compiler_DEFAULT'
  816. +
  817. +# Quote evaled strings.
  818. +for var in lt_decl_all_varnames([[ \
  819. +]], lt_decl_quote_varnames); do
  820. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  821. + *[[\\\\\\\`\\"\\\$]]*)
  822. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  823. + ;;
  824. + *)
  825. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  826. + ;;
  827. + esac
  828. +done
  829. -# Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
  830. +# Double-quote double-evaled strings.
  831. +for var in lt_decl_all_varnames([[ \
  832. +]], lt_decl_dquote_varnames); do
  833. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  834. + *[[\\\\\\\`\\"\\\$]]*)
  835. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  836. + ;;
  837. + *)
  838. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  839. + ;;
  840. + esac
  841. +done
  842. -# This program is free software; you can redistribute it and/or modify
  843. -# it under the terms of the GNU General Public License as published by
  844. -# the Free Software Foundation; either version 2, or (at your option)
  845. -# any later version.
  846. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  847. +case \$lt_ECHO in
  848. +*'\\\[$]0 --fallback-echo"')dnl "
  849. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  850. + ;;
  851. +esac
  852. -# This program is distributed in the hope that it will be useful,
  853. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  854. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  855. -# GNU General Public License for more details.
  856. +_LT_OUTPUT_LIBTOOL_INIT
  857. +])
  858. -# You should have received a copy of the GNU General Public License
  859. -# along with this program; if not, write to the Free Software
  860. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  861. -# 02111-1307, USA.
  862. +# LT_OUTPUT
  863. +# ---------
  864. +# This macro allows early generation of the libtool script (before
  865. +# AC_OUTPUT is called), incase it is used in configure for compilation
  866. +# tests.
  867. +AC_DEFUN([LT_OUTPUT],
  868. +[: ${CONFIG_LT=./config.lt}
  869. +AC_MSG_NOTICE([creating $CONFIG_LT])
  870. +cat >"$CONFIG_LT" <<_LTEOF
  871. +#! $SHELL
  872. +# Generated by $as_me.
  873. +# Run this file to recreate a libtool stub with the current configuration.
  874. +
  875. +lt_cl_silent=false
  876. +SHELL=\${CONFIG_SHELL-$SHELL}
  877. +_LTEOF
  878. +
  879. +cat >>"$CONFIG_LT" <<\_LTEOF
  880. +AS_SHELL_SANITIZE
  881. +_AS_PREPARE
  882. -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  883. -# written in clear, in which case automake, when reading aclocal.m4,
  884. -# will think it sees a *use*, and therefore will trigger all it's
  885. -# C support machinery. Also note that it means that autoscan, seeing
  886. -# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  887. +exec AS_MESSAGE_FD>&1
  888. +exec AS_MESSAGE_LOG_FD>>config.log
  889. +{
  890. + echo
  891. + AS_BOX([Running $as_me.])
  892. +} >&AS_MESSAGE_LOG_FD
  893. +
  894. +lt_cl_help="\
  895. +\`$as_me' creates a local libtool stub from the current configuration,
  896. +for use in further configure time tests before the real libtool is
  897. +generated.
  898. +
  899. +Usage: $[0] [[OPTIONS]]
  900. +
  901. + -h, --help print this help, then exit
  902. + -V, --version print version number, then exit
  903. + -q, --quiet do not print progress messages
  904. + -d, --debug don't remove temporary files
  905. +
  906. +Report bugs to <bug-libtool@gnu.org>."
  907. +
  908. +lt_cl_version="\
  909. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  910. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  911. +configured by $[0], generated by m4_PACKAGE_STRING.
  912. +
  913. +Copyright (C) 2008 Free Software Foundation, Inc.
  914. +This config.lt script is free software; the Free Software Foundation
  915. +gives unlimited permision to copy, distribute and modify it."
  916. +while test $[#] != 0
  917. +do
  918. + case $[1] in
  919. + --version | --v* | -V )
  920. + echo "$lt_cl_version"; exit 0 ;;
  921. + --help | --h* | -h )
  922. + echo "$lt_cl_help"; exit 0 ;;
  923. + --debug | --d* | -d )
  924. + debug=: ;;
  925. + --quiet | --q* | --silent | --s* | -q )
  926. + lt_cl_silent=: ;;
  927. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  928. +Try \`$[0] --help' for more information.]) ;;
  929. -# _AM_DEPENDENCIES(NAME)
  930. -# ----------------------
  931. -# See how the compiler implements dependency checking.
  932. -# NAME is "CC", "CXX", "GCJ", or "OBJC".
  933. -# We try a few techniques and use that to set a single cache variable.
  934. -#
  935. -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  936. -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  937. -# dependency, and given that the user is not expected to run this macro,
  938. -# just rely on AC_PROG_CC.
  939. -AC_DEFUN([_AM_DEPENDENCIES],
  940. -[AC_REQUIRE([AM_SET_DEPDIR])dnl
  941. -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  942. -AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  943. -AC_REQUIRE([AM_DEP_TRACK])dnl
  944. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  945. +Try \`$[0] --help' for more information.]) ;;
  946. + esac
  947. + shift
  948. +done
  949. -ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  950. - [$1], CXX, [depcc="$CXX" am_compiler_list=],
  951. - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  952. - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  953. - [depcc="$$1" am_compiler_list=])
  954. +if $lt_cl_silent; then
  955. + exec AS_MESSAGE_FD>/dev/null
  956. +fi
  957. +_LTEOF
  958. -AC_CACHE_CHECK([dependency style of $depcc],
  959. - [am_cv_$1_dependencies_compiler_type],
  960. -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  961. - # We make a subdir and do the tests there. Otherwise we can end up
  962. - # making bogus files that we don't know about and never remove. For
  963. - # instance it was reported that on HP-UX the gcc test will end up
  964. - # making a dummy file named `D' -- because `-MD' means `put the output
  965. - # in D'.
  966. - mkdir conftest.dir
  967. - # Copy depcomp to subdir because otherwise we won't find it if we're
  968. - # using a relative directory.
  969. - cp "$am_depcomp" conftest.dir
  970. - cd conftest.dir
  971. +cat >>"$CONFIG_LT" <<_LTEOF
  972. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  973. +_LTEOF
  974. +
  975. +cat >>"$CONFIG_LT" <<\_LTEOF
  976. +AC_MSG_NOTICE([creating $ofile])
  977. +_LT_OUTPUT_LIBTOOL_COMMANDS
  978. +AS_EXIT(0)
  979. +_LTEOF
  980. +chmod +x "$CONFIG_LT"
  981. +
  982. +# configure is writing to config.log, but config.lt does its own redirection,
  983. +# appending to config.log, which fails on DOS, as config.log is still kept
  984. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  985. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  986. +if test "$no_create" != yes; then
  987. + lt_cl_success=:
  988. + test "$silent" = yes &&
  989. + lt_config_lt_args="$lt_config_lt_args --quiet"
  990. + exec AS_MESSAGE_LOG_FD>/dev/null
  991. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  992. + exec AS_MESSAGE_LOG_FD>>config.log
  993. + $lt_cl_success || AS_EXIT(1)
  994. +fi
  995. +])# LT_OUTPUT
  996. - am_cv_$1_dependencies_compiler_type=none
  997. - if test "$am_compiler_list" = ""; then
  998. - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  999. - fi
  1000. - for depmode in $am_compiler_list; do
  1001. - # We need to recreate these files for each test, as the compiler may
  1002. - # overwrite some of them when testing with obscure command lines.
  1003. - # This happens at least with the AIX C compiler.
  1004. - echo '#include "conftest.h"' > conftest.c
  1005. - echo 'int i;' > conftest.h
  1006. - echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
  1007. - case $depmode in
  1008. - nosideeffect)
  1009. - # after this tag, mechanisms are not by side-effect, so they'll
  1010. - # only be used when explicitly requested
  1011. - if test "x$enable_dependency_tracking" = xyes; then
  1012. - continue
  1013. - else
  1014. - break
  1015. - fi
  1016. - ;;
  1017. - none) break ;;
  1018. - esac
  1019. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  1020. - # mode. It turns out that the SunPro C++ compiler does not properly
  1021. - # handle `-M -o', and we need to detect this.
  1022. - if depmode=$depmode \
  1023. - source=conftest.c object=conftest.o \
  1024. - depfile=conftest.Po tmpdepfile=conftest.TPo \
  1025. - $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
  1026. - grep conftest.h conftest.Po > /dev/null 2>&1 &&
  1027. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  1028. - am_cv_$1_dependencies_compiler_type=$depmode
  1029. - break
  1030. +# _LT_CONFIG(TAG)
  1031. +# ---------------
  1032. +# If TAG is the built-in tag, create an initial libtool script with a
  1033. +# default configuration from the untagged config vars. Otherwise add code
  1034. +# to config.status for appending the configuration named by TAG from the
  1035. +# matching tagged config vars.
  1036. +m4_defun([_LT_CONFIG],
  1037. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1038. +_LT_CONFIG_SAVE_COMMANDS([
  1039. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  1040. + m4_if(_LT_TAG, [C], [
  1041. + # See if we are running on zsh, and set the options which allow our
  1042. + # commands through without removal of \ escapes.
  1043. + if test -n "${ZSH_VERSION+set}" ; then
  1044. + setopt NO_GLOB_SUBST
  1045. fi
  1046. - done
  1047. - cd ..
  1048. - rm -rf conftest.dir
  1049. -else
  1050. - am_cv_$1_dependencies_compiler_type=none
  1051. -fi
  1052. -])
  1053. -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  1054. -])
  1055. + cfgfile="${ofile}T"
  1056. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  1057. + $RM "$cfgfile"
  1058. + cat <<_LT_EOF >> "$cfgfile"
  1059. +#! $SHELL
  1060. -# AM_SET_DEPDIR
  1061. -# -------------
  1062. -# Choose a directory name for dependency files.
  1063. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES
  1064. -AC_DEFUN([AM_SET_DEPDIR],
  1065. -[rm -f .deps 2>/dev/null
  1066. -mkdir .deps 2>/dev/null
  1067. -if test -d .deps; then
  1068. - DEPDIR=.deps
  1069. -else
  1070. - # MS-DOS does not allow filenames that begin with a dot.
  1071. - DEPDIR=_deps
  1072. -fi
  1073. -rmdir .deps 2>/dev/null
  1074. -AC_SUBST([DEPDIR])
  1075. -])
  1076. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  1077. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  1078. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1079. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  1080. +#
  1081. +_LT_COPYING
  1082. +_LT_LIBTOOL_TAGS
  1083. +# ### BEGIN LIBTOOL CONFIG
  1084. +_LT_LIBTOOL_CONFIG_VARS
  1085. +_LT_LIBTOOL_TAG_VARS
  1086. +# ### END LIBTOOL CONFIG
  1087. -# AM_DEP_TRACK
  1088. -# ------------
  1089. -AC_DEFUN([AM_DEP_TRACK],
  1090. -[AC_ARG_ENABLE(dependency-tracking,
  1091. -[ --disable-dependency-tracking Speeds up one-time builds
  1092. - --enable-dependency-tracking Do not reject slow dependency extractors])
  1093. -if test "x$enable_dependency_tracking" != xno; then
  1094. - am_depcomp="$ac_aux_dir/depcomp"
  1095. - AMDEPBACKSLASH='\'
  1096. +_LT_EOF
  1097. +
  1098. + case $host_os in
  1099. + aix3*)
  1100. + cat <<\_LT_EOF >> "$cfgfile"
  1101. +# AIX sometimes has problems with the GCC collect2 program. For some
  1102. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  1103. +# vanish in a puff of smoke.
  1104. +if test "X${COLLECT_NAMES+set}" != Xset; then
  1105. + COLLECT_NAMES=
  1106. + export COLLECT_NAMES
  1107. fi
  1108. -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  1109. -AC_SUBST([AMDEPBACKSLASH])
  1110. -])
  1111. +_LT_EOF
  1112. + ;;
  1113. + esac
  1114. -# Generate code to set up dependency tracking. -*- Autoconf -*-
  1115. + _LT_PROG_LTMAIN
  1116. -# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
  1117. + # We use sed instead of cat because bash on DJGPP gets confused if
  1118. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  1119. + # text mode, it properly converts lines to CR/LF. This bash problem
  1120. + # is reportedly fixed, but why not run on old versions too?
  1121. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  1122. + || (rm -f "$cfgfile"; exit 1)
  1123. -# This program is free software; you can redistribute it and/or modify
  1124. -# it under the terms of the GNU General Public License as published by
  1125. -# the Free Software Foundation; either version 2, or (at your option)
  1126. -# any later version.
  1127. + _LT_PROG_XSI_SHELLFNS
  1128. -# This program is distributed in the hope that it will be useful,
  1129. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  1130. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  1131. -# GNU General Public License for more details.
  1132. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  1133. + || (rm -f "$cfgfile"; exit 1)
  1134. -# You should have received a copy of the GNU General Public License
  1135. -# along with this program; if not, write to the Free Software
  1136. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  1137. -# 02111-1307, USA.
  1138. + mv -f "$cfgfile" "$ofile" ||
  1139. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  1140. + chmod +x "$ofile"
  1141. +],
  1142. +[cat <<_LT_EOF >> "$ofile"
  1143. -#serial 2
  1144. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  1145. +dnl in a comment (ie after a #).
  1146. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  1147. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  1148. +# ### END LIBTOOL TAG CONFIG: $1
  1149. +_LT_EOF
  1150. +])dnl /m4_if
  1151. +],
  1152. +[m4_if([$1], [], [
  1153. + PACKAGE='$PACKAGE'
  1154. + VERSION='$VERSION'
  1155. + TIMESTAMP='$TIMESTAMP'
  1156. + RM='$RM'
  1157. + ofile='$ofile'], [])
  1158. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  1159. +])# _LT_CONFIG
  1160. +
  1161. +
  1162. +# LT_SUPPORTED_TAG(TAG)
  1163. +# ---------------------
  1164. +# Trace this macro to discover what tags are supported by the libtool
  1165. +# --tag option, using:
  1166. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  1167. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  1168. +
  1169. +
  1170. +# C support is built-in for now
  1171. +m4_define([_LT_LANG_C_enabled], [])
  1172. +m4_define([_LT_TAGS], [])
  1173. -# _AM_OUTPUT_DEPENDENCY_COMMANDS
  1174. -# ------------------------------
  1175. -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  1176. -[for mf in $CONFIG_FILES; do
  1177. - # Strip MF so we end up with the name of the file.
  1178. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  1179. - # Check whether this is an Automake generated Makefile or not.
  1180. - # We used to match only the files named `Makefile.in', but
  1181. - # some people rename them; so instead we look at the file content.
  1182. - # Grep'ing the first line is not enough: some people post-process
  1183. - # each Makefile.in and add a new line on top of each file to say so.
  1184. - # So let's grep whole file.
  1185. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  1186. - dirpart=`AS_DIRNAME("$mf")`
  1187. - else
  1188. - continue
  1189. - fi
  1190. - grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
  1191. - # Extract the definition of DEP_FILES from the Makefile without
  1192. - # running `make'.
  1193. - DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
  1194. - test -z "$DEPDIR" && continue
  1195. - # When using ansi2knr, U may be empty or an underscore; expand it
  1196. - U=`sed -n -e '/^U = / s///p' < "$mf"`
  1197. - test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  1198. - # We invoke sed twice because it is the simplest approach to
  1199. - # changing $(DEPDIR) to its actual value in the expansion.
  1200. - for file in `sed -n -e '
  1201. - /^DEP_FILES = .*\\\\$/ {
  1202. - s/^DEP_FILES = //
  1203. - :loop
  1204. - s/\\\\$//
  1205. - p
  1206. - n
  1207. - /\\\\$/ b loop
  1208. - p
  1209. - }
  1210. - /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  1211. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  1212. - # Make sure the directory exists.
  1213. - test -f "$dirpart/$file" && continue
  1214. - fdir=`AS_DIRNAME(["$file"])`
  1215. - AS_MKDIR_P([$dirpart/$fdir])
  1216. - # echo "creating $dirpart/$file"
  1217. - echo '# dummy' > "$dirpart/$file"
  1218. - done
  1219. -done
  1220. -])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  1221. +# LT_LANG(LANG)
  1222. +# -------------
  1223. +# Enable libtool support for the given language if not already enabled.
  1224. +AC_DEFUN([LT_LANG],
  1225. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  1226. +m4_case([$1],
  1227. + [C], [_LT_LANG(C)],
  1228. + [C++], [_LT_LANG(CXX)],
  1229. + [Java], [_LT_LANG(GCJ)],
  1230. + [Fortran 77], [_LT_LANG(F77)],
  1231. + [Fortran], [_LT_LANG(FC)],
  1232. + [Windows Resource], [_LT_LANG(RC)],
  1233. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  1234. + [_LT_LANG($1)],
  1235. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  1236. +])# LT_LANG
  1237. -# AM_OUTPUT_DEPENDENCY_COMMANDS
  1238. -# -----------------------------
  1239. -# This macro should only be invoked once -- use via AC_REQUIRE.
  1240. -#
  1241. -# This code is only required when automatic dependency tracking
  1242. -# is enabled. FIXME. This creates each `.P' file that we will
  1243. -# need in order to bootstrap the dependency handling code.
  1244. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  1245. -[AC_CONFIG_COMMANDS([depfiles],
  1246. - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  1247. - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  1248. -])
  1249. -# Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*-
  1250. +# _LT_LANG(LANGNAME)
  1251. +# ------------------
  1252. +m4_defun([_LT_LANG],
  1253. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  1254. + [LT_SUPPORTED_TAG([$1])dnl
  1255. + m4_append([_LT_TAGS], [$1 ])dnl
  1256. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  1257. + _LT_LANG_$1_CONFIG($1)])dnl
  1258. +])# _LT_LANG
  1259. -# This program is free software; you can redistribute it and/or modify
  1260. -# it under the terms of the GNU General Public License as published by
  1261. -# the Free Software Foundation; either version 2, or (at your option)
  1262. -# any later version.
  1263. -# This program is distributed in the hope that it will be useful,
  1264. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  1265. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  1266. -# GNU General Public License for more details.
  1267. +# _LT_LANG_DEFAULT_CONFIG
  1268. +# -----------------------
  1269. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  1270. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  1271. + [LT_LANG(CXX)],
  1272. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  1273. +
  1274. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  1275. + [LT_LANG(F77)],
  1276. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  1277. +
  1278. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  1279. + [LT_LANG(FC)],
  1280. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  1281. +
  1282. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  1283. +dnl pulling things in needlessly.
  1284. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  1285. + [LT_LANG(GCJ)],
  1286. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  1287. + [LT_LANG(GCJ)],
  1288. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  1289. + [LT_LANG(GCJ)],
  1290. + [m4_ifdef([AC_PROG_GCJ],
  1291. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  1292. + m4_ifdef([A][M_PROG_GCJ],
  1293. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  1294. + m4_ifdef([LT_PROG_GCJ],
  1295. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  1296. +
  1297. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  1298. + [LT_LANG(RC)],
  1299. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  1300. +])# _LT_LANG_DEFAULT_CONFIG
  1301. +
  1302. +# Obsolete macros:
  1303. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  1304. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  1305. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  1306. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  1307. +dnl aclocal-1.4 backwards compatibility:
  1308. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  1309. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  1310. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  1311. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  1312. -# You should have received a copy of the GNU General Public License
  1313. -# along with this program; if not, write to the Free Software
  1314. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  1315. -# 02111-1307, USA.
  1316. -# serial 2
  1317. +# _LT_TAG_COMPILER
  1318. +# ----------------
  1319. +m4_defun([_LT_TAG_COMPILER],
  1320. +[AC_REQUIRE([AC_PROG_CC])dnl
  1321. -# AM_MAKE_INCLUDE()
  1322. -# -----------------
  1323. -# Check to see how make treats includes.
  1324. -AC_DEFUN([AM_MAKE_INCLUDE],
  1325. -[am_make=${MAKE-make}
  1326. -cat > confinc << 'END'
  1327. -doit:
  1328. - @echo done
  1329. -END
  1330. -# If we don't find an include directive, just comment out the code.
  1331. -AC_MSG_CHECKING([for style of include used by $am_make])
  1332. -am__include="#"
  1333. -am__quote=
  1334. -_am_result=none
  1335. -# First try GNU make style include.
  1336. -echo "include confinc" > confmf
  1337. -# We grep out `Entering directory' and `Leaving directory'
  1338. -# messages which can occur if `w' ends up in MAKEFLAGS.
  1339. -# In particular we don't look at `^make:' because GNU make might
  1340. -# be invoked under some other name (usually "gmake"), in which
  1341. -# case it prints its new name instead of `make'.
  1342. -if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
  1343. - am__include=include
  1344. - am__quote=
  1345. - _am_result=GNU
  1346. -fi
  1347. -# Now try BSD make style include.
  1348. -if test "$am__include" = "#"; then
  1349. - echo '.include "confinc"' > confmf
  1350. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  1351. - am__include=.include
  1352. - am__quote="\""
  1353. - _am_result=BSD
  1354. - fi
  1355. -fi
  1356. -AC_SUBST(am__include)
  1357. -AC_SUBST(am__quote)
  1358. -AC_MSG_RESULT($_am_result)
  1359. -rm -f confinc confmf
  1360. -])
  1361. -
  1362. -# AM_CONDITIONAL -*- Autoconf -*-
  1363. -
  1364. -# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
  1365. -
  1366. -# This program is free software; you can redistribute it and/or modify
  1367. -# it under the terms of the GNU General Public License as published by
  1368. -# the Free Software Foundation; either version 2, or (at your option)
  1369. -# any later version.
  1370. -
  1371. -# This program is distributed in the hope that it will be useful,
  1372. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  1373. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  1374. -# GNU General Public License for more details.
  1375. -
  1376. -# You should have received a copy of the GNU General Public License
  1377. -# along with this program; if not, write to the Free Software
  1378. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  1379. -# 02111-1307, USA.
  1380. -
  1381. -# serial 5
  1382. -
  1383. -AC_PREREQ(2.52)
  1384. -
  1385. -# AM_CONDITIONAL(NAME, SHELL-CONDITION)
  1386. -# -------------------------------------
  1387. -# Define a conditional.
  1388. -AC_DEFUN([AM_CONDITIONAL],
  1389. -[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  1390. - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  1391. -AC_SUBST([$1_TRUE])
  1392. -AC_SUBST([$1_FALSE])
  1393. -if $2; then
  1394. - $1_TRUE=
  1395. - $1_FALSE='#'
  1396. -else
  1397. - $1_TRUE='#'
  1398. - $1_FALSE=
  1399. -fi
  1400. -AC_CONFIG_COMMANDS_PRE(
  1401. -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  1402. - AC_MSG_ERROR([conditional \"$1\" was never defined.
  1403. -Usually this means the macro was only invoked conditionally.])
  1404. -fi])])
  1405. -
  1406. -# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
  1407. -
  1408. -# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
  1409. -
  1410. -# This program is free software; you can redistribute it and/or modify
  1411. -# it under the terms of the GNU General Public License as published by
  1412. -# the Free Software Foundation; either version 2, or (at your option)
  1413. -# any later version.
  1414. -
  1415. -# This program is distributed in the hope that it will be useful,
  1416. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  1417. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  1418. -# GNU General Public License for more details.
  1419. -
  1420. -# You should have received a copy of the GNU General Public License
  1421. -# along with this program; if not, write to the Free Software
  1422. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  1423. -# 02111-1307, USA.
  1424. -
  1425. -AC_PREREQ([2.52])
  1426. -
  1427. -# serial 6
  1428. -
  1429. -# When config.status generates a header, we must update the stamp-h file.
  1430. -# This file resides in the same directory as the config header
  1431. -# that is generated. We must strip everything past the first ":",
  1432. -# and everything past the last "/".
  1433. -
  1434. -# _AM_DIRNAME(PATH)
  1435. -# -----------------
  1436. -# Like AS_DIRNAME, only do it during macro expansion
  1437. -AC_DEFUN([_AM_DIRNAME],
  1438. - [m4_if(regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,
  1439. - m4_if(regexp([$1], [^//\([^/]\|$\)]), -1,
  1440. - m4_if(regexp([$1], [^/.*]), -1,
  1441. - [.],
  1442. - patsubst([$1], [^\(/\).*], [\1])),
  1443. - patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),
  1444. - patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl
  1445. -])# _AM_DIRNAME
  1446. -
  1447. -
  1448. -# The stamp files are numbered to have different names.
  1449. -# We could number them on a directory basis, but that's additional
  1450. -# complications, let's have a unique counter.
  1451. -m4_define([_AM_STAMP_Count], [0])
  1452. -
  1453. -
  1454. -# _AM_STAMP(HEADER)
  1455. -# -----------------
  1456. -# The name of the stamp file for HEADER.
  1457. -AC_DEFUN([_AM_STAMP],
  1458. -[m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnl
  1459. -AS_ESCAPE(_AM_DIRNAME(patsubst([$1],
  1460. - [:.*])))/stamp-h[]_AM_STAMP_Count])
  1461. -
  1462. -
  1463. -# _AM_CONFIG_HEADER(HEADER[:SOURCES], COMMANDS, INIT-COMMANDS)
  1464. -# ------------------------------------------------------------
  1465. -# We used to try to get a real timestamp in stamp-h. But the fear is that
  1466. -# that will cause unnecessary cvs conflicts.
  1467. -AC_DEFUN([_AM_CONFIG_HEADER],
  1468. -[# Add the stamp file to the list of files AC keeps track of,
  1469. -# along with our hook.
  1470. -AC_CONFIG_HEADERS([$1],
  1471. - [# update the timestamp
  1472. -echo 'timestamp for $1' >"_AM_STAMP([$1])"
  1473. -$2],
  1474. - [$3])
  1475. -])# _AM_CONFIG_HEADER
  1476. -
  1477. -
  1478. -# AM_CONFIG_HEADER(HEADER[:SOURCES]..., COMMANDS, INIT-COMMANDS)
  1479. -# --------------------------------------------------------------
  1480. -AC_DEFUN([AM_CONFIG_HEADER],
  1481. -[AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])])
  1482. -])# AM_CONFIG_HEADER
  1483. -
  1484. -# Add --enable-maintainer-mode option to configure.
  1485. -# From Jim Meyering
  1486. -
  1487. -# Copyright 1996, 1998, 2000, 2001 Free Software Foundation, Inc.
  1488. -
  1489. -# This program is free software; you can redistribute it and/or modify
  1490. -# it under the terms of the GNU General Public License as published by
  1491. -# the Free Software Foundation; either version 2, or (at your option)
  1492. -# any later version.
  1493. -
  1494. -# This program is distributed in the hope that it will be useful,
  1495. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  1496. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  1497. -# GNU General Public License for more details.
  1498. -
  1499. -# You should have received a copy of the GNU General Public License
  1500. -# along with this program; if not, write to the Free Software
  1501. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  1502. -# 02111-1307, USA.
  1503. -
  1504. -# serial 1
  1505. -
  1506. -AC_DEFUN([AM_MAINTAINER_MODE],
  1507. -[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  1508. - dnl maintainer-mode is disabled by default
  1509. - AC_ARG_ENABLE(maintainer-mode,
  1510. -[ --enable-maintainer-mode enable make rules and dependencies not useful
  1511. - (and sometimes confusing) to the casual installer],
  1512. - USE_MAINTAINER_MODE=$enableval,
  1513. - USE_MAINTAINER_MODE=no)
  1514. - AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  1515. - AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
  1516. - MAINT=$MAINTAINER_MODE_TRUE
  1517. - AC_SUBST(MAINT)dnl
  1518. -]
  1519. -)
  1520. -
  1521. -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  1522. -
  1523. -# serial 47 AC_PROG_LIBTOOL
  1524. -
  1525. -
  1526. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  1527. -# -----------------------------------------------------------
  1528. -# If this macro is not defined by Autoconf, define it here.
  1529. -m4_ifdef([AC_PROVIDE_IFELSE],
  1530. - [],
  1531. - [m4_define([AC_PROVIDE_IFELSE],
  1532. - [m4_ifdef([AC_PROVIDE_$1],
  1533. - [$2], [$3])])])
  1534. -
  1535. -
  1536. -# AC_PROG_LIBTOOL
  1537. -# ---------------
  1538. -AC_DEFUN([AC_PROG_LIBTOOL],
  1539. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  1540. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  1541. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  1542. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  1543. - [AC_LIBTOOL_CXX],
  1544. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  1545. - ])])
  1546. -dnl And a similar setup for Fortran 77 support
  1547. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  1548. - [AC_LIBTOOL_F77],
  1549. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  1550. -])])
  1551. -
  1552. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  1553. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  1554. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  1555. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  1556. - [AC_LIBTOOL_GCJ],
  1557. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  1558. - [AC_LIBTOOL_GCJ],
  1559. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  1560. - [AC_LIBTOOL_GCJ],
  1561. - [ifdef([AC_PROG_GCJ],
  1562. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  1563. - ifdef([A][M_PROG_GCJ],
  1564. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  1565. - ifdef([LT_AC_PROG_GCJ],
  1566. - [define([LT_AC_PROG_GCJ],
  1567. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  1568. -])])# AC_PROG_LIBTOOL
  1569. -
  1570. -
  1571. -# _AC_PROG_LIBTOOL
  1572. -# ----------------
  1573. -AC_DEFUN([_AC_PROG_LIBTOOL],
  1574. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  1575. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  1576. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  1577. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  1578. -
  1579. -# This can be used to rebuild libtool when needed
  1580. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  1581. -
  1582. -# Always use our own libtool.
  1583. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  1584. -AC_SUBST(LIBTOOL)dnl
  1585. -
  1586. -# Prevent multiple expansion
  1587. -define([AC_PROG_LIBTOOL], [])
  1588. -])# _AC_PROG_LIBTOOL
  1589. -
  1590. -
  1591. -# AC_LIBTOOL_SETUP
  1592. -# ----------------
  1593. -AC_DEFUN([AC_LIBTOOL_SETUP],
  1594. -[AC_PREREQ(2.50)dnl
  1595. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  1596. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  1597. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  1598. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1599. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  1600. -AC_REQUIRE([AC_PROG_CC])dnl
  1601. -AC_REQUIRE([AC_PROG_LD])dnl
  1602. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  1603. -AC_REQUIRE([AC_PROG_NM])dnl
  1604. -
  1605. -AC_REQUIRE([AC_PROG_LN_S])dnl
  1606. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  1607. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  1608. -AC_REQUIRE([AC_OBJEXT])dnl
  1609. -AC_REQUIRE([AC_EXEEXT])dnl
  1610. -dnl
  1611. -
  1612. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  1613. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  1614. -AC_LIBTOOL_OBJDIR
  1615. -
  1616. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1617. -_LT_AC_PROG_ECHO_BACKSLASH
  1618. -
  1619. -case $host_os in
  1620. -aix3*)
  1621. - # AIX sometimes has problems with the GCC collect2 program. For some
  1622. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  1623. - # vanish in a puff of smoke.
  1624. - if test "X${COLLECT_NAMES+set}" != Xset; then
  1625. - COLLECT_NAMES=
  1626. - export COLLECT_NAMES
  1627. - fi
  1628. - ;;
  1629. -esac
  1630. -
  1631. -# Sed substitution that helps us do robust quoting. It backslashifies
  1632. -# metacharacters that are still active within double-quoted strings.
  1633. -Xsed='sed -e s/^X//'
  1634. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  1635. -
  1636. -# Same as above, but do not quote variable references.
  1637. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  1638. -
  1639. -# Sed substitution to delay expansion of an escaped shell variable in a
  1640. -# double_quote_subst'ed string.
  1641. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  1642. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  1643. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  1644. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  1645. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  1646. -# Sed substitution to undo escaping of the cmd sep variable
  1647. -unescape_variable_subst='s/\\\(${_S_}\)/\1/g'
  1648. -
  1649. -# Sed substitution to avoid accidental globbing in evaled expressions
  1650. -no_glob_subst='s/\*/\\\*/g'
  1651. -
  1652. -# Constants:
  1653. -rm="rm -f"
  1654. -
  1655. -# Global variables:
  1656. -default_ofile=libtool
  1657. -can_build_shared=yes
  1658. +# If no C compiler was specified, use CC.
  1659. +LTCC=${LTCC-"$CC"}
  1660. -# All known linkers require a `.a' archive for static linking (except M$VC,
  1661. -# which needs '.lib').
  1662. -libext=a
  1663. -ltmain="$ac_aux_dir/ltmain.sh"
  1664. -ofile="$default_ofile"
  1665. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  1666. +# If no C compiler flags were specified, use CFLAGS.
  1667. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  1668. -AC_CHECK_TOOL(AR, ar, false)
  1669. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  1670. -AC_CHECK_TOOL(STRIP, strip, :)
  1671. +# Allow CC to be a program name with arguments.
  1672. +compiler=$CC
  1673. +])# _LT_TAG_COMPILER
  1674. -old_CC="$CC"
  1675. -old_CFLAGS="$CFLAGS"
  1676. -# Set sane defaults for various variables
  1677. -test -z "$AR" && AR=ar
  1678. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  1679. -test -z "$AS" && AS=as
  1680. -test -z "$CC" && CC=cc
  1681. -test -z "$LTCC" && LTCC=$CC
  1682. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  1683. -test -z "$LD" && LD=ld
  1684. -test -z "$LN_S" && LN_S="ln -s"
  1685. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  1686. -test -z "$NM" && NM=nm
  1687. -test -z "$SED" && SED=sed
  1688. -test -z "$OBJDUMP" && OBJDUMP=objdump
  1689. -test -z "$RANLIB" && RANLIB=:
  1690. -test -z "$STRIP" && STRIP=:
  1691. -test -z "$ac_objext" && ac_objext=o
  1692. +# _LT_COMPILER_BOILERPLATE
  1693. +# ------------------------
  1694. +# Check for compiler boilerplate output or warnings with
  1695. +# the simple compiler test code.
  1696. +m4_defun([_LT_COMPILER_BOILERPLATE],
  1697. +[m4_require([_LT_DECL_SED])dnl
  1698. +ac_outfile=conftest.$ac_objext
  1699. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  1700. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1701. +_lt_compiler_boilerplate=`cat conftest.err`
  1702. +$RM conftest*
  1703. +])# _LT_COMPILER_BOILERPLATE
  1704. -# Determine commands to create old-style static archives.
  1705. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  1706. -old_postinstall_cmds='chmod 644 $oldlib'
  1707. -old_postuninstall_cmds=
  1708. -if test -n "$RANLIB"; then
  1709. +# _LT_LINKER_BOILERPLATE
  1710. +# ----------------------
  1711. +# Check for linker boilerplate output or warnings with
  1712. +# the simple link test code.
  1713. +m4_defun([_LT_LINKER_BOILERPLATE],
  1714. +[m4_require([_LT_DECL_SED])dnl
  1715. +ac_outfile=conftest.$ac_objext
  1716. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1717. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1718. +_lt_linker_boilerplate=`cat conftest.err`
  1719. +$RM -r conftest*
  1720. +])# _LT_LINKER_BOILERPLATE
  1721. +
  1722. +# _LT_REQUIRED_DARWIN_CHECKS
  1723. +# -------------------------
  1724. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1725. case $host_os in
  1726. - openbsd*)
  1727. - old_postinstall_cmds="\$RANLIB -t \$oldlib\${_S_}$old_postinstall_cmds"
  1728. + rhapsody* | darwin*)
  1729. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1730. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1731. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  1732. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  1733. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1734. + _LT_DECL([], [DSYMUTIL], [1],
  1735. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1736. + _LT_DECL([], [NMEDIT], [1],
  1737. + [Tool to change global to local symbols on Mac OS X])
  1738. + _LT_DECL([], [LIPO], [1],
  1739. + [Tool to manipulate fat objects and archives on Mac OS X])
  1740. + _LT_DECL([], [OTOOL], [1],
  1741. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1742. + _LT_DECL([], [OTOOL64], [1],
  1743. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1744. +
  1745. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1746. + [lt_cv_apple_cc_single_mod=no
  1747. + if test -z "${LT_MULTI_MODULE}"; then
  1748. + # By default we will add the -single_module flag. You can override
  1749. + # by either setting the environment variable LT_MULTI_MODULE
  1750. + # non-empty at configure time, or by adding -multi_module to the
  1751. + # link flags.
  1752. + rm -rf libconftest.dylib*
  1753. + echo "int foo(void){return 1;}" > conftest.c
  1754. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1755. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1756. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1757. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1758. + _lt_result=$?
  1759. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1760. + lt_cv_apple_cc_single_mod=yes
  1761. + else
  1762. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1763. + fi
  1764. + rm -rf libconftest.dylib*
  1765. + rm -f conftest.*
  1766. + fi])
  1767. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1768. + [lt_cv_ld_exported_symbols_list],
  1769. + [lt_cv_ld_exported_symbols_list=no
  1770. + save_LDFLAGS=$LDFLAGS
  1771. + echo "_main" > conftest.sym
  1772. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1773. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1774. + [lt_cv_ld_exported_symbols_list=yes],
  1775. + [lt_cv_ld_exported_symbols_list=no])
  1776. + LDFLAGS="$save_LDFLAGS"
  1777. + ])
  1778. + case $host_os in
  1779. + rhapsody* | darwin1.[[012]])
  1780. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1781. + darwin1.*)
  1782. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1783. + darwin*) # darwin 5.x on
  1784. + # if running on 10.5 or later, the deployment target defaults
  1785. + # to the OS version, if on x86, and 10.4, the deployment
  1786. + # target defaults to 10.4. Don't you love it?
  1787. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1788. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1789. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1790. + 10.[[012]]*)
  1791. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1792. + 10.*)
  1793. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1794. + esac
  1795. ;;
  1796. - *)
  1797. - old_postinstall_cmds="\$RANLIB \$oldlib\${_S_}$old_postinstall_cmds"
  1798. + esac
  1799. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  1800. + _lt_dar_single_mod='$single_module'
  1801. + fi
  1802. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1803. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1804. + else
  1805. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1806. + fi
  1807. + if test "$DSYMUTIL" != ":"; then
  1808. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  1809. + else
  1810. + _lt_dsymutil=
  1811. + fi
  1812. ;;
  1813. esac
  1814. - old_archive_cmds="$old_archive_cmds\${_S_}\$RANLIB \$oldlib"
  1815. -fi
  1816. -
  1817. -# Only perform the check for file, if the check method requires it
  1818. -case $deplibs_check_method in
  1819. -file_magic*)
  1820. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  1821. - AC_PATH_MAGIC
  1822. - fi
  1823. - ;;
  1824. -esac
  1825. -
  1826. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  1827. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  1828. -enable_win32_dll=yes, enable_win32_dll=no)
  1829. -
  1830. -AC_ARG_ENABLE([libtool-lock],
  1831. - [AC_HELP_STRING([--disable-libtool-lock],
  1832. - [avoid locking (might break parallel builds)])])
  1833. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1834. -
  1835. -AC_ARG_WITH([pic],
  1836. - [AC_HELP_STRING([--with-pic],
  1837. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  1838. - [pic_mode="$withval"],
  1839. - [pic_mode=default])
  1840. -test -z "$pic_mode" && pic_mode=default
  1841. -
  1842. -# Use C for the default configuration in the libtool script
  1843. -tagname=
  1844. -AC_LIBTOOL_LANG_C_CONFIG
  1845. -_LT_AC_TAGCONFIG
  1846. -])# AC_LIBTOOL_SETUP
  1847. -
  1848. -
  1849. -# _LT_AC_SYS_COMPILER
  1850. -# -------------------
  1851. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  1852. -[AC_REQUIRE([AC_PROG_CC])dnl
  1853. -
  1854. -# If no C compiler was specified, use CC.
  1855. -LTCC=${LTCC-"$CC"}
  1856. +])
  1857. -# Allow CC to be a program name with arguments.
  1858. -compiler=$CC
  1859. -])# _LT_AC_SYS_COMPILER
  1860. +# _LT_DARWIN_LINKER_FEATURES
  1861. +# --------------------------
  1862. +# Checks for linker and compiler features on darwin
  1863. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1864. +[
  1865. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1866. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1867. + _LT_TAGVAR(hardcode_direct, $1)=no
  1868. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1869. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1870. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1871. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1872. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1873. + case $cc_basename in
  1874. + ifort*) _lt_dar_can_shared=yes ;;
  1875. + *) _lt_dar_can_shared=$GCC ;;
  1876. + esac
  1877. + if test "$_lt_dar_can_shared" = "yes"; then
  1878. + output_verbose_link_cmd=echo
  1879. + _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}"
  1880. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1881. + _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}"
  1882. + _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}"
  1883. + m4_if([$1], [CXX],
  1884. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1885. + _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}"
  1886. + _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}"
  1887. + fi
  1888. +],[])
  1889. + else
  1890. + _LT_TAGVAR(ld_shlibs, $1)=no
  1891. + fi
  1892. +])
  1893. -# _LT_AC_SYS_LIBPATH_AIX
  1894. -# ----------------------
  1895. +# _LT_SYS_MODULE_PATH_AIX
  1896. +# -----------------------
  1897. # Links a minimal program and checks the executable
  1898. # for the system default hardcoded library path. In most cases,
  1899. # this is /usr/lib:/lib, but when the MPI compilers are used
  1900. # the location of the communication and MPI libs are included too.
  1901. # If we don't find anything, use the default library path according
  1902. # to the aix ld manual.
  1903. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  1904. -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1905. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  1906. -}'`
  1907. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1908. +[m4_require([_LT_DECL_SED])dnl
  1909. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1910. +lt_aix_libpath_sed='
  1911. + /Import File Strings/,/^$/ {
  1912. + /^0/ {
  1913. + s/^0 *\(.*\)$/\1/
  1914. + p
  1915. + }
  1916. + }'
  1917. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1918. # Check for a 64-bit object if we didn't find anything.
  1919. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  1920. -}'`; fi],[])
  1921. +if test -z "$aix_libpath"; then
  1922. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1923. +fi],[])
  1924. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1925. -])# _LT_AC_SYS_LIBPATH_AIX
  1926. +])# _LT_SYS_MODULE_PATH_AIX
  1927. -# _LT_AC_SHELL_INIT(ARG)
  1928. -# ----------------------
  1929. -AC_DEFUN([_LT_AC_SHELL_INIT],
  1930. +# _LT_SHELL_INIT(ARG)
  1931. +# -------------------
  1932. +m4_define([_LT_SHELL_INIT],
  1933. [ifdef([AC_DIVERSION_NOTICE],
  1934. [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1935. [AC_DIVERT_PUSH(NOTICE)])
  1936. $1
  1937. AC_DIVERT_POP
  1938. -])# _LT_AC_SHELL_INIT
  1939. +])# _LT_SHELL_INIT
  1940. -# _LT_AC_PROG_ECHO_BACKSLASH
  1941. -# --------------------------
  1942. +# _LT_PROG_ECHO_BACKSLASH
  1943. +# -----------------------
  1944. # Add some code to the start of the generated configure script which
  1945. # will find an echo command which doesn't interpret backslashes.
  1946. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  1947. -[_LT_AC_SHELL_INIT([
  1948. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1949. +[_LT_SHELL_INIT([
  1950. # Check that we are running under the correct shell.
  1951. SHELL=${CONFIG_SHELL-/bin/sh}
  1952. -case X$ECHO in
  1953. +case X$lt_ECHO in
  1954. X*--fallback-echo)
  1955. # Remove one level of quotation (which was required for Make).
  1956. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1957. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1958. ;;
  1959. esac
  1960. -echo=${ECHO-echo}
  1961. +ECHO=${lt_ECHO-echo}
  1962. if test "X[$]1" = X--no-reexec; then
  1963. # Discard the --no-reexec flag, and continue.
  1964. shift
  1965. elif test "X[$]1" = X--fallback-echo; then
  1966. # Avoid inline document here, it may be left over
  1967. :
  1968. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  1969. - # Yippee, $echo works!
  1970. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1971. + # Yippee, $ECHO works!
  1972. :
  1973. else
  1974. # Restart under the correct shell.
  1975. @@ -1163,134 +1098,137 @@
  1976. if test "X[$]1" = X--fallback-echo; then
  1977. # used as fallback echo
  1978. shift
  1979. - cat <<EOF
  1980. + cat <<_LT_EOF
  1981. [$]*
  1982. -EOF
  1983. +_LT_EOF
  1984. exit 0
  1985. fi
  1986. # The HP-UX ksh and POSIX shell print the target directory to stdout
  1987. # if CDPATH is set.
  1988. -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  1989. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1990. -if test -z "$ECHO"; then
  1991. -if test "X${echo_test_string+set}" != Xset; then
  1992. -# find a string as large as possible, as long as the shell can cope with it
  1993. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1994. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1995. - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  1996. - echo_test_string="`eval $cmd`" &&
  1997. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  1998. - then
  1999. - break
  2000. - fi
  2001. - done
  2002. -fi
  2003. +if test -z "$lt_ECHO"; then
  2004. + if test "X${echo_test_string+set}" != Xset; then
  2005. + # find a string as large as possible, as long as the shell can cope with it
  2006. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  2007. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  2008. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  2009. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  2010. + then
  2011. + break
  2012. + fi
  2013. + done
  2014. + fi
  2015. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  2016. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  2017. - test "X$echo_testing_string" = "X$echo_test_string"; then
  2018. - :
  2019. -else
  2020. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  2021. - # backslashes. This makes it impossible to quote backslashes using
  2022. - # echo "$something" | sed 's/\\/\\\\/g'
  2023. - #
  2024. - # So, first we look for a working echo in the user's PATH.
  2025. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  2026. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  2027. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2028. + :
  2029. + else
  2030. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  2031. + # backslashes. This makes it impossible to quote backslashes using
  2032. + # echo "$something" | sed 's/\\/\\\\/g'
  2033. + #
  2034. + # So, first we look for a working echo in the user's PATH.
  2035. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2036. - for dir in $PATH /usr/ucb; do
  2037. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2038. + for dir in $PATH /usr/ucb; do
  2039. + IFS="$lt_save_ifs"
  2040. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  2041. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  2042. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  2043. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2044. + ECHO="$dir/echo"
  2045. + break
  2046. + fi
  2047. + done
  2048. IFS="$lt_save_ifs"
  2049. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  2050. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  2051. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  2052. - test "X$echo_testing_string" = "X$echo_test_string"; then
  2053. - echo="$dir/echo"
  2054. - break
  2055. - fi
  2056. - done
  2057. - IFS="$lt_save_ifs"
  2058. - if test "X$echo" = Xecho; then
  2059. - # We didn't find a better echo, so look for alternatives.
  2060. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  2061. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  2062. - test "X$echo_testing_string" = "X$echo_test_string"; then
  2063. - # This shell has a builtin print -r that does the trick.
  2064. - echo='print -r'
  2065. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  2066. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  2067. - # If we have ksh, try running configure again with it.
  2068. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  2069. - export ORIGINAL_CONFIG_SHELL
  2070. - CONFIG_SHELL=/bin/ksh
  2071. - export CONFIG_SHELL
  2072. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  2073. - else
  2074. - # Try using printf.
  2075. - echo='printf %s\n'
  2076. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  2077. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  2078. - test "X$echo_testing_string" = "X$echo_test_string"; then
  2079. - # Cool, printf works
  2080. - :
  2081. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  2082. - test "X$echo_testing_string" = 'X\t' &&
  2083. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  2084. - test "X$echo_testing_string" = "X$echo_test_string"; then
  2085. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  2086. - export CONFIG_SHELL
  2087. - SHELL="$CONFIG_SHELL"
  2088. - export SHELL
  2089. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  2090. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  2091. - test "X$echo_testing_string" = 'X\t' &&
  2092. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  2093. - test "X$echo_testing_string" = "X$echo_test_string"; then
  2094. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  2095. + if test "X$ECHO" = Xecho; then
  2096. + # We didn't find a better echo, so look for alternatives.
  2097. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  2098. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  2099. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2100. + # This shell has a builtin print -r that does the trick.
  2101. + ECHO='print -r'
  2102. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  2103. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  2104. + # If we have ksh, try running configure again with it.
  2105. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  2106. + export ORIGINAL_CONFIG_SHELL
  2107. + CONFIG_SHELL=/bin/ksh
  2108. + export CONFIG_SHELL
  2109. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  2110. else
  2111. - # maybe with a smaller string...
  2112. - prev=:
  2113. + # Try using printf.
  2114. + ECHO='printf %s\n'
  2115. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  2116. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  2117. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2118. + # Cool, printf works
  2119. + :
  2120. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  2121. + test "X$echo_testing_string" = 'X\t' &&
  2122. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  2123. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2124. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  2125. + export CONFIG_SHELL
  2126. + SHELL="$CONFIG_SHELL"
  2127. + export SHELL
  2128. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  2129. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  2130. + test "X$echo_testing_string" = 'X\t' &&
  2131. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  2132. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2133. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  2134. + else
  2135. + # maybe with a smaller string...
  2136. + prev=:
  2137. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  2138. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  2139. - then
  2140. - break
  2141. - fi
  2142. - prev="$cmd"
  2143. - done
  2144. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  2145. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  2146. + then
  2147. + break
  2148. + fi
  2149. + prev="$cmd"
  2150. + done
  2151. - if test "$prev" != 'sed 50q "[$]0"'; then
  2152. - echo_test_string=`eval $prev`
  2153. - export echo_test_string
  2154. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  2155. - else
  2156. - # Oops. We lost completely, so just stick with echo.
  2157. - echo=echo
  2158. - fi
  2159. + if test "$prev" != 'sed 50q "[$]0"'; then
  2160. + echo_test_string=`eval $prev`
  2161. + export echo_test_string
  2162. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  2163. + else
  2164. + # Oops. We lost completely, so just stick with echo.
  2165. + ECHO=echo
  2166. + fi
  2167. + fi
  2168. fi
  2169. fi
  2170. fi
  2171. fi
  2172. -fi
  2173. # Copy echo and quote the copy suitably for passing to libtool from
  2174. # the Makefile, instead of quoting the original, which is used later.
  2175. -ECHO=$echo
  2176. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  2177. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  2178. +lt_ECHO=$ECHO
  2179. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  2180. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  2181. fi
  2182. -AC_SUBST(ECHO)
  2183. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  2184. +AC_SUBST(lt_ECHO)
  2185. +])
  2186. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  2187. +_LT_DECL([], [ECHO], [1],
  2188. + [An echo program that does not interpret backslashes])
  2189. +])# _LT_PROG_ECHO_BACKSLASH
  2190. -# _LT_AC_LOCK
  2191. -# -----------
  2192. -AC_DEFUN([_LT_AC_LOCK],
  2193. +# _LT_ENABLE_LOCK
  2194. +# ---------------
  2195. +m4_defun([_LT_ENABLE_LOCK],
  2196. [AC_ARG_ENABLE([libtool-lock],
  2197. - [AC_HELP_STRING([--disable-libtool-lock],
  2198. - [avoid locking (might break parallel builds)])])
  2199. + [AS_HELP_STRING([--disable-libtool-lock],
  2200. + [avoid locking (might break parallel builds)])])
  2201. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  2202. # Some flags need to be propagated to the compiler or linker for good
  2203. @@ -1301,12 +1239,12 @@
  2204. echo 'int i;' > conftest.$ac_ext
  2205. if AC_TRY_EVAL(ac_compile); then
  2206. case `/usr/bin/file conftest.$ac_objext` in
  2207. - *ELF-32*)
  2208. - HPUX_IA64_MODE="32"
  2209. - ;;
  2210. - *ELF-64*)
  2211. - HPUX_IA64_MODE="64"
  2212. - ;;
  2213. + *ELF-32*)
  2214. + HPUX_IA64_MODE="32"
  2215. + ;;
  2216. + *ELF-64*)
  2217. + HPUX_IA64_MODE="64"
  2218. + ;;
  2219. esac
  2220. fi
  2221. rm -rf conftest*
  2222. @@ -1315,72 +1253,79 @@
  2223. # Find out which ABI we are using.
  2224. echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  2225. if AC_TRY_EVAL(ac_compile); then
  2226. - if test "$lt_cv_prog_gnu_ld" = yes; then
  2227. - case `/usr/bin/file conftest.$ac_objext` in
  2228. - *32-bit*)
  2229. - LD="${LD-ld} -melf32bsmip"
  2230. - ;;
  2231. - *N32*)
  2232. - LD="${LD-ld} -melf32bmipn32"
  2233. - ;;
  2234. - *64-bit*)
  2235. - LD="${LD-ld} -melf64bmip"
  2236. - ;;
  2237. - esac
  2238. - else
  2239. - case `/usr/bin/file conftest.$ac_objext` in
  2240. - *32-bit*)
  2241. - LD="${LD-ld} -32"
  2242. - ;;
  2243. - *N32*)
  2244. - LD="${LD-ld} -n32"
  2245. - ;;
  2246. - *64-bit*)
  2247. - LD="${LD-ld} -64"
  2248. - ;;
  2249. - esac
  2250. - fi
  2251. + if test "$lt_cv_prog_gnu_ld" = yes; then
  2252. + case `/usr/bin/file conftest.$ac_objext` in
  2253. + *32-bit*)
  2254. + LD="${LD-ld} -melf32bsmip"
  2255. + ;;
  2256. + *N32*)
  2257. + LD="${LD-ld} -melf32bmipn32"
  2258. + ;;
  2259. + *64-bit*)
  2260. + LD="${LD-ld} -melf64bmip"
  2261. + ;;
  2262. + esac
  2263. + else
  2264. + case `/usr/bin/file conftest.$ac_objext` in
  2265. + *32-bit*)
  2266. + LD="${LD-ld} -32"
  2267. + ;;
  2268. + *N32*)
  2269. + LD="${LD-ld} -n32"
  2270. + ;;
  2271. + *64-bit*)
  2272. + LD="${LD-ld} -64"
  2273. + ;;
  2274. + esac
  2275. + fi
  2276. fi
  2277. rm -rf conftest*
  2278. ;;
  2279. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  2280. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  2281. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  2282. # Find out which ABI we are using.
  2283. echo 'int i;' > conftest.$ac_ext
  2284. if AC_TRY_EVAL(ac_compile); then
  2285. - case "`/usr/bin/file conftest.o`" in
  2286. - *32-bit*)
  2287. - case $host in
  2288. - x86_64-*linux*)
  2289. - LD="${LD-ld} -m elf_i386"
  2290. - ;;
  2291. - ppc64-*linux*)
  2292. - LD="${LD-ld} -m elf32ppclinux"
  2293. - ;;
  2294. - s390x-*linux*)
  2295. - LD="${LD-ld} -m elf_s390"
  2296. - ;;
  2297. - sparc64-*linux*)
  2298. - LD="${LD-ld} -m elf32_sparc"
  2299. - ;;
  2300. - esac
  2301. - ;;
  2302. - *64-bit*)
  2303. - case $host in
  2304. - x86_64-*linux*)
  2305. - LD="${LD-ld} -m elf_x86_64"
  2306. - ;;
  2307. - ppc*-*linux*|powerpc*-*linux*)
  2308. - LD="${LD-ld} -m elf64ppc"
  2309. - ;;
  2310. - s390*-*linux*)
  2311. - LD="${LD-ld} -m elf64_s390"
  2312. - ;;
  2313. - sparc*-*linux*)
  2314. - LD="${LD-ld} -m elf64_sparc"
  2315. - ;;
  2316. - esac
  2317. - ;;
  2318. + case `/usr/bin/file conftest.o` in
  2319. + *32-bit*)
  2320. + case $host in
  2321. + x86_64-*kfreebsd*-gnu)
  2322. + LD="${LD-ld} -m elf_i386_fbsd"
  2323. + ;;
  2324. + x86_64-*linux*)
  2325. + LD="${LD-ld} -m elf_i386"
  2326. + ;;
  2327. + ppc64-*linux*|powerpc64-*linux*)
  2328. + LD="${LD-ld} -m elf32ppclinux"
  2329. + ;;
  2330. + s390x-*linux*)
  2331. + LD="${LD-ld} -m elf_s390"
  2332. + ;;
  2333. + sparc64-*linux*)
  2334. + LD="${LD-ld} -m elf32_sparc"
  2335. + ;;
  2336. + esac
  2337. + ;;
  2338. + *64-bit*)
  2339. + case $host in
  2340. + x86_64-*kfreebsd*-gnu)
  2341. + LD="${LD-ld} -m elf_x86_64_fbsd"
  2342. + ;;
  2343. + x86_64-*linux*)
  2344. + LD="${LD-ld} -m elf_x86_64"
  2345. + ;;
  2346. + ppc*-*linux*|powerpc*-*linux*)
  2347. + LD="${LD-ld} -m elf64ppc"
  2348. + ;;
  2349. + s390*-*linux*|s390*-*tpf*)
  2350. + LD="${LD-ld} -m elf64_s390"
  2351. + ;;
  2352. + sparc*-*linux*)
  2353. + LD="${LD-ld} -m elf64_sparc"
  2354. + ;;
  2355. + esac
  2356. + ;;
  2357. esac
  2358. fi
  2359. rm -rf conftest*
  2360. @@ -1392,36 +1337,90 @@
  2361. CFLAGS="$CFLAGS -belf"
  2362. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  2363. [AC_LANG_PUSH(C)
  2364. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  2365. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  2366. AC_LANG_POP])
  2367. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2368. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2369. CFLAGS="$SAVE_CFLAGS"
  2370. fi
  2371. ;;
  2372. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  2373. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  2374. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  2375. - AC_CHECK_TOOL(AS, as, false)
  2376. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  2377. +sparc*-*solaris*)
  2378. + # Find out which ABI we are using.
  2379. + echo 'int i;' > conftest.$ac_ext
  2380. + if AC_TRY_EVAL(ac_compile); then
  2381. + case `/usr/bin/file conftest.o` in
  2382. + *64-bit*)
  2383. + case $lt_cv_prog_gnu_ld in
  2384. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  2385. + *)
  2386. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  2387. + LD="${LD-ld} -64"
  2388. + fi
  2389. + ;;
  2390. + esac
  2391. + ;;
  2392. + esac
  2393. + fi
  2394. + rm -rf conftest*
  2395. ;;
  2396. - ])
  2397. esac
  2398. need_locks="$enable_libtool_lock"
  2399. +])# _LT_ENABLE_LOCK
  2400. +
  2401. +
  2402. +# _LT_CMD_OLD_ARCHIVE
  2403. +# -------------------
  2404. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  2405. +[AC_CHECK_TOOL(AR, ar, false)
  2406. +test -z "$AR" && AR=ar
  2407. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  2408. +_LT_DECL([], [AR], [1], [The archiver])
  2409. +_LT_DECL([], [AR_FLAGS], [1])
  2410. +
  2411. +AC_CHECK_TOOL(STRIP, strip, :)
  2412. +test -z "$STRIP" && STRIP=:
  2413. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  2414. +
  2415. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  2416. +test -z "$RANLIB" && RANLIB=:
  2417. +_LT_DECL([], [RANLIB], [1],
  2418. + [Commands used to install an old-style archive])
  2419. +
  2420. +# Determine commands to create old-style static archives.
  2421. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  2422. +old_postinstall_cmds='chmod 644 $oldlib'
  2423. +old_postuninstall_cmds=
  2424. -])# _LT_AC_LOCK
  2425. +if test -n "$RANLIB"; then
  2426. + case $host_os in
  2427. + openbsd*)
  2428. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  2429. + ;;
  2430. + *)
  2431. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  2432. + ;;
  2433. + esac
  2434. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  2435. +fi
  2436. +_LT_DECL([], [old_postinstall_cmds], [2])
  2437. +_LT_DECL([], [old_postuninstall_cmds], [2])
  2438. +_LT_TAGDECL([], [old_archive_cmds], [2],
  2439. + [Commands used to build an old-style archive])
  2440. +])# _LT_CMD_OLD_ARCHIVE
  2441. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2442. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2443. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2444. # ----------------------------------------------------------------
  2445. # Check whether the given compiler option works
  2446. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  2447. -[AC_CACHE_CHECK([$1], [$2],
  2448. +AC_DEFUN([_LT_COMPILER_OPTION],
  2449. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2450. +m4_require([_LT_DECL_SED])dnl
  2451. +AC_CACHE_CHECK([$1], [$2],
  2452. [$2=no
  2453. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  2454. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  2455. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  2456. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  2457. lt_compiler_flag="$3"
  2458. # Insert the option either (1) after the last *FLAGS variable, or
  2459. # (2) before a word containing "conftest.", or (3) at the end.
  2460. @@ -1429,7 +1428,7 @@
  2461. # with a dollar sign (not a hyphen), so the echo should work correctly.
  2462. # The option is referenced via a variable to avoid confusing sed.
  2463. lt_compile=`echo "$ac_compile" | $SED \
  2464. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  2465. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  2466. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  2467. -e 's:$: $lt_compiler_flag:'`
  2468. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  2469. @@ -1439,62 +1438,82 @@
  2470. echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  2471. if (exit $ac_status) && test -s "$ac_outfile"; then
  2472. # The compiler can only warn and ignore the option if not recognized
  2473. - # So say no if there are warnings
  2474. - if test ! -s conftest.err; then
  2475. + # So say no if there are warnings other than the usual output.
  2476. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  2477. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2478. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  2479. $2=yes
  2480. fi
  2481. fi
  2482. - $rm conftest*
  2483. + $RM conftest*
  2484. ])
  2485. if test x"[$]$2" = xyes; then
  2486. - ifelse([$5], , :, [$5])
  2487. + m4_if([$5], , :, [$5])
  2488. else
  2489. - ifelse([$6], , :, [$6])
  2490. + m4_if([$6], , :, [$6])
  2491. fi
  2492. -])# AC_LIBTOOL_COMPILER_OPTION
  2493. +])# _LT_COMPILER_OPTION
  2494. -
  2495. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2496. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  2497. -# ------------------------------------------------------------
  2498. -# Check whether the given compiler option works
  2499. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  2500. -[AC_CACHE_CHECK([$1], [$2],
  2501. +# Old name:
  2502. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  2503. +dnl aclocal-1.4 backwards compatibility:
  2504. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  2505. +
  2506. +
  2507. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2508. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  2509. +# ----------------------------------------------------
  2510. +# Check whether the given linker option works
  2511. +AC_DEFUN([_LT_LINKER_OPTION],
  2512. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2513. +m4_require([_LT_DECL_SED])dnl
  2514. +AC_CACHE_CHECK([$1], [$2],
  2515. [$2=no
  2516. save_LDFLAGS="$LDFLAGS"
  2517. LDFLAGS="$LDFLAGS $3"
  2518. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  2519. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  2520. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  2521. - # The compiler can only warn and ignore the option if not recognized
  2522. + # The linker can only warn and ignore the option if not recognized
  2523. # So say no if there are warnings
  2524. if test -s conftest.err; then
  2525. # Append any errors to the config.log.
  2526. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  2527. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  2528. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2529. + if diff conftest.exp conftest.er2 >/dev/null; then
  2530. + $2=yes
  2531. + fi
  2532. else
  2533. $2=yes
  2534. fi
  2535. fi
  2536. - $rm conftest*
  2537. + $RM -r conftest*
  2538. LDFLAGS="$save_LDFLAGS"
  2539. ])
  2540. if test x"[$]$2" = xyes; then
  2541. - ifelse([$4], , :, [$4])
  2542. + m4_if([$4], , :, [$4])
  2543. else
  2544. - ifelse([$5], , :, [$5])
  2545. + m4_if([$5], , :, [$5])
  2546. fi
  2547. -])# AC_LIBTOOL_LINKER_OPTION
  2548. +])# _LT_LINKER_OPTION
  2549. +# Old name:
  2550. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  2551. +dnl aclocal-1.4 backwards compatibility:
  2552. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  2553. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  2554. -# --------------------------
  2555. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  2556. -[# find the maximum length of command line arguments
  2557. +
  2558. +# LT_CMD_MAX_LEN
  2559. +#---------------
  2560. +AC_DEFUN([LT_CMD_MAX_LEN],
  2561. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2562. +# find the maximum length of command line arguments
  2563. AC_MSG_CHECKING([the maximum length of command line arguments])
  2564. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  2565. i=0
  2566. - testring="ABCD"
  2567. + teststring="ABCD"
  2568. case $build_os in
  2569. msdosdjgpp*)
  2570. @@ -1512,7 +1531,7 @@
  2571. lt_cv_sys_max_cmd_len=-1;
  2572. ;;
  2573. - cygwin* | mingw*)
  2574. + cygwin* | mingw* | cegcc*)
  2575. # On Win9x/ME, this test blows up -- it succeeds, but takes
  2576. # about 5 minutes as the teststring grows exponentially.
  2577. # Worse, since 9x/ME are not pre-emptively multitasking,
  2578. @@ -1523,24 +1542,85 @@
  2579. lt_cv_sys_max_cmd_len=8192;
  2580. ;;
  2581. - *)
  2582. - # If test is not a shell built-in, we'll probably end up computing a
  2583. - # maximum length that is only half of the actual maximum length, but
  2584. - # we can't tell.
  2585. - while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
  2586. - = "XX$testring") >/dev/null 2>&1 &&
  2587. - new_result=`expr "X$testring" : ".*" 2>&1` &&
  2588. - lt_cv_sys_max_cmd_len=$new_result &&
  2589. - test $i != 17 # 1/2 MB should be enough
  2590. - do
  2591. - i=`expr $i + 1`
  2592. - testring=$testring$testring
  2593. - done
  2594. - testring=
  2595. - # Add a significant safety factor because C++ compilers can tack on massive
  2596. - # amounts of additional arguments before passing them to the linker.
  2597. - # It appears as though 1/2 is a usable value.
  2598. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  2599. + amigaos*)
  2600. + # On AmigaOS with pdksh, this test takes hours, literally.
  2601. + # So we just punt and use a minimum line length of 8192.
  2602. + lt_cv_sys_max_cmd_len=8192;
  2603. + ;;
  2604. +
  2605. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  2606. + # This has been around since 386BSD, at least. Likely further.
  2607. + if test -x /sbin/sysctl; then
  2608. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  2609. + elif test -x /usr/sbin/sysctl; then
  2610. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  2611. + else
  2612. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  2613. + fi
  2614. + # And add a safety zone
  2615. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2616. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2617. + ;;
  2618. +
  2619. + interix*)
  2620. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  2621. + lt_cv_sys_max_cmd_len=196608
  2622. + ;;
  2623. +
  2624. + osf*)
  2625. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  2626. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  2627. + # nice to cause kernel panics so lets avoid the loop below.
  2628. + # First set a reasonable default.
  2629. + lt_cv_sys_max_cmd_len=16384
  2630. + #
  2631. + if test -x /sbin/sysconfig; then
  2632. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  2633. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  2634. + esac
  2635. + fi
  2636. + ;;
  2637. + sco3.2v5*)
  2638. + lt_cv_sys_max_cmd_len=102400
  2639. + ;;
  2640. + sysv5* | sco5v6* | sysv4.2uw2*)
  2641. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  2642. + if test -n "$kargmax"; then
  2643. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  2644. + else
  2645. + lt_cv_sys_max_cmd_len=32768
  2646. + fi
  2647. + ;;
  2648. + *)
  2649. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  2650. + if test -n "$lt_cv_sys_max_cmd_len"; then
  2651. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2652. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2653. + else
  2654. + # Make teststring a little bigger before we do anything with it.
  2655. + # a 1K string should be a reasonable start.
  2656. + for i in 1 2 3 4 5 6 7 8 ; do
  2657. + teststring=$teststring$teststring
  2658. + done
  2659. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  2660. + # If test is not a shell built-in, we'll probably end up computing a
  2661. + # maximum length that is only half of the actual maximum length, but
  2662. + # we can't tell.
  2663. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  2664. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  2665. + test $i != 17 # 1/2 MB should be enough
  2666. + do
  2667. + i=`expr $i + 1`
  2668. + teststring=$teststring$teststring
  2669. + done
  2670. + # Only check the string length outside the loop.
  2671. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  2672. + teststring=
  2673. + # Add a significant safety factor because C++ compilers can tack on
  2674. + # massive amounts of additional arguments before passing them to the
  2675. + # linker. It appears as though 1/2 is a usable value.
  2676. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  2677. + fi
  2678. ;;
  2679. esac
  2680. ])
  2681. @@ -1549,27 +1629,35 @@
  2682. else
  2683. AC_MSG_RESULT(none)
  2684. fi
  2685. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  2686. +max_cmd_len=$lt_cv_sys_max_cmd_len
  2687. +_LT_DECL([], [max_cmd_len], [0],
  2688. + [What is the maximum length of a command?])
  2689. +])# LT_CMD_MAX_LEN
  2690. +# Old name:
  2691. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  2692. +dnl aclocal-1.4 backwards compatibility:
  2693. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  2694. -# _LT_AC_CHECK_DLFCN
  2695. -# --------------------
  2696. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  2697. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  2698. -])# _LT_AC_CHECK_DLFCN
  2699. +
  2700. +# _LT_HEADER_DLFCN
  2701. +# ----------------
  2702. +m4_defun([_LT_HEADER_DLFCN],
  2703. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  2704. +])# _LT_HEADER_DLFCN
  2705. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2706. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2707. -# ------------------------------------------------------------------
  2708. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  2709. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  2710. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2711. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2712. +# ----------------------------------------------------------------
  2713. +m4_defun([_LT_TRY_DLOPEN_SELF],
  2714. +[m4_require([_LT_HEADER_DLFCN])dnl
  2715. if test "$cross_compiling" = yes; then :
  2716. [$4]
  2717. else
  2718. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  2719. lt_status=$lt_dlunknown
  2720. - cat > conftest.$ac_ext <<EOF
  2721. + cat > conftest.$ac_ext <<_LT_EOF
  2722. [#line __oline__ "configure"
  2723. #include "confdefs.h"
  2724. @@ -1611,10 +1699,6 @@
  2725. # endif
  2726. #endif
  2727. -#ifdef __cplusplus
  2728. -extern "C" void exit (int);
  2729. -#endif
  2730. -
  2731. void fnord() { int i=42;}
  2732. int main ()
  2733. {
  2734. @@ -1627,17 +1711,19 @@
  2735. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  2736. /* dlclose (self); */
  2737. }
  2738. + else
  2739. + puts (dlerror ());
  2740. - exit (status);
  2741. + return status;
  2742. }]
  2743. -EOF
  2744. +_LT_EOF
  2745. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  2746. - (./conftest; exit; ) 2>/dev/null
  2747. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  2748. lt_status=$?
  2749. case x$lt_status in
  2750. x$lt_dlno_uscore) $1 ;;
  2751. x$lt_dlneed_uscore) $2 ;;
  2752. - x$lt_unknown|x*) $3 ;;
  2753. + x$lt_dlunknown|x*) $3 ;;
  2754. esac
  2755. else :
  2756. # compilation failed
  2757. @@ -1645,13 +1731,13 @@
  2758. fi
  2759. fi
  2760. rm -fr conftest*
  2761. -])# _LT_AC_TRY_DLOPEN_SELF
  2762. +])# _LT_TRY_DLOPEN_SELF
  2763. -# AC_LIBTOOL_DLOPEN_SELF
  2764. -# -------------------
  2765. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  2766. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  2767. +# LT_SYS_DLOPEN_SELF
  2768. +# ------------------
  2769. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  2770. +[m4_require([_LT_HEADER_DLFCN])dnl
  2771. if test "x$enable_dlopen" != xyes; then
  2772. enable_dlopen=unknown
  2773. enable_dlopen_self=unknown
  2774. @@ -1667,15 +1753,15 @@
  2775. lt_cv_dlopen_self=yes
  2776. ;;
  2777. - mingw* | pw32*)
  2778. + mingw* | pw32* | cegcc*)
  2779. lt_cv_dlopen="LoadLibrary"
  2780. lt_cv_dlopen_libs=
  2781. - ;;
  2782. + ;;
  2783. cygwin*)
  2784. lt_cv_dlopen="dlopen"
  2785. lt_cv_dlopen_libs=
  2786. - ;;
  2787. + ;;
  2788. darwin*)
  2789. # if libdl is installed we need to link against it
  2790. @@ -1685,13 +1771,13 @@
  2791. lt_cv_dlopen_libs=
  2792. lt_cv_dlopen_self=yes
  2793. ])
  2794. - ;;
  2795. -
  2796. + ;;
  2797. +
  2798. *)
  2799. AC_CHECK_FUNC([shl_load],
  2800. [lt_cv_dlopen="shl_load"],
  2801. [AC_CHECK_LIB([dld], [shl_load],
  2802. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  2803. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  2804. [AC_CHECK_FUNC([dlopen],
  2805. [lt_cv_dlopen="dlopen"],
  2806. [AC_CHECK_LIB([dl], [dlopen],
  2807. @@ -1699,7 +1785,7 @@
  2808. [AC_CHECK_LIB([svld], [dlopen],
  2809. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  2810. [AC_CHECK_LIB([dld], [dld_link],
  2811. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  2812. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  2813. ])
  2814. ])
  2815. ])
  2816. @@ -1720,23 +1806,23 @@
  2817. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  2818. save_LDFLAGS="$LDFLAGS"
  2819. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  2820. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  2821. save_LIBS="$LIBS"
  2822. LIBS="$lt_cv_dlopen_libs $LIBS"
  2823. AC_CACHE_CHECK([whether a program can dlopen itself],
  2824. lt_cv_dlopen_self, [dnl
  2825. - _LT_AC_TRY_DLOPEN_SELF(
  2826. + _LT_TRY_DLOPEN_SELF(
  2827. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  2828. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  2829. ])
  2830. if test "x$lt_cv_dlopen_self" = xyes; then
  2831. - LDFLAGS="$LDFLAGS $link_static_flag"
  2832. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  2833. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  2834. - lt_cv_dlopen_self_static, [dnl
  2835. - _LT_AC_TRY_DLOPEN_SELF(
  2836. + lt_cv_dlopen_self_static, [dnl
  2837. + _LT_TRY_DLOPEN_SELF(
  2838. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  2839. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  2840. ])
  2841. @@ -1758,29 +1844,36 @@
  2842. *) enable_dlopen_self_static=unknown ;;
  2843. esac
  2844. fi
  2845. -])# AC_LIBTOOL_DLOPEN_SELF
  2846. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  2847. + [Whether dlopen is supported])
  2848. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  2849. + [Whether dlopen of programs is supported])
  2850. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  2851. + [Whether dlopen of statically linked programs is supported])
  2852. +])# LT_SYS_DLOPEN_SELF
  2853. +
  2854. +# Old name:
  2855. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  2856. +dnl aclocal-1.4 backwards compatibility:
  2857. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  2858. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  2859. -# ---------------------------------
  2860. -# Check to see if options -c and -o are simultaneously supported by compiler
  2861. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  2862. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  2863. +# _LT_COMPILER_C_O([TAGNAME])
  2864. +# ---------------------------
  2865. +# Check to see if options -c and -o are simultaneously supported by compiler.
  2866. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2867. +m4_defun([_LT_COMPILER_C_O],
  2868. +[m4_require([_LT_DECL_SED])dnl
  2869. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2870. +m4_require([_LT_TAG_COMPILER])dnl
  2871. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  2872. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2873. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2874. - $rm -r conftest 2>/dev/null
  2875. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2876. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2877. + $RM -r conftest 2>/dev/null
  2878. mkdir conftest
  2879. cd conftest
  2880. mkdir out
  2881. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  2882. -
  2883. - # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  2884. - # that will create temporary files in the current directory regardless of
  2885. - # the output directory. Thus, making CWD read-only will cause this test
  2886. - # to fail, enabling locking or at least warning the user not to do parallel
  2887. - # builds.
  2888. - chmod -w .
  2889. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  2890. lt_compiler_flag="-o out/conftest2.$ac_objext"
  2891. # Insert the option either (1) after the last *FLAGS variable, or
  2892. @@ -1788,7 +1881,7 @@
  2893. # Note that $ac_compile itself does not contain backslashes and begins
  2894. # with a dollar sign (not a hyphen), so the echo should work correctly.
  2895. lt_compile=`echo "$ac_compile" | $SED \
  2896. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  2897. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  2898. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  2899. -e 's:$: $lt_compiler_flag:'`
  2900. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  2901. @@ -1800,32 +1893,41 @@
  2902. then
  2903. # The compiler can only warn and ignore the option if not recognized
  2904. # So say no if there are warnings
  2905. - if test ! -s out/conftest.err; then
  2906. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2907. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  2908. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  2909. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  2910. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2911. fi
  2912. fi
  2913. - chmod u+w .
  2914. - $rm conftest* out/*
  2915. - rmdir out
  2916. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  2917. + $RM conftest*
  2918. + # SGI C++ compiler will create directory out/ii_files/ for
  2919. + # template instantiation
  2920. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  2921. + $RM out/* && rmdir out
  2922. cd ..
  2923. - rmdir conftest
  2924. - $rm conftest*
  2925. + $RM -r conftest
  2926. + $RM conftest*
  2927. ])
  2928. -])# AC_LIBTOOL_PROG_CC_C_O
  2929. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  2930. + [Does compiler simultaneously support -c and -o options?])
  2931. +])# _LT_COMPILER_C_O
  2932. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  2933. -# -----------------------------------------
  2934. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2935. +# ----------------------------------
  2936. # Check to see if we can do hard links to lock some files if needed
  2937. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  2938. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  2939. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  2940. +[m4_require([_LT_ENABLE_LOCK])dnl
  2941. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2942. +_LT_COMPILER_C_O([$1])
  2943. hard_links="nottested"
  2944. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2945. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2946. # do not overwrite the value of need_locks provided by the user
  2947. AC_MSG_CHECKING([if we can lock with hard links])
  2948. hard_links=yes
  2949. - $rm conftest*
  2950. + $RM conftest*
  2951. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2952. touch conftest.a
  2953. ln conftest.a conftest.b 2>&5 || hard_links=no
  2954. @@ -1838,12 +1940,13 @@
  2955. else
  2956. need_locks=no
  2957. fi
  2958. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  2959. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  2960. +])# _LT_COMPILER_FILE_LOCKS
  2961. -# AC_LIBTOOL_OBJDIR
  2962. -# -----------------
  2963. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  2964. +# _LT_CHECK_OBJDIR
  2965. +# ----------------
  2966. +m4_defun([_LT_CHECK_OBJDIR],
  2967. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  2968. [rm -f .libs 2>/dev/null
  2969. mkdir .libs 2>/dev/null
  2970. @@ -1855,40 +1958,46 @@
  2971. fi
  2972. rmdir .libs 2>/dev/null])
  2973. objdir=$lt_cv_objdir
  2974. -])# AC_LIBTOOL_OBJDIR
  2975. +_LT_DECL([], [objdir], [0],
  2976. + [The name of the directory that contains temporary libtool files])dnl
  2977. +m4_pattern_allow([LT_OBJDIR])dnl
  2978. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  2979. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  2980. +])# _LT_CHECK_OBJDIR
  2981. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  2982. -# ----------------------------------------------
  2983. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2984. +# --------------------------------------
  2985. # Check hardcoding attributes.
  2986. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  2987. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  2988. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  2989. -_LT_AC_TAGVAR(hardcode_action, $1)=
  2990. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  2991. - test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
  2992. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
  2993. +_LT_TAGVAR(hardcode_action, $1)=
  2994. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  2995. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  2996. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2997. - # We can hardcode non-existant directories.
  2998. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  2999. + # We can hardcode non-existent directories.
  3000. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  3001. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  3002. # have to relink, otherwise we might link with an installed library
  3003. # when we should be linking with a yet-to-be-installed one
  3004. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  3005. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  3006. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  3007. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  3008. # Linking always hardcodes the temporary library directory.
  3009. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  3010. + _LT_TAGVAR(hardcode_action, $1)=relink
  3011. else
  3012. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  3013. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  3014. + _LT_TAGVAR(hardcode_action, $1)=immediate
  3015. fi
  3016. else
  3017. # We cannot hardcode anything, or else we can only hardcode existing
  3018. # directories.
  3019. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  3020. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  3021. fi
  3022. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  3023. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  3024. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  3025. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  3026. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  3027. # Fast installation is not supported
  3028. enable_fast_install=no
  3029. elif test "$shlibpath_overrides_runpath" = yes ||
  3030. @@ -1896,47 +2005,111 @@
  3031. # Fast installation is not necessary
  3032. enable_fast_install=needless
  3033. fi
  3034. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  3035. +_LT_TAGDECL([], [hardcode_action], [0],
  3036. + [How to hardcode a shared library path into an executable])
  3037. +])# _LT_LINKER_HARDCODE_LIBPATH
  3038. -# AC_LIBTOOL_SYS_LIB_STRIP
  3039. -# ------------------------
  3040. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  3041. -[striplib=
  3042. +# _LT_CMD_STRIPLIB
  3043. +# ----------------
  3044. +m4_defun([_LT_CMD_STRIPLIB],
  3045. +[m4_require([_LT_DECL_EGREP])
  3046. +striplib=
  3047. old_striplib=
  3048. AC_MSG_CHECKING([whether stripping libraries is possible])
  3049. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  3050. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  3051. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  3052. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  3053. AC_MSG_RESULT([yes])
  3054. else
  3055. # FIXME - insert some real tests, host_os isn't really good enough
  3056. case $host_os in
  3057. - NOT-darwin*)
  3058. - if test -n "$STRIP" ; then
  3059. - striplib="$STRIP -x"
  3060. - AC_MSG_RESULT([yes])
  3061. - else
  3062. - AC_MSG_RESULT([no])
  3063. -fi
  3064. - ;;
  3065. - *)
  3066. - AC_MSG_RESULT([no])
  3067. + darwin*)
  3068. + if test -n "$STRIP" ; then
  3069. + striplib="$STRIP -x"
  3070. + old_striplib="$STRIP -S"
  3071. + AC_MSG_RESULT([yes])
  3072. + else
  3073. + AC_MSG_RESULT([no])
  3074. + fi
  3075. ;;
  3076. - esac
  3077. + *)
  3078. + AC_MSG_RESULT([no])
  3079. + ;;
  3080. + esac
  3081. fi
  3082. -])# AC_LIBTOOL_SYS_LIB_STRIP
  3083. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  3084. +_LT_DECL([], [striplib], [1])
  3085. +])# _LT_CMD_STRIPLIB
  3086. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  3087. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  3088. # -----------------------------
  3089. # PORTME Fill in your ld.so characteristics
  3090. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  3091. -[AC_MSG_CHECKING([dynamic linker characteristics])
  3092. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  3093. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3094. +m4_require([_LT_DECL_EGREP])dnl
  3095. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3096. +m4_require([_LT_DECL_OBJDUMP])dnl
  3097. +m4_require([_LT_DECL_SED])dnl
  3098. +AC_MSG_CHECKING([dynamic linker characteristics])
  3099. +m4_if([$1],
  3100. + [], [
  3101. +if test "$GCC" = yes; then
  3102. + case $host_os in
  3103. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  3104. + *) lt_awk_arg="/^libraries:/" ;;
  3105. + esac
  3106. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3107. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  3108. + # if the path contains ";" then we assume it to be the separator
  3109. + # otherwise default to the standard path separator (i.e. ":") - it is
  3110. + # assumed that no part of a normal pathname contains ";" but that should
  3111. + # okay in the real world where ";" in dirpaths is itself problematic.
  3112. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  3113. + else
  3114. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3115. + fi
  3116. + # Ok, now we have the path, separated by spaces, we can step through it
  3117. + # and add multilib dir if necessary.
  3118. + lt_tmp_lt_search_path_spec=
  3119. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  3120. + for lt_sys_path in $lt_search_path_spec; do
  3121. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  3122. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  3123. + else
  3124. + test -d "$lt_sys_path" && \
  3125. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  3126. + fi
  3127. + done
  3128. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  3129. +BEGIN {RS=" "; FS="/|\n";} {
  3130. + lt_foo="";
  3131. + lt_count=0;
  3132. + for (lt_i = NF; lt_i > 0; lt_i--) {
  3133. + if ($lt_i != "" && $lt_i != ".") {
  3134. + if ($lt_i == "..") {
  3135. + lt_count++;
  3136. + } else {
  3137. + if (lt_count == 0) {
  3138. + lt_foo="/" $lt_i lt_foo;
  3139. + } else {
  3140. + lt_count--;
  3141. + }
  3142. + }
  3143. + }
  3144. + }
  3145. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  3146. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  3147. +}'`
  3148. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  3149. +else
  3150. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  3151. +fi])
  3152. library_names_spec=
  3153. libname_spec='lib$name'
  3154. soname_spec=
  3155. -shrext=".so"
  3156. +shrext_cmds=".so"
  3157. postinstall_cmds=
  3158. postuninstall_cmds=
  3159. finish_cmds=
  3160. @@ -1946,20 +2119,6 @@
  3161. version_type=none
  3162. dynamic_linker="$host_os ld.so"
  3163. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  3164. -if test "$GCC" = yes; then
  3165. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3166. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  3167. - # if the path contains ";" then we assume it to be the separator
  3168. - # otherwise default to the standard path separator (i.e. ":") - it is
  3169. - # assumed that no part of a normal pathname contains ";" but that should
  3170. - # okay in the real world where ";" in dirpaths is itself problematic.
  3171. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  3172. - else
  3173. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3174. - fi
  3175. -else
  3176. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  3177. -fi
  3178. need_lib_prefix=unknown
  3179. hardcode_into_libs=no
  3180. @@ -1977,7 +2136,7 @@
  3181. soname_spec='${libname}${release}${shared_ext}$major'
  3182. ;;
  3183. -aix4* | aix5*)
  3184. +aix[[4-9]]*)
  3185. version_type=linux
  3186. need_lib_prefix=no
  3187. need_version=no
  3188. @@ -1996,7 +2155,7 @@
  3189. aix4 | aix4.[[01]] | aix4.[[01]].*)
  3190. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  3191. echo ' yes '
  3192. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  3193. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  3194. :
  3195. else
  3196. can_build_shared=no
  3197. @@ -2022,9 +2181,18 @@
  3198. ;;
  3199. amigaos*)
  3200. - library_names_spec='$libname.ixlibrary $libname.a'
  3201. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  3202. - 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'
  3203. + case $host_cpu in
  3204. + powerpc)
  3205. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  3206. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  3207. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3208. + ;;
  3209. + m68k)
  3210. + library_names_spec='$libname.ixlibrary $libname.a'
  3211. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  3212. + 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'
  3213. + ;;
  3214. + esac
  3215. ;;
  3216. beos*)
  3217. @@ -2033,7 +2201,7 @@
  3218. shlibpath_var=LIBRARY_PATH
  3219. ;;
  3220. -bsdi4*)
  3221. +bsdi[[45]]*)
  3222. version_type=linux
  3223. need_version=no
  3224. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3225. @@ -2047,51 +2215,55 @@
  3226. # libtool to hard-code these into programs
  3227. ;;
  3228. -cygwin* | mingw* | pw32*)
  3229. +cygwin* | mingw* | pw32* | cegcc*)
  3230. version_type=windows
  3231. - shrext=".dll"
  3232. + shrext_cmds=".dll"
  3233. need_version=no
  3234. need_lib_prefix=no
  3235. case $GCC,$host_os in
  3236. - yes,cygwin* | yes,mingw* | yes,pw32*)
  3237. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  3238. library_names_spec='$libname.dll.a'
  3239. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  3240. - postinstall_cmds='base_file=`basename \${file}`${_S_}
  3241. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
  3242. - dldir=$destdir/`dirname \$dlpath`${_S_}
  3243. - test -d \$dldir || mkdir -p \$dldir${_S_}
  3244. - $install_prog $dir/$dlname \$dldir/$dlname'
  3245. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
  3246. - dlpath=$dir/\$dldll${_S_}
  3247. - $rm \$dlpath'
  3248. + postinstall_cmds='base_file=`basename \${file}`~
  3249. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  3250. + dldir=$destdir/`dirname \$dlpath`~
  3251. + test -d \$dldir || mkdir -p \$dldir~
  3252. + $install_prog $dir/$dlname \$dldir/$dlname~
  3253. + chmod a+x \$dldir/$dlname~
  3254. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  3255. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  3256. + fi'
  3257. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  3258. + dlpath=$dir/\$dldll~
  3259. + $RM \$dlpath'
  3260. shlibpath_overrides_runpath=yes
  3261. case $host_os in
  3262. cygwin*)
  3263. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  3264. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3265. - sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
  3266. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  3267. ;;
  3268. - mingw*)
  3269. + mingw* | cegcc*)
  3270. # MinGW DLLs use traditional 'lib' prefix
  3271. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3272. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3273. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  3274. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3275. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  3276. # It is most probably a Windows format PATH printed by
  3277. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  3278. # path with ; separators, and with drive letters. We can handle the
  3279. # drive letters (cygwin fileutils understands them), so leave them,
  3280. # especially as we might pass files found there to a mingw objdump,
  3281. # which wouldn't understand a cygwinified path. Ahh.
  3282. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  3283. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  3284. else
  3285. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3286. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3287. fi
  3288. ;;
  3289. pw32*)
  3290. # pw32 DLLs use 'pw' prefix rather than 'lib'
  3291. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  3292. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3293. ;;
  3294. esac
  3295. ;;
  3296. @@ -2110,18 +2282,13 @@
  3297. version_type=darwin
  3298. need_lib_prefix=no
  3299. need_version=no
  3300. - # FIXME: Relying on posixy $() will cause problems for
  3301. - # cross-compilation, but unfortunately the echo tests do not
  3302. - # yet detect zsh echo's removal of \ escapes.
  3303. - library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
  3304. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  3305. soname_spec='${libname}${release}${major}$shared_ext'
  3306. shlibpath_overrides_runpath=yes
  3307. shlibpath_var=DYLD_LIBRARY_PATH
  3308. - shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  3309. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  3310. - if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
  3311. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  3312. - fi
  3313. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  3314. +m4_if([$1], [],[
  3315. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  3316. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  3317. ;;
  3318. @@ -2138,8 +2305,17 @@
  3319. dynamic_linker=no
  3320. ;;
  3321. -freebsd*)
  3322. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  3323. +freebsd* | dragonfly*)
  3324. + # DragonFly does not have aout. When/if they implement a new
  3325. + # versioning mechanism, adjust this.
  3326. + if test -x /usr/bin/objformat; then
  3327. + objformat=`/usr/bin/objformat`
  3328. + else
  3329. + case $host_os in
  3330. + freebsd[[123]]*) objformat=aout ;;
  3331. + *) objformat=elf ;;
  3332. + esac
  3333. + fi
  3334. version_type=freebsd-$objformat
  3335. case $version_type in
  3336. freebsd-elf*)
  3337. @@ -2157,14 +2333,19 @@
  3338. freebsd2*)
  3339. shlibpath_overrides_runpath=yes
  3340. ;;
  3341. - freebsd3.[01]* | freebsdelf3.[01]*)
  3342. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  3343. shlibpath_overrides_runpath=yes
  3344. hardcode_into_libs=yes
  3345. ;;
  3346. - *) # from 3.2 on
  3347. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  3348. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  3349. shlibpath_overrides_runpath=no
  3350. hardcode_into_libs=yes
  3351. ;;
  3352. + *) # from 4.6 on, and DragonFly
  3353. + shlibpath_overrides_runpath=yes
  3354. + hardcode_into_libs=yes
  3355. + ;;
  3356. esac
  3357. ;;
  3358. @@ -2184,9 +2365,9 @@
  3359. version_type=sunos
  3360. need_lib_prefix=no
  3361. need_version=no
  3362. - case "$host_cpu" in
  3363. + case $host_cpu in
  3364. ia64*)
  3365. - shrext='.so'
  3366. + shrext_cmds='.so'
  3367. hardcode_into_libs=yes
  3368. dynamic_linker="$host_os dld.so"
  3369. shlibpath_var=LD_LIBRARY_PATH
  3370. @@ -2200,19 +2381,19 @@
  3371. fi
  3372. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  3373. ;;
  3374. - hppa*64*)
  3375. - shrext='.sl'
  3376. - hardcode_into_libs=yes
  3377. - dynamic_linker="$host_os dld.sl"
  3378. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  3379. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  3380. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3381. - soname_spec='${libname}${release}${shared_ext}$major'
  3382. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  3383. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  3384. - ;;
  3385. - *)
  3386. - shrext='.sl'
  3387. + hppa*64*)
  3388. + shrext_cmds='.sl'
  3389. + hardcode_into_libs=yes
  3390. + dynamic_linker="$host_os dld.sl"
  3391. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  3392. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  3393. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3394. + soname_spec='${libname}${release}${shared_ext}$major'
  3395. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  3396. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  3397. + ;;
  3398. + *)
  3399. + shrext_cmds='.sl'
  3400. dynamic_linker="$host_os dld.sl"
  3401. shlibpath_var=SHLIB_PATH
  3402. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  3403. @@ -2224,6 +2405,18 @@
  3404. postinstall_cmds='chmod 555 $lib'
  3405. ;;
  3406. +interix[[3-9]]*)
  3407. + version_type=linux
  3408. + need_lib_prefix=no
  3409. + need_version=no
  3410. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  3411. + soname_spec='${libname}${release}${shared_ext}$major'
  3412. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  3413. + shlibpath_var=LD_LIBRARY_PATH
  3414. + shlibpath_overrides_runpath=no
  3415. + hardcode_into_libs=yes
  3416. + ;;
  3417. +
  3418. irix5* | irix6* | nonstopux*)
  3419. case $host_os in
  3420. nonstopux*) version_type=nonstopux ;;
  3421. @@ -2267,7 +2460,7 @@
  3422. ;;
  3423. # This must be Linux ELF.
  3424. -linux*)
  3425. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3426. version_type=linux
  3427. need_lib_prefix=no
  3428. need_version=no
  3429. @@ -2276,11 +2469,28 @@
  3430. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  3431. shlibpath_var=LD_LIBRARY_PATH
  3432. shlibpath_overrides_runpath=no
  3433. + # Some binutils ld are patched to set DT_RUNPATH
  3434. + save_LDFLAGS=$LDFLAGS
  3435. + save_libdir=$libdir
  3436. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  3437. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  3438. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  3439. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  3440. + [shlibpath_overrides_runpath=yes])])
  3441. + LDFLAGS=$save_LDFLAGS
  3442. + libdir=$save_libdir
  3443. +
  3444. # This implies no fast_install, which is unacceptable.
  3445. # Some rework will be needed to allow for fast_install
  3446. # before this can be enabled.
  3447. hardcode_into_libs=yes
  3448. + # Append ld.so.conf contents to the search path
  3449. + if test -f /etc/ld.so.conf; then
  3450. + 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' ' '`
  3451. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  3452. + fi
  3453. +
  3454. # We used to test for /lib/ld.so.1 and disable shared libraries on
  3455. # powerpc, because MkLinux only supported shared libraries with the
  3456. # GNU dynamic linker. Since this was broken with cross compilers,
  3457. @@ -2290,16 +2500,28 @@
  3458. dynamic_linker='GNU/Linux ld.so'
  3459. ;;
  3460. +netbsdelf*-gnu)
  3461. + version_type=linux
  3462. + need_lib_prefix=no
  3463. + need_version=no
  3464. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  3465. + soname_spec='${libname}${release}${shared_ext}$major'
  3466. + shlibpath_var=LD_LIBRARY_PATH
  3467. + shlibpath_overrides_runpath=no
  3468. + hardcode_into_libs=yes
  3469. + dynamic_linker='NetBSD ld.elf_so'
  3470. + ;;
  3471. +
  3472. netbsd*)
  3473. version_type=sunos
  3474. need_lib_prefix=no
  3475. need_version=no
  3476. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3477. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  3478. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  3479. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  3480. dynamic_linker='NetBSD (a.out) ld.so'
  3481. else
  3482. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
  3483. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  3484. soname_spec='${libname}${release}${shared_ext}$major'
  3485. dynamic_linker='NetBSD ld.elf_so'
  3486. fi
  3487. @@ -2315,24 +2537,31 @@
  3488. shlibpath_overrides_runpath=yes
  3489. ;;
  3490. -nto-qnx)
  3491. - version_type=linux
  3492. +*nto* | *qnx*)
  3493. + version_type=qnx
  3494. need_lib_prefix=no
  3495. need_version=no
  3496. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3497. soname_spec='${libname}${release}${shared_ext}$major'
  3498. shlibpath_var=LD_LIBRARY_PATH
  3499. - shlibpath_overrides_runpath=yes
  3500. + shlibpath_overrides_runpath=no
  3501. + hardcode_into_libs=yes
  3502. + dynamic_linker='ldqnx.so'
  3503. ;;
  3504. openbsd*)
  3505. version_type=sunos
  3506. + sys_lib_dlsearch_path_spec="/usr/lib"
  3507. need_lib_prefix=no
  3508. - need_version=no
  3509. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  3510. + case $host_os in
  3511. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  3512. + *) need_version=no ;;
  3513. + esac
  3514. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  3515. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  3516. shlibpath_var=LD_LIBRARY_PATH
  3517. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3518. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3519. case $host_os in
  3520. openbsd2.[[89]] | openbsd2.[[89]].*)
  3521. shlibpath_overrides_runpath=no
  3522. @@ -2348,7 +2577,7 @@
  3523. os2*)
  3524. libname_spec='$name'
  3525. - shrext=".dll"
  3526. + shrext_cmds=".dll"
  3527. need_lib_prefix=no
  3528. library_names_spec='$libname${shared_ext} $libname.a'
  3529. dynamic_linker='OS/2 ld.exe'
  3530. @@ -2366,11 +2595,8 @@
  3531. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  3532. ;;
  3533. -sco3.2v5*)
  3534. - version_type=osf
  3535. - soname_spec='${libname}${release}${shared_ext}$major'
  3536. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3537. - shlibpath_var=LD_LIBRARY_PATH
  3538. +rdos*)
  3539. + dynamic_linker=no
  3540. ;;
  3541. solaris*)
  3542. @@ -2398,7 +2624,7 @@
  3543. need_version=yes
  3544. ;;
  3545. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3546. +sysv4 | sysv4.3*)
  3547. version_type=linux
  3548. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3549. soname_spec='${libname}${release}${shared_ext}$major'
  3550. @@ -2407,7 +2633,6 @@
  3551. sni)
  3552. shlibpath_overrides_runpath=no
  3553. need_lib_prefix=no
  3554. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  3555. runpath_var=LD_RUN_PATH
  3556. ;;
  3557. siemens)
  3558. @@ -2431,6 +2656,39 @@
  3559. fi
  3560. ;;
  3561. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3562. + version_type=freebsd-elf
  3563. + need_lib_prefix=no
  3564. + need_version=no
  3565. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  3566. + soname_spec='${libname}${release}${shared_ext}$major'
  3567. + shlibpath_var=LD_LIBRARY_PATH
  3568. + shlibpath_overrides_runpath=yes
  3569. + hardcode_into_libs=yes
  3570. + if test "$with_gnu_ld" = yes; then
  3571. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  3572. + else
  3573. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  3574. + case $host_os in
  3575. + sco3.2v5*)
  3576. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  3577. + ;;
  3578. + esac
  3579. + fi
  3580. + sys_lib_dlsearch_path_spec='/usr/lib'
  3581. + ;;
  3582. +
  3583. +tpf*)
  3584. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  3585. + version_type=linux
  3586. + need_lib_prefix=no
  3587. + need_version=no
  3588. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3589. + shlibpath_var=LD_LIBRARY_PATH
  3590. + shlibpath_overrides_runpath=no
  3591. + hardcode_into_libs=yes
  3592. + ;;
  3593. +
  3594. uts4*)
  3595. version_type=linux
  3596. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3597. @@ -2444,271 +2702,59 @@
  3598. esac
  3599. AC_MSG_RESULT([$dynamic_linker])
  3600. test "$dynamic_linker" = no && can_build_shared=no
  3601. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  3602. -
  3603. -
  3604. -# _LT_AC_TAGCONFIG
  3605. -# ----------------
  3606. -AC_DEFUN([_LT_AC_TAGCONFIG],
  3607. -[AC_ARG_WITH([tags],
  3608. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  3609. - [include additional configurations @<:@automatic@:>@])],
  3610. - [tagnames="$withval"])
  3611. -
  3612. -if test -f "$ltmain" && test -n "$tagnames"; then
  3613. - if test ! -f "${ofile}"; then
  3614. - AC_MSG_WARN([output file `$ofile' does not exist])
  3615. - fi
  3616. -
  3617. - if test -z "$LTCC"; then
  3618. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  3619. - if test -z "$LTCC"; then
  3620. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  3621. - else
  3622. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  3623. - fi
  3624. - fi
  3625. -
  3626. - # Extract list of available tagged configurations in $ofile.
  3627. - # Note that this assumes the entire list is on one line.
  3628. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  3629. -
  3630. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3631. - for tagname in $tagnames; do
  3632. - IFS="$lt_save_ifs"
  3633. - # Check whether tagname contains only valid characters
  3634. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  3635. - "") ;;
  3636. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  3637. - ;;
  3638. - esac
  3639. -
  3640. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  3641. - then
  3642. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  3643. - fi
  3644. -
  3645. - # Update the list of available tags.
  3646. - if test -n "$tagname"; then
  3647. - echo appending configuration tag \"$tagname\" to $ofile
  3648. -
  3649. - case $tagname in
  3650. - CXX)
  3651. - if test -n "$CXX" && test "X$CXX" != "Xno"; then
  3652. - AC_LIBTOOL_LANG_CXX_CONFIG
  3653. - else
  3654. - tagname=""
  3655. - fi
  3656. - ;;
  3657. -
  3658. - F77)
  3659. - if test -n "$F77" && test "X$F77" != "Xno"; then
  3660. - AC_LIBTOOL_LANG_F77_CONFIG
  3661. - else
  3662. - tagname=""
  3663. - fi
  3664. - ;;
  3665. -
  3666. - GCJ)
  3667. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  3668. - AC_LIBTOOL_LANG_GCJ_CONFIG
  3669. - else
  3670. - tagname=""
  3671. - fi
  3672. - ;;
  3673. -
  3674. - RC)
  3675. - AC_LIBTOOL_LANG_RC_CONFIG
  3676. - ;;
  3677. -
  3678. - *)
  3679. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  3680. - ;;
  3681. - esac
  3682. -
  3683. - # Append the new tag name to the list of available tags.
  3684. - if test -n "$tagname" ; then
  3685. - available_tags="$available_tags $tagname"
  3686. - fi
  3687. - fi
  3688. - done
  3689. - IFS="$lt_save_ifs"
  3690. - # Now substitute the updated list of available tags.
  3691. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  3692. - mv "${ofile}T" "$ofile"
  3693. - chmod +x "$ofile"
  3694. - else
  3695. - rm -f "${ofile}T"
  3696. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  3697. - fi
  3698. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  3699. +if test "$GCC" = yes; then
  3700. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  3701. fi
  3702. -])# _LT_AC_TAGCONFIG
  3703. -
  3704. -
  3705. -# AC_LIBTOOL_DLOPEN
  3706. -# -----------------
  3707. -# enable checks for dlopen support
  3708. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  3709. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  3710. -])# AC_LIBTOOL_DLOPEN
  3711. -
  3712. -
  3713. -# AC_LIBTOOL_WIN32_DLL
  3714. -# --------------------
  3715. -# declare package support for building win32 dll's
  3716. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  3717. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  3718. -])# AC_LIBTOOL_WIN32_DLL
  3719. -
  3720. -
  3721. -# AC_ENABLE_SHARED([DEFAULT])
  3722. -# ---------------------------
  3723. -# implement the --enable-shared flag
  3724. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3725. -AC_DEFUN([AC_ENABLE_SHARED],
  3726. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  3727. -AC_ARG_ENABLE([shared],
  3728. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  3729. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  3730. - [p=${PACKAGE-default}
  3731. - case $enableval in
  3732. - yes) enable_shared=yes ;;
  3733. - no) enable_shared=no ;;
  3734. - *)
  3735. - enable_shared=no
  3736. - # Look at the argument we got. We use all the common list separators.
  3737. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3738. - for pkg in $enableval; do
  3739. - IFS="$lt_save_ifs"
  3740. - if test "X$pkg" = "X$p"; then
  3741. - enable_shared=yes
  3742. - fi
  3743. - done
  3744. - IFS="$lt_save_ifs"
  3745. - ;;
  3746. - esac],
  3747. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  3748. -])# AC_ENABLE_SHARED
  3749. -
  3750. -
  3751. -# AC_DISABLE_SHARED
  3752. -# -----------------
  3753. -#- set the default shared flag to --disable-shared
  3754. -AC_DEFUN([AC_DISABLE_SHARED],
  3755. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3756. -AC_ENABLE_SHARED(no)
  3757. -])# AC_DISABLE_SHARED
  3758. -
  3759. -
  3760. -# AC_ENABLE_STATIC([DEFAULT])
  3761. -# ---------------------------
  3762. -# implement the --enable-static flag
  3763. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3764. -AC_DEFUN([AC_ENABLE_STATIC],
  3765. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  3766. -AC_ARG_ENABLE([static],
  3767. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  3768. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  3769. - [p=${PACKAGE-default}
  3770. - case $enableval in
  3771. - yes) enable_static=yes ;;
  3772. - no) enable_static=no ;;
  3773. - *)
  3774. - enable_static=no
  3775. - # Look at the argument we got. We use all the common list separators.
  3776. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3777. - for pkg in $enableval; do
  3778. - IFS="$lt_save_ifs"
  3779. - if test "X$pkg" = "X$p"; then
  3780. - enable_static=yes
  3781. - fi
  3782. - done
  3783. - IFS="$lt_save_ifs"
  3784. - ;;
  3785. - esac],
  3786. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  3787. -])# AC_ENABLE_STATIC
  3788. -
  3789. -
  3790. -# AC_DISABLE_STATIC
  3791. -# -----------------
  3792. -# set the default static flag to --disable-static
  3793. -AC_DEFUN([AC_DISABLE_STATIC],
  3794. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3795. -AC_ENABLE_STATIC(no)
  3796. -])# AC_DISABLE_STATIC
  3797. -
  3798. -
  3799. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  3800. -# ---------------------------------
  3801. -# implement the --enable-fast-install flag
  3802. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3803. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  3804. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  3805. -AC_ARG_ENABLE([fast-install],
  3806. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  3807. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  3808. - [p=${PACKAGE-default}
  3809. - case $enableval in
  3810. - yes) enable_fast_install=yes ;;
  3811. - no) enable_fast_install=no ;;
  3812. - *)
  3813. - enable_fast_install=no
  3814. - # Look at the argument we got. We use all the common list separators.
  3815. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3816. - for pkg in $enableval; do
  3817. - IFS="$lt_save_ifs"
  3818. - if test "X$pkg" = "X$p"; then
  3819. - enable_fast_install=yes
  3820. - fi
  3821. - done
  3822. - IFS="$lt_save_ifs"
  3823. - ;;
  3824. - esac],
  3825. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  3826. -])# AC_ENABLE_FAST_INSTALL
  3827. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  3828. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  3829. +fi
  3830. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  3831. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  3832. +fi
  3833. -# AC_DISABLE_FAST_INSTALL
  3834. -# -----------------------
  3835. -# set the default to --disable-fast-install
  3836. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  3837. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3838. -AC_ENABLE_FAST_INSTALL(no)
  3839. -])# AC_DISABLE_FAST_INSTALL
  3840. +_LT_DECL([], [variables_saved_for_relink], [1],
  3841. + [Variables whose values should be saved in libtool wrapper scripts and
  3842. + restored at link time])
  3843. +_LT_DECL([], [need_lib_prefix], [0],
  3844. + [Do we need the "lib" prefix for modules?])
  3845. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  3846. +_LT_DECL([], [version_type], [0], [Library versioning type])
  3847. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  3848. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  3849. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  3850. + [Is shlibpath searched before the hard-coded library search path?])
  3851. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  3852. +_LT_DECL([], [library_names_spec], [1],
  3853. + [[List of archive names. First name is the real one, the rest are links.
  3854. + The last name is the one that the linker finds with -lNAME]])
  3855. +_LT_DECL([], [soname_spec], [1],
  3856. + [[The coded name of the library, if different from the real name]])
  3857. +_LT_DECL([], [postinstall_cmds], [2],
  3858. + [Command to use after installation of a shared archive])
  3859. +_LT_DECL([], [postuninstall_cmds], [2],
  3860. + [Command to use after uninstallation of a shared archive])
  3861. +_LT_DECL([], [finish_cmds], [2],
  3862. + [Commands used to finish a libtool library installation in a directory])
  3863. +_LT_DECL([], [finish_eval], [1],
  3864. + [[As "finish_cmds", except a single script fragment to be evaled but
  3865. + not shown]])
  3866. +_LT_DECL([], [hardcode_into_libs], [0],
  3867. + [Whether we should hardcode library paths into libraries])
  3868. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  3869. + [Compile-time system search path for libraries])
  3870. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  3871. + [Run-time system search path for libraries])
  3872. +])# _LT_SYS_DYNAMIC_LINKER
  3873. -# AC_LIBTOOL_PICMODE([MODE])
  3874. +# _LT_PATH_TOOL_PREFIX(TOOL)
  3875. # --------------------------
  3876. -# implement the --with-pic flag
  3877. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  3878. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  3879. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3880. -pic_mode=ifelse($#,1,$1,default)
  3881. -])# AC_LIBTOOL_PICMODE
  3882. -
  3883. -
  3884. -# AC_PROG_EGREP
  3885. -# -------------
  3886. -# This is predefined starting with Autoconf 2.54, so this conditional
  3887. -# definition can be removed once we require Autoconf 2.54 or later.
  3888. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  3889. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  3890. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3891. - then ac_cv_prog_egrep='grep -E'
  3892. - else ac_cv_prog_egrep='egrep'
  3893. - fi])
  3894. - EGREP=$ac_cv_prog_egrep
  3895. - AC_SUBST([EGREP])
  3896. -])])
  3897. -
  3898. -
  3899. -# AC_PATH_TOOL_PREFIX
  3900. -# -------------------
  3901. -# find a file program which can recognise shared library
  3902. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  3903. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3904. +# find a file program which can recognize shared library
  3905. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  3906. +[m4_require([_LT_DECL_EGREP])dnl
  3907. AC_MSG_CHECKING([for $1])
  3908. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  3909. [case $MAGIC_CMD in
  3910. @@ -2721,7 +2767,7 @@
  3911. dnl $ac_dummy forces splitting on constant user-supplied paths.
  3912. dnl POSIX.2 word splitting is done only on the output of word expansions,
  3913. dnl not every word. This closes a longstanding sh security hole.
  3914. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  3915. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  3916. for ac_dir in $ac_dummy; do
  3917. IFS="$lt_save_ifs"
  3918. test -z "$ac_dir" && ac_dir=.
  3919. @@ -2730,13 +2776,13 @@
  3920. if test -n "$file_magic_test_file"; then
  3921. case $deplibs_check_method in
  3922. "file_magic "*)
  3923. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  3924. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  3925. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3926. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3927. $EGREP "$file_magic_regex" > /dev/null; then
  3928. :
  3929. else
  3930. - cat <<EOF 1>&2
  3931. + cat <<_LT_EOF 1>&2
  3932. *** Warning: the command libtool uses to detect shared libraries,
  3933. *** $file_magic_cmd, produces output that libtool cannot recognize.
  3934. @@ -2747,7 +2793,7 @@
  3935. *** may want to report the problem to your system manager and/or to
  3936. *** bug-libtool@gnu.org
  3937. -EOF
  3938. +_LT_EOF
  3939. fi ;;
  3940. esac
  3941. fi
  3942. @@ -2764,37 +2810,47 @@
  3943. else
  3944. AC_MSG_RESULT(no)
  3945. fi
  3946. -])# AC_PATH_TOOL_PREFIX
  3947. +_LT_DECL([], [MAGIC_CMD], [0],
  3948. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  3949. +])# _LT_PATH_TOOL_PREFIX
  3950. +# Old name:
  3951. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  3952. +dnl aclocal-1.4 backwards compatibility:
  3953. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  3954. -# AC_PATH_MAGIC
  3955. -# -------------
  3956. -# find a file program which can recognise a shared library
  3957. -AC_DEFUN([AC_PATH_MAGIC],
  3958. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3959. +
  3960. +# _LT_PATH_MAGIC
  3961. +# --------------
  3962. +# find a file program which can recognize a shared library
  3963. +m4_defun([_LT_PATH_MAGIC],
  3964. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3965. if test -z "$lt_cv_path_MAGIC_CMD"; then
  3966. if test -n "$ac_tool_prefix"; then
  3967. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3968. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3969. else
  3970. MAGIC_CMD=:
  3971. fi
  3972. fi
  3973. -])# AC_PATH_MAGIC
  3974. +])# _LT_PATH_MAGIC
  3975. -# AC_PROG_LD
  3976. +# LT_PATH_LD
  3977. # ----------
  3978. -# find the path to the GNU or non-GNU linker
  3979. -AC_DEFUN([AC_PROG_LD],
  3980. -[AC_ARG_WITH([gnu-ld],
  3981. - [AC_HELP_STRING([--with-gnu-ld],
  3982. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3983. - [test "$withval" = no || with_gnu_ld=yes],
  3984. - [with_gnu_ld=no])
  3985. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  3986. -AC_REQUIRE([AC_PROG_CC])dnl
  3987. +# find the pathname to the GNU or non-GNU linker
  3988. +AC_DEFUN([LT_PATH_LD],
  3989. +[AC_REQUIRE([AC_PROG_CC])dnl
  3990. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3991. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3992. +m4_require([_LT_DECL_SED])dnl
  3993. +m4_require([_LT_DECL_EGREP])dnl
  3994. +
  3995. +AC_ARG_WITH([gnu-ld],
  3996. + [AS_HELP_STRING([--with-gnu-ld],
  3997. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3998. + [test "$withval" = no || with_gnu_ld=yes],
  3999. + [with_gnu_ld=no])dnl
  4000. +
  4001. ac_prog=ld
  4002. if test "$GCC" = yes; then
  4003. # Check if gcc -print-prog-name=ld gives a path.
  4004. @@ -2810,10 +2866,10 @@
  4005. # Accept absolute paths.
  4006. [[\\/]]* | ?:[[\\/]]*)
  4007. re_direlt='/[[^/]][[^/]]*/\.\./'
  4008. - # Canonicalize the path of ld
  4009. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  4010. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  4011. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  4012. + # Canonicalize the pathname of ld
  4013. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4014. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4015. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4016. done
  4017. test -z "$LD" && LD="$ac_prog"
  4018. ;;
  4019. @@ -2840,7 +2896,7 @@
  4020. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4021. lt_cv_path_LD="$ac_dir/$ac_prog"
  4022. # Check to see if the program is GNU ld. I'd rather use --version,
  4023. - # but apparently some GNU ld's only accept -v.
  4024. + # but apparently some variants of GNU ld only accept -v.
  4025. # Break only if it was the GNU/non-GNU ld that we prefer.
  4026. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4027. *GNU* | *'with BFD'*)
  4028. @@ -2863,17 +2919,26 @@
  4029. AC_MSG_RESULT(no)
  4030. fi
  4031. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  4032. -AC_PROG_LD_GNU
  4033. -])# AC_PROG_LD
  4034. +_LT_PATH_LD_GNU
  4035. +AC_SUBST([LD])
  4036. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  4037. +])# LT_PATH_LD
  4038. -# AC_PROG_LD_GNU
  4039. -# --------------
  4040. -AC_DEFUN([AC_PROG_LD_GNU],
  4041. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  4042. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  4043. -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  4044. -case `"$LD" -v 2>&1 </dev/null` in
  4045. +# Old names:
  4046. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  4047. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  4048. +dnl aclocal-1.4 backwards compatibility:
  4049. +dnl AC_DEFUN([AM_PROG_LD], [])
  4050. +dnl AC_DEFUN([AC_PROG_LD], [])
  4051. +
  4052. +
  4053. +# _LT_PATH_LD_GNU
  4054. +#- --------------
  4055. +m4_defun([_LT_PATH_LD_GNU],
  4056. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  4057. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  4058. +case `$LD -v 2>&1 </dev/null` in
  4059. *GNU* | *'with BFD'*)
  4060. lt_cv_prog_gnu_ld=yes
  4061. ;;
  4062. @@ -2882,14 +2947,14 @@
  4063. ;;
  4064. esac])
  4065. with_gnu_ld=$lt_cv_prog_gnu_ld
  4066. -])# AC_PROG_LD_GNU
  4067. +])# _LT_PATH_LD_GNU
  4068. -# AC_PROG_LD_RELOAD_FLAG
  4069. -# ----------------------
  4070. +# _LT_CMD_RELOAD
  4071. +# --------------
  4072. # find reload flag for linker
  4073. # -- PORTME Some linkers may need a different reload flag.
  4074. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  4075. +m4_defun([_LT_CMD_RELOAD],
  4076. [AC_CACHE_CHECK([for $LD option to reload object files],
  4077. lt_cv_ld_reload_flag,
  4078. [lt_cv_ld_reload_flag='-r'])
  4079. @@ -2898,16 +2963,29 @@
  4080. "" | " "*) ;;
  4081. *) reload_flag=" $reload_flag" ;;
  4082. esac
  4083. -reload_cmds='$CC -nostdlib -Xlinker$reload_flag $archargs -o $output$reload_objs'
  4084. -])# AC_PROG_LD_RELOAD_FLAG
  4085. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4086. +case $host_os in
  4087. + darwin*)
  4088. + if test "$GCC" = yes; then
  4089. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4090. + else
  4091. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4092. + fi
  4093. + ;;
  4094. +esac
  4095. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  4096. +_LT_DECL([], [reload_cmds], [2])dnl
  4097. +])# _LT_CMD_RELOAD
  4098. -# AC_DEPLIBS_CHECK_METHOD
  4099. -# -----------------------
  4100. +# _LT_CHECK_MAGIC_METHOD
  4101. +# ----------------------
  4102. # how to check for library dependencies
  4103. # -- PORTME fill in with the dynamic library characteristics
  4104. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  4105. -[AC_CACHE_CHECK([how to recognise dependent libraries],
  4106. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  4107. +[m4_require([_LT_DECL_EGREP])
  4108. +m4_require([_LT_DECL_OBJDUMP])
  4109. +AC_CACHE_CHECK([how to recognize dependent libraries],
  4110. lt_cv_deplibs_check_method,
  4111. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  4112. lt_cv_file_magic_test_file=
  4113. @@ -2924,7 +3002,7 @@
  4114. # whether `pass_all' will *always* work, you probably want this one.
  4115. case $host_os in
  4116. -aix4* | aix5*)
  4117. +aix[[4-9]]*)
  4118. lt_cv_deplibs_check_method=pass_all
  4119. ;;
  4120. @@ -2932,40 +3010,48 @@
  4121. lt_cv_deplibs_check_method=pass_all
  4122. ;;
  4123. -bsdi4*)
  4124. +bsdi[[45]]*)
  4125. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  4126. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4127. lt_cv_file_magic_test_file=/shlib/libc.so
  4128. ;;
  4129. -cygwin* | mingw* | pw32*)
  4130. - # win32_libid is a shell function defined in ltmain.sh
  4131. +cygwin*)
  4132. + # func_win32_libid is a shell function defined in ltmain.sh
  4133. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4134. - lt_cv_file_magic_cmd='win32_libid'
  4135. + lt_cv_file_magic_cmd='func_win32_libid'
  4136. + ;;
  4137. +
  4138. +mingw* | pw32*)
  4139. + # Base MSYS/MinGW do not provide the 'file' command needed by
  4140. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4141. + # unless we find 'file', for example because we are cross-compiling.
  4142. + if ( file / ) >/dev/null 2>&1; then
  4143. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4144. + lt_cv_file_magic_cmd='func_win32_libid'
  4145. + else
  4146. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4147. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  4148. + fi
  4149. + ;;
  4150. +
  4151. +cegcc)
  4152. + # use the weaker test based on 'objdump'. See mingw*.
  4153. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4154. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  4155. ;;
  4156. darwin* | rhapsody*)
  4157. - # this will be overwritten by pass_all, but leave it in just in case
  4158. - lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  4159. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  4160. - case "$host_os" in
  4161. - rhapsody* | darwin1.[[012]])
  4162. - lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
  4163. - ;;
  4164. - *) # Darwin 1.3 on
  4165. - lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  4166. - ;;
  4167. - esac
  4168. lt_cv_deplibs_check_method=pass_all
  4169. ;;
  4170. -freebsd*)
  4171. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4172. +freebsd* | dragonfly*)
  4173. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4174. case $host_cpu in
  4175. i*86 )
  4176. # Not sure whether the presence of OpenBSD here was a mistake.
  4177. # Let's accept both of them until this is cleared up.
  4178. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
  4179. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  4180. lt_cv_file_magic_cmd=/usr/bin/file
  4181. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4182. ;;
  4183. @@ -2981,7 +3067,7 @@
  4184. hpux10.20* | hpux11*)
  4185. lt_cv_file_magic_cmd=/usr/bin/file
  4186. - case "$host_cpu" in
  4187. + case $host_cpu in
  4188. ia64*)
  4189. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  4190. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4191. @@ -2997,41 +3083,28 @@
  4192. esac
  4193. ;;
  4194. +interix[[3-9]]*)
  4195. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4196. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  4197. + ;;
  4198. +
  4199. irix5* | irix6* | nonstopux*)
  4200. - case $host_os in
  4201. - irix5* | nonstopux*)
  4202. - # this will be overridden with pass_all, but let us keep it just in case
  4203. - lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  4204. - ;;
  4205. - *)
  4206. - case $LD in
  4207. - *-32|*"-32 ") libmagic=32-bit;;
  4208. - *-n32|*"-n32 ") libmagic=N32;;
  4209. - *-64|*"-64 ") libmagic=64-bit;;
  4210. - *) libmagic=never-match;;
  4211. - esac
  4212. - # this will be overridden with pass_all, but let us keep it just in case
  4213. - lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
  4214. - ;;
  4215. + case $LD in
  4216. + *-32|*"-32 ") libmagic=32-bit;;
  4217. + *-n32|*"-n32 ") libmagic=N32;;
  4218. + *-64|*"-64 ") libmagic=64-bit;;
  4219. + *) libmagic=never-match;;
  4220. esac
  4221. - lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  4222. lt_cv_deplibs_check_method=pass_all
  4223. ;;
  4224. # This must be Linux ELF.
  4225. -linux*)
  4226. - case $host_cpu in
  4227. - alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
  4228. - lt_cv_deplibs_check_method=pass_all ;;
  4229. - *)
  4230. - # glibc up to 2.1.1 does not perform some relocations on ARM
  4231. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
  4232. - esac
  4233. - lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  4234. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4235. + lt_cv_deplibs_check_method=pass_all
  4236. ;;
  4237. -netbsd*)
  4238. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4239. +netbsd* | netbsdelf*-gnu)
  4240. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4241. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4242. else
  4243. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  4244. @@ -3044,37 +3117,35 @@
  4245. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4246. ;;
  4247. -nto-qnx)
  4248. - lt_cv_deplibs_check_method=unknown
  4249. +*nto* | *qnx*)
  4250. + lt_cv_deplibs_check_method=pass_all
  4251. ;;
  4252. openbsd*)
  4253. - lt_cv_file_magic_cmd=/usr/bin/file
  4254. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4255. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4256. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
  4257. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4258. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  4259. else
  4260. - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  4261. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4262. fi
  4263. ;;
  4264. osf3* | osf4* | osf5*)
  4265. - # this will be overridden with pass_all, but let us keep it just in case
  4266. - lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  4267. - lt_cv_file_magic_test_file=/shlib/libc.so
  4268. lt_cv_deplibs_check_method=pass_all
  4269. ;;
  4270. -sco3.2v5*)
  4271. +rdos*)
  4272. lt_cv_deplibs_check_method=pass_all
  4273. ;;
  4274. solaris*)
  4275. lt_cv_deplibs_check_method=pass_all
  4276. - lt_cv_file_magic_test_file=/lib/libc.so
  4277. ;;
  4278. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4279. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4280. + lt_cv_deplibs_check_method=pass_all
  4281. + ;;
  4282. +
  4283. +sysv4 | sysv4.3*)
  4284. case $host_vendor in
  4285. motorola)
  4286. 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]]'
  4287. @@ -3095,10 +3166,13 @@
  4288. siemens)
  4289. lt_cv_deplibs_check_method=pass_all
  4290. ;;
  4291. + pc)
  4292. + lt_cv_deplibs_check_method=pass_all
  4293. + ;;
  4294. esac
  4295. ;;
  4296. -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
  4297. +tpf*)
  4298. lt_cv_deplibs_check_method=pass_all
  4299. ;;
  4300. esac
  4301. @@ -3106,58 +3180,106 @@
  4302. file_magic_cmd=$lt_cv_file_magic_cmd
  4303. deplibs_check_method=$lt_cv_deplibs_check_method
  4304. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4305. -])# AC_DEPLIBS_CHECK_METHOD
  4306. +_LT_DECL([], [deplibs_check_method], [1],
  4307. + [Method to check whether dependent libraries are shared objects])
  4308. +_LT_DECL([], [file_magic_cmd], [1],
  4309. + [Command to use when deplibs_check_method == "file_magic"])
  4310. +])# _LT_CHECK_MAGIC_METHOD
  4311. -# AC_PROG_NM
  4312. +
  4313. +# LT_PATH_NM
  4314. # ----------
  4315. -# find the path to a BSD-compatible name lister
  4316. -AC_DEFUN([AC_PROG_NM],
  4317. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  4318. +# find the pathname to a BSD- or MS-compatible name lister
  4319. +AC_DEFUN([LT_PATH_NM],
  4320. +[AC_REQUIRE([AC_PROG_CC])dnl
  4321. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  4322. [if test -n "$NM"; then
  4323. # Let the user override the test.
  4324. lt_cv_path_NM="$NM"
  4325. else
  4326. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4327. - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  4328. - IFS="$lt_save_ifs"
  4329. - test -z "$ac_dir" && ac_dir=.
  4330. - tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  4331. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4332. - # Check to see if the nm accepts a BSD-compat flag.
  4333. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4334. - # nm: unknown option "B" ignored
  4335. - # Tru64's nm complains that /dev/null is an invalid object file
  4336. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4337. - */dev/null* | *'Invalid file or object type'*)
  4338. - lt_cv_path_NM="$tmp_nm -B"
  4339. - break
  4340. - ;;
  4341. - *)
  4342. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4343. - */dev/null*)
  4344. - lt_cv_path_NM="$tmp_nm -p"
  4345. + lt_nm_to_check="${ac_tool_prefix}nm"
  4346. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4347. + lt_nm_to_check="$lt_nm_to_check nm"
  4348. + fi
  4349. + for lt_tmp_nm in $lt_nm_to_check; do
  4350. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4351. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4352. + IFS="$lt_save_ifs"
  4353. + test -z "$ac_dir" && ac_dir=.
  4354. + tmp_nm="$ac_dir/$lt_tmp_nm"
  4355. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4356. + # Check to see if the nm accepts a BSD-compat flag.
  4357. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4358. + # nm: unknown option "B" ignored
  4359. + # Tru64's nm complains that /dev/null is an invalid object file
  4360. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4361. + */dev/null* | *'Invalid file or object type'*)
  4362. + lt_cv_path_NM="$tmp_nm -B"
  4363. break
  4364. ;;
  4365. *)
  4366. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4367. - continue # so that we can try to find one that supports BSD flags
  4368. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4369. + */dev/null*)
  4370. + lt_cv_path_NM="$tmp_nm -p"
  4371. + break
  4372. + ;;
  4373. + *)
  4374. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4375. + continue # so that we can try to find one that supports BSD flags
  4376. + ;;
  4377. + esac
  4378. ;;
  4379. esac
  4380. - esac
  4381. - fi
  4382. + fi
  4383. + done
  4384. + IFS="$lt_save_ifs"
  4385. done
  4386. - IFS="$lt_save_ifs"
  4387. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4388. + : ${lt_cv_path_NM=no}
  4389. fi])
  4390. -NM="$lt_cv_path_NM"
  4391. -])# AC_PROG_NM
  4392. +if test "$lt_cv_path_NM" != "no"; then
  4393. + NM="$lt_cv_path_NM"
  4394. +else
  4395. + # Didn't find any BSD compatible name lister, look for dumpbin.
  4396. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  4397. + AC_SUBST([DUMPBIN])
  4398. + if test "$DUMPBIN" != ":"; then
  4399. + NM="$DUMPBIN"
  4400. + fi
  4401. +fi
  4402. +test -z "$NM" && NM=nm
  4403. +AC_SUBST([NM])
  4404. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  4405. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  4406. + [lt_cv_nm_interface="BSD nm"
  4407. + echo "int some_variable = 0;" > conftest.$ac_ext
  4408. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  4409. + (eval "$ac_compile" 2>conftest.err)
  4410. + cat conftest.err >&AS_MESSAGE_LOG_FD
  4411. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  4412. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4413. + cat conftest.err >&AS_MESSAGE_LOG_FD
  4414. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  4415. + cat conftest.out >&AS_MESSAGE_LOG_FD
  4416. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4417. + lt_cv_nm_interface="MS dumpbin"
  4418. + fi
  4419. + rm -f conftest*])
  4420. +])# LT_PATH_NM
  4421. +
  4422. +# Old names:
  4423. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  4424. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  4425. +dnl aclocal-1.4 backwards compatibility:
  4426. +dnl AC_DEFUN([AM_PROG_NM], [])
  4427. +dnl AC_DEFUN([AC_PROG_NM], [])
  4428. -# AC_CHECK_LIBM
  4429. -# -------------
  4430. +
  4431. +# LT_LIB_M
  4432. +# --------
  4433. # check for math library
  4434. -AC_DEFUN([AC_CHECK_LIBM],
  4435. +AC_DEFUN([LT_LIB_M],
  4436. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4437. LIBM=
  4438. case $host in
  4439. @@ -3172,3902 +3294,5677 @@
  4440. AC_CHECK_LIB(m, cos, LIBM="-lm")
  4441. ;;
  4442. esac
  4443. -])# AC_CHECK_LIBM
  4444. +AC_SUBST([LIBM])
  4445. +])# LT_LIB_M
  4446. -
  4447. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  4448. -# -----------------------------------
  4449. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  4450. -# LTDLINCL to the include flags for the libltdl header and adds
  4451. -# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
  4452. -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
  4453. -# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
  4454. -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
  4455. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  4456. -# flat and you're not using automake, define top_builddir and
  4457. -# top_srcdir appropriately in the Makefiles.
  4458. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  4459. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4460. - case $enable_ltdl_convenience in
  4461. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  4462. - "") enable_ltdl_convenience=yes
  4463. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  4464. - esac
  4465. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  4466. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4467. - # For backwards non-gettext consistent compatibility...
  4468. - INCLTDL="$LTDLINCL"
  4469. -])# AC_LIBLTDL_CONVENIENCE
  4470. +# Old name:
  4471. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  4472. +dnl aclocal-1.4 backwards compatibility:
  4473. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  4474. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  4475. -# -----------------------------------
  4476. -# sets LIBLTDL to the link flags for the libltdl installable library and
  4477. -# LTDLINCL to the include flags for the libltdl header and adds
  4478. -# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
  4479. -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
  4480. -# DIRECTORY is not provided and an installed libltdl is not found, it is
  4481. -# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
  4482. -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
  4483. -# quotes!). If your package is not flat and you're not using automake,
  4484. -# define top_builddir and top_srcdir appropriately in the Makefiles.
  4485. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  4486. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  4487. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4488. - AC_CHECK_LIB(ltdl, lt_dlinit,
  4489. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  4490. - [if test x"$enable_ltdl_install" = xno; then
  4491. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  4492. - else
  4493. - enable_ltdl_install=yes
  4494. - fi
  4495. - ])
  4496. - if test x"$enable_ltdl_install" = x"yes"; then
  4497. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  4498. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  4499. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4500. - else
  4501. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  4502. - LIBLTDL="-lltdl"
  4503. - LTDLINCL=
  4504. - fi
  4505. - # For backwards non-gettext consistent compatibility...
  4506. - INCLTDL="$LTDLINCL"
  4507. -])# AC_LIBLTDL_INSTALLABLE
  4508. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  4509. +# -------------------------------
  4510. +m4_defun([_LT_COMPILER_NO_RTTI],
  4511. +[m4_require([_LT_TAG_COMPILER])dnl
  4512. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  4513. -# AC_LIBTOOL_CXX
  4514. -# --------------
  4515. -# enable support for C++ libraries
  4516. -AC_DEFUN([AC_LIBTOOL_CXX],
  4517. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  4518. -])# AC_LIBTOOL_CXX
  4519. +if test "$GCC" = yes; then
  4520. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  4521. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  4522. + lt_cv_prog_compiler_rtti_exceptions,
  4523. + [-fno-rtti -fno-exceptions], [],
  4524. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  4525. +fi
  4526. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  4527. + [Compiler flag to turn off builtin functions])
  4528. +])# _LT_COMPILER_NO_RTTI
  4529. -# _LT_AC_LANG_CXX
  4530. -# ---------------
  4531. -AC_DEFUN([_LT_AC_LANG_CXX],
  4532. -[AC_REQUIRE([AC_PROG_CXX])
  4533. -AC_REQUIRE([AC_PROG_CXXCPP])
  4534. -_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`])
  4535. -])# _LT_AC_LANG_CXX
  4536. -
  4537. -
  4538. -# AC_LIBTOOL_F77
  4539. -# --------------
  4540. -# enable support for Fortran 77 libraries
  4541. -AC_DEFUN([AC_LIBTOOL_F77],
  4542. -[AC_REQUIRE([_LT_AC_LANG_F77])
  4543. -])# AC_LIBTOOL_F77
  4544. -
  4545. -
  4546. -# _LT_AC_LANG_F77
  4547. -# ---------------
  4548. -AC_DEFUN([_LT_AC_LANG_F77],
  4549. -[AC_REQUIRE([AC_PROG_F77])
  4550. -_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,F77" | sed 's/^,//'`])
  4551. -])# _LT_AC_LANG_F77
  4552. -
  4553. -
  4554. -# AC_LIBTOOL_GCJ
  4555. -# --------------
  4556. -# enable support for GCJ libraries
  4557. -AC_DEFUN([AC_LIBTOOL_GCJ],
  4558. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  4559. -])# AC_LIBTOOL_GCJ
  4560. -
  4561. -
  4562. -# _LT_AC_LANG_GCJ
  4563. -# ---------------
  4564. -AC_DEFUN([_LT_AC_LANG_GCJ],
  4565. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  4566. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  4567. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  4568. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  4569. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  4570. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  4571. -_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,GCJ" | sed 's/^,//'`])
  4572. -])# _LT_AC_LANG_GCJ
  4573. -
  4574. -
  4575. -# AC_LIBTOOL_RC
  4576. -# --------------
  4577. -# enable support for Windows resource files
  4578. -AC_DEFUN([AC_LIBTOOL_RC],
  4579. -[AC_REQUIRE([LT_AC_PROG_RC])
  4580. -_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,RC" | sed 's/^,//'`])
  4581. -])# AC_LIBTOOL_RC
  4582. -
  4583. -
  4584. -# AC_LIBTOOL_LANG_C_CONFIG
  4585. -# ------------------------
  4586. -# Ensure that the configuration vars for the C compiler are
  4587. -# suitably defined. Those variables are subsequently used by
  4588. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4589. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  4590. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  4591. -[lt_save_CC="$CC"
  4592. -AC_LANG_PUSH(C)
  4593. -
  4594. -# Source file extension for C test sources.
  4595. -ac_ext=c
  4596. -
  4597. -# Object file extension for compiled C test sources.
  4598. -objext=o
  4599. -_LT_AC_TAGVAR(objext, $1)=$objext
  4600. -
  4601. -# Code to be used in simple compile tests
  4602. -lt_simple_compile_test_code="int some_variable = 0;\n"
  4603. -
  4604. -# Code to be used in simple link tests
  4605. -lt_simple_link_test_code='int main(){return(0);}\n'
  4606. -
  4607. -_LT_AC_SYS_COMPILER
  4608. -#
  4609. -# Check for any special shared library compilation flags.
  4610. -#
  4611. -_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
  4612. -if test "$GCC" = no; then
  4613. - case $host_os in
  4614. - sco3.2v5*)
  4615. - _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
  4616. - ;;
  4617. - esac
  4618. -fi
  4619. -if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
  4620. - AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
  4621. - if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[ ]]" >/dev/null; then :
  4622. - else
  4623. - AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
  4624. - _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
  4625. - fi
  4626. -fi
  4627. +# _LT_CMD_GLOBAL_SYMBOLS
  4628. +# ----------------------
  4629. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  4630. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4631. +AC_REQUIRE([AC_PROG_CC])dnl
  4632. +AC_REQUIRE([LT_PATH_NM])dnl
  4633. +AC_REQUIRE([LT_PATH_LD])dnl
  4634. +m4_require([_LT_DECL_SED])dnl
  4635. +m4_require([_LT_DECL_EGREP])dnl
  4636. +m4_require([_LT_TAG_COMPILER])dnl
  4637. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  4638. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  4639. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  4640. +[
  4641. +# These are sane defaults that work on at least a few old systems.
  4642. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4643. -#
  4644. -# Check to make sure the static flag actually works.
  4645. -#
  4646. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
  4647. - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  4648. - $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
  4649. - [],
  4650. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  4651. +# Character class describing NM global symbol codes.
  4652. +symcode='[[BCDEGRST]]'
  4653. +# Regexp to match symbols that can be accessed directly from C.
  4654. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  4655. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  4656. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4657. -AC_LIBTOOL_PROG_CC_C_O($1)
  4658. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4659. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4660. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4661. -AC_LIBTOOL_SYS_LIB_STRIP
  4662. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4663. -AC_LIBTOOL_DLOPEN_SELF($1)
  4664. -
  4665. -# Report which librarie types wil actually be built
  4666. -AC_MSG_CHECKING([if libtool supports shared libraries])
  4667. -AC_MSG_RESULT([$can_build_shared])
  4668. -
  4669. -AC_MSG_CHECKING([whether to build shared libraries])
  4670. -test "$can_build_shared" = "no" && enable_shared=no
  4671. -
  4672. -# On AIX, shared libraries and static libraries use the same namespace, and
  4673. -# are all built from PIC.
  4674. -case "$host_os" in
  4675. -aix3*)
  4676. - test "$enable_shared" = yes && enable_static=no
  4677. - if test -n "$RANLIB"; then
  4678. - archive_cmds="$archive_cmds\${_S_}\$RANLIB \$lib"
  4679. - postinstall_cmds='$RANLIB $lib'
  4680. - fi
  4681. +# Define system-specific variables.
  4682. +case $host_os in
  4683. +aix*)
  4684. + symcode='[[BCDT]]'
  4685. ;;
  4686. -
  4687. -aix4*)
  4688. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  4689. - test "$enable_shared" = yes && enable_static=no
  4690. +cygwin* | mingw* | pw32* | cegcc*)
  4691. + symcode='[[ABCDGISTW]]'
  4692. + ;;
  4693. +hpux*)
  4694. + if test "$host_cpu" = ia64; then
  4695. + symcode='[[ABCDEGRST]]'
  4696. fi
  4697. ;;
  4698. - darwin* | rhapsody*)
  4699. - if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
  4700. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4701. - case "$host_os" in
  4702. - rhapsody* | darwin1.[[012]])
  4703. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  4704. - ;;
  4705. - darwin1.* | darwin[[2-6]].*) # Darwin 1.3 on, but less than 7.0
  4706. - test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  4707. - ;;
  4708. - *) # Darwin 7.0 on
  4709. - case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
  4710. - 10.[[012]])
  4711. - test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  4712. - ;;
  4713. - *) # 10.3 on
  4714. - if test -z ${LD_TWOLEVEL_NAMESPACE}; then
  4715. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  4716. - else
  4717. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  4718. - fi
  4719. - ;;
  4720. - esac
  4721. - ;;
  4722. - esac
  4723. - # FIXME: Relying on posixy $() will cause problems for
  4724. - # cross-compilation, but unfortunately the echo tests do not
  4725. - # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  4726. - # `"' quotes if we put them in here... so don't!
  4727. - output_verbose_link_cmd='echo'
  4728. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
  4729. - _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
  4730. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  4731. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4732. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4733. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4734. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  4735. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4736. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  4737. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4738. - fi
  4739. - ;;
  4740. +irix* | nonstopux*)
  4741. + symcode='[[BCDEGRST]]'
  4742. + ;;
  4743. +osf*)
  4744. + symcode='[[BCDEGQRST]]'
  4745. + ;;
  4746. +solaris*)
  4747. + symcode='[[BDRT]]'
  4748. + ;;
  4749. +sco3.2v5*)
  4750. + symcode='[[DT]]'
  4751. + ;;
  4752. +sysv4.2uw2*)
  4753. + symcode='[[DT]]'
  4754. + ;;
  4755. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4756. + symcode='[[ABDT]]'
  4757. + ;;
  4758. +sysv4)
  4759. + symcode='[[DFNSTU]]'
  4760. + ;;
  4761. esac
  4762. -AC_MSG_RESULT([$enable_shared])
  4763. -
  4764. -AC_MSG_CHECKING([whether to build static libraries])
  4765. -# Make sure either enable_shared or enable_static is yes.
  4766. -test "$enable_shared" = yes || enable_static=yes
  4767. -AC_MSG_RESULT([$enable_static])
  4768. -
  4769. -AC_LIBTOOL_CONFIG($1)
  4770. -
  4771. -AC_LANG_POP
  4772. -CC="$lt_save_CC"
  4773. -])# AC_LIBTOOL_LANG_C_CONFIG
  4774. +# If we're using GNU nm, then use its standard symbol codes.
  4775. +case `$NM -V 2>&1` in
  4776. +*GNU* | *'with BFD'*)
  4777. + symcode='[[ABCDGIRSTW]]' ;;
  4778. +esac
  4779. -# AC_LIBTOOL_LANG_CXX_CONFIG
  4780. -# --------------------------
  4781. -# Ensure that the configuration vars for the C compiler are
  4782. -# suitably defined. Those variables are subsequently used by
  4783. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4784. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  4785. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  4786. -[AC_LANG_PUSH(C++)
  4787. -AC_REQUIRE([AC_PROG_CXX])
  4788. -AC_REQUIRE([AC_PROG_CXXCPP])
  4789. -
  4790. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4791. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  4792. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  4793. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  4794. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  4795. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  4796. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4797. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4798. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4799. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  4800. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  4801. -_LT_AC_TAGVAR(module_cmds, $1)=
  4802. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  4803. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  4804. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  4805. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  4806. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4807. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4808. +# Transform an extracted symbol line into a proper C declaration.
  4809. +# Some systems (esp. on ia64) link data and code symbols differently,
  4810. +# so use this general approach.
  4811. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4812. -# Dependencies to place before and after the object being linked:
  4813. -_LT_AC_TAGVAR(predep_objects, $1)=
  4814. -_LT_AC_TAGVAR(postdep_objects, $1)=
  4815. -_LT_AC_TAGVAR(predeps, $1)=
  4816. -_LT_AC_TAGVAR(postdeps, $1)=
  4817. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  4818. +# Transform an extracted symbol line into symbol name and symbol address
  4819. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4820. +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'"
  4821. -# Source file extension for C++ test sources.
  4822. -ac_ext=cc
  4823. +# Handle CRLF in mingw tool chain
  4824. +opt_cr=
  4825. +case $build_os in
  4826. +mingw*)
  4827. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4828. + ;;
  4829. +esac
  4830. -# Object file extension for compiled C++ test sources.
  4831. -objext=o
  4832. -_LT_AC_TAGVAR(objext, $1)=$objext
  4833. +# Try without a prefix underscore, then with it.
  4834. +for ac_symprfx in "" "_"; do
  4835. -# Code to be used in simple compile tests
  4836. -lt_simple_compile_test_code="int some_variable = 0;\n"
  4837. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4838. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  4839. -# Code to be used in simple link tests
  4840. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  4841. + # Write the raw and C identifiers.
  4842. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4843. + # Fake it for dumpbin and say T for any non-static function
  4844. + # and D for any global variable.
  4845. + # Also find C++ and __fastcall symbols from MSVC++,
  4846. + # which start with @ or ?.
  4847. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  4848. +" {last_section=section; section=\$ 3};"\
  4849. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4850. +" \$ 0!~/External *\|/{next};"\
  4851. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4852. +" {if(hide[section]) next};"\
  4853. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4854. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4855. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4856. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4857. +" ' prfx=^$ac_symprfx]"
  4858. + else
  4859. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4860. + fi
  4861. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4862. -_LT_AC_SYS_COMPILER
  4863. + # Check to see that the pipe works correctly.
  4864. + pipe_works=no
  4865. -# Allow CC to be a program name with arguments.
  4866. -lt_save_CC=$CC
  4867. -lt_save_LD=$LD
  4868. -lt_save_GCC=$GCC
  4869. -GCC=$GXX
  4870. -lt_save_with_gnu_ld=$with_gnu_ld
  4871. -lt_save_path_LD=$lt_cv_path_LD
  4872. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  4873. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  4874. -else
  4875. - unset lt_cv_prog_gnu_ld
  4876. -fi
  4877. -if test -n "${lt_cv_path_LDCXX+set}"; then
  4878. - lt_cv_path_LD=$lt_cv_path_LDCXX
  4879. -else
  4880. - unset lt_cv_path_LD
  4881. -fi
  4882. -test -z "${LDCXX+set}" || LD=$LDCXX
  4883. -CC=${CXX-"c++"}
  4884. -compiler=$CC
  4885. -_LT_AC_TAGVAR(compiler, $1)=$CC
  4886. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  4887. + rm -f conftest*
  4888. + cat > conftest.$ac_ext <<_LT_EOF
  4889. +#ifdef __cplusplus
  4890. +extern "C" {
  4891. +#endif
  4892. +char nm_test_var;
  4893. +void nm_test_func(void);
  4894. +void nm_test_func(void){}
  4895. +#ifdef __cplusplus
  4896. +}
  4897. +#endif
  4898. +int main(){nm_test_var='a';nm_test_func();return(0);}
  4899. +_LT_EOF
  4900. -# We don't want -fno-exception wen compiling C++ code, so set the
  4901. -# no_builtin_flag separately
  4902. -if test "$GXX" = yes; then
  4903. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  4904. -else
  4905. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  4906. -fi
  4907. + if AC_TRY_EVAL(ac_compile); then
  4908. + # Now try to grab the symbols.
  4909. + nlist=conftest.nm
  4910. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  4911. + # Try sorting and uniquifying the output.
  4912. + if sort "$nlist" | uniq > "$nlist"T; then
  4913. + mv -f "$nlist"T "$nlist"
  4914. + else
  4915. + rm -f "$nlist"T
  4916. + fi
  4917. -if test "$GXX" = yes; then
  4918. - # Set up default GNU C++ configuration
  4919. + # Make sure that we snagged all the symbols we need.
  4920. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4921. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4922. + cat <<_LT_EOF > conftest.$ac_ext
  4923. +#ifdef __cplusplus
  4924. +extern "C" {
  4925. +#endif
  4926. - AC_PROG_LD
  4927. +_LT_EOF
  4928. + # Now generate the symbol file.
  4929. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  4930. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  4931. - # archiving commands below assume that GNU ld is being used.
  4932. - if test "$with_gnu_ld" = yes; then
  4933. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4934. - _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'
  4935. + cat <<_LT_EOF >> conftest.$ac_ext
  4936. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  4937. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4938. +/* The mapping between symbol names and symbols. */
  4939. +const struct {
  4940. + const char *name;
  4941. + void *address;
  4942. +}
  4943. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  4944. +{
  4945. + { "@PROGRAM@", (void *) 0 },
  4946. +_LT_EOF
  4947. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  4948. + cat <<\_LT_EOF >> conftest.$ac_ext
  4949. + {0, (void *) 0}
  4950. +};
  4951. - # If archive_cmds runs LD, not CC, wlarc should be empty
  4952. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  4953. - # investigate it a little bit more. (MM)
  4954. - wlarc='${wl}'
  4955. +/* This works around a problem in FreeBSD linker */
  4956. +#ifdef FREEBSD_WORKAROUND
  4957. +static const void *lt_preloaded_setup() {
  4958. + return lt__PROGRAM__LTX_preloaded_symbols;
  4959. +}
  4960. +#endif
  4961. - # ancient GNU ld didn't support --whole-archive et. al.
  4962. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  4963. - grep 'no-whole-archive' > /dev/null; then
  4964. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4965. +#ifdef __cplusplus
  4966. +}
  4967. +#endif
  4968. +_LT_EOF
  4969. + # Now try linking the two files.
  4970. + mv conftest.$ac_objext conftstm.$ac_objext
  4971. + lt_save_LIBS="$LIBS"
  4972. + lt_save_CFLAGS="$CFLAGS"
  4973. + LIBS="conftstm.$ac_objext"
  4974. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  4975. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  4976. + pipe_works=yes
  4977. + fi
  4978. + LIBS="$lt_save_LIBS"
  4979. + CFLAGS="$lt_save_CFLAGS"
  4980. + else
  4981. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  4982. + fi
  4983. + else
  4984. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  4985. + fi
  4986. else
  4987. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4988. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  4989. fi
  4990. else
  4991. - with_gnu_ld=no
  4992. - wlarc=
  4993. -
  4994. - # A generic and very simple default shared library creation
  4995. - # command for GNU C++ for the case where it uses the native
  4996. - # linker, instead of GNU ld. If possible, this setting should
  4997. - # overridden to take advantage of the native linker features on
  4998. - # the platform it is being used on.
  4999. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5000. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  5001. + cat conftest.$ac_ext >&5
  5002. fi
  5003. + rm -rf conftest* conftst*
  5004. - # Commands to make compiler produce verbose output that lists
  5005. - # what "hidden" libraries, object files and flags are used when
  5006. - # linking a shared library.
  5007. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5008. -
  5009. + # Do not use the global_symbol_pipe unless it works.
  5010. + if test "$pipe_works" = yes; then
  5011. + break
  5012. + else
  5013. + lt_cv_sys_global_symbol_pipe=
  5014. + fi
  5015. +done
  5016. +])
  5017. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5018. + lt_cv_sys_global_symbol_to_cdecl=
  5019. +fi
  5020. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5021. + AC_MSG_RESULT(failed)
  5022. else
  5023. - GXX=no
  5024. - with_gnu_ld=no
  5025. - wlarc=
  5026. + AC_MSG_RESULT(ok)
  5027. fi
  5028. -# PORTME: fill in a description of your system's C++ link characteristics
  5029. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5030. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5031. -case $host_os in
  5032. - aix3*)
  5033. - # FIXME: insert proper C++ library support
  5034. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5035. - ;;
  5036. - aix4* | aix5*)
  5037. - if test "$host_cpu" = ia64; then
  5038. - # On IA64, the linker does run time linking by default, so we don't
  5039. - # have to do anything special.
  5040. - aix_use_runtimelinking=no
  5041. - exp_sym_flag='-Bexport'
  5042. - no_entry_flag=""
  5043. - else
  5044. - aix_use_runtimelinking=no
  5045. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  5046. + [Take the output of nm and produce a listing of raw symbols and C names])
  5047. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  5048. + [Transform the output of nm in a proper C declaration])
  5049. +_LT_DECL([global_symbol_to_c_name_address],
  5050. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  5051. + [Transform the output of nm in a C name address pair])
  5052. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  5053. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  5054. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  5055. +]) # _LT_CMD_GLOBAL_SYMBOLS
  5056. - # Test if we are trying to use run time linking or normal
  5057. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5058. - # need to do runtime linking.
  5059. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  5060. - for ld_flag in $LDFLAGS; do
  5061. - case $ld_flag in
  5062. - *-brtl*)
  5063. - aix_use_runtimelinking=yes
  5064. - break
  5065. - ;;
  5066. - esac
  5067. - done
  5068. - esac
  5069. - exp_sym_flag='-bexport'
  5070. - no_entry_flag='-bnoentry'
  5071. - fi
  5072. +# _LT_COMPILER_PIC([TAGNAME])
  5073. +# ---------------------------
  5074. +m4_defun([_LT_COMPILER_PIC],
  5075. +[m4_require([_LT_TAG_COMPILER])dnl
  5076. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  5077. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5078. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  5079. - # When large executables or shared objects are built, AIX ld can
  5080. - # have problems creating the table of contents. If linking a library
  5081. - # or program results in "error TOC overflow" add -mminimal-toc to
  5082. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5083. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5084. -
  5085. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  5086. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5087. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  5088. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5089. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  5090. +m4_if([$1], [CXX], [
  5091. + # C++ specific cases for pic, static, wl, etc.
  5092. + if test "$GXX" = yes; then
  5093. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5094. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5095. - if test "$GXX" = yes; then
  5096. - case $host_os in aix4.[012]|aix4.[012].*)
  5097. - # We only want to do this on AIX 4.2 and lower, the check
  5098. - # below for broken collect2 doesn't work under 4.3+
  5099. - collect2name=`${CC} -print-prog-name=collect2`
  5100. - if test -f "$collect2name" && \
  5101. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  5102. - then
  5103. - # We have reworked collect2
  5104. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5105. - else
  5106. - # We have old collect2
  5107. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5108. - # It fails to find uninstalled libraries when the uninstalled
  5109. - # path is not listed in the libpath. Setting hardcode_minus_L
  5110. - # to unsupported forces relinking
  5111. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5112. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5113. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5114. - fi
  5115. - esac
  5116. - shared_flag='-shared'
  5117. - else
  5118. - # not using gcc
  5119. + case $host_os in
  5120. + aix*)
  5121. + # All AIX code is PIC.
  5122. if test "$host_cpu" = ia64; then
  5123. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5124. - # chokes on -Wl,-G. The following line is correct:
  5125. - shared_flag='-G'
  5126. - else
  5127. - if test "$aix_use_runtimelinking" = yes; then
  5128. - shared_flag='${wl}-G'
  5129. - else
  5130. - shared_flag='${wl}-bM:SRE'
  5131. - fi
  5132. + # AIX 5 now supports IA64 processor
  5133. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5134. fi
  5135. - fi
  5136. + ;;
  5137. - # It seems that -bexpall does not export symbols beginning with
  5138. - # underscore (_), so it is better to generate a list of symbols to export.
  5139. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5140. - if test "$aix_use_runtimelinking" = yes; then
  5141. - # Warning - without using the other runtime loading flags (-brtl),
  5142. - # -berok will link without error, but may produce a broken library.
  5143. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  5144. - # Determine the default libpath from the value encoded in an empty executable.
  5145. - _LT_AC_SYS_LIBPATH_AIX
  5146. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5147. + amigaos*)
  5148. + case $host_cpu in
  5149. + powerpc)
  5150. + # see comment about AmigaOS4 .so support
  5151. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5152. + ;;
  5153. + m68k)
  5154. + # FIXME: we need at least 68020 code to build shared libraries, but
  5155. + # adding the `-m68020' flag to GCC prevents building anything better,
  5156. + # like `-m68040'.
  5157. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  5158. + ;;
  5159. + esac
  5160. + ;;
  5161. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5162. - else
  5163. - if test "$host_cpu" = ia64; then
  5164. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5165. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5166. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  5167. - else
  5168. - # Determine the default libpath from the value encoded in an empty executable.
  5169. - _LT_AC_SYS_LIBPATH_AIX
  5170. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5171. - # Warning - without using the other run time loading flags,
  5172. - # -berok will link without error, but may produce a broken library.
  5173. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5174. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5175. - # -bexpall does not export symbols beginning with underscore (_)
  5176. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5177. - # Exported symbols can be pulled into shared objects from archives
  5178. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  5179. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5180. - # This is similar to how AIX traditionally builds it's shared libraries.
  5181. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  5182. - fi
  5183. - fi
  5184. - ;;
  5185. - chorus*)
  5186. - case $cc_basename in
  5187. - *)
  5188. - # FIXME: insert proper C++ library support
  5189. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5190. - ;;
  5191. - esac
  5192. - ;;
  5193. -
  5194. - cygwin* | mingw* | pw32*)
  5195. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5196. - # as there is no search path for DLLs.
  5197. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5198. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5199. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  5200. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5201. -
  5202. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  5203. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  5204. - # If the export-symbols file already is a .def file (1st line
  5205. - # is EXPORTS), use it as is; otherwise, prepend...
  5206. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5207. - cp $export_symbols $output_objdir/$soname.def;
  5208. - else
  5209. - echo EXPORTS > $output_objdir/$soname.def;
  5210. - cat $export_symbols >> $output_objdir/$soname.def;
  5211. - fi${_S_}
  5212. - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  5213. - else
  5214. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5215. - fi
  5216. - ;;
  5217. -
  5218. - darwin* | rhapsody*)
  5219. - if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
  5220. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5221. - case "$host_os" in
  5222. - rhapsody* | darwin1.[[012]])
  5223. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  5224. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5225. + # PIC is the default for these OSes.
  5226. ;;
  5227. - darwin1.* | darwin[[2-6]].*) # Darwin 1.3 on, but less than 7.0
  5228. - test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  5229. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  5230. + # This hack is so that the source file can tell whether it is being
  5231. + # built for inclusion in a dll (and should export symbols for example).
  5232. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  5233. + # (--disable-auto-import) libraries
  5234. + m4_if([$1], [GCJ], [],
  5235. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  5236. ;;
  5237. - *) # Darwin 7.0 on
  5238. - case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
  5239. - 10.[[012]])
  5240. - test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  5241. - ;;
  5242. - *) # 10.3 on
  5243. - if test -z ${LD_TWOLEVEL_NAMESPACE}; then
  5244. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  5245. - else
  5246. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  5247. - fi
  5248. - ;;
  5249. - esac
  5250. + darwin* | rhapsody*)
  5251. + # PIC is the default on this platform
  5252. + # Common symbols not allowed in MH_DYLIB files
  5253. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  5254. ;;
  5255. - esac
  5256. - lt_int_apple_cc_single_mod=no
  5257. - output_verbose_link_cmd='echo'
  5258. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  5259. - lt_int_apple_cc_single_mod=yes
  5260. - fi
  5261. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  5262. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  5263. - else
  5264. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  5265. - fi
  5266. - _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
  5267. -
  5268. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  5269. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  5270. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5271. - else
  5272. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5273. - fi
  5274. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5275. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5276. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  5277. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5278. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  5279. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5280. - fi
  5281. - ;;
  5282. -
  5283. - dgux*)
  5284. - case $cc_basename in
  5285. - ec++)
  5286. - # FIXME: insert proper C++ library support
  5287. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5288. - ;;
  5289. - ghcx)
  5290. - # Green Hills C++ Compiler
  5291. - # FIXME: insert proper C++ library support
  5292. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5293. - ;;
  5294. - *)
  5295. - # FIXME: insert proper C++ library support
  5296. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5297. - ;;
  5298. - esac
  5299. - ;;
  5300. - freebsd[12]*)
  5301. - # C++ shared libraries reported to be fairly broken before switch to ELF
  5302. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5303. - ;;
  5304. - freebsd-elf*)
  5305. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5306. - ;;
  5307. - freebsd*)
  5308. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5309. - # conventions
  5310. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5311. - ;;
  5312. - gnu*)
  5313. - ;;
  5314. - hpux9*)
  5315. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5316. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5317. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5318. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5319. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5320. - # but as the default
  5321. - # location of the library.
  5322. -
  5323. - case $cc_basename in
  5324. - CC)
  5325. - # FIXME: insert proper C++ library support
  5326. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5327. + *djgpp*)
  5328. + # DJGPP does not support shared libraries at all
  5329. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5330. ;;
  5331. - aCC)
  5332. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname${_S_}$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5333. - # Commands to make compiler produce verbose output that lists
  5334. - # what "hidden" libraries, object files and flags are used when
  5335. - # linking a shared library.
  5336. - #
  5337. - # There doesn't appear to be a way to prevent this compiler from
  5338. - # explicitly linking system object files so we need to strip them
  5339. - # from the output so that they don't get included in the library
  5340. - # dependencies.
  5341. - 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 $list'
  5342. + interix[[3-9]]*)
  5343. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5344. + # Instead, we relocate shared libraries at runtime.
  5345. ;;
  5346. - *)
  5347. - if test "$GXX" = yes; then
  5348. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname${_S_}$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5349. - else
  5350. - # FIXME: insert proper C++ library support
  5351. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5352. + sysv4*MP*)
  5353. + if test -d /usr/nec; then
  5354. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  5355. fi
  5356. ;;
  5357. - esac
  5358. - ;;
  5359. - hpux10*|hpux11*)
  5360. - if test $with_gnu_ld = no; then
  5361. - case "$host_cpu" in
  5362. + hpux*)
  5363. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  5364. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  5365. + # sets the default TLS model and affects inlining.
  5366. + case $host_cpu in
  5367. hppa*64*)
  5368. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5369. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  5370. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5371. - ;;
  5372. - ia64*)
  5373. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5374. - ;;
  5375. + ;;
  5376. *)
  5377. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5378. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5379. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5380. - ;;
  5381. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5382. + ;;
  5383. esac
  5384. - fi
  5385. - case "$host_cpu" in
  5386. - hppa*64*)
  5387. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5388. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5389. - ;;
  5390. - ia64*)
  5391. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5392. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5393. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5394. - # but as the default
  5395. - # location of the library.
  5396. + ;;
  5397. + *qnx* | *nto*)
  5398. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  5399. + # it will coredump.
  5400. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  5401. ;;
  5402. *)
  5403. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5404. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5405. - # but as the default
  5406. - # location of the library.
  5407. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5408. ;;
  5409. esac
  5410. -
  5411. - case $cc_basename in
  5412. - CC)
  5413. - # FIXME: insert proper C++ library support
  5414. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5415. + else
  5416. + case $host_os in
  5417. + aix[[4-9]]*)
  5418. + # All AIX code is PIC.
  5419. + if test "$host_cpu" = ia64; then
  5420. + # AIX 5 now supports IA64 processor
  5421. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5422. + else
  5423. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  5424. + fi
  5425. ;;
  5426. - aCC)
  5427. - case "$host_cpu" in
  5428. - hppa*64*|ia64*)
  5429. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  5430. - ;;
  5431. - *)
  5432. - _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'
  5433. + chorus*)
  5434. + case $cc_basename in
  5435. + cxch68*)
  5436. + # Green Hills C++ Compiler
  5437. + # _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"
  5438. ;;
  5439. esac
  5440. - # Commands to make compiler produce verbose output that lists
  5441. - # what "hidden" libraries, object files and flags are used when
  5442. - # linking a shared library.
  5443. - #
  5444. - # There doesn't appear to be a way to prevent this compiler from
  5445. - # explicitly linking system object files so we need to strip them
  5446. - # from the output so that they don't get included in the library
  5447. - # dependencies.
  5448. - 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'
  5449. ;;
  5450. - *)
  5451. - if test "$GXX" = yes; then
  5452. - if test $with_gnu_ld = no; then
  5453. - case "$host_cpu" in
  5454. - ia64*|hppa*64*)
  5455. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  5456. + dgux*)
  5457. + case $cc_basename in
  5458. + ec++*)
  5459. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5460. + ;;
  5461. + ghcx*)
  5462. + # Green Hills C++ Compiler
  5463. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5464. + ;;
  5465. + *)
  5466. + ;;
  5467. + esac
  5468. + ;;
  5469. + freebsd* | dragonfly*)
  5470. + # FreeBSD uses GNU C++
  5471. + ;;
  5472. + hpux9* | hpux10* | hpux11*)
  5473. + case $cc_basename in
  5474. + CC*)
  5475. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5476. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5477. + if test "$host_cpu" != ia64; then
  5478. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5479. + fi
  5480. + ;;
  5481. + aCC*)
  5482. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5483. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5484. + case $host_cpu in
  5485. + hppa*64*|ia64*)
  5486. + # +Z the default
  5487. ;;
  5488. *)
  5489. - _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'
  5490. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5491. ;;
  5492. esac
  5493. - fi
  5494. - else
  5495. - # FIXME: insert proper C++ library support
  5496. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5497. - fi
  5498. - ;;
  5499. - esac
  5500. - ;;
  5501. - irix5* | irix6*)
  5502. - case $cc_basename in
  5503. - CC)
  5504. - # SGI C++
  5505. - _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 ${objdir}/so_locations -o $lib'
  5506. -
  5507. - # Archives containing C++ object files must be created using
  5508. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5509. - # necessary to make sure instantiated templates are included
  5510. - # in the archive.
  5511. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5512. + ;;
  5513. + *)
  5514. + ;;
  5515. + esac
  5516. ;;
  5517. - *)
  5518. - if test "$GXX" = yes; then
  5519. - if test "$with_gnu_ld" = no; then
  5520. - _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}${objdir}/so_locations -o $lib'
  5521. - else
  5522. - _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'
  5523. - fi
  5524. - fi
  5525. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5526. + interix*)
  5527. + # This is c89, which is MS Visual C++ (no shared libs)
  5528. + # Anyone wants to do a port?
  5529. ;;
  5530. - esac
  5531. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5532. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5533. - ;;
  5534. - linux*)
  5535. - case $cc_basename in
  5536. - KCC)
  5537. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5538. -
  5539. - # KCC will only create a shared library if the output file
  5540. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5541. - # to its proper name (with version) after linking.
  5542. - _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'
  5543. - _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'
  5544. - # Commands to make compiler produce verbose output that lists
  5545. - # what "hidden" libraries, object files and flags are used when
  5546. - # linking a shared library.
  5547. - #
  5548. - # There doesn't appear to be a way to prevent this compiler from
  5549. - # explicitly linking system object files so we need to strip them
  5550. - # from the output so that they don't get included in the library
  5551. - # dependencies.
  5552. - 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'
  5553. -
  5554. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  5555. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5556. -
  5557. - # Archives containing C++ object files must be created using
  5558. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5559. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5560. - ;;
  5561. - icpc)
  5562. - # Intel C++
  5563. - with_gnu_ld=yes
  5564. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5565. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5566. - _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'
  5567. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5568. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5569. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5570. - ;;
  5571. - cxx)
  5572. - # Compaq C++
  5573. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5574. - _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'
  5575. -
  5576. - runpath_var=LD_RUN_PATH
  5577. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5578. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5579. -
  5580. - # Commands to make compiler produce verbose output that lists
  5581. - # what "hidden" libraries, object files and flags are used when
  5582. - # linking a shared library.
  5583. - #
  5584. - # There doesn't appear to be a way to prevent this compiler from
  5585. - # explicitly linking system object files so we need to strip them
  5586. - # from the output so that they don't get included in the library
  5587. - # dependencies.
  5588. - 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'
  5589. + irix5* | irix6* | nonstopux*)
  5590. + case $cc_basename in
  5591. + CC*)
  5592. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5593. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5594. + # CC pic flag -KPIC is the default.
  5595. + ;;
  5596. + *)
  5597. + ;;
  5598. + esac
  5599. ;;
  5600. - esac
  5601. - ;;
  5602. - lynxos*)
  5603. - # FIXME: insert proper C++ library support
  5604. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5605. - ;;
  5606. - m88k*)
  5607. - # FIXME: insert proper C++ library support
  5608. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5609. - ;;
  5610. - mvs*)
  5611. - case $cc_basename in
  5612. - cxx)
  5613. - # FIXME: insert proper C++ library support
  5614. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5615. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5616. + case $cc_basename in
  5617. + KCC*)
  5618. + # KAI C++ Compiler
  5619. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  5620. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5621. + ;;
  5622. + ecpc* )
  5623. + # old Intel C++ for x86_64 which still supported -KPIC.
  5624. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5625. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5626. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5627. + ;;
  5628. + icpc* )
  5629. + # Intel C++, used to be incompatible with GCC.
  5630. + # ICC 10 doesn't accept -KPIC any more.
  5631. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5632. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5633. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5634. + ;;
  5635. + pgCC* | pgcpp*)
  5636. + # Portland Group C++ compiler
  5637. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5638. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  5639. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5640. + ;;
  5641. + cxx*)
  5642. + # Compaq C++
  5643. + # Make sure the PIC flag is empty. It appears that all Alpha
  5644. + # Linux and Compaq Tru64 Unix objects are PIC.
  5645. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5646. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5647. + ;;
  5648. + xlc* | xlC*)
  5649. + # IBM XL 8.0 on PPC
  5650. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5651. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  5652. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  5653. + ;;
  5654. + *)
  5655. + case `$CC -V 2>&1 | sed 5q` in
  5656. + *Sun\ C*)
  5657. + # Sun C++ 5.9
  5658. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5659. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5660. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5661. + ;;
  5662. + esac
  5663. + ;;
  5664. + esac
  5665. ;;
  5666. - *)
  5667. - # FIXME: insert proper C++ library support
  5668. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5669. + lynxos*)
  5670. ;;
  5671. - esac
  5672. - ;;
  5673. - netbsd*)
  5674. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5675. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5676. - wlarc=
  5677. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5678. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5679. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5680. - fi
  5681. - # Workaround some broken pre-1.5 toolchains
  5682. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  5683. - ;;
  5684. - osf3*)
  5685. - case $cc_basename in
  5686. - KCC)
  5687. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5688. -
  5689. - # KCC will only create a shared library if the output file
  5690. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5691. - # to its proper name (with version) after linking.
  5692. - _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'
  5693. -
  5694. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5695. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5696. -
  5697. - # Archives containing C++ object files must be created using
  5698. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5699. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5700. -
  5701. - ;;
  5702. - RCC)
  5703. - # Rational C++ 2.4.1
  5704. - # FIXME: insert proper C++ library support
  5705. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5706. - ;;
  5707. - cxx)
  5708. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5709. - _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 ${objdir}/so_locations -o $lib'
  5710. -
  5711. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5712. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5713. -
  5714. - # Commands to make compiler produce verbose output that lists
  5715. - # what "hidden" libraries, object files and flags are used when
  5716. - # linking a shared library.
  5717. - #
  5718. - # There doesn't appear to be a way to prevent this compiler from
  5719. - # explicitly linking system object files so we need to strip them
  5720. - # from the output so that they don't get included in the library
  5721. - # dependencies.
  5722. - 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'
  5723. + m88k*)
  5724. ;;
  5725. - *)
  5726. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5727. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5728. - _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}${objdir}/so_locations -o $lib'
  5729. -
  5730. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5731. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5732. -
  5733. - # Commands to make compiler produce verbose output that lists
  5734. - # what "hidden" libraries, object files and flags are used when
  5735. - # linking a shared library.
  5736. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5737. -
  5738. - else
  5739. - # FIXME: insert proper C++ library support
  5740. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5741. - fi
  5742. + mvs*)
  5743. + case $cc_basename in
  5744. + cxx*)
  5745. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  5746. + ;;
  5747. + *)
  5748. + ;;
  5749. + esac
  5750. ;;
  5751. - esac
  5752. - ;;
  5753. - osf4* | osf5*)
  5754. - case $cc_basename in
  5755. - KCC)
  5756. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5757. -
  5758. - # KCC will only create a shared library if the output file
  5759. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5760. - # to its proper name (with version) after linking.
  5761. - _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'
  5762. -
  5763. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5764. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5765. -
  5766. - # Archives containing C++ object files must be created using
  5767. - # the KAI C++ compiler.
  5768. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  5769. - ;;
  5770. - RCC)
  5771. - # Rational C++ 2.4.1
  5772. - # FIXME: insert proper C++ library support
  5773. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5774. - ;;
  5775. - cxx)
  5776. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5777. - _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 ${objdir}/so_locations -o $lib'
  5778. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done${_S_}
  5779. - echo "-hidden">> $lib.exp${_S_}
  5780. - $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 $objdir/so_locations -o $lib${_S_}
  5781. - $rm $lib.exp'
  5782. -
  5783. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5784. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5785. -
  5786. - # Commands to make compiler produce verbose output that lists
  5787. - # what "hidden" libraries, object files and flags are used when
  5788. - # linking a shared library.
  5789. - #
  5790. - # There doesn't appear to be a way to prevent this compiler from
  5791. - # explicitly linking system object files so we need to strip them
  5792. - # from the output so that they don't get included in the library
  5793. - # dependencies.
  5794. - 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'
  5795. + netbsd* | netbsdelf*-gnu)
  5796. ;;
  5797. - *)
  5798. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5799. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5800. - _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}${objdir}/so_locations -o $lib'
  5801. -
  5802. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5803. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5804. -
  5805. - # Commands to make compiler produce verbose output that lists
  5806. - # what "hidden" libraries, object files and flags are used when
  5807. - # linking a shared library.
  5808. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5809. -
  5810. - else
  5811. - # FIXME: insert proper C++ library support
  5812. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5813. - fi
  5814. + *qnx* | *nto*)
  5815. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  5816. + # it will coredump.
  5817. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  5818. + ;;
  5819. + osf3* | osf4* | osf5*)
  5820. + case $cc_basename in
  5821. + KCC*)
  5822. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  5823. + ;;
  5824. + RCC*)
  5825. + # Rational C++ 2.4.1
  5826. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5827. + ;;
  5828. + cxx*)
  5829. + # Digital/Compaq C++
  5830. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5831. + # Make sure the PIC flag is empty. It appears that all Alpha
  5832. + # Linux and Compaq Tru64 Unix objects are PIC.
  5833. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5834. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5835. + ;;
  5836. + *)
  5837. + ;;
  5838. + esac
  5839. ;;
  5840. - esac
  5841. - ;;
  5842. - psos*)
  5843. - # FIXME: insert proper C++ library support
  5844. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5845. - ;;
  5846. - sco*)
  5847. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5848. - case $cc_basename in
  5849. - CC)
  5850. - # FIXME: insert proper C++ library support
  5851. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5852. + psos*)
  5853. ;;
  5854. - *)
  5855. - # FIXME: insert proper C++ library support
  5856. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5857. + solaris*)
  5858. + case $cc_basename in
  5859. + CC*)
  5860. + # Sun C++ 4.2, 5.x and Centerline C++
  5861. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5862. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5863. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5864. + ;;
  5865. + gcx*)
  5866. + # Green Hills C++ Compiler
  5867. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  5868. + ;;
  5869. + *)
  5870. + ;;
  5871. + esac
  5872. ;;
  5873. - esac
  5874. - ;;
  5875. - sunos4*)
  5876. - case $cc_basename in
  5877. - CC)
  5878. - # Sun C++ 4.x
  5879. - # FIXME: insert proper C++ library support
  5880. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5881. - ;;
  5882. - lcc)
  5883. - # Lucid
  5884. - # FIXME: insert proper C++ library support
  5885. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5886. + sunos4*)
  5887. + case $cc_basename in
  5888. + CC*)
  5889. + # Sun C++ 4.x
  5890. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5891. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5892. + ;;
  5893. + lcc*)
  5894. + # Lucid
  5895. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5896. + ;;
  5897. + *)
  5898. + ;;
  5899. + esac
  5900. ;;
  5901. - *)
  5902. - # FIXME: insert proper C++ library support
  5903. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5904. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5905. + case $cc_basename in
  5906. + CC*)
  5907. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5908. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5909. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5910. + ;;
  5911. + esac
  5912. ;;
  5913. - esac
  5914. - ;;
  5915. - solaris*)
  5916. - case $cc_basename in
  5917. - CC)
  5918. - # Sun C++ 4.2, 5.x and Centerline C++
  5919. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5920. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5921. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
  5922. - $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
  5923. -
  5924. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5925. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5926. - case $host_os in
  5927. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  5928. + tandem*)
  5929. + case $cc_basename in
  5930. + NCC*)
  5931. + # NonStop-UX NCC 3.20
  5932. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5933. + ;;
  5934. *)
  5935. - # The C++ compiler is used as linker so we must use $wl
  5936. - # flag to pass the commands to the underlying system
  5937. - # linker.
  5938. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  5939. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  5940. ;;
  5941. esac
  5942. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5943. -
  5944. - # Commands to make compiler produce verbose output that lists
  5945. - # what "hidden" libraries, object files and flags are used when
  5946. - # linking a shared library.
  5947. - #
  5948. - # There doesn't appear to be a way to prevent this compiler from
  5949. - # explicitly linking system object files so we need to strip them
  5950. - # from the output so that they don't get included in the library
  5951. - # dependencies.
  5952. - output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  5953. -
  5954. - # Archives containing C++ object files must be created using
  5955. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5956. - # necessary to make sure instantiated templates are included
  5957. - # in the archive.
  5958. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5959. - ;;
  5960. - gcx)
  5961. - # Green Hills C++ Compiler
  5962. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5963. -
  5964. - # The C++ compiler must be used to create the archive.
  5965. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  5966. - ;;
  5967. - *)
  5968. - # GNU C++ compiler with Solaris linker
  5969. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5970. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  5971. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  5972. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5973. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
  5974. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
  5975. -
  5976. - # Commands to make compiler produce verbose output that lists
  5977. - # what "hidden" libraries, object files and flags are used when
  5978. - # linking a shared library.
  5979. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  5980. - else
  5981. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  5982. - # platform.
  5983. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5984. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
  5985. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
  5986. -
  5987. - # Commands to make compiler produce verbose output that lists
  5988. - # what "hidden" libraries, object files and flags are used when
  5989. - # linking a shared library.
  5990. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  5991. - fi
  5992. -
  5993. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  5994. - fi
  5995. ;;
  5996. - esac
  5997. - ;;
  5998. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  5999. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6000. - ;;
  6001. - tandem*)
  6002. - case $cc_basename in
  6003. - NCC)
  6004. - # NonStop-UX NCC 3.20
  6005. - # FIXME: insert proper C++ library support
  6006. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6007. + vxworks*)
  6008. ;;
  6009. *)
  6010. - # FIXME: insert proper C++ library support
  6011. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6012. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  6013. ;;
  6014. esac
  6015. - ;;
  6016. - vxworks*)
  6017. - # FIXME: insert proper C++ library support
  6018. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6019. - ;;
  6020. - *)
  6021. - # FIXME: insert proper C++ library support
  6022. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6023. - ;;
  6024. -esac
  6025. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  6026. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6027. + fi
  6028. +],
  6029. +[
  6030. + if test "$GCC" = yes; then
  6031. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6032. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6033. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  6034. -_LT_AC_TAGVAR(LD, $1)="$LD"
  6035. + case $host_os in
  6036. + aix*)
  6037. + # All AIX code is PIC.
  6038. + if test "$host_cpu" = ia64; then
  6039. + # AIX 5 now supports IA64 processor
  6040. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6041. + fi
  6042. + ;;
  6043. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  6044. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6045. -AC_LIBTOOL_PROG_CC_C_O($1)
  6046. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6047. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6048. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6049. -AC_LIBTOOL_SYS_LIB_STRIP
  6050. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6051. -AC_LIBTOOL_DLOPEN_SELF($1)
  6052. + amigaos*)
  6053. + case $host_cpu in
  6054. + powerpc)
  6055. + # see comment about AmigaOS4 .so support
  6056. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6057. + ;;
  6058. + m68k)
  6059. + # FIXME: we need at least 68020 code to build shared libraries, but
  6060. + # adding the `-m68020' flag to GCC prevents building anything better,
  6061. + # like `-m68040'.
  6062. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  6063. + ;;
  6064. + esac
  6065. + ;;
  6066. -AC_LIBTOOL_CONFIG($1)
  6067. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6068. + # PIC is the default for these OSes.
  6069. + ;;
  6070. -AC_LANG_POP
  6071. -CC=$lt_save_CC
  6072. -LDCXX=$LD
  6073. -LD=$lt_save_LD
  6074. -GCC=$lt_save_GCC
  6075. -with_gnu_ldcxx=$with_gnu_ld
  6076. -with_gnu_ld=$lt_save_with_gnu_ld
  6077. -lt_cv_path_LDCXX=$lt_cv_path_LD
  6078. -lt_cv_path_LD=$lt_save_path_LD
  6079. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6080. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6081. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  6082. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  6083. + # This hack is so that the source file can tell whether it is being
  6084. + # built for inclusion in a dll (and should export symbols for example).
  6085. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6086. + # (--disable-auto-import) libraries
  6087. + m4_if([$1], [GCJ], [],
  6088. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  6089. + ;;
  6090. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  6091. -# ------------------------
  6092. -# Figure out "hidden" library dependencies from verbose
  6093. -# compiler output when linking a shared library.
  6094. -# Parse the compiler output and extract the necessary
  6095. -# objects, libraries and library flags.
  6096. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  6097. -dnl we can't use the lt_simple_compile_test_code here,
  6098. -dnl because it contains code intended for an executable,
  6099. -dnl not a library. It's possible we should let each
  6100. -dnl tag define a new lt_????_link_test_code variable,
  6101. -dnl but it's only used here...
  6102. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  6103. -int a;
  6104. -void foo (void) { a = 0; }
  6105. -EOF
  6106. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  6107. -class Foo
  6108. -{
  6109. -public:
  6110. - Foo (void) { a = 0; }
  6111. -private:
  6112. - int a;
  6113. -};
  6114. -EOF
  6115. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  6116. - subroutine foo
  6117. - implicit none
  6118. - integer*4 a
  6119. - a=0
  6120. - return
  6121. - end
  6122. -EOF
  6123. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  6124. -public class foo {
  6125. - private int a;
  6126. - public void bar (void) {
  6127. - a = 0;
  6128. - }
  6129. -};
  6130. -EOF
  6131. -])
  6132. -dnl Parse the compiler output and extract the necessary
  6133. -dnl objects, libraries and library flags.
  6134. -if AC_TRY_EVAL(ac_compile); then
  6135. - # Parse the compiler output and extract the necessary
  6136. - # objects, libraries and library flags.
  6137. -
  6138. - # Sentinel used to keep track of whether or not we are before
  6139. - # the conftest object file.
  6140. - pre_test_object_deps_done=no
  6141. + darwin* | rhapsody*)
  6142. + # PIC is the default on this platform
  6143. + # Common symbols not allowed in MH_DYLIB files
  6144. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  6145. + ;;
  6146. - # The `*' in the case matches for architectures that use `case' in
  6147. - # $output_verbose_cmd can trigger glob expansion during the loop
  6148. - # eval without this substitution.
  6149. - output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  6150. + hpux*)
  6151. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6152. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6153. + # sets the default TLS model and affects inlining.
  6154. + case $host_cpu in
  6155. + hppa*64*)
  6156. + # +Z the default
  6157. + ;;
  6158. + *)
  6159. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6160. + ;;
  6161. + esac
  6162. + ;;
  6163. - for p in `eval $output_verbose_link_cmd`; do
  6164. - case $p in
  6165. + interix[[3-9]]*)
  6166. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6167. + # Instead, we relocate shared libraries at runtime.
  6168. + ;;
  6169. - -L* | -R* | -l*)
  6170. - # Some compilers place space between "-{L,R}" and the path.
  6171. - # Remove the space.
  6172. - if test $p = "-L" \
  6173. - || test $p = "-R"; then
  6174. - prev=$p
  6175. - continue
  6176. - else
  6177. - prev=
  6178. - fi
  6179. + msdosdjgpp*)
  6180. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  6181. + # on systems that don't support them.
  6182. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  6183. + enable_shared=no
  6184. + ;;
  6185. - if test "$pre_test_object_deps_done" = no; then
  6186. - case $p in
  6187. - -L* | -R*)
  6188. - # Internal compiler library paths should come after those
  6189. - # provided the user. The postdeps already come after the
  6190. - # user supplied libs so there is no need to process them.
  6191. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  6192. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6193. - else
  6194. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6195. - fi
  6196. - ;;
  6197. - # The "-l" case would never come before the object being
  6198. - # linked, so don't bother handling this case.
  6199. - esac
  6200. - else
  6201. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  6202. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  6203. - else
  6204. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  6205. - fi
  6206. - fi
  6207. - ;;
  6208. + *nto* | *qnx*)
  6209. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  6210. + # it will coredump.
  6211. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  6212. + ;;
  6213. - *.$objext)
  6214. - # This assumes that the test object file only shows up
  6215. - # once in the compiler output.
  6216. - if test "$p" = "conftest.$objext"; then
  6217. - pre_test_object_deps_done=yes
  6218. - continue
  6219. - fi
  6220. + sysv4*MP*)
  6221. + if test -d /usr/nec; then
  6222. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  6223. + fi
  6224. + ;;
  6225. - if test "$pre_test_object_deps_done" = no; then
  6226. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  6227. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  6228. - else
  6229. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  6230. - fi
  6231. - else
  6232. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  6233. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  6234. - else
  6235. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  6236. - fi
  6237. - fi
  6238. - ;;
  6239. + *)
  6240. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6241. + ;;
  6242. + esac
  6243. + else
  6244. + # PORTME Check for flag to pass linker flags through the system compiler.
  6245. + case $host_os in
  6246. + aix*)
  6247. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6248. + if test "$host_cpu" = ia64; then
  6249. + # AIX 5 now supports IA64 processor
  6250. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6251. + else
  6252. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  6253. + fi
  6254. + ;;
  6255. - *) ;; # Ignore the rest.
  6256. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  6257. + # This hack is so that the source file can tell whether it is being
  6258. + # built for inclusion in a dll (and should export symbols for example).
  6259. + m4_if([$1], [GCJ], [],
  6260. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  6261. + ;;
  6262. - esac
  6263. - done
  6264. + hpux9* | hpux10* | hpux11*)
  6265. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6266. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6267. + # not for PA HP-UX.
  6268. + case $host_cpu in
  6269. + hppa*64*|ia64*)
  6270. + # +Z the default
  6271. + ;;
  6272. + *)
  6273. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  6274. + ;;
  6275. + esac
  6276. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6277. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  6278. + ;;
  6279. - # Clean up.
  6280. - rm -f a.out a.exe
  6281. -else
  6282. - echo "libtool.m4: error: problem compiling $1 test program"
  6283. -fi
  6284. + irix5* | irix6* | nonstopux*)
  6285. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6286. + # PIC (with -KPIC) is the default.
  6287. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6288. + ;;
  6289. -$rm -f confest.$objext
  6290. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6291. + case $cc_basename in
  6292. + # old Intel for x86_64 which still supported -KPIC.
  6293. + ecc*)
  6294. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6295. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6296. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6297. + ;;
  6298. + # icc used to be incompatible with GCC.
  6299. + # ICC 10 doesn't accept -KPIC any more.
  6300. + icc* | ifort*)
  6301. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6302. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6303. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6304. + ;;
  6305. + # Lahey Fortran 8.1.
  6306. + lf95*)
  6307. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6308. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  6309. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  6310. + ;;
  6311. + pgcc* | pgf77* | pgf90* | pgf95*)
  6312. + # Portland Group compilers (*not* the Pentium gcc compiler,
  6313. + # which looks to be a dead project)
  6314. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6315. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  6316. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6317. + ;;
  6318. + ccc*)
  6319. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6320. + # All Alpha code is PIC.
  6321. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6322. + ;;
  6323. + xl*)
  6324. + # IBM XL C 8.0/Fortran 10.1 on PPC
  6325. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6326. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  6327. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  6328. + ;;
  6329. + *)
  6330. + case `$CC -V 2>&1 | sed 5q` in
  6331. + *Sun\ C*)
  6332. + # Sun C 5.9
  6333. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6334. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6335. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6336. + ;;
  6337. + *Sun\ F*)
  6338. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6339. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6340. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6341. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  6342. + ;;
  6343. + esac
  6344. + ;;
  6345. + esac
  6346. + ;;
  6347. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  6348. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6349. -esac
  6350. -])# AC_LIBTOOL_POSTDEP_PREDEP
  6351. + newsos6)
  6352. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6353. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6354. + ;;
  6355. -# AC_LIBTOOL_LANG_F77_CONFIG
  6356. -# ------------------------
  6357. -# Ensure that the configuration vars for the C compiler are
  6358. -# suitably defined. Those variables are subsequently used by
  6359. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6360. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  6361. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  6362. -[AC_REQUIRE([AC_PROG_F77])
  6363. -AC_LANG_PUSH(Fortran 77)
  6364. + *nto* | *qnx*)
  6365. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  6366. + # it will coredump.
  6367. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  6368. + ;;
  6369. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6370. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  6371. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  6372. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  6373. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  6374. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  6375. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6376. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6377. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  6378. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  6379. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  6380. -_LT_AC_TAGVAR(module_cmds, $1)=
  6381. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  6382. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  6383. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6384. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  6385. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  6386. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6387. + osf3* | osf4* | osf5*)
  6388. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6389. + # All OSF/1 code is PIC.
  6390. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6391. + ;;
  6392. -# Source file extension for f77 test sources.
  6393. -ac_ext=f
  6394. + rdos*)
  6395. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6396. + ;;
  6397. -# Object file extension for compiled f77 test sources.
  6398. -objext=o
  6399. -_LT_AC_TAGVAR(objext, $1)=$objext
  6400. + solaris*)
  6401. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6402. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6403. + case $cc_basename in
  6404. + f77* | f90* | f95*)
  6405. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  6406. + *)
  6407. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  6408. + esac
  6409. + ;;
  6410. -# Code to be used in simple compile tests
  6411. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  6412. + sunos4*)
  6413. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  6414. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  6415. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6416. + ;;
  6417. -# Code to be used in simple link tests
  6418. -lt_simple_link_test_code=" program t\n end\n"
  6419. + sysv4 | sysv4.2uw2* | sysv4.3*)
  6420. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6421. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6422. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6423. + ;;
  6424. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6425. -_LT_AC_SYS_COMPILER
  6426. + sysv4*MP*)
  6427. + if test -d /usr/nec ;then
  6428. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  6429. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6430. + fi
  6431. + ;;
  6432. -# Allow CC to be a program name with arguments.
  6433. -lt_save_CC="$CC"
  6434. -CC=${F77-"f77"}
  6435. -compiler=$CC
  6436. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6437. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  6438. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6439. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6440. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6441. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6442. + ;;
  6443. -AC_MSG_CHECKING([if libtool supports shared libraries])
  6444. -AC_MSG_RESULT([$can_build_shared])
  6445. + unicos*)
  6446. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6447. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  6448. + ;;
  6449. -AC_MSG_CHECKING([whether to build shared libraries])
  6450. -test "$can_build_shared" = "no" && enable_shared=no
  6451. + uts4*)
  6452. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6453. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6454. + ;;
  6455. -# On AIX, shared libraries and static libraries use the same namespace, and
  6456. -# are all built from PIC.
  6457. -case "$host_os" in
  6458. -aix3*)
  6459. - test "$enable_shared" = yes && enable_static=no
  6460. - if test -n "$RANLIB"; then
  6461. - archive_cmds="$archive_cmds\${_S_}\$RANLIB \$lib"
  6462. - postinstall_cmds='$RANLIB $lib'
  6463. + *)
  6464. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  6465. + ;;
  6466. + esac
  6467. fi
  6468. - ;;
  6469. -aix4*)
  6470. - test "$enable_shared" = yes && enable_static=no
  6471. - ;;
  6472. +])
  6473. +case $host_os in
  6474. + # For platforms which do not support PIC, -DPIC is meaningless:
  6475. + *djgpp*)
  6476. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6477. + ;;
  6478. + *)
  6479. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  6480. + ;;
  6481. esac
  6482. -AC_MSG_RESULT([$enable_shared])
  6483. -
  6484. -AC_MSG_CHECKING([whether to build static libraries])
  6485. -# Make sure either enable_shared or enable_static is yes.
  6486. -test "$enable_shared" = yes || enable_static=yes
  6487. -AC_MSG_RESULT([$enable_static])
  6488. -
  6489. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6490. -
  6491. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  6492. -_LT_AC_TAGVAR(LD, $1)="$LD"
  6493. -
  6494. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6495. -AC_LIBTOOL_PROG_CC_C_O($1)
  6496. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6497. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6498. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6499. -AC_LIBTOOL_SYS_LIB_STRIP
  6500. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6501. -
  6502. -AC_LIBTOOL_CONFIG($1)
  6503. -
  6504. -AC_LANG_POP
  6505. -CC="$lt_save_CC"
  6506. -])# AC_LIBTOOL_LANG_F77_CONFIG
  6507. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  6508. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  6509. + [How to pass a linker flag through the compiler])
  6510. +#
  6511. +# Check to make sure the PIC flag actually works.
  6512. +#
  6513. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  6514. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  6515. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  6516. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  6517. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  6518. + "" | " "*) ;;
  6519. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  6520. + esac],
  6521. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6522. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  6523. +fi
  6524. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  6525. + [Additional compiler flags for building library objects])
  6526. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  6527. -# --------------------------
  6528. -# Ensure that the configuration vars for the C compiler are
  6529. -# suitably defined. Those variables are subsequently used by
  6530. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6531. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  6532. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  6533. -[AC_LANG_SAVE
  6534. -
  6535. -# Source file extension for Java test sources.
  6536. -ac_ext=java
  6537. -
  6538. -# Object file extension for compiled Java test sources.
  6539. -objext=o
  6540. -_LT_AC_TAGVAR(objext, $1)=$objext
  6541. +#
  6542. +# Check to make sure the static flag actually works.
  6543. +#
  6544. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  6545. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  6546. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  6547. + $lt_tmp_static_flag,
  6548. + [],
  6549. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  6550. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  6551. + [Compiler flag to prevent dynamic linking])
  6552. +])# _LT_COMPILER_PIC
  6553. -# Code to be used in simple compile tests
  6554. -lt_simple_compile_test_code="class foo {}\n"
  6555. -# Code to be used in simple link tests
  6556. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  6557. +# _LT_LINKER_SHLIBS([TAGNAME])
  6558. +# ----------------------------
  6559. +# See if the linker supports building shared libraries.
  6560. +m4_defun([_LT_LINKER_SHLIBS],
  6561. +[AC_REQUIRE([LT_PATH_LD])dnl
  6562. +AC_REQUIRE([LT_PATH_NM])dnl
  6563. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6564. +m4_require([_LT_DECL_EGREP])dnl
  6565. +m4_require([_LT_DECL_SED])dnl
  6566. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  6567. +m4_require([_LT_TAG_COMPILER])dnl
  6568. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  6569. +m4_if([$1], [CXX], [
  6570. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6571. + case $host_os in
  6572. + aix[[4-9]]*)
  6573. + # If we're using GNU nm, then we don't want the "-C" option.
  6574. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6575. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  6576. + _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'
  6577. + else
  6578. + _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'
  6579. + fi
  6580. + ;;
  6581. + pw32*)
  6582. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  6583. + ;;
  6584. + cygwin* | mingw* | cegcc*)
  6585. + _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'
  6586. + ;;
  6587. + linux* | k*bsd*-gnu)
  6588. + _LT_TAGVAR(link_all_deplibs, $1)=no
  6589. + ;;
  6590. + *)
  6591. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6592. + ;;
  6593. + esac
  6594. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  6595. +], [
  6596. + runpath_var=
  6597. + _LT_TAGVAR(allow_undefined_flag, $1)=
  6598. + _LT_TAGVAR(always_export_symbols, $1)=no
  6599. + _LT_TAGVAR(archive_cmds, $1)=
  6600. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  6601. + _LT_TAGVAR(compiler_needs_object, $1)=no
  6602. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6603. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6604. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6605. + _LT_TAGVAR(hardcode_automatic, $1)=no
  6606. + _LT_TAGVAR(hardcode_direct, $1)=no
  6607. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6608. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6609. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6610. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6611. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  6612. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  6613. + _LT_TAGVAR(inherit_rpath, $1)=no
  6614. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6615. + _LT_TAGVAR(module_cmds, $1)=
  6616. + _LT_TAGVAR(module_expsym_cmds, $1)=
  6617. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  6618. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  6619. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  6620. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6621. + # include_expsyms should be a list of space-separated symbols to be *always*
  6622. + # included in the symbol list
  6623. + _LT_TAGVAR(include_expsyms, $1)=
  6624. + # exclude_expsyms can be an extended regexp of symbols to exclude
  6625. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6626. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6627. + # as well as any symbol that contains `d'.
  6628. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  6629. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6630. + # platforms (ab)use it in PIC code, but their linkers get confused if
  6631. + # the symbol is explicitly referenced. Since portable code cannot
  6632. + # rely on this symbol name, it's probably fine to never include it in
  6633. + # preloaded symbol tables.
  6634. + # Exclude shared library initialization/finalization symbols.
  6635. +dnl Note also adjust exclude_expsyms for C++ above.
  6636. + extract_expsyms_cmds=
  6637. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6638. -_LT_AC_SYS_COMPILER
  6639. + case $host_os in
  6640. + cygwin* | mingw* | pw32* | cegcc*)
  6641. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6642. + # When not using gcc, we currently assume that we are using
  6643. + # Microsoft Visual C++.
  6644. + if test "$GCC" != yes; then
  6645. + with_gnu_ld=no
  6646. + fi
  6647. + ;;
  6648. + interix*)
  6649. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  6650. + with_gnu_ld=yes
  6651. + ;;
  6652. + openbsd*)
  6653. + with_gnu_ld=no
  6654. + ;;
  6655. + linux* | k*bsd*-gnu)
  6656. + _LT_TAGVAR(link_all_deplibs, $1)=no
  6657. + ;;
  6658. + esac
  6659. -# Allow CC to be a program name with arguments.
  6660. -lt_save_CC="$CC"
  6661. -CC=${GCJ-"gcj"}
  6662. -compiler=$CC
  6663. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6664. + _LT_TAGVAR(ld_shlibs, $1)=yes
  6665. + if test "$with_gnu_ld" = yes; then
  6666. + # If archive_cmds runs LD, not CC, wlarc should be empty
  6667. + wlarc='${wl}'
  6668. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  6669. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6670. + # Set some defaults for GNU ld with shared library support. These
  6671. + # are reset later if shared libraries are not supported. Putting them
  6672. + # here allows them to be overridden if necessary.
  6673. + runpath_var=LD_RUN_PATH
  6674. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6675. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6676. + # ancient GNU ld didn't support --whole-archive et. al.
  6677. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  6678. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6679. + else
  6680. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6681. + fi
  6682. + supports_anon_versioning=no
  6683. + case `$LD -v 2>&1` in
  6684. + *GNU\ gold*) supports_anon_versioning=yes ;;
  6685. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  6686. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6687. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6688. + *\ 2.11.*) ;; # other 2.11 versions
  6689. + *) supports_anon_versioning=yes ;;
  6690. + esac
  6691. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  6692. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6693. -AC_LIBTOOL_PROG_CC_C_O($1)
  6694. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6695. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6696. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6697. -AC_LIBTOOL_SYS_LIB_STRIP
  6698. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6699. -AC_LIBTOOL_DLOPEN_SELF($1)
  6700. + # See if GNU ld supports shared libraries.
  6701. + case $host_os in
  6702. + aix[[3-9]]*)
  6703. + # On AIX/PPC, the GNU linker is very broken
  6704. + if test "$host_cpu" != ia64; then
  6705. + _LT_TAGVAR(ld_shlibs, $1)=no
  6706. + cat <<_LT_EOF 1>&2
  6707. -AC_LIBTOOL_CONFIG($1)
  6708. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6709. +*** to be unable to reliably create shared libraries on AIX.
  6710. +*** Therefore, libtool is disabling shared libraries support. If you
  6711. +*** really care for shared libraries, you may want to modify your PATH
  6712. +*** so that a non-GNU linker is found, and then restart.
  6713. -AC_LANG_RESTORE
  6714. -CC="$lt_save_CC"
  6715. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  6716. +_LT_EOF
  6717. + fi
  6718. + ;;
  6719. + amigaos*)
  6720. + case $host_cpu in
  6721. + powerpc)
  6722. + # see comment about AmigaOS4 .so support
  6723. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6724. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  6725. + ;;
  6726. + m68k)
  6727. + _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)'
  6728. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6729. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6730. + ;;
  6731. + esac
  6732. + ;;
  6733. -# AC_LIBTOOL_LANG_RC_CONFIG
  6734. -# --------------------------
  6735. -# Ensure that the configuration vars for the Windows resource compiler are
  6736. -# suitably defined. Those variables are subsequently used by
  6737. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6738. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  6739. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  6740. -[AC_LANG_SAVE
  6741. + beos*)
  6742. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6743. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6744. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6745. + # support --undefined. This deserves some investigation. FIXME
  6746. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6747. + else
  6748. + _LT_TAGVAR(ld_shlibs, $1)=no
  6749. + fi
  6750. + ;;
  6751. -# Source file extension for RC test sources.
  6752. -ac_ext=rc
  6753. + cygwin* | mingw* | pw32* | cegcc*)
  6754. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  6755. + # as there is no search path for DLLs.
  6756. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6757. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6758. + _LT_TAGVAR(always_export_symbols, $1)=no
  6759. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6760. + _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'
  6761. -# Object file extension for compiled RC test sources.
  6762. -objext=o
  6763. -_LT_AC_TAGVAR(objext, $1)=$objext
  6764. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6765. + _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'
  6766. + # If the export-symbols file already is a .def file (1st line
  6767. + # is EXPORTS), use it as is; otherwise, prepend...
  6768. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6769. + cp $export_symbols $output_objdir/$soname.def;
  6770. + else
  6771. + echo EXPORTS > $output_objdir/$soname.def;
  6772. + cat $export_symbols >> $output_objdir/$soname.def;
  6773. + fi~
  6774. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6775. + else
  6776. + _LT_TAGVAR(ld_shlibs, $1)=no
  6777. + fi
  6778. + ;;
  6779. -# Code to be used in simple compile tests
  6780. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  6781. + interix[[3-9]]*)
  6782. + _LT_TAGVAR(hardcode_direct, $1)=no
  6783. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6784. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6785. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6786. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6787. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  6788. + # default) and relocated if they conflict, which is a slow very memory
  6789. + # consuming and fragmenting process. To avoid this, we pick a random,
  6790. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6791. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6792. + _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'
  6793. + _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'
  6794. + ;;
  6795. +
  6796. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  6797. + tmp_diet=no
  6798. + if test "$host_os" = linux-dietlibc; then
  6799. + case $cc_basename in
  6800. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  6801. + esac
  6802. + fi
  6803. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  6804. + && test "$tmp_diet" = no
  6805. + then
  6806. + tmp_addflag=
  6807. + tmp_sharedflag='-shared'
  6808. + case $cc_basename,$host_cpu in
  6809. + pgcc*) # Portland Group C compiler
  6810. + _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'
  6811. + tmp_addflag=' $pic_flag'
  6812. + ;;
  6813. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6814. + _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'
  6815. + tmp_addflag=' $pic_flag -Mnomain' ;;
  6816. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6817. + tmp_addflag=' -i_dynamic' ;;
  6818. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6819. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  6820. + ifc* | ifort*) # Intel Fortran compiler
  6821. + tmp_addflag=' -nofor_main' ;;
  6822. + lf95*) # Lahey Fortran 8.1
  6823. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6824. + tmp_sharedflag='--shared' ;;
  6825. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  6826. + tmp_sharedflag='-qmkshrobj'
  6827. + tmp_addflag= ;;
  6828. + esac
  6829. + case `$CC -V 2>&1 | sed 5q` in
  6830. + *Sun\ C*) # Sun C 5.9
  6831. + _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'
  6832. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  6833. + tmp_sharedflag='-G' ;;
  6834. + *Sun\ F*) # Sun Fortran 8.3
  6835. + tmp_sharedflag='-G' ;;
  6836. + esac
  6837. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6838. -# Code to be used in simple link tests
  6839. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  6840. + if test "x$supports_anon_versioning" = xyes; then
  6841. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  6842. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6843. + echo "local: *; };" >> $output_objdir/$libname.ver~
  6844. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6845. + fi
  6846. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6847. -_LT_AC_SYS_COMPILER
  6848. + case $cc_basename in
  6849. + xlf*)
  6850. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  6851. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  6852. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6853. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  6854. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  6855. + if test "x$supports_anon_versioning" = xyes; then
  6856. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  6857. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6858. + echo "local: *; };" >> $output_objdir/$libname.ver~
  6859. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  6860. + fi
  6861. + ;;
  6862. + esac
  6863. + else
  6864. + _LT_TAGVAR(ld_shlibs, $1)=no
  6865. + fi
  6866. + ;;
  6867. -# Allow CC to be a program name with arguments.
  6868. -lt_save_CC="$CC"
  6869. -CC=${RC-"windres"}
  6870. -compiler=$CC
  6871. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6872. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6873. + netbsd* | netbsdelf*-gnu)
  6874. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6875. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6876. + wlarc=
  6877. + else
  6878. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6879. + _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'
  6880. + fi
  6881. + ;;
  6882. -AC_LIBTOOL_CONFIG($1)
  6883. + solaris*)
  6884. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  6885. + _LT_TAGVAR(ld_shlibs, $1)=no
  6886. + cat <<_LT_EOF 1>&2
  6887. -AC_LANG_RESTORE
  6888. -CC="$lt_save_CC"
  6889. -])# AC_LIBTOOL_LANG_RC_CONFIG
  6890. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6891. +*** create shared libraries on Solaris systems. Therefore, libtool
  6892. +*** is disabling shared libraries support. We urge you to upgrade GNU
  6893. +*** binutils to release 2.9.1 or newer. Another option is to modify
  6894. +*** your PATH or compiler configuration so that the native linker is
  6895. +*** used, and then restart.
  6896. +
  6897. +_LT_EOF
  6898. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6899. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6900. + _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'
  6901. + else
  6902. + _LT_TAGVAR(ld_shlibs, $1)=no
  6903. + fi
  6904. + ;;
  6905. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6906. + case `$LD -v 2>&1` in
  6907. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  6908. + _LT_TAGVAR(ld_shlibs, $1)=no
  6909. + cat <<_LT_EOF 1>&2
  6910. -# AC_LIBTOOL_CONFIG([TAGNAME])
  6911. -# ----------------------------
  6912. -# If TAGNAME is not passed, then create an initial libtool script
  6913. -# with a default configuration from the untagged config vars. Otherwise
  6914. -# add code to config.status for appending the configuration named by
  6915. -# TAGNAME from the matching tagged config vars.
  6916. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  6917. -[# The else clause should only fire when bootstrapping the
  6918. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  6919. -# with your package, and you will get complaints that there are
  6920. -# no rules to generate ltmain.sh.
  6921. -if test -f "$ltmain"; then
  6922. - # See if we are running on zsh, and set the options which allow our commands through
  6923. - # without removal of \ escapes.
  6924. - if test -n "${ZSH_VERSION+set}" ; then
  6925. - setopt NO_GLOB_SUBST
  6926. - fi
  6927. - # Now quote all the things that may contain metacharacters while being
  6928. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  6929. - # variables and quote the copies for generation of the libtool script.
  6930. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
  6931. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  6932. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  6933. - deplibs_check_method reload_flag reload_cmds need_locks \
  6934. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  6935. - lt_cv_sys_global_symbol_to_c_name_address \
  6936. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  6937. - old_postinstall_cmds old_postuninstall_cmds \
  6938. - _LT_AC_TAGVAR(compiler, $1) \
  6939. - _LT_AC_TAGVAR(CC, $1) \
  6940. - _LT_AC_TAGVAR(LD, $1) \
  6941. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  6942. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  6943. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  6944. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  6945. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  6946. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  6947. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  6948. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  6949. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  6950. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  6951. - _LT_AC_TAGVAR(predep_objects, $1) \
  6952. - _LT_AC_TAGVAR(postdep_objects, $1) \
  6953. - _LT_AC_TAGVAR(predeps, $1) \
  6954. - _LT_AC_TAGVAR(postdeps, $1) \
  6955. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  6956. - _LT_AC_TAGVAR(archive_cmds, $1) \
  6957. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  6958. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  6959. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  6960. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  6961. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  6962. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  6963. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  6964. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  6965. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  6966. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  6967. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  6968. - _LT_AC_TAGVAR(module_cmds, $1) \
  6969. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  6970. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  6971. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  6972. - _LT_AC_TAGVAR(include_expsyms, $1); do
  6973. -
  6974. - case $var in
  6975. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  6976. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  6977. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  6978. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  6979. - _LT_AC_TAGVAR(module_cmds, $1) | \
  6980. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  6981. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  6982. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  6983. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  6984. - postinstall_cmds | postuninstall_cmds | \
  6985. - old_postinstall_cmds | old_postuninstall_cmds | \
  6986. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  6987. - # Double-quote double-evaled strings.
  6988. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
  6989. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6990. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  6991. +*** is disabling shared libraries support. We urge you to upgrade GNU
  6992. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6993. +*** your PATH or compiler configuration so that the native linker is
  6994. +*** used, and then restart.
  6995. +
  6996. +_LT_EOF
  6997. + ;;
  6998. + *)
  6999. + # For security reasons, it is highly recommended that you always
  7000. + # use absolute paths for naming shared libraries, and exclude the
  7001. + # DT_RUNPATH tag from executables and libraries. But doing so
  7002. + # requires that you compile everything twice, which is a pain.
  7003. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7004. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7005. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7006. + _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'
  7007. + else
  7008. + _LT_TAGVAR(ld_shlibs, $1)=no
  7009. + fi
  7010. + ;;
  7011. + esac
  7012. + ;;
  7013. +
  7014. + sunos4*)
  7015. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7016. + wlarc=
  7017. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7018. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7019. ;;
  7020. +
  7021. *)
  7022. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  7023. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7024. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7025. + _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'
  7026. + else
  7027. + _LT_TAGVAR(ld_shlibs, $1)=no
  7028. + fi
  7029. ;;
  7030. esac
  7031. - done
  7032. - case $lt_echo in
  7033. - *'\[$]0 --fallback-echo"')
  7034. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  7035. - ;;
  7036. - esac
  7037. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  7038. + runpath_var=
  7039. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7040. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7041. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7042. + fi
  7043. + else
  7044. + # PORTME fill in a description of your system's linker (not GNU ld)
  7045. + case $host_os in
  7046. + aix3*)
  7047. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7048. + _LT_TAGVAR(always_export_symbols, $1)=yes
  7049. + _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'
  7050. + # Note: this linker hardcodes the directories in LIBPATH if there
  7051. + # are no directories specified by -L.
  7052. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7053. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7054. + # Neither direct hardcoding nor static linking is supported with a
  7055. + # broken collect2.
  7056. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  7057. + fi
  7058. + ;;
  7059. -ifelse([$1], [],
  7060. - [cfgfile="${ofile}T"
  7061. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  7062. - $rm -f "$cfgfile"
  7063. - AC_MSG_NOTICE([creating $ofile])],
  7064. - [cfgfile="$ofile"])
  7065. + aix[[4-9]]*)
  7066. + if test "$host_cpu" = ia64; then
  7067. + # On IA64, the linker does run time linking by default, so we don't
  7068. + # have to do anything special.
  7069. + aix_use_runtimelinking=no
  7070. + exp_sym_flag='-Bexport'
  7071. + no_entry_flag=""
  7072. + else
  7073. + # If we're using GNU nm, then we don't want the "-C" option.
  7074. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7075. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7076. + _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'
  7077. + else
  7078. + _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'
  7079. + fi
  7080. + aix_use_runtimelinking=no
  7081. - cat <<__EOF__ >> "$cfgfile"
  7082. -ifelse([$1], [],
  7083. -[#! $SHELL
  7084. + # Test if we are trying to use run time linking or normal
  7085. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7086. + # need to do runtime linking.
  7087. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  7088. + for ld_flag in $LDFLAGS; do
  7089. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7090. + aix_use_runtimelinking=yes
  7091. + break
  7092. + fi
  7093. + done
  7094. + ;;
  7095. + esac
  7096. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  7097. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  7098. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  7099. -#
  7100. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  7101. -# Free Software Foundation, Inc.
  7102. -#
  7103. -# This file is part of GNU Libtool:
  7104. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  7105. -#
  7106. -# This program is free software; you can redistribute it and/or modify
  7107. -# it under the terms of the GNU General Public License as published by
  7108. -# the Free Software Foundation; either version 2 of the License, or
  7109. -# (at your option) any later version.
  7110. -#
  7111. -# This program is distributed in the hope that it will be useful, but
  7112. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  7113. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  7114. -# General Public License for more details.
  7115. -#
  7116. -# You should have received a copy of the GNU General Public License
  7117. -# along with this program; if not, write to the Free Software
  7118. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  7119. -#
  7120. -# As a special exception to the GNU General Public License, if you
  7121. -# distribute this file as part of a program that contains a
  7122. -# configuration script generated by Autoconf, you may include it under
  7123. -# the same distribution terms that you use for the rest of that program.
  7124. + exp_sym_flag='-bexport'
  7125. + no_entry_flag='-bnoentry'
  7126. + fi
  7127. -# A sed program that does not truncate output.
  7128. -SED=$lt_SED
  7129. + # When large executables or shared objects are built, AIX ld can
  7130. + # have problems creating the table of contents. If linking a library
  7131. + # or program results in "error TOC overflow" add -mminimal-toc to
  7132. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7133. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7134. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  7135. -Xsed="$SED -e s/^X//"
  7136. + _LT_TAGVAR(archive_cmds, $1)=''
  7137. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7138. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7139. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  7140. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7141. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  7142. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  7143. -# if CDPATH is set.
  7144. -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  7145. + if test "$GCC" = yes; then
  7146. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  7147. + # We only want to do this on AIX 4.2 and lower, the check
  7148. + # below for broken collect2 doesn't work under 4.3+
  7149. + collect2name=`${CC} -print-prog-name=collect2`
  7150. + if test -f "$collect2name" &&
  7151. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7152. + then
  7153. + # We have reworked collect2
  7154. + :
  7155. + else
  7156. + # We have old collect2
  7157. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  7158. + # It fails to find uninstalled libraries when the uninstalled
  7159. + # path is not listed in the libpath. Setting hardcode_minus_L
  7160. + # to unsupported forces relinking
  7161. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7162. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7163. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7164. + fi
  7165. + ;;
  7166. + esac
  7167. + shared_flag='-shared'
  7168. + if test "$aix_use_runtimelinking" = yes; then
  7169. + shared_flag="$shared_flag "'${wl}-G'
  7170. + fi
  7171. + _LT_TAGVAR(link_all_deplibs, $1)=no
  7172. + else
  7173. + # not using gcc
  7174. + if test "$host_cpu" = ia64; then
  7175. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7176. + # chokes on -Wl,-G. The following line is correct:
  7177. + shared_flag='-G'
  7178. + else
  7179. + if test "$aix_use_runtimelinking" = yes; then
  7180. + shared_flag='${wl}-G'
  7181. + else
  7182. + shared_flag='${wl}-bM:SRE'
  7183. + fi
  7184. + fi
  7185. + fi
  7186. -# The names of the tagged configurations supported by this script.
  7187. -available_tags=
  7188. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  7189. + # It seems that -bexpall does not export symbols beginning with
  7190. + # underscore (_), so it is better to generate a list of symbols to export.
  7191. + _LT_TAGVAR(always_export_symbols, $1)=yes
  7192. + if test "$aix_use_runtimelinking" = yes; then
  7193. + # Warning - without using the other runtime loading flags (-brtl),
  7194. + # -berok will link without error, but may produce a broken library.
  7195. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  7196. + # Determine the default libpath from the value encoded in an
  7197. + # empty executable.
  7198. + _LT_SYS_MODULE_PATH_AIX
  7199. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7200. + _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"
  7201. + else
  7202. + if test "$host_cpu" = ia64; then
  7203. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  7204. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  7205. + _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"
  7206. + else
  7207. + # Determine the default libpath from the value encoded in an
  7208. + # empty executable.
  7209. + _LT_SYS_MODULE_PATH_AIX
  7210. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7211. + # Warning - without using the other run time loading flags,
  7212. + # -berok will link without error, but may produce a broken library.
  7213. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  7214. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  7215. + # Exported symbols can be pulled into shared objects from archives
  7216. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  7217. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  7218. + # This is similar to how AIX traditionally builds its shared libraries.
  7219. + _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'
  7220. + fi
  7221. + fi
  7222. + ;;
  7223. -# ### BEGIN LIBTOOL CONFIG],
  7224. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  7225. + amigaos*)
  7226. + case $host_cpu in
  7227. + powerpc)
  7228. + # see comment about AmigaOS4 .so support
  7229. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7230. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  7231. + ;;
  7232. + m68k)
  7233. + _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)'
  7234. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7235. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7236. + ;;
  7237. + esac
  7238. + ;;
  7239. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  7240. + bsdi[[45]]*)
  7241. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  7242. + ;;
  7243. -# Set the command separator (default: ~)
  7244. -_S_=\${LIBTOOL_CMD_SEP-\~}
  7245. + cygwin* | mingw* | pw32* | cegcc*)
  7246. + # When not using gcc, we currently assume that we are using
  7247. + # Microsoft Visual C++.
  7248. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  7249. + # no search path for DLLs.
  7250. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  7251. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7252. + # Tell ltmain to make .lib files, not .a files.
  7253. + libext=lib
  7254. + # Tell ltmain to make .dll files, not .so files.
  7255. + shrext_cmds=".dll"
  7256. + # FIXME: Setting linknames here is a bad hack.
  7257. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7258. + # The linker will automatically build a .lib file if we build a DLL.
  7259. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  7260. + # FIXME: Should let the user specify the lib program.
  7261. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7262. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  7263. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  7264. + ;;
  7265. -# Shell to use when invoking shell scripts.
  7266. -SHELL=$lt_SHELL
  7267. + darwin* | rhapsody*)
  7268. + _LT_DARWIN_LINKER_FEATURES($1)
  7269. + ;;
  7270. -# Whether or not to build shared libraries.
  7271. -build_libtool_libs=$enable_shared
  7272. + dgux*)
  7273. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7274. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7275. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7276. + ;;
  7277. -# Whether or not to build static libraries.
  7278. -build_old_libs=$enable_static
  7279. + freebsd1*)
  7280. + _LT_TAGVAR(ld_shlibs, $1)=no
  7281. + ;;
  7282. -# Whether or not to add -lc for building shared libraries.
  7283. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  7284. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7285. + # support. Future versions do this automatically, but an explicit c++rt0.o
  7286. + # does not break anything, and helps significantly (at the cost of a little
  7287. + # extra space).
  7288. + freebsd2.2*)
  7289. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7290. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7291. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7292. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7293. + ;;
  7294. -# Whether or not to disallow shared libs when runtime libs are static
  7295. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  7296. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7297. + freebsd2*)
  7298. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7299. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7300. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7301. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7302. + ;;
  7303. -# Whether or not to optimize for fast installation.
  7304. -fast_install=$enable_fast_install
  7305. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7306. + freebsd* | dragonfly*)
  7307. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7308. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7309. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7310. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7311. + ;;
  7312. -# The host system.
  7313. -host_alias=$host_alias
  7314. -host=$host
  7315. + hpux9*)
  7316. + if test "$GCC" = yes; then
  7317. + _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'
  7318. + else
  7319. + _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'
  7320. + fi
  7321. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7322. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7323. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7324. -# An echo program that does not interpret backslashes.
  7325. -echo=$lt_echo
  7326. + # hardcode_minus_L: Not really in the search PATH,
  7327. + # but as the default location of the library.
  7328. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7329. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7330. + ;;
  7331. -# The archiver.
  7332. -AR=$lt_AR
  7333. -AR_FLAGS=$lt_AR_FLAGS
  7334. + hpux10*)
  7335. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7336. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7337. + else
  7338. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7339. + fi
  7340. + if test "$with_gnu_ld" = no; then
  7341. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7342. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  7343. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7344. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7345. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7346. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7347. + # hardcode_minus_L: Not really in the search PATH,
  7348. + # but as the default location of the library.
  7349. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7350. + fi
  7351. + ;;
  7352. -# A C compiler.
  7353. -LTCC=$lt_LTCC
  7354. + hpux11*)
  7355. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7356. + case $host_cpu in
  7357. + hppa*64*)
  7358. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7359. + ;;
  7360. + ia64*)
  7361. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7362. + ;;
  7363. + *)
  7364. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7365. + ;;
  7366. + esac
  7367. + else
  7368. + case $host_cpu in
  7369. + hppa*64*)
  7370. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7371. + ;;
  7372. + ia64*)
  7373. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7374. + ;;
  7375. + *)
  7376. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7377. + ;;
  7378. + esac
  7379. + fi
  7380. + if test "$with_gnu_ld" = no; then
  7381. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7382. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7383. -# A language-specific compiler.
  7384. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  7385. + case $host_cpu in
  7386. + hppa*64*|ia64*)
  7387. + _LT_TAGVAR(hardcode_direct, $1)=no
  7388. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7389. + ;;
  7390. + *)
  7391. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7392. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7393. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7394. -# Is the compiler the GNU C compiler?
  7395. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  7396. + # hardcode_minus_L: Not really in the search PATH,
  7397. + # but as the default location of the library.
  7398. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7399. + ;;
  7400. + esac
  7401. + fi
  7402. + ;;
  7403. -# An ERE matcher.
  7404. -EGREP=$lt_EGREP
  7405. + irix5* | irix6* | nonstopux*)
  7406. + if test "$GCC" = yes; then
  7407. + _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'
  7408. + # Try to use the -exported_symbol ld option, if it does not
  7409. + # work, assume that -exports_file does not work either and
  7410. + # implicitly export all symbols.
  7411. + save_LDFLAGS="$LDFLAGS"
  7412. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7413. + AC_LINK_IFELSE(int foo(void) {},
  7414. + _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'
  7415. + )
  7416. + LDFLAGS="$save_LDFLAGS"
  7417. + else
  7418. + _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'
  7419. + _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'
  7420. + fi
  7421. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  7422. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7423. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7424. + _LT_TAGVAR(inherit_rpath, $1)=yes
  7425. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7426. + ;;
  7427. -# The linker used to build libraries.
  7428. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  7429. + netbsd* | netbsdelf*-gnu)
  7430. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7431. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7432. + else
  7433. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7434. + fi
  7435. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7436. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7437. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7438. + ;;
  7439. -# Whether we need hard or soft links.
  7440. -LN_S=$lt_LN_S
  7441. + newsos6)
  7442. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7443. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7444. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7445. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7446. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7447. + ;;
  7448. -# A BSD-compatible nm program.
  7449. -NM=$lt_NM
  7450. + *nto* | *qnx*)
  7451. + ;;
  7452. -# A symbol stripping program
  7453. -STRIP=$STRIP
  7454. + openbsd*)
  7455. + if test -f /usr/libexec/ld.so; then
  7456. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7457. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7458. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7459. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7460. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7461. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7462. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7463. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7464. + else
  7465. + case $host_os in
  7466. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  7467. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7468. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7469. + ;;
  7470. + *)
  7471. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7472. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7473. + ;;
  7474. + esac
  7475. + fi
  7476. + else
  7477. + _LT_TAGVAR(ld_shlibs, $1)=no
  7478. + fi
  7479. + ;;
  7480. -# Used to examine libraries when file_magic_cmd begins "file"
  7481. -MAGIC_CMD=$MAGIC_CMD
  7482. + os2*)
  7483. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7484. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7485. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7486. + _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'
  7487. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7488. + ;;
  7489. -# Used on cygwin: DLL creation program.
  7490. -DLLTOOL="$DLLTOOL"
  7491. + osf3*)
  7492. + if test "$GCC" = yes; then
  7493. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7494. + _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'
  7495. + else
  7496. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  7497. + _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'
  7498. + fi
  7499. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  7500. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7501. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7502. + ;;
  7503. -# Used on cygwin: object dumper.
  7504. -OBJDUMP="$OBJDUMP"
  7505. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  7506. + if test "$GCC" = yes; then
  7507. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7508. + _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'
  7509. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7510. + else
  7511. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  7512. + _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'
  7513. + _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~
  7514. + $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'
  7515. -# Used on cygwin: assembler.
  7516. -AS="$AS"
  7517. + # Both c and cxx compiler support -rpath directly
  7518. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7519. + fi
  7520. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  7521. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7522. + ;;
  7523. -# The name of the directory that contains temporary libtool files.
  7524. -objdir=$objdir
  7525. + solaris*)
  7526. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  7527. + if test "$GCC" = yes; then
  7528. + wlarc='${wl}'
  7529. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7530. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7531. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7532. + else
  7533. + case `$CC -V 2>&1` in
  7534. + *"Compilers 5.0"*)
  7535. + wlarc=''
  7536. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7537. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7538. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7539. + ;;
  7540. + *)
  7541. + wlarc='${wl}'
  7542. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7543. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7544. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7545. + ;;
  7546. + esac
  7547. + fi
  7548. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7549. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7550. + case $host_os in
  7551. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  7552. + *)
  7553. + # The compiler driver will combine and reorder linker options,
  7554. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  7555. + # but is careful enough not to reorder.
  7556. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  7557. + if test "$GCC" = yes; then
  7558. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7559. + else
  7560. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  7561. + fi
  7562. + ;;
  7563. + esac
  7564. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7565. + ;;
  7566. -# How to create reloadable object files.
  7567. -reload_flag=$lt_reload_flag
  7568. -reload_cmds=$lt_reload_cmds
  7569. + sunos4*)
  7570. + if test "x$host_vendor" = xsequent; then
  7571. + # Use $CC to link under sequent, because it throws in some extra .o
  7572. + # files that make .init and .fini sections work.
  7573. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7574. + else
  7575. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7576. + fi
  7577. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7578. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7579. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7580. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7581. + ;;
  7582. -# How to pass a linker flag through the compiler.
  7583. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  7584. + sysv4)
  7585. + case $host_vendor in
  7586. + sni)
  7587. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7588. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  7589. + ;;
  7590. + siemens)
  7591. + ## LD is ld it makes a PLAMLIB
  7592. + ## CC just makes a GrossModule.
  7593. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7594. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  7595. + _LT_TAGVAR(hardcode_direct, $1)=no
  7596. + ;;
  7597. + motorola)
  7598. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7599. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  7600. + ;;
  7601. + esac
  7602. + runpath_var='LD_RUN_PATH'
  7603. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7604. + ;;
  7605. -# Object file suffix (normally "o").
  7606. -objext="$ac_objext"
  7607. + sysv4.3*)
  7608. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7609. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7610. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  7611. + ;;
  7612. -# Old archive suffix (normally "a").
  7613. -libext="$libext"
  7614. + sysv4*MP*)
  7615. + if test -d /usr/nec; then
  7616. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7617. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7618. + runpath_var=LD_RUN_PATH
  7619. + hardcode_runpath_var=yes
  7620. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7621. + fi
  7622. + ;;
  7623. -# Shared library suffix (normally ".so").
  7624. -shrext='$shrext'
  7625. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  7626. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7627. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7628. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7629. + runpath_var='LD_RUN_PATH'
  7630. -# Executable file suffix (normally "").
  7631. -exeext="$exeext"
  7632. + if test "$GCC" = yes; then
  7633. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7634. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7635. + else
  7636. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7637. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7638. + fi
  7639. + ;;
  7640. -# Additional compiler flags for building library objects.
  7641. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  7642. -pic_mode=$pic_mode
  7643. + sysv5* | sco3.2v5* | sco5v6*)
  7644. + # Note: We can NOT use -z defs as we might desire, because we do not
  7645. + # link with -lc, and that would cause any symbols used from libc to
  7646. + # always be unresolved, which means just about no library would
  7647. + # ever link correctly. If we're not using GNU ld we use -z text
  7648. + # though, which does catch some bad symbols but isn't as heavy-handed
  7649. + # as -z defs.
  7650. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7651. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  7652. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7653. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7654. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  7655. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  7656. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7657. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  7658. + runpath_var='LD_RUN_PATH'
  7659. -# What is the maximum length of a command?
  7660. -max_cmd_len=$lt_cv_sys_max_cmd_len
  7661. + if test "$GCC" = yes; then
  7662. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7663. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7664. + else
  7665. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7666. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7667. + fi
  7668. + ;;
  7669. -# Does compiler simultaneously support -c and -o options?
  7670. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  7671. + uts4*)
  7672. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7673. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7674. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7675. + ;;
  7676. -# Must we lock files when doing compilation ?
  7677. -need_locks=$lt_need_locks
  7678. + *)
  7679. + _LT_TAGVAR(ld_shlibs, $1)=no
  7680. + ;;
  7681. + esac
  7682. -# Do we need the lib prefix for modules?
  7683. -need_lib_prefix=$need_lib_prefix
  7684. + if test x$host_vendor = xsni; then
  7685. + case $host in
  7686. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7687. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  7688. + ;;
  7689. + esac
  7690. + fi
  7691. + fi
  7692. +])
  7693. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  7694. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  7695. -# Do we need a version for libraries?
  7696. -need_version=$need_version
  7697. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  7698. -# Whether dlopen is supported.
  7699. -dlopen_support=$enable_dlopen
  7700. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  7701. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  7702. +_LT_DECL([], [extract_expsyms_cmds], [2],
  7703. + [The commands to extract the exported symbol list from a shared archive])
  7704. -# Whether dlopen of programs is supported.
  7705. -dlopen_self=$enable_dlopen_self
  7706. +#
  7707. +# Do we need to explicitly link libc?
  7708. +#
  7709. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  7710. +x|xyes)
  7711. + # Assume -lc should be added
  7712. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  7713. -# Whether dlopen of statically linked programs is supported.
  7714. -dlopen_self_static=$enable_dlopen_self_static
  7715. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  7716. + case $_LT_TAGVAR(archive_cmds, $1) in
  7717. + *'~'*)
  7718. + # FIXME: we may have to deal with multi-command sequences.
  7719. + ;;
  7720. + '$CC '*)
  7721. + # Test whether the compiler implicitly links with -lc since on some
  7722. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7723. + # to ld, don't add -lc before -lgcc.
  7724. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  7725. + $RM conftest*
  7726. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7727. -# Compiler flag to prevent dynamic linking.
  7728. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  7729. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  7730. + soname=conftest
  7731. + lib=conftest
  7732. + libobjs=conftest.$ac_objext
  7733. + deplibs=
  7734. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  7735. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  7736. + compiler_flags=-v
  7737. + linker_flags=-v
  7738. + verstring=
  7739. + output_objdir=.
  7740. + libname=conftest
  7741. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  7742. + _LT_TAGVAR(allow_undefined_flag, $1)=
  7743. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  7744. + then
  7745. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7746. + else
  7747. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  7748. + fi
  7749. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  7750. + else
  7751. + cat conftest.err 1>&5
  7752. + fi
  7753. + $RM conftest*
  7754. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  7755. + ;;
  7756. + esac
  7757. + fi
  7758. + ;;
  7759. +esac
  7760. -# Compiler flag to turn off builtin functions.
  7761. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  7762. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  7763. + [Whether or not to add -lc for building shared libraries])
  7764. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  7765. + [enable_shared_with_static_runtimes], [0],
  7766. + [Whether or not to disallow shared libs when runtime libs are static])
  7767. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  7768. + [Compiler flag to allow reflexive dlopens])
  7769. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  7770. + [Compiler flag to generate shared objects directly from archives])
  7771. +_LT_TAGDECL([], [compiler_needs_object], [1],
  7772. + [Whether the compiler copes with passing no objects directly])
  7773. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  7774. + [Create an old-style archive from a shared archive])
  7775. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  7776. + [Create a temporary old-style archive to link instead of a shared archive])
  7777. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  7778. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  7779. +_LT_TAGDECL([], [module_cmds], [2],
  7780. + [Commands used to build a loadable module if different from building
  7781. + a shared archive.])
  7782. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  7783. +_LT_TAGDECL([], [with_gnu_ld], [1],
  7784. + [Whether we are building with GNU ld or not])
  7785. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  7786. + [Flag that allows shared libraries with undefined symbols to be built])
  7787. +_LT_TAGDECL([], [no_undefined_flag], [1],
  7788. + [Flag that enforces no undefined symbols])
  7789. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  7790. + [Flag to hardcode $libdir into a binary during linking.
  7791. + This must work even if $libdir does not exist])
  7792. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  7793. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  7794. + during linking. This must work even if $libdir does not exist]])
  7795. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  7796. + [Whether we need a single "-rpath" flag with a separated argument])
  7797. +_LT_TAGDECL([], [hardcode_direct], [0],
  7798. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  7799. + DIR into the resulting binary])
  7800. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  7801. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  7802. + DIR into the resulting binary and the resulting library dependency is
  7803. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  7804. + library is relocated])
  7805. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  7806. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  7807. + into the resulting binary])
  7808. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  7809. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  7810. + into the resulting binary])
  7811. +_LT_TAGDECL([], [hardcode_automatic], [0],
  7812. + [Set to "yes" if building a shared library automatically hardcodes DIR
  7813. + into the library and all subsequent libraries and executables linked
  7814. + against it])
  7815. +_LT_TAGDECL([], [inherit_rpath], [0],
  7816. + [Set to yes if linker adds runtime paths of dependent libraries
  7817. + to runtime path list])
  7818. +_LT_TAGDECL([], [link_all_deplibs], [0],
  7819. + [Whether libtool must link a program against all its dependency libraries])
  7820. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  7821. + [Fix the shell variable $srcfile for the compiler])
  7822. +_LT_TAGDECL([], [always_export_symbols], [0],
  7823. + [Set to "yes" if exported symbols are required])
  7824. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  7825. + [The commands to list exported symbols])
  7826. +_LT_TAGDECL([], [exclude_expsyms], [1],
  7827. + [Symbols that should not be listed in the preloaded symbols])
  7828. +_LT_TAGDECL([], [include_expsyms], [1],
  7829. + [Symbols that must always be exported])
  7830. +_LT_TAGDECL([], [prelink_cmds], [2],
  7831. + [Commands necessary for linking programs (against libraries) with templates])
  7832. +_LT_TAGDECL([], [file_list_spec], [1],
  7833. + [Specify filename containing input files])
  7834. +dnl FIXME: Not yet implemented
  7835. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  7836. +dnl [Compiler flag to generate thread safe objects])
  7837. +])# _LT_LINKER_SHLIBS
  7838. -# Compiler flag to allow reflexive dlopens.
  7839. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  7840. -# Compiler flag to generate shared objects directly from archives.
  7841. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  7842. +# _LT_LANG_C_CONFIG([TAG])
  7843. +# ------------------------
  7844. +# Ensure that the configuration variables for a C compiler are suitably
  7845. +# defined. These variables are subsequently used by _LT_CONFIG to write
  7846. +# the compiler configuration to `libtool'.
  7847. +m4_defun([_LT_LANG_C_CONFIG],
  7848. +[m4_require([_LT_DECL_EGREP])dnl
  7849. +lt_save_CC="$CC"
  7850. +AC_LANG_PUSH(C)
  7851. -# Compiler flag to generate thread-safe objects.
  7852. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  7853. +# Source file extension for C test sources.
  7854. +ac_ext=c
  7855. -# Library versioning type.
  7856. -version_type=$version_type
  7857. +# Object file extension for compiled C test sources.
  7858. +objext=o
  7859. +_LT_TAGVAR(objext, $1)=$objext
  7860. -# Format of library name prefix.
  7861. -libname_spec=$lt_libname_spec
  7862. +# Code to be used in simple compile tests
  7863. +lt_simple_compile_test_code="int some_variable = 0;"
  7864. -# List of archive names. First name is the real one, the rest are links.
  7865. -# The last name is the one that the linker finds with -lNAME.
  7866. -library_names_spec=$lt_library_names_spec
  7867. +# Code to be used in simple link tests
  7868. +lt_simple_link_test_code='int main(){return(0);}'
  7869. -# The coded name of the library, if different from the real name.
  7870. -soname_spec=$lt_soname_spec
  7871. +_LT_TAG_COMPILER
  7872. +# Save the default compiler, since it gets overwritten when the other
  7873. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7874. +compiler_DEFAULT=$CC
  7875. +
  7876. +# save warnings/boilerplate of simple test code
  7877. +_LT_COMPILER_BOILERPLATE
  7878. +_LT_LINKER_BOILERPLATE
  7879. +
  7880. +if test -n "$compiler"; then
  7881. + _LT_COMPILER_NO_RTTI($1)
  7882. + _LT_COMPILER_PIC($1)
  7883. + _LT_COMPILER_C_O($1)
  7884. + _LT_COMPILER_FILE_LOCKS($1)
  7885. + _LT_LINKER_SHLIBS($1)
  7886. + _LT_SYS_DYNAMIC_LINKER($1)
  7887. + _LT_LINKER_HARDCODE_LIBPATH($1)
  7888. + LT_SYS_DLOPEN_SELF
  7889. + _LT_CMD_STRIPLIB
  7890. +
  7891. + # Report which library types will actually be built
  7892. + AC_MSG_CHECKING([if libtool supports shared libraries])
  7893. + AC_MSG_RESULT([$can_build_shared])
  7894. -# Commands used to build and install an old-style archive.
  7895. -RANLIB=$lt_RANLIB
  7896. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  7897. -old_postinstall_cmds=$lt_old_postinstall_cmds
  7898. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  7899. + AC_MSG_CHECKING([whether to build shared libraries])
  7900. + test "$can_build_shared" = "no" && enable_shared=no
  7901. -# Create an old-style archive from a shared archive.
  7902. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  7903. + # On AIX, shared libraries and static libraries use the same namespace, and
  7904. + # are all built from PIC.
  7905. + case $host_os in
  7906. + aix3*)
  7907. + test "$enable_shared" = yes && enable_static=no
  7908. + if test -n "$RANLIB"; then
  7909. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7910. + postinstall_cmds='$RANLIB $lib'
  7911. + fi
  7912. + ;;
  7913. -# Create a temporary old-style archive to link instead of a shared archive.
  7914. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  7915. + aix[[4-9]]*)
  7916. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  7917. + test "$enable_shared" = yes && enable_static=no
  7918. + fi
  7919. + ;;
  7920. + esac
  7921. + AC_MSG_RESULT([$enable_shared])
  7922. -# Commands used to build and install a shared archive.
  7923. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  7924. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  7925. -postinstall_cmds=$lt_postinstall_cmds
  7926. -postuninstall_cmds=$lt_postuninstall_cmds
  7927. + AC_MSG_CHECKING([whether to build static libraries])
  7928. + # Make sure either enable_shared or enable_static is yes.
  7929. + test "$enable_shared" = yes || enable_static=yes
  7930. + AC_MSG_RESULT([$enable_static])
  7931. -# Commands used to build a loadable module (assumed same as above if empty)
  7932. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  7933. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  7934. + _LT_CONFIG($1)
  7935. +fi
  7936. +AC_LANG_POP
  7937. +CC="$lt_save_CC"
  7938. +])# _LT_LANG_C_CONFIG
  7939. -# Commands to strip libraries.
  7940. -old_striplib=$lt_old_striplib
  7941. -striplib=$lt_striplib
  7942. -# Dependencies to place before the objects being linked to create a
  7943. -# shared library.
  7944. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  7945. +# _LT_PROG_CXX
  7946. +# ------------
  7947. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  7948. +# compiler, we have our own version here.
  7949. +m4_defun([_LT_PROG_CXX],
  7950. +[
  7951. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  7952. +AC_PROG_CXX
  7953. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  7954. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  7955. + (test "X$CXX" != "Xg++"))) ; then
  7956. + AC_PROG_CXXCPP
  7957. +else
  7958. + _lt_caught_CXX_error=yes
  7959. +fi
  7960. +popdef([AC_MSG_ERROR])
  7961. +])# _LT_PROG_CXX
  7962. -# Dependencies to place after the objects being linked to create a
  7963. -# shared library.
  7964. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  7965. +dnl aclocal-1.4 backwards compatibility:
  7966. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  7967. -# Dependencies to place before the objects being linked to create a
  7968. -# shared library.
  7969. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  7970. -# Dependencies to place after the objects being linked to create a
  7971. -# shared library.
  7972. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  7973. +# _LT_LANG_CXX_CONFIG([TAG])
  7974. +# --------------------------
  7975. +# Ensure that the configuration variables for a C++ compiler are suitably
  7976. +# defined. These variables are subsequently used by _LT_CONFIG to write
  7977. +# the compiler configuration to `libtool'.
  7978. +m4_defun([_LT_LANG_CXX_CONFIG],
  7979. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  7980. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  7981. +m4_require([_LT_DECL_EGREP])dnl
  7982. +
  7983. +AC_LANG_PUSH(C++)
  7984. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7985. +_LT_TAGVAR(allow_undefined_flag, $1)=
  7986. +_LT_TAGVAR(always_export_symbols, $1)=no
  7987. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  7988. +_LT_TAGVAR(compiler_needs_object, $1)=no
  7989. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7990. +_LT_TAGVAR(hardcode_direct, $1)=no
  7991. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7992. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7993. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  7994. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  7995. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  7996. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  7997. +_LT_TAGVAR(hardcode_automatic, $1)=no
  7998. +_LT_TAGVAR(inherit_rpath, $1)=no
  7999. +_LT_TAGVAR(module_cmds, $1)=
  8000. +_LT_TAGVAR(module_expsym_cmds, $1)=
  8001. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  8002. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8003. +_LT_TAGVAR(no_undefined_flag, $1)=
  8004. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  8005. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8006. -# The library search path used internally by the compiler when linking
  8007. -# a shared library.
  8008. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  8009. +# Source file extension for C++ test sources.
  8010. +ac_ext=cpp
  8011. -# Method to check whether dependent libraries are shared objects.
  8012. -deplibs_check_method=$lt_deplibs_check_method
  8013. +# Object file extension for compiled C++ test sources.
  8014. +objext=o
  8015. +_LT_TAGVAR(objext, $1)=$objext
  8016. -# Command to use when deplibs_check_method == file_magic.
  8017. -file_magic_cmd=$lt_file_magic_cmd
  8018. +# No sense in running all these tests if we already determined that
  8019. +# the CXX compiler isn't working. Some variables (like enable_shared)
  8020. +# are currently assumed to apply to all compilers on this platform,
  8021. +# and will be corrupted by setting them based on a non-working compiler.
  8022. +if test "$_lt_caught_CXX_error" != yes; then
  8023. + # Code to be used in simple compile tests
  8024. + lt_simple_compile_test_code="int some_variable = 0;"
  8025. +
  8026. + # Code to be used in simple link tests
  8027. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  8028. +
  8029. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8030. + _LT_TAG_COMPILER
  8031. +
  8032. + # save warnings/boilerplate of simple test code
  8033. + _LT_COMPILER_BOILERPLATE
  8034. + _LT_LINKER_BOILERPLATE
  8035. +
  8036. + # Allow CC to be a program name with arguments.
  8037. + lt_save_CC=$CC
  8038. + lt_save_LD=$LD
  8039. + lt_save_GCC=$GCC
  8040. + GCC=$GXX
  8041. + lt_save_with_gnu_ld=$with_gnu_ld
  8042. + lt_save_path_LD=$lt_cv_path_LD
  8043. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  8044. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  8045. + else
  8046. + $as_unset lt_cv_prog_gnu_ld
  8047. + fi
  8048. + if test -n "${lt_cv_path_LDCXX+set}"; then
  8049. + lt_cv_path_LD=$lt_cv_path_LDCXX
  8050. + else
  8051. + $as_unset lt_cv_path_LD
  8052. + fi
  8053. + test -z "${LDCXX+set}" || LD=$LDCXX
  8054. + CC=${CXX-"c++"}
  8055. + compiler=$CC
  8056. + _LT_TAGVAR(compiler, $1)=$CC
  8057. + _LT_CC_BASENAME([$compiler])
  8058. +
  8059. + if test -n "$compiler"; then
  8060. + # We don't want -fno-exception when compiling C++ code, so set the
  8061. + # no_builtin_flag separately
  8062. + if test "$GXX" = yes; then
  8063. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  8064. + else
  8065. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  8066. + fi
  8067. -# Flag that allows shared libraries with undefined symbols to be built.
  8068. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  8069. + if test "$GXX" = yes; then
  8070. + # Set up default GNU C++ configuration
  8071. -# Flag that forces no undefined symbols.
  8072. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  8073. + LT_PATH_LD
  8074. -# Commands used to finish a libtool library installation in a directory.
  8075. -finish_cmds=$lt_finish_cmds
  8076. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  8077. + # archiving commands below assume that GNU ld is being used.
  8078. + if test "$with_gnu_ld" = yes; then
  8079. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8080. + _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'
  8081. +
  8082. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8083. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  8084. +
  8085. + # If archive_cmds runs LD, not CC, wlarc should be empty
  8086. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  8087. + # investigate it a little bit more. (MM)
  8088. + wlarc='${wl}'
  8089. +
  8090. + # ancient GNU ld didn't support --whole-archive et. al.
  8091. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  8092. + $GREP 'no-whole-archive' > /dev/null; then
  8093. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8094. + else
  8095. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8096. + fi
  8097. + else
  8098. + with_gnu_ld=no
  8099. + wlarc=
  8100. -# Same as above, but a single script fragment to be evaled but not shown.
  8101. -finish_eval=$lt_finish_eval
  8102. + # A generic and very simple default shared library creation
  8103. + # command for GNU C++ for the case where it uses the native
  8104. + # linker, instead of GNU ld. If possible, this setting should
  8105. + # overridden to take advantage of the native linker features on
  8106. + # the platform it is being used on.
  8107. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  8108. + fi
  8109. -# Take the output of nm and produce a listing of raw symbols and C names.
  8110. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8111. + # Commands to make compiler produce verbose output that lists
  8112. + # what "hidden" libraries, object files and flags are used when
  8113. + # linking a shared library.
  8114. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  8115. -# Transform the output of nm in a proper C declaration
  8116. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8117. + else
  8118. + GXX=no
  8119. + with_gnu_ld=no
  8120. + wlarc=
  8121. + fi
  8122. -# Transform the output of nm in a C name address pair
  8123. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8124. + # PORTME: fill in a description of your system's C++ link characteristics
  8125. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  8126. + _LT_TAGVAR(ld_shlibs, $1)=yes
  8127. + case $host_os in
  8128. + aix3*)
  8129. + # FIXME: insert proper C++ library support
  8130. + _LT_TAGVAR(ld_shlibs, $1)=no
  8131. + ;;
  8132. + aix[[4-9]]*)
  8133. + if test "$host_cpu" = ia64; then
  8134. + # On IA64, the linker does run time linking by default, so we don't
  8135. + # have to do anything special.
  8136. + aix_use_runtimelinking=no
  8137. + exp_sym_flag='-Bexport'
  8138. + no_entry_flag=""
  8139. + else
  8140. + aix_use_runtimelinking=no
  8141. -# This is the shared library runtime path variable.
  8142. -runpath_var=$runpath_var
  8143. + # Test if we are trying to use run time linking or normal
  8144. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8145. + # need to do runtime linking.
  8146. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  8147. + for ld_flag in $LDFLAGS; do
  8148. + case $ld_flag in
  8149. + *-brtl*)
  8150. + aix_use_runtimelinking=yes
  8151. + break
  8152. + ;;
  8153. + esac
  8154. + done
  8155. + ;;
  8156. + esac
  8157. -# This is the shared library path variable.
  8158. -shlibpath_var=$shlibpath_var
  8159. + exp_sym_flag='-bexport'
  8160. + no_entry_flag='-bnoentry'
  8161. + fi
  8162. -# Is shlibpath searched before the hard-coded library search path?
  8163. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8164. + # When large executables or shared objects are built, AIX ld can
  8165. + # have problems creating the table of contents. If linking a library
  8166. + # or program results in "error TOC overflow" add -mminimal-toc to
  8167. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8168. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8169. +
  8170. + _LT_TAGVAR(archive_cmds, $1)=''
  8171. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8172. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8173. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8174. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8175. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  8176. +
  8177. + if test "$GXX" = yes; then
  8178. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  8179. + # We only want to do this on AIX 4.2 and lower, the check
  8180. + # below for broken collect2 doesn't work under 4.3+
  8181. + collect2name=`${CC} -print-prog-name=collect2`
  8182. + if test -f "$collect2name" &&
  8183. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8184. + then
  8185. + # We have reworked collect2
  8186. + :
  8187. + else
  8188. + # We have old collect2
  8189. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8190. + # It fails to find uninstalled libraries when the uninstalled
  8191. + # path is not listed in the libpath. Setting hardcode_minus_L
  8192. + # to unsupported forces relinking
  8193. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8194. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8195. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  8196. + fi
  8197. + esac
  8198. + shared_flag='-shared'
  8199. + if test "$aix_use_runtimelinking" = yes; then
  8200. + shared_flag="$shared_flag "'${wl}-G'
  8201. + fi
  8202. + else
  8203. + # not using gcc
  8204. + if test "$host_cpu" = ia64; then
  8205. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8206. + # chokes on -Wl,-G. The following line is correct:
  8207. + shared_flag='-G'
  8208. + else
  8209. + if test "$aix_use_runtimelinking" = yes; then
  8210. + shared_flag='${wl}-G'
  8211. + else
  8212. + shared_flag='${wl}-bM:SRE'
  8213. + fi
  8214. + fi
  8215. + fi
  8216. -# How to hardcode a shared library path into an executable.
  8217. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  8218. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  8219. + # It seems that -bexpall does not export symbols beginning with
  8220. + # underscore (_), so it is better to generate a list of symbols to
  8221. + # export.
  8222. + _LT_TAGVAR(always_export_symbols, $1)=yes
  8223. + if test "$aix_use_runtimelinking" = yes; then
  8224. + # Warning - without using the other runtime loading flags (-brtl),
  8225. + # -berok will link without error, but may produce a broken library.
  8226. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  8227. + # Determine the default libpath from the value encoded in an empty
  8228. + # executable.
  8229. + _LT_SYS_MODULE_PATH_AIX
  8230. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8231. -# Whether we should hardcode library paths into libraries.
  8232. -hardcode_into_libs=$hardcode_into_libs
  8233. + _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"
  8234. + else
  8235. + if test "$host_cpu" = ia64; then
  8236. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  8237. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  8238. + _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"
  8239. + else
  8240. + # Determine the default libpath from the value encoded in an
  8241. + # empty executable.
  8242. + _LT_SYS_MODULE_PATH_AIX
  8243. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8244. + # Warning - without using the other run time loading flags,
  8245. + # -berok will link without error, but may produce a broken library.
  8246. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  8247. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  8248. + # Exported symbols can be pulled into shared objects from archives
  8249. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  8250. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8251. + # This is similar to how AIX traditionally builds its shared
  8252. + # libraries.
  8253. + _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'
  8254. + fi
  8255. + fi
  8256. + ;;
  8257. -# Flag to hardcode \$libdir into a binary during linking.
  8258. -# This must work even if \$libdir does not exist.
  8259. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  8260. + beos*)
  8261. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8262. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8263. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8264. + # support --undefined. This deserves some investigation. FIXME
  8265. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8266. + else
  8267. + _LT_TAGVAR(ld_shlibs, $1)=no
  8268. + fi
  8269. + ;;
  8270. -# If ld is used when linking, flag to hardcode \$libdir into
  8271. -# a binary during linking. This must work even if \$libdir does
  8272. -# not exist.
  8273. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  8274. + chorus*)
  8275. + case $cc_basename in
  8276. + *)
  8277. + # FIXME: insert proper C++ library support
  8278. + _LT_TAGVAR(ld_shlibs, $1)=no
  8279. + ;;
  8280. + esac
  8281. + ;;
  8282. -# Whether we need a single -rpath flag with a separated argument.
  8283. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  8284. + cygwin* | mingw* | pw32* | cegcc*)
  8285. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  8286. + # as there is no search path for DLLs.
  8287. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8288. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8289. + _LT_TAGVAR(always_export_symbols, $1)=no
  8290. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  8291. +
  8292. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8293. + _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'
  8294. + # If the export-symbols file already is a .def file (1st line
  8295. + # is EXPORTS), use it as is; otherwise, prepend...
  8296. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8297. + cp $export_symbols $output_objdir/$soname.def;
  8298. + else
  8299. + echo EXPORTS > $output_objdir/$soname.def;
  8300. + cat $export_symbols >> $output_objdir/$soname.def;
  8301. + fi~
  8302. + $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'
  8303. + else
  8304. + _LT_TAGVAR(ld_shlibs, $1)=no
  8305. + fi
  8306. + ;;
  8307. + darwin* | rhapsody*)
  8308. + _LT_DARWIN_LINKER_FEATURES($1)
  8309. + ;;
  8310. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8311. -# resulting binary.
  8312. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  8313. + dgux*)
  8314. + case $cc_basename in
  8315. + ec++*)
  8316. + # FIXME: insert proper C++ library support
  8317. + _LT_TAGVAR(ld_shlibs, $1)=no
  8318. + ;;
  8319. + ghcx*)
  8320. + # Green Hills C++ Compiler
  8321. + # FIXME: insert proper C++ library support
  8322. + _LT_TAGVAR(ld_shlibs, $1)=no
  8323. + ;;
  8324. + *)
  8325. + # FIXME: insert proper C++ library support
  8326. + _LT_TAGVAR(ld_shlibs, $1)=no
  8327. + ;;
  8328. + esac
  8329. + ;;
  8330. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8331. -# resulting binary.
  8332. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  8333. + freebsd[[12]]*)
  8334. + # C++ shared libraries reported to be fairly broken before
  8335. + # switch to ELF
  8336. + _LT_TAGVAR(ld_shlibs, $1)=no
  8337. + ;;
  8338. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8339. -# the resulting binary.
  8340. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  8341. + freebsd-elf*)
  8342. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8343. + ;;
  8344. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  8345. -# and all subsequent libraries and executables linked against it.
  8346. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  8347. -
  8348. -# Variables whose values should be saved in libtool wrapper scripts and
  8349. -# restored at relink time.
  8350. -variables_saved_for_relink="$variables_saved_for_relink"
  8351. -
  8352. -# Whether libtool must link a program against all its dependency libraries.
  8353. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  8354. -
  8355. -# Compile-time system search path for libraries
  8356. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8357. + freebsd* | dragonfly*)
  8358. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  8359. + # conventions
  8360. + _LT_TAGVAR(ld_shlibs, $1)=yes
  8361. + ;;
  8362. -# Run-time system search path for libraries
  8363. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8364. + gnu*)
  8365. + ;;
  8366. -# Fix the shell variable \$srcfile for the compiler.
  8367. -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  8368. + hpux9*)
  8369. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8370. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8371. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8372. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8373. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  8374. + # but as the default
  8375. + # location of the library.
  8376. +
  8377. + case $cc_basename in
  8378. + CC*)
  8379. + # FIXME: insert proper C++ library support
  8380. + _LT_TAGVAR(ld_shlibs, $1)=no
  8381. + ;;
  8382. + aCC*)
  8383. + _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'
  8384. + # Commands to make compiler produce verbose output that lists
  8385. + # what "hidden" libraries, object files and flags are used when
  8386. + # linking a shared library.
  8387. + #
  8388. + # There doesn't appear to be a way to prevent this compiler from
  8389. + # explicitly linking system object files so we need to strip them
  8390. + # from the output so that they don't get included in the library
  8391. + # dependencies.
  8392. + 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'
  8393. + ;;
  8394. + *)
  8395. + if test "$GXX" = yes; then
  8396. + _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'
  8397. + else
  8398. + # FIXME: insert proper C++ library support
  8399. + _LT_TAGVAR(ld_shlibs, $1)=no
  8400. + fi
  8401. + ;;
  8402. + esac
  8403. + ;;
  8404. -# Set to yes if exported symbols are required.
  8405. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  8406. + hpux10*|hpux11*)
  8407. + if test $with_gnu_ld = no; then
  8408. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8409. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8410. +
  8411. + case $host_cpu in
  8412. + hppa*64*|ia64*)
  8413. + ;;
  8414. + *)
  8415. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8416. + ;;
  8417. + esac
  8418. + fi
  8419. + case $host_cpu in
  8420. + hppa*64*|ia64*)
  8421. + _LT_TAGVAR(hardcode_direct, $1)=no
  8422. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8423. + ;;
  8424. + *)
  8425. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8426. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8427. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  8428. + # but as the default
  8429. + # location of the library.
  8430. + ;;
  8431. + esac
  8432. +
  8433. + case $cc_basename in
  8434. + CC*)
  8435. + # FIXME: insert proper C++ library support
  8436. + _LT_TAGVAR(ld_shlibs, $1)=no
  8437. + ;;
  8438. + aCC*)
  8439. + case $host_cpu in
  8440. + hppa*64*)
  8441. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8442. + ;;
  8443. + ia64*)
  8444. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8445. + ;;
  8446. + *)
  8447. + _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'
  8448. + ;;
  8449. + esac
  8450. + # Commands to make compiler produce verbose output that lists
  8451. + # what "hidden" libraries, object files and flags are used when
  8452. + # linking a shared library.
  8453. + #
  8454. + # There doesn't appear to be a way to prevent this compiler from
  8455. + # explicitly linking system object files so we need to strip them
  8456. + # from the output so that they don't get included in the library
  8457. + # dependencies.
  8458. + 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'
  8459. + ;;
  8460. + *)
  8461. + if test "$GXX" = yes; then
  8462. + if test $with_gnu_ld = no; then
  8463. + case $host_cpu in
  8464. + hppa*64*)
  8465. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8466. + ;;
  8467. + ia64*)
  8468. + _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'
  8469. + ;;
  8470. + *)
  8471. + _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'
  8472. + ;;
  8473. + esac
  8474. + fi
  8475. + else
  8476. + # FIXME: insert proper C++ library support
  8477. + _LT_TAGVAR(ld_shlibs, $1)=no
  8478. + fi
  8479. + ;;
  8480. + esac
  8481. + ;;
  8482. -# The commands to list exported symbols.
  8483. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  8484. + interix[[3-9]]*)
  8485. + _LT_TAGVAR(hardcode_direct, $1)=no
  8486. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8487. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8488. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8489. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8490. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  8491. + # default) and relocated if they conflict, which is a slow very memory
  8492. + # consuming and fragmenting process. To avoid this, we pick a random,
  8493. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8494. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8495. + _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'
  8496. + _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'
  8497. + ;;
  8498. + irix5* | irix6*)
  8499. + case $cc_basename in
  8500. + CC*)
  8501. + # SGI C++
  8502. + _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'
  8503. +
  8504. + # Archives containing C++ object files must be created using
  8505. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  8506. + # necessary to make sure instantiated templates are included
  8507. + # in the archive.
  8508. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  8509. + ;;
  8510. + *)
  8511. + if test "$GXX" = yes; then
  8512. + if test "$with_gnu_ld" = no; then
  8513. + _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'
  8514. + else
  8515. + _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'
  8516. + fi
  8517. + fi
  8518. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8519. + ;;
  8520. + esac
  8521. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8522. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8523. + _LT_TAGVAR(inherit_rpath, $1)=yes
  8524. + ;;
  8525. -# The commands to extract the exported symbol list from a shared archive.
  8526. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8527. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8528. + case $cc_basename in
  8529. + KCC*)
  8530. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  8531. +
  8532. + # KCC will only create a shared library if the output file
  8533. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  8534. + # to its proper name (with version) after linking.
  8535. + _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'
  8536. + _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'
  8537. + # Commands to make compiler produce verbose output that lists
  8538. + # what "hidden" libraries, object files and flags are used when
  8539. + # linking a shared library.
  8540. + #
  8541. + # There doesn't appear to be a way to prevent this compiler from
  8542. + # explicitly linking system object files so we need to strip them
  8543. + # from the output so that they don't get included in the library
  8544. + # dependencies.
  8545. + 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'
  8546. +
  8547. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8548. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  8549. +
  8550. + # Archives containing C++ object files must be created using
  8551. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  8552. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  8553. + ;;
  8554. + icpc* | ecpc* )
  8555. + # Intel C++
  8556. + with_gnu_ld=yes
  8557. + # version 8.0 and above of icpc choke on multiply defined symbols
  8558. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  8559. + # earlier do not add the objects themselves.
  8560. + case `$CC -V 2>&1` in
  8561. + *"Version 7."*)
  8562. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8563. + _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'
  8564. + ;;
  8565. + *) # Version 8.0 or newer
  8566. + tmp_idyn=
  8567. + case $host_cpu in
  8568. + ia64*) tmp_idyn=' -i_dynamic';;
  8569. + esac
  8570. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8571. + _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'
  8572. + ;;
  8573. + esac
  8574. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8575. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8576. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  8577. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8578. + ;;
  8579. + pgCC* | pgcpp*)
  8580. + # Portland Group C++ compiler
  8581. + case `$CC -V` in
  8582. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  8583. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  8584. + rm -rf $tpldir~
  8585. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  8586. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  8587. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  8588. + rm -rf $tpldir~
  8589. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  8590. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  8591. + $RANLIB $oldlib'
  8592. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  8593. + rm -rf $tpldir~
  8594. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  8595. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  8596. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  8597. + rm -rf $tpldir~
  8598. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  8599. + $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'
  8600. + ;;
  8601. + *) # Version 6 will use weak symbols
  8602. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  8603. + _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'
  8604. + ;;
  8605. + esac
  8606. -# Symbols that should not be listed in the preloaded symbols.
  8607. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  8608. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  8609. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  8610. + _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'
  8611. + ;;
  8612. + cxx*)
  8613. + # Compaq C++
  8614. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8615. + _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'
  8616. -# Symbols that must always be exported.
  8617. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  8618. + runpath_var=LD_RUN_PATH
  8619. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  8620. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8621. -ifelse([$1],[],
  8622. -[# ### END LIBTOOL CONFIG],
  8623. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  8624. + # Commands to make compiler produce verbose output that lists
  8625. + # what "hidden" libraries, object files and flags are used when
  8626. + # linking a shared library.
  8627. + #
  8628. + # There doesn't appear to be a way to prevent this compiler from
  8629. + # explicitly linking system object files so we need to strip them
  8630. + # from the output so that they don't get included in the library
  8631. + # dependencies.
  8632. + 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'
  8633. + ;;
  8634. + xl*)
  8635. + # IBM XL 8.0 on PPC, with GNU ld
  8636. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8637. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  8638. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8639. + if test "x$supports_anon_versioning" = xyes; then
  8640. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  8641. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8642. + echo "local: *; };" >> $output_objdir/$libname.ver~
  8643. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8644. + fi
  8645. + ;;
  8646. + *)
  8647. + case `$CC -V 2>&1 | sed 5q` in
  8648. + *Sun\ C*)
  8649. + # Sun C++ 5.9
  8650. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  8651. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8652. + _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'
  8653. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8654. + _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'
  8655. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  8656. +
  8657. + # Not sure whether something based on
  8658. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  8659. + # would be better.
  8660. + output_verbose_link_cmd='echo'
  8661. +
  8662. + # Archives containing C++ object files must be created using
  8663. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  8664. + # necessary to make sure instantiated templates are included
  8665. + # in the archive.
  8666. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  8667. + ;;
  8668. + esac
  8669. + ;;
  8670. + esac
  8671. + ;;
  8672. -__EOF__
  8673. + lynxos*)
  8674. + # FIXME: insert proper C++ library support
  8675. + _LT_TAGVAR(ld_shlibs, $1)=no
  8676. + ;;
  8677. -ifelse([$1],[], [
  8678. - case $host_os in
  8679. - aix3*)
  8680. - cat <<\EOF >> "$cfgfile"
  8681. + m88k*)
  8682. + # FIXME: insert proper C++ library support
  8683. + _LT_TAGVAR(ld_shlibs, $1)=no
  8684. + ;;
  8685. -# AIX sometimes has problems with the GCC collect2 program. For some
  8686. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  8687. -# vanish in a puff of smoke.
  8688. -if test "X${COLLECT_NAMES+set}" != Xset; then
  8689. - COLLECT_NAMES=
  8690. - export COLLECT_NAMES
  8691. -fi
  8692. -EOF
  8693. - ;;
  8694. - esac
  8695. + mvs*)
  8696. + case $cc_basename in
  8697. + cxx*)
  8698. + # FIXME: insert proper C++ library support
  8699. + _LT_TAGVAR(ld_shlibs, $1)=no
  8700. + ;;
  8701. + *)
  8702. + # FIXME: insert proper C++ library support
  8703. + _LT_TAGVAR(ld_shlibs, $1)=no
  8704. + ;;
  8705. + esac
  8706. + ;;
  8707. - # We use sed instead of cat because bash on DJGPP gets confused if
  8708. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8709. - # text mode, it properly converts lines to CR/LF. This bash problem
  8710. - # is reportedly fixed, but why not run on old versions too?
  8711. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8712. + netbsd*)
  8713. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8714. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  8715. + wlarc=
  8716. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8717. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8718. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8719. + fi
  8720. + # Workaround some broken pre-1.5 toolchains
  8721. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  8722. + ;;
  8723. - mv -f "$cfgfile" "$ofile" || \
  8724. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8725. - chmod +x "$ofile"
  8726. -])
  8727. -else
  8728. - # If there is no Makefile yet, we rely on a make rule to execute
  8729. - # `config.status --recheck' to rerun these tests and create the
  8730. - # libtool script then.
  8731. - test -f Makefile && make "$ltmain"
  8732. -fi
  8733. -])# AC_LIBTOOL_CONFIG
  8734. + *nto* | *qnx*)
  8735. + _LT_TAGVAR(ld_shlibs, $1)=yes
  8736. + ;;
  8737. + openbsd2*)
  8738. + # C++ shared libraries are fairly broken
  8739. + _LT_TAGVAR(ld_shlibs, $1)=no
  8740. + ;;
  8741. +
  8742. + openbsd*)
  8743. + if test -f /usr/libexec/ld.so; then
  8744. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8745. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8746. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8747. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  8748. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8749. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8750. + _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'
  8751. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8752. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8753. + fi
  8754. + output_verbose_link_cmd=echo
  8755. + else
  8756. + _LT_TAGVAR(ld_shlibs, $1)=no
  8757. + fi
  8758. + ;;
  8759. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  8760. -# -------------------------------------------
  8761. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  8762. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  8763. + osf3* | osf4* | osf5*)
  8764. + case $cc_basename in
  8765. + KCC*)
  8766. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  8767. +
  8768. + # KCC will only create a shared library if the output file
  8769. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  8770. + # to its proper name (with version) after linking.
  8771. + _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'
  8772. +
  8773. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8774. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8775. +
  8776. + # Archives containing C++ object files must be created using
  8777. + # the KAI C++ compiler.
  8778. + case $host in
  8779. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  8780. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  8781. + esac
  8782. + ;;
  8783. + RCC*)
  8784. + # Rational C++ 2.4.1
  8785. + # FIXME: insert proper C++ library support
  8786. + _LT_TAGVAR(ld_shlibs, $1)=no
  8787. + ;;
  8788. + cxx*)
  8789. + case $host in
  8790. + osf3*)
  8791. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8792. + _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'
  8793. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8794. + ;;
  8795. + *)
  8796. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8797. + _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'
  8798. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  8799. + echo "-hidden">> $lib.exp~
  8800. + $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~
  8801. + $RM $lib.exp'
  8802. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  8803. + ;;
  8804. + esac
  8805. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  8806. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8807. -if test "$GCC" = yes; then
  8808. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  8809. + # Commands to make compiler produce verbose output that lists
  8810. + # what "hidden" libraries, object files and flags are used when
  8811. + # linking a shared library.
  8812. + #
  8813. + # There doesn't appear to be a way to prevent this compiler from
  8814. + # explicitly linking system object files so we need to strip them
  8815. + # from the output so that they don't get included in the library
  8816. + # dependencies.
  8817. + 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'
  8818. + ;;
  8819. + *)
  8820. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  8821. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8822. + case $host in
  8823. + osf3*)
  8824. + _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'
  8825. + ;;
  8826. + *)
  8827. + _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'
  8828. + ;;
  8829. + esac
  8830. +
  8831. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8832. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8833. +
  8834. + # Commands to make compiler produce verbose output that lists
  8835. + # what "hidden" libraries, object files and flags are used when
  8836. + # linking a shared library.
  8837. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  8838. +
  8839. + else
  8840. + # FIXME: insert proper C++ library support
  8841. + _LT_TAGVAR(ld_shlibs, $1)=no
  8842. + fi
  8843. + ;;
  8844. + esac
  8845. + ;;
  8846. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  8847. - lt_cv_prog_compiler_rtti_exceptions,
  8848. - [-fno-rtti -fno-exceptions], [],
  8849. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  8850. -fi
  8851. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  8852. + psos*)
  8853. + # FIXME: insert proper C++ library support
  8854. + _LT_TAGVAR(ld_shlibs, $1)=no
  8855. + ;;
  8856. + sunos4*)
  8857. + case $cc_basename in
  8858. + CC*)
  8859. + # Sun C++ 4.x
  8860. + # FIXME: insert proper C++ library support
  8861. + _LT_TAGVAR(ld_shlibs, $1)=no
  8862. + ;;
  8863. + lcc*)
  8864. + # Lucid
  8865. + # FIXME: insert proper C++ library support
  8866. + _LT_TAGVAR(ld_shlibs, $1)=no
  8867. + ;;
  8868. + *)
  8869. + # FIXME: insert proper C++ library support
  8870. + _LT_TAGVAR(ld_shlibs, $1)=no
  8871. + ;;
  8872. + esac
  8873. + ;;
  8874. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  8875. -# ---------------------------------
  8876. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  8877. -[AC_REQUIRE([AC_CANONICAL_HOST])
  8878. -AC_REQUIRE([AC_PROG_NM])
  8879. -AC_REQUIRE([AC_OBJEXT])
  8880. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  8881. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  8882. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  8883. -[
  8884. -# These are sane defaults that work on at least a few old systems.
  8885. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8886. + solaris*)
  8887. + case $cc_basename in
  8888. + CC*)
  8889. + # Sun C++ 4.2, 5.x and Centerline C++
  8890. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  8891. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  8892. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8893. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8894. + $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'
  8895. +
  8896. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8897. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8898. + case $host_os in
  8899. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  8900. + *)
  8901. + # The compiler driver will combine and reorder linker options,
  8902. + # but understands `-z linker_flag'.
  8903. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  8904. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  8905. + ;;
  8906. + esac
  8907. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8908. -# Character class describing NM global symbol codes.
  8909. -symcode='[[BCDEGRST]]'
  8910. + output_verbose_link_cmd='echo'
  8911. -# Regexp to match symbols that can be accessed directly from C.
  8912. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  8913. + # Archives containing C++ object files must be created using
  8914. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  8915. + # necessary to make sure instantiated templates are included
  8916. + # in the archive.
  8917. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  8918. + ;;
  8919. + gcx*)
  8920. + # Green Hills C++ Compiler
  8921. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  8922. -# Transform the above into a raw symbol and a C symbol.
  8923. -symxfrm='\1 \2\3 \3'
  8924. + # The C++ compiler must be used to create the archive.
  8925. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  8926. + ;;
  8927. + *)
  8928. + # GNU C++ compiler with Solaris linker
  8929. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  8930. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  8931. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  8932. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  8933. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8934. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  8935. +
  8936. + # Commands to make compiler produce verbose output that lists
  8937. + # what "hidden" libraries, object files and flags are used when
  8938. + # linking a shared library.
  8939. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  8940. + else
  8941. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  8942. + # platform.
  8943. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  8944. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8945. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  8946. +
  8947. + # Commands to make compiler produce verbose output that lists
  8948. + # what "hidden" libraries, object files and flags are used when
  8949. + # linking a shared library.
  8950. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  8951. + fi
  8952. +
  8953. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  8954. + case $host_os in
  8955. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  8956. + *)
  8957. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8958. + ;;
  8959. + esac
  8960. + fi
  8961. + ;;
  8962. + esac
  8963. + ;;
  8964. -# Transform an extracted symbol line into a proper C declaration
  8965. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  8966. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  8967. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8968. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8969. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8970. + runpath_var='LD_RUN_PATH'
  8971. -# Transform an extracted symbol line into symbol name and symbol address
  8972. -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'"
  8973. + case $cc_basename in
  8974. + CC*)
  8975. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8976. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8977. + ;;
  8978. + *)
  8979. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8980. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8981. + ;;
  8982. + esac
  8983. + ;;
  8984. -# Define system-specific variables.
  8985. -case $host_os in
  8986. -aix*)
  8987. - symcode='[[BCDT]]'
  8988. - ;;
  8989. -cygwin* | mingw* | pw32*)
  8990. - symcode='[[ABCDGISTW]]'
  8991. - ;;
  8992. -hpux*) # Its linker distinguishes data from code symbols
  8993. - if test "$host_cpu" = ia64; then
  8994. - symcode='[[ABCDEGRST]]'
  8995. - fi
  8996. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8997. - 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'"
  8998. - ;;
  8999. -irix* | nonstopux*)
  9000. - symcode='[[BCDEGRST]]'
  9001. - ;;
  9002. -osf*)
  9003. - symcode='[[BCDEGQRST]]'
  9004. - ;;
  9005. -solaris* | sysv5*)
  9006. - symcode='[[BDT]]'
  9007. - ;;
  9008. -sysv4)
  9009. - symcode='[[DFNSTU]]'
  9010. - ;;
  9011. -esac
  9012. + sysv5* | sco3.2v5* | sco5v6*)
  9013. + # Note: We can NOT use -z defs as we might desire, because we do not
  9014. + # link with -lc, and that would cause any symbols used from libc to
  9015. + # always be unresolved, which means just about no library would
  9016. + # ever link correctly. If we're not using GNU ld we use -z text
  9017. + # though, which does catch some bad symbols but isn't as heavy-handed
  9018. + # as -z defs.
  9019. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  9020. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  9021. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9022. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9023. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  9024. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  9025. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9026. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  9027. + runpath_var='LD_RUN_PATH'
  9028. -# Handle CRLF in mingw tool chain
  9029. -opt_cr=
  9030. -case $build_os in
  9031. -mingw*)
  9032. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  9033. - ;;
  9034. -esac
  9035. + case $cc_basename in
  9036. + CC*)
  9037. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9038. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9039. + ;;
  9040. + *)
  9041. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9042. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9043. + ;;
  9044. + esac
  9045. + ;;
  9046. -# If we're using GNU nm, then use its standard symbol codes.
  9047. -case `$NM -V 2>&1` in
  9048. -*GNU* | *'with BFD'*)
  9049. - symcode='[[ABCDGISTW]]' ;;
  9050. -esac
  9051. + tandem*)
  9052. + case $cc_basename in
  9053. + NCC*)
  9054. + # NonStop-UX NCC 3.20
  9055. + # FIXME: insert proper C++ library support
  9056. + _LT_TAGVAR(ld_shlibs, $1)=no
  9057. + ;;
  9058. + *)
  9059. + # FIXME: insert proper C++ library support
  9060. + _LT_TAGVAR(ld_shlibs, $1)=no
  9061. + ;;
  9062. + esac
  9063. + ;;
  9064. -# Try without a prefix undercore, then with it.
  9065. -for ac_symprfx in "" "_"; do
  9066. + vxworks*)
  9067. + # FIXME: insert proper C++ library support
  9068. + _LT_TAGVAR(ld_shlibs, $1)=no
  9069. + ;;
  9070. - # Write the raw and C identifiers.
  9071. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  9072. + *)
  9073. + # FIXME: insert proper C++ library support
  9074. + _LT_TAGVAR(ld_shlibs, $1)=no
  9075. + ;;
  9076. + esac
  9077. - # Check to see that the pipe works correctly.
  9078. - pipe_works=no
  9079. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  9080. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  9081. - rm -f conftest*
  9082. - cat > conftest.$ac_ext <<EOF
  9083. -#ifdef __cplusplus
  9084. -extern "C" {
  9085. -#endif
  9086. -char nm_test_var;
  9087. -void nm_test_func(){}
  9088. -#ifdef __cplusplus
  9089. -}
  9090. -#endif
  9091. -int main(){nm_test_var='a';nm_test_func();return(0);}
  9092. -EOF
  9093. + _LT_TAGVAR(GCC, $1)="$GXX"
  9094. + _LT_TAGVAR(LD, $1)="$LD"
  9095. - if AC_TRY_EVAL(ac_compile); then
  9096. - # Now try to grab the symbols.
  9097. - nlist=conftest.nm
  9098. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  9099. - # Try sorting and uniquifying the output.
  9100. - if sort "$nlist" | uniq > "$nlist"T; then
  9101. - mv -f "$nlist"T "$nlist"
  9102. - else
  9103. - rm -f "$nlist"T
  9104. - fi
  9105. + ## CAVEAT EMPTOR:
  9106. + ## There is no encapsulation within the following macros, do not change
  9107. + ## the running order or otherwise move them around unless you know exactly
  9108. + ## what you are doing...
  9109. + _LT_SYS_HIDDEN_LIBDEPS($1)
  9110. + _LT_COMPILER_PIC($1)
  9111. + _LT_COMPILER_C_O($1)
  9112. + _LT_COMPILER_FILE_LOCKS($1)
  9113. + _LT_LINKER_SHLIBS($1)
  9114. + _LT_SYS_DYNAMIC_LINKER($1)
  9115. + _LT_LINKER_HARDCODE_LIBPATH($1)
  9116. +
  9117. + _LT_CONFIG($1)
  9118. + fi # test -n "$compiler"
  9119. +
  9120. + CC=$lt_save_CC
  9121. + LDCXX=$LD
  9122. + LD=$lt_save_LD
  9123. + GCC=$lt_save_GCC
  9124. + with_gnu_ld=$lt_save_with_gnu_ld
  9125. + lt_cv_path_LDCXX=$lt_cv_path_LD
  9126. + lt_cv_path_LD=$lt_save_path_LD
  9127. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  9128. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  9129. +fi # test "$_lt_caught_CXX_error" != yes
  9130. - # Make sure that we snagged all the symbols we need.
  9131. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  9132. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  9133. - cat <<EOF > conftest.$ac_ext
  9134. -#ifdef __cplusplus
  9135. -extern "C" {
  9136. -#endif
  9137. +AC_LANG_POP
  9138. +])# _LT_LANG_CXX_CONFIG
  9139. -EOF
  9140. - # Now generate the symbol file.
  9141. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  9142. - cat <<EOF >> conftest.$ac_ext
  9143. -#if defined (__STDC__) && __STDC__
  9144. -# define lt_ptr_t void *
  9145. -#else
  9146. -# define lt_ptr_t char *
  9147. -# define const
  9148. -#endif
  9149. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  9150. +# ---------------------------------
  9151. +# Figure out "hidden" library dependencies from verbose
  9152. +# compiler output when linking a shared library.
  9153. +# Parse the compiler output and extract the necessary
  9154. +# objects, libraries and library flags.
  9155. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  9156. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  9157. +# Dependencies to place before and after the object being linked:
  9158. +_LT_TAGVAR(predep_objects, $1)=
  9159. +_LT_TAGVAR(postdep_objects, $1)=
  9160. +_LT_TAGVAR(predeps, $1)=
  9161. +_LT_TAGVAR(postdeps, $1)=
  9162. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  9163. -/* The mapping between symbol names and symbols. */
  9164. -const struct {
  9165. - const char *name;
  9166. - lt_ptr_t address;
  9167. -}
  9168. -lt_preloaded_symbols[[]] =
  9169. +dnl we can't use the lt_simple_compile_test_code here,
  9170. +dnl because it contains code intended for an executable,
  9171. +dnl not a library. It's possible we should let each
  9172. +dnl tag define a new lt_????_link_test_code variable,
  9173. +dnl but it's only used here...
  9174. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  9175. +int a;
  9176. +void foo (void) { a = 0; }
  9177. +_LT_EOF
  9178. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  9179. +class Foo
  9180. {
  9181. -EOF
  9182. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  9183. - cat <<\EOF >> conftest.$ac_ext
  9184. - {0, (lt_ptr_t) 0}
  9185. +public:
  9186. + Foo (void) { a = 0; }
  9187. +private:
  9188. + int a;
  9189. };
  9190. -
  9191. -#ifdef __cplusplus
  9192. -}
  9193. -#endif
  9194. -EOF
  9195. - # Now try linking the two files.
  9196. - mv conftest.$ac_objext conftstm.$ac_objext
  9197. - lt_save_LIBS="$LIBS"
  9198. - lt_save_CFLAGS="$CFLAGS"
  9199. - LIBS="conftstm.$ac_objext"
  9200. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  9201. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  9202. - pipe_works=yes
  9203. - fi
  9204. - LIBS="$lt_save_LIBS"
  9205. - CFLAGS="$lt_save_CFLAGS"
  9206. - else
  9207. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  9208. +_LT_EOF
  9209. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  9210. + subroutine foo
  9211. + implicit none
  9212. + integer*4 a
  9213. + a=0
  9214. + return
  9215. + end
  9216. +_LT_EOF
  9217. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  9218. + subroutine foo
  9219. + implicit none
  9220. + integer a
  9221. + a=0
  9222. + return
  9223. + end
  9224. +_LT_EOF
  9225. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  9226. +public class foo {
  9227. + private int a;
  9228. + public void bar (void) {
  9229. + a = 0;
  9230. + }
  9231. +};
  9232. +_LT_EOF
  9233. +])
  9234. +dnl Parse the compiler output and extract the necessary
  9235. +dnl objects, libraries and library flags.
  9236. +if AC_TRY_EVAL(ac_compile); then
  9237. + # Parse the compiler output and extract the necessary
  9238. + # objects, libraries and library flags.
  9239. +
  9240. + # Sentinel used to keep track of whether or not we are before
  9241. + # the conftest object file.
  9242. + pre_test_object_deps_done=no
  9243. +
  9244. + for p in `eval "$output_verbose_link_cmd"`; do
  9245. + case $p in
  9246. +
  9247. + -L* | -R* | -l*)
  9248. + # Some compilers place space between "-{L,R}" and the path.
  9249. + # Remove the space.
  9250. + if test $p = "-L" ||
  9251. + test $p = "-R"; then
  9252. + prev=$p
  9253. + continue
  9254. + else
  9255. + prev=
  9256. + fi
  9257. +
  9258. + if test "$pre_test_object_deps_done" = no; then
  9259. + case $p in
  9260. + -L* | -R*)
  9261. + # Internal compiler library paths should come after those
  9262. + # provided the user. The postdeps already come after the
  9263. + # user supplied libs so there is no need to process them.
  9264. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  9265. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  9266. + else
  9267. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  9268. + fi
  9269. + ;;
  9270. + # The "-l" case would never come before the object being
  9271. + # linked, so don't bother handling this case.
  9272. + esac
  9273. + else
  9274. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  9275. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  9276. + else
  9277. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  9278. + fi
  9279. + fi
  9280. + ;;
  9281. +
  9282. + *.$objext)
  9283. + # This assumes that the test object file only shows up
  9284. + # once in the compiler output.
  9285. + if test "$p" = "conftest.$objext"; then
  9286. + pre_test_object_deps_done=yes
  9287. + continue
  9288. + fi
  9289. +
  9290. + if test "$pre_test_object_deps_done" = no; then
  9291. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  9292. + _LT_TAGVAR(predep_objects, $1)="$p"
  9293. + else
  9294. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  9295. + fi
  9296. + else
  9297. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  9298. + _LT_TAGVAR(postdep_objects, $1)="$p"
  9299. + else
  9300. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  9301. + fi
  9302. + fi
  9303. + ;;
  9304. +
  9305. + *) ;; # Ignore the rest.
  9306. +
  9307. + esac
  9308. + done
  9309. +
  9310. + # Clean up.
  9311. + rm -f a.out a.exe
  9312. +else
  9313. + echo "libtool.m4: error: problem compiling $1 test program"
  9314. +fi
  9315. +
  9316. +$RM -f confest.$objext
  9317. +
  9318. +# PORTME: override above test on systems where it is broken
  9319. +m4_if([$1], [CXX],
  9320. +[case $host_os in
  9321. +interix[[3-9]]*)
  9322. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  9323. + # hack all around it, let's just trust "g++" to DTRT.
  9324. + _LT_TAGVAR(predep_objects,$1)=
  9325. + _LT_TAGVAR(postdep_objects,$1)=
  9326. + _LT_TAGVAR(postdeps,$1)=
  9327. + ;;
  9328. +
  9329. +linux*)
  9330. + case `$CC -V 2>&1 | sed 5q` in
  9331. + *Sun\ C*)
  9332. + # Sun C++ 5.9
  9333. +
  9334. + # The more standards-conforming stlport4 library is
  9335. + # incompatible with the Cstd library. Avoid specifying
  9336. + # it if it's in CXXFLAGS. Ignore libCrun as
  9337. + # -library=stlport4 depends on it.
  9338. + case " $CXX $CXXFLAGS " in
  9339. + *" -library=stlport4 "*)
  9340. + solaris_use_stlport4=yes
  9341. + ;;
  9342. + esac
  9343. +
  9344. + if test "$solaris_use_stlport4" != yes; then
  9345. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  9346. + fi
  9347. + ;;
  9348. + esac
  9349. + ;;
  9350. +
  9351. +solaris*)
  9352. + case $cc_basename in
  9353. + CC*)
  9354. + # The more standards-conforming stlport4 library is
  9355. + # incompatible with the Cstd library. Avoid specifying
  9356. + # it if it's in CXXFLAGS. Ignore libCrun as
  9357. + # -library=stlport4 depends on it.
  9358. + case " $CXX $CXXFLAGS " in
  9359. + *" -library=stlport4 "*)
  9360. + solaris_use_stlport4=yes
  9361. + ;;
  9362. + esac
  9363. +
  9364. + # Adding this requires a known-good setup of shared libraries for
  9365. + # Sun compiler versions before 5.6, else PIC objects from an old
  9366. + # archive will be linked into the output, leading to subtle bugs.
  9367. + if test "$solaris_use_stlport4" != yes; then
  9368. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  9369. + fi
  9370. + ;;
  9371. + esac
  9372. + ;;
  9373. +esac
  9374. +])
  9375. +
  9376. +case " $_LT_TAGVAR(postdeps, $1) " in
  9377. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  9378. +esac
  9379. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  9380. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  9381. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  9382. +fi
  9383. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  9384. + [The directories searched by this compiler when creating a shared library])
  9385. +_LT_TAGDECL([], [predep_objects], [1],
  9386. + [Dependencies to place before and after the objects being linked to
  9387. + create a shared library])
  9388. +_LT_TAGDECL([], [postdep_objects], [1])
  9389. +_LT_TAGDECL([], [predeps], [1])
  9390. +_LT_TAGDECL([], [postdeps], [1])
  9391. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  9392. + [The library search path used internally by the compiler when linking
  9393. + a shared library])
  9394. +])# _LT_SYS_HIDDEN_LIBDEPS
  9395. +
  9396. +
  9397. +# _LT_PROG_F77
  9398. +# ------------
  9399. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  9400. +# if there is no fortran compiler, we have our own version here.
  9401. +m4_defun([_LT_PROG_F77],
  9402. +[
  9403. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  9404. +AC_PROG_F77
  9405. +if test -z "$F77" || test "X$F77" = "Xno"; then
  9406. + _lt_disable_F77=yes
  9407. +fi
  9408. +popdef([AC_MSG_ERROR])
  9409. +])# _LT_PROG_F77
  9410. +
  9411. +dnl aclocal-1.4 backwards compatibility:
  9412. +dnl AC_DEFUN([_LT_PROG_F77], [])
  9413. +
  9414. +
  9415. +# _LT_LANG_F77_CONFIG([TAG])
  9416. +# --------------------------
  9417. +# Ensure that the configuration variables for a Fortran 77 compiler are
  9418. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  9419. +# to write the compiler configuration to `libtool'.
  9420. +m4_defun([_LT_LANG_F77_CONFIG],
  9421. +[AC_REQUIRE([_LT_PROG_F77])dnl
  9422. +AC_LANG_PUSH(Fortran 77)
  9423. +
  9424. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9425. +_LT_TAGVAR(allow_undefined_flag, $1)=
  9426. +_LT_TAGVAR(always_export_symbols, $1)=no
  9427. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  9428. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  9429. +_LT_TAGVAR(hardcode_direct, $1)=no
  9430. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  9431. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9432. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9433. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  9434. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  9435. +_LT_TAGVAR(hardcode_automatic, $1)=no
  9436. +_LT_TAGVAR(inherit_rpath, $1)=no
  9437. +_LT_TAGVAR(module_cmds, $1)=
  9438. +_LT_TAGVAR(module_expsym_cmds, $1)=
  9439. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  9440. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  9441. +_LT_TAGVAR(no_undefined_flag, $1)=
  9442. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  9443. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9444. +
  9445. +# Source file extension for f77 test sources.
  9446. +ac_ext=f
  9447. +
  9448. +# Object file extension for compiled f77 test sources.
  9449. +objext=o
  9450. +_LT_TAGVAR(objext, $1)=$objext
  9451. +
  9452. +# No sense in running all these tests if we already determined that
  9453. +# the F77 compiler isn't working. Some variables (like enable_shared)
  9454. +# are currently assumed to apply to all compilers on this platform,
  9455. +# and will be corrupted by setting them based on a non-working compiler.
  9456. +if test "$_lt_disable_F77" != yes; then
  9457. + # Code to be used in simple compile tests
  9458. + lt_simple_compile_test_code="\
  9459. + subroutine t
  9460. + return
  9461. + end
  9462. +"
  9463. +
  9464. + # Code to be used in simple link tests
  9465. + lt_simple_link_test_code="\
  9466. + program t
  9467. + end
  9468. +"
  9469. +
  9470. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9471. + _LT_TAG_COMPILER
  9472. +
  9473. + # save warnings/boilerplate of simple test code
  9474. + _LT_COMPILER_BOILERPLATE
  9475. + _LT_LINKER_BOILERPLATE
  9476. +
  9477. + # Allow CC to be a program name with arguments.
  9478. + lt_save_CC="$CC"
  9479. + lt_save_GCC=$GCC
  9480. + CC=${F77-"f77"}
  9481. + compiler=$CC
  9482. + _LT_TAGVAR(compiler, $1)=$CC
  9483. + _LT_CC_BASENAME([$compiler])
  9484. + GCC=$G77
  9485. + if test -n "$compiler"; then
  9486. + AC_MSG_CHECKING([if libtool supports shared libraries])
  9487. + AC_MSG_RESULT([$can_build_shared])
  9488. +
  9489. + AC_MSG_CHECKING([whether to build shared libraries])
  9490. + test "$can_build_shared" = "no" && enable_shared=no
  9491. +
  9492. + # On AIX, shared libraries and static libraries use the same namespace, and
  9493. + # are all built from PIC.
  9494. + case $host_os in
  9495. + aix3*)
  9496. + test "$enable_shared" = yes && enable_static=no
  9497. + if test -n "$RANLIB"; then
  9498. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9499. + postinstall_cmds='$RANLIB $lib'
  9500. + fi
  9501. + ;;
  9502. + aix[[4-9]]*)
  9503. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9504. + test "$enable_shared" = yes && enable_static=no
  9505. fi
  9506. - else
  9507. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  9508. + ;;
  9509. + esac
  9510. + AC_MSG_RESULT([$enable_shared])
  9511. +
  9512. + AC_MSG_CHECKING([whether to build static libraries])
  9513. + # Make sure either enable_shared or enable_static is yes.
  9514. + test "$enable_shared" = yes || enable_static=yes
  9515. + AC_MSG_RESULT([$enable_static])
  9516. +
  9517. + _LT_TAGVAR(GCC, $1)="$G77"
  9518. + _LT_TAGVAR(LD, $1)="$LD"
  9519. +
  9520. + ## CAVEAT EMPTOR:
  9521. + ## There is no encapsulation within the following macros, do not change
  9522. + ## the running order or otherwise move them around unless you know exactly
  9523. + ## what you are doing...
  9524. + _LT_COMPILER_PIC($1)
  9525. + _LT_COMPILER_C_O($1)
  9526. + _LT_COMPILER_FILE_LOCKS($1)
  9527. + _LT_LINKER_SHLIBS($1)
  9528. + _LT_SYS_DYNAMIC_LINKER($1)
  9529. + _LT_LINKER_HARDCODE_LIBPATH($1)
  9530. +
  9531. + _LT_CONFIG($1)
  9532. + fi # test -n "$compiler"
  9533. +
  9534. + GCC=$lt_save_GCC
  9535. + CC="$lt_save_CC"
  9536. +fi # test "$_lt_disable_F77" != yes
  9537. +
  9538. +AC_LANG_POP
  9539. +])# _LT_LANG_F77_CONFIG
  9540. +
  9541. +
  9542. +# _LT_PROG_FC
  9543. +# -----------
  9544. +# Since AC_PROG_FC is broken, in that it returns the empty string
  9545. +# if there is no fortran compiler, we have our own version here.
  9546. +m4_defun([_LT_PROG_FC],
  9547. +[
  9548. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  9549. +AC_PROG_FC
  9550. +if test -z "$FC" || test "X$FC" = "Xno"; then
  9551. + _lt_disable_FC=yes
  9552. +fi
  9553. +popdef([AC_MSG_ERROR])
  9554. +])# _LT_PROG_FC
  9555. +
  9556. +dnl aclocal-1.4 backwards compatibility:
  9557. +dnl AC_DEFUN([_LT_PROG_FC], [])
  9558. +
  9559. +
  9560. +# _LT_LANG_FC_CONFIG([TAG])
  9561. +# -------------------------
  9562. +# Ensure that the configuration variables for a Fortran compiler are
  9563. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  9564. +# to write the compiler configuration to `libtool'.
  9565. +m4_defun([_LT_LANG_FC_CONFIG],
  9566. +[AC_REQUIRE([_LT_PROG_FC])dnl
  9567. +AC_LANG_PUSH(Fortran)
  9568. +
  9569. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9570. +_LT_TAGVAR(allow_undefined_flag, $1)=
  9571. +_LT_TAGVAR(always_export_symbols, $1)=no
  9572. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  9573. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  9574. +_LT_TAGVAR(hardcode_direct, $1)=no
  9575. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  9576. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9577. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9578. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  9579. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  9580. +_LT_TAGVAR(hardcode_automatic, $1)=no
  9581. +_LT_TAGVAR(inherit_rpath, $1)=no
  9582. +_LT_TAGVAR(module_cmds, $1)=
  9583. +_LT_TAGVAR(module_expsym_cmds, $1)=
  9584. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  9585. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  9586. +_LT_TAGVAR(no_undefined_flag, $1)=
  9587. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  9588. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9589. +
  9590. +# Source file extension for fc test sources.
  9591. +ac_ext=${ac_fc_srcext-f}
  9592. +
  9593. +# Object file extension for compiled fc test sources.
  9594. +objext=o
  9595. +_LT_TAGVAR(objext, $1)=$objext
  9596. +
  9597. +# No sense in running all these tests if we already determined that
  9598. +# the FC compiler isn't working. Some variables (like enable_shared)
  9599. +# are currently assumed to apply to all compilers on this platform,
  9600. +# and will be corrupted by setting them based on a non-working compiler.
  9601. +if test "$_lt_disable_FC" != yes; then
  9602. + # Code to be used in simple compile tests
  9603. + lt_simple_compile_test_code="\
  9604. + subroutine t
  9605. + return
  9606. + end
  9607. +"
  9608. +
  9609. + # Code to be used in simple link tests
  9610. + lt_simple_link_test_code="\
  9611. + program t
  9612. + end
  9613. +"
  9614. +
  9615. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9616. + _LT_TAG_COMPILER
  9617. +
  9618. + # save warnings/boilerplate of simple test code
  9619. + _LT_COMPILER_BOILERPLATE
  9620. + _LT_LINKER_BOILERPLATE
  9621. +
  9622. + # Allow CC to be a program name with arguments.
  9623. + lt_save_CC="$CC"
  9624. + lt_save_GCC=$GCC
  9625. + CC=${FC-"f95"}
  9626. + compiler=$CC
  9627. + GCC=$ac_cv_fc_compiler_gnu
  9628. +
  9629. + _LT_TAGVAR(compiler, $1)=$CC
  9630. + _LT_CC_BASENAME([$compiler])
  9631. +
  9632. + if test -n "$compiler"; then
  9633. + AC_MSG_CHECKING([if libtool supports shared libraries])
  9634. + AC_MSG_RESULT([$can_build_shared])
  9635. +
  9636. + AC_MSG_CHECKING([whether to build shared libraries])
  9637. + test "$can_build_shared" = "no" && enable_shared=no
  9638. +
  9639. + # On AIX, shared libraries and static libraries use the same namespace, and
  9640. + # are all built from PIC.
  9641. + case $host_os in
  9642. + aix3*)
  9643. + test "$enable_shared" = yes && enable_static=no
  9644. + if test -n "$RANLIB"; then
  9645. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9646. + postinstall_cmds='$RANLIB $lib'
  9647. + fi
  9648. + ;;
  9649. + aix[[4-9]]*)
  9650. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9651. + test "$enable_shared" = yes && enable_static=no
  9652. + fi
  9653. + ;;
  9654. + esac
  9655. + AC_MSG_RESULT([$enable_shared])
  9656. +
  9657. + AC_MSG_CHECKING([whether to build static libraries])
  9658. + # Make sure either enable_shared or enable_static is yes.
  9659. + test "$enable_shared" = yes || enable_static=yes
  9660. + AC_MSG_RESULT([$enable_static])
  9661. +
  9662. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  9663. + _LT_TAGVAR(LD, $1)="$LD"
  9664. +
  9665. + ## CAVEAT EMPTOR:
  9666. + ## There is no encapsulation within the following macros, do not change
  9667. + ## the running order or otherwise move them around unless you know exactly
  9668. + ## what you are doing...
  9669. + _LT_SYS_HIDDEN_LIBDEPS($1)
  9670. + _LT_COMPILER_PIC($1)
  9671. + _LT_COMPILER_C_O($1)
  9672. + _LT_COMPILER_FILE_LOCKS($1)
  9673. + _LT_LINKER_SHLIBS($1)
  9674. + _LT_SYS_DYNAMIC_LINKER($1)
  9675. + _LT_LINKER_HARDCODE_LIBPATH($1)
  9676. +
  9677. + _LT_CONFIG($1)
  9678. + fi # test -n "$compiler"
  9679. +
  9680. + GCC=$lt_save_GCC
  9681. + CC="$lt_save_CC"
  9682. +fi # test "$_lt_disable_FC" != yes
  9683. +
  9684. +AC_LANG_POP
  9685. +])# _LT_LANG_FC_CONFIG
  9686. +
  9687. +
  9688. +# _LT_LANG_GCJ_CONFIG([TAG])
  9689. +# --------------------------
  9690. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  9691. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  9692. +# to write the compiler configuration to `libtool'.
  9693. +m4_defun([_LT_LANG_GCJ_CONFIG],
  9694. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  9695. +AC_LANG_SAVE
  9696. +
  9697. +# Source file extension for Java test sources.
  9698. +ac_ext=java
  9699. +
  9700. +# Object file extension for compiled Java test sources.
  9701. +objext=o
  9702. +_LT_TAGVAR(objext, $1)=$objext
  9703. +
  9704. +# Code to be used in simple compile tests
  9705. +lt_simple_compile_test_code="class foo {}"
  9706. +
  9707. +# Code to be used in simple link tests
  9708. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  9709. +
  9710. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9711. +_LT_TAG_COMPILER
  9712. +
  9713. +# save warnings/boilerplate of simple test code
  9714. +_LT_COMPILER_BOILERPLATE
  9715. +_LT_LINKER_BOILERPLATE
  9716. +
  9717. +# Allow CC to be a program name with arguments.
  9718. +lt_save_CC="$CC"
  9719. +lt_save_GCC=$GCC
  9720. +GCC=yes
  9721. +CC=${GCJ-"gcj"}
  9722. +compiler=$CC
  9723. +_LT_TAGVAR(compiler, $1)=$CC
  9724. +_LT_TAGVAR(LD, $1)="$LD"
  9725. +_LT_CC_BASENAME([$compiler])
  9726. +
  9727. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  9728. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9729. +
  9730. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  9731. +
  9732. +if test -n "$compiler"; then
  9733. + _LT_COMPILER_NO_RTTI($1)
  9734. + _LT_COMPILER_PIC($1)
  9735. + _LT_COMPILER_C_O($1)
  9736. + _LT_COMPILER_FILE_LOCKS($1)
  9737. + _LT_LINKER_SHLIBS($1)
  9738. + _LT_LINKER_HARDCODE_LIBPATH($1)
  9739. +
  9740. + _LT_CONFIG($1)
  9741. +fi
  9742. +
  9743. +AC_LANG_RESTORE
  9744. +
  9745. +GCC=$lt_save_GCC
  9746. +CC="$lt_save_CC"
  9747. +])# _LT_LANG_GCJ_CONFIG
  9748. +
  9749. +
  9750. +# _LT_LANG_RC_CONFIG([TAG])
  9751. +# -------------------------
  9752. +# Ensure that the configuration variables for the Windows resource compiler
  9753. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  9754. +# to write the compiler configuration to `libtool'.
  9755. +m4_defun([_LT_LANG_RC_CONFIG],
  9756. +[AC_REQUIRE([LT_PROG_RC])dnl
  9757. +AC_LANG_SAVE
  9758. +
  9759. +# Source file extension for RC test sources.
  9760. +ac_ext=rc
  9761. +
  9762. +# Object file extension for compiled RC test sources.
  9763. +objext=o
  9764. +_LT_TAGVAR(objext, $1)=$objext
  9765. +
  9766. +# Code to be used in simple compile tests
  9767. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  9768. +
  9769. +# Code to be used in simple link tests
  9770. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  9771. +
  9772. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9773. +_LT_TAG_COMPILER
  9774. +
  9775. +# save warnings/boilerplate of simple test code
  9776. +_LT_COMPILER_BOILERPLATE
  9777. +_LT_LINKER_BOILERPLATE
  9778. +
  9779. +# Allow CC to be a program name with arguments.
  9780. +lt_save_CC="$CC"
  9781. +lt_save_GCC=$GCC
  9782. +GCC=
  9783. +CC=${RC-"windres"}
  9784. +compiler=$CC
  9785. +_LT_TAGVAR(compiler, $1)=$CC
  9786. +_LT_CC_BASENAME([$compiler])
  9787. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  9788. +
  9789. +if test -n "$compiler"; then
  9790. + :
  9791. + _LT_CONFIG($1)
  9792. +fi
  9793. +
  9794. +GCC=$lt_save_GCC
  9795. +AC_LANG_RESTORE
  9796. +CC="$lt_save_CC"
  9797. +])# _LT_LANG_RC_CONFIG
  9798. +
  9799. +
  9800. +# LT_PROG_GCJ
  9801. +# -----------
  9802. +AC_DEFUN([LT_PROG_GCJ],
  9803. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  9804. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  9805. + [AC_CHECK_TOOL(GCJ, gcj,)
  9806. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  9807. + AC_SUBST(GCJFLAGS)])])[]dnl
  9808. +])
  9809. +
  9810. +# Old name:
  9811. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  9812. +dnl aclocal-1.4 backwards compatibility:
  9813. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  9814. +
  9815. +
  9816. +# LT_PROG_RC
  9817. +# ----------
  9818. +AC_DEFUN([LT_PROG_RC],
  9819. +[AC_CHECK_TOOL(RC, windres,)
  9820. +])
  9821. +
  9822. +# Old name:
  9823. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  9824. +dnl aclocal-1.4 backwards compatibility:
  9825. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  9826. +
  9827. +
  9828. +# _LT_DECL_EGREP
  9829. +# --------------
  9830. +# If we don't have a new enough Autoconf to choose the best grep
  9831. +# available, choose the one first in the user's PATH.
  9832. +m4_defun([_LT_DECL_EGREP],
  9833. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  9834. +AC_REQUIRE([AC_PROG_FGREP])dnl
  9835. +test -z "$GREP" && GREP=grep
  9836. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  9837. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  9838. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  9839. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  9840. +AC_SUBST([GREP])
  9841. +])
  9842. +
  9843. +
  9844. +# _LT_DECL_OBJDUMP
  9845. +# --------------
  9846. +# If we don't have a new enough Autoconf to choose the best objdump
  9847. +# available, choose the one first in the user's PATH.
  9848. +m4_defun([_LT_DECL_OBJDUMP],
  9849. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  9850. +test -z "$OBJDUMP" && OBJDUMP=objdump
  9851. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  9852. +AC_SUBST([OBJDUMP])
  9853. +])
  9854. +
  9855. +
  9856. +# _LT_DECL_SED
  9857. +# ------------
  9858. +# Check for a fully-functional sed program, that truncates
  9859. +# as few characters as possible. Prefer GNU sed if found.
  9860. +m4_defun([_LT_DECL_SED],
  9861. +[AC_PROG_SED
  9862. +test -z "$SED" && SED=sed
  9863. +Xsed="$SED -e 1s/^X//"
  9864. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  9865. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  9866. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  9867. +])# _LT_DECL_SED
  9868. +
  9869. +m4_ifndef([AC_PROG_SED], [
  9870. +# NOTE: This macro has been submitted for inclusion into #
  9871. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  9872. +# a released version of Autoconf we should remove this #
  9873. +# macro and use it instead. #
  9874. +
  9875. +m4_defun([AC_PROG_SED],
  9876. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  9877. +AC_CACHE_VAL(lt_cv_path_SED,
  9878. +[# Loop through the user's path and test for sed and gsed.
  9879. +# Then use that list of sed's as ones to test for truncation.
  9880. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9881. +for as_dir in $PATH
  9882. +do
  9883. + IFS=$as_save_IFS
  9884. + test -z "$as_dir" && as_dir=.
  9885. + for lt_ac_prog in sed gsed; do
  9886. + for ac_exec_ext in '' $ac_executable_extensions; do
  9887. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  9888. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  9889. fi
  9890. - else
  9891. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  9892. - fi
  9893. - else
  9894. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  9895. - cat conftest.$ac_ext >&5
  9896. + done
  9897. + done
  9898. +done
  9899. +IFS=$as_save_IFS
  9900. +lt_ac_max=0
  9901. +lt_ac_count=0
  9902. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  9903. +# along with /bin/sed that truncates output.
  9904. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  9905. + test ! -f $lt_ac_sed && continue
  9906. + cat /dev/null > conftest.in
  9907. + lt_ac_count=0
  9908. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  9909. + # Check for GNU sed and select it if it is found.
  9910. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  9911. + lt_cv_path_SED=$lt_ac_sed
  9912. + break
  9913. fi
  9914. - rm -f conftest* conftst*
  9915. + while true; do
  9916. + cat conftest.in conftest.in >conftest.tmp
  9917. + mv conftest.tmp conftest.in
  9918. + cp conftest.in conftest.nl
  9919. + echo >>conftest.nl
  9920. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  9921. + cmp -s conftest.out conftest.nl || break
  9922. + # 10000 chars as input seems more than enough
  9923. + test $lt_ac_count -gt 10 && break
  9924. + lt_ac_count=`expr $lt_ac_count + 1`
  9925. + if test $lt_ac_count -gt $lt_ac_max; then
  9926. + lt_ac_max=$lt_ac_count
  9927. + lt_cv_path_SED=$lt_ac_sed
  9928. + fi
  9929. + done
  9930. +done
  9931. +])
  9932. +SED=$lt_cv_path_SED
  9933. +AC_SUBST([SED])
  9934. +AC_MSG_RESULT([$SED])
  9935. +])#AC_PROG_SED
  9936. +])#m4_ifndef
  9937. - # Do not use the global_symbol_pipe unless it works.
  9938. - if test "$pipe_works" = yes; then
  9939. - break
  9940. +# Old name:
  9941. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  9942. +dnl aclocal-1.4 backwards compatibility:
  9943. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  9944. +
  9945. +
  9946. +# _LT_CHECK_SHELL_FEATURES
  9947. +# ------------------------
  9948. +# Find out whether the shell is Bourne or XSI compatible,
  9949. +# or has some other useful features.
  9950. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  9951. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  9952. +# Try some XSI features
  9953. +xsi_shell=no
  9954. +( _lt_dummy="a/b/c"
  9955. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  9956. + = c,a/b,, \
  9957. + && eval 'test $(( 1 + 1 )) -eq 2 \
  9958. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  9959. + && xsi_shell=yes
  9960. +AC_MSG_RESULT([$xsi_shell])
  9961. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  9962. +
  9963. +AC_MSG_CHECKING([whether the shell understands "+="])
  9964. +lt_shell_append=no
  9965. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  9966. + >/dev/null 2>&1 \
  9967. + && lt_shell_append=yes
  9968. +AC_MSG_RESULT([$lt_shell_append])
  9969. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  9970. +
  9971. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9972. + lt_unset=unset
  9973. +else
  9974. + lt_unset=false
  9975. +fi
  9976. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  9977. +
  9978. +# test EBCDIC or ASCII
  9979. +case `echo X|tr X '\101'` in
  9980. + A) # ASCII based system
  9981. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  9982. + lt_SP2NL='tr \040 \012'
  9983. + lt_NL2SP='tr \015\012 \040\040'
  9984. + ;;
  9985. + *) # EBCDIC based system
  9986. + lt_SP2NL='tr \100 \n'
  9987. + lt_NL2SP='tr \r\n \100\100'
  9988. + ;;
  9989. +esac
  9990. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  9991. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  9992. +])# _LT_CHECK_SHELL_FEATURES
  9993. +
  9994. +
  9995. +# _LT_PROG_XSI_SHELLFNS
  9996. +# ---------------------
  9997. +# Bourne and XSI compatible variants of some useful shell functions.
  9998. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  9999. +[case $xsi_shell in
  10000. + yes)
  10001. + cat << \_LT_EOF >> "$cfgfile"
  10002. +
  10003. +# func_dirname file append nondir_replacement
  10004. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  10005. +# otherwise set result to NONDIR_REPLACEMENT.
  10006. +func_dirname ()
  10007. +{
  10008. + case ${1} in
  10009. + */*) func_dirname_result="${1%/*}${2}" ;;
  10010. + * ) func_dirname_result="${3}" ;;
  10011. + esac
  10012. +}
  10013. +
  10014. +# func_basename file
  10015. +func_basename ()
  10016. +{
  10017. + func_basename_result="${1##*/}"
  10018. +}
  10019. +
  10020. +# func_dirname_and_basename file append nondir_replacement
  10021. +# perform func_basename and func_dirname in a single function
  10022. +# call:
  10023. +# dirname: Compute the dirname of FILE. If nonempty,
  10024. +# add APPEND to the result, otherwise set result
  10025. +# to NONDIR_REPLACEMENT.
  10026. +# value returned in "$func_dirname_result"
  10027. +# basename: Compute filename of FILE.
  10028. +# value retuned in "$func_basename_result"
  10029. +# Implementation must be kept synchronized with func_dirname
  10030. +# and func_basename. For efficiency, we do not delegate to
  10031. +# those functions but instead duplicate the functionality here.
  10032. +func_dirname_and_basename ()
  10033. +{
  10034. + case ${1} in
  10035. + */*) func_dirname_result="${1%/*}${2}" ;;
  10036. + * ) func_dirname_result="${3}" ;;
  10037. + esac
  10038. + func_basename_result="${1##*/}"
  10039. +}
  10040. +
  10041. +# func_stripname prefix suffix name
  10042. +# strip PREFIX and SUFFIX off of NAME.
  10043. +# PREFIX and SUFFIX must not contain globbing or regex special
  10044. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  10045. +# dot (in which case that matches only a dot).
  10046. +func_stripname ()
  10047. +{
  10048. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  10049. + # positional parameters, so assign one to ordinary parameter first.
  10050. + func_stripname_result=${3}
  10051. + func_stripname_result=${func_stripname_result#"${1}"}
  10052. + func_stripname_result=${func_stripname_result%"${2}"}
  10053. +}
  10054. +
  10055. +# func_opt_split
  10056. +func_opt_split ()
  10057. +{
  10058. + func_opt_split_opt=${1%%=*}
  10059. + func_opt_split_arg=${1#*=}
  10060. +}
  10061. +
  10062. +# func_lo2o object
  10063. +func_lo2o ()
  10064. +{
  10065. + case ${1} in
  10066. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  10067. + *) func_lo2o_result=${1} ;;
  10068. + esac
  10069. +}
  10070. +
  10071. +# func_xform libobj-or-source
  10072. +func_xform ()
  10073. +{
  10074. + func_xform_result=${1%.*}.lo
  10075. +}
  10076. +
  10077. +# func_arith arithmetic-term...
  10078. +func_arith ()
  10079. +{
  10080. + func_arith_result=$(( $[*] ))
  10081. +}
  10082. +
  10083. +# func_len string
  10084. +# STRING may not start with a hyphen.
  10085. +func_len ()
  10086. +{
  10087. + func_len_result=${#1}
  10088. +}
  10089. +
  10090. +_LT_EOF
  10091. + ;;
  10092. + *) # Bourne compatible functions.
  10093. + cat << \_LT_EOF >> "$cfgfile"
  10094. +
  10095. +# func_dirname file append nondir_replacement
  10096. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  10097. +# otherwise set result to NONDIR_REPLACEMENT.
  10098. +func_dirname ()
  10099. +{
  10100. + # Extract subdirectory from the argument.
  10101. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  10102. + if test "X$func_dirname_result" = "X${1}"; then
  10103. + func_dirname_result="${3}"
  10104. else
  10105. - lt_cv_sys_global_symbol_pipe=
  10106. + func_dirname_result="$func_dirname_result${2}"
  10107. fi
  10108. -done
  10109. +}
  10110. +
  10111. +# func_basename file
  10112. +func_basename ()
  10113. +{
  10114. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  10115. +}
  10116. +
  10117. +dnl func_dirname_and_basename
  10118. +dnl A portable version of this function is already defined in general.m4sh
  10119. +dnl so there is no need for it here.
  10120. +
  10121. +# func_stripname prefix suffix name
  10122. +# strip PREFIX and SUFFIX off of NAME.
  10123. +# PREFIX and SUFFIX must not contain globbing or regex special
  10124. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  10125. +# dot (in which case that matches only a dot).
  10126. +# func_strip_suffix prefix name
  10127. +func_stripname ()
  10128. +{
  10129. + case ${2} in
  10130. + .*) func_stripname_result=`$ECHO "X${3}" \
  10131. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  10132. + *) func_stripname_result=`$ECHO "X${3}" \
  10133. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  10134. + esac
  10135. +}
  10136. +
  10137. +# sed scripts:
  10138. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  10139. +my_sed_long_arg='1s/^-[[^=]]*=//'
  10140. +
  10141. +# func_opt_split
  10142. +func_opt_split ()
  10143. +{
  10144. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  10145. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  10146. +}
  10147. +
  10148. +# func_lo2o object
  10149. +func_lo2o ()
  10150. +{
  10151. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  10152. +}
  10153. +
  10154. +# func_xform libobj-or-source
  10155. +func_xform ()
  10156. +{
  10157. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  10158. +}
  10159. +
  10160. +# func_arith arithmetic-term...
  10161. +func_arith ()
  10162. +{
  10163. + func_arith_result=`expr "$[@]"`
  10164. +}
  10165. +
  10166. +# func_len string
  10167. +# STRING may not start with a hyphen.
  10168. +func_len ()
  10169. +{
  10170. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  10171. +}
  10172. +
  10173. +_LT_EOF
  10174. +esac
  10175. +
  10176. +case $lt_shell_append in
  10177. + yes)
  10178. + cat << \_LT_EOF >> "$cfgfile"
  10179. +
  10180. +# func_append var value
  10181. +# Append VALUE to the end of shell variable VAR.
  10182. +func_append ()
  10183. +{
  10184. + eval "$[1]+=\$[2]"
  10185. +}
  10186. +_LT_EOF
  10187. + ;;
  10188. + *)
  10189. + cat << \_LT_EOF >> "$cfgfile"
  10190. +
  10191. +# func_append var value
  10192. +# Append VALUE to the end of shell variable VAR.
  10193. +func_append ()
  10194. +{
  10195. + eval "$[1]=\$$[1]\$[2]"
  10196. +}
  10197. +
  10198. +_LT_EOF
  10199. + ;;
  10200. + esac
  10201. +])
  10202. +
  10203. +# Helper functions for option handling. -*- Autoconf -*-
  10204. +#
  10205. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  10206. +# Written by Gary V. Vaughan, 2004
  10207. +#
  10208. +# This file is free software; the Free Software Foundation gives
  10209. +# unlimited permission to copy and/or distribute it, with or without
  10210. +# modifications, as long as this notice is preserved.
  10211. +
  10212. +# serial 6 ltoptions.m4
  10213. +
  10214. +# This is to help aclocal find these macros, as it can't see m4_define.
  10215. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  10216. +
  10217. +
  10218. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  10219. +# ------------------------------------------
  10220. +m4_define([_LT_MANGLE_OPTION],
  10221. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  10222. +
  10223. +
  10224. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  10225. +# ---------------------------------------
  10226. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  10227. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  10228. +# saved as a flag.
  10229. +m4_define([_LT_SET_OPTION],
  10230. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  10231. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  10232. + _LT_MANGLE_DEFUN([$1], [$2]),
  10233. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  10234. +])
  10235. +
  10236. +
  10237. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  10238. +# ------------------------------------------------------------
  10239. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  10240. +m4_define([_LT_IF_OPTION],
  10241. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  10242. +
  10243. +
  10244. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  10245. +# -------------------------------------------------------
  10246. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  10247. +# are set.
  10248. +m4_define([_LT_UNLESS_OPTIONS],
  10249. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  10250. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  10251. + [m4_define([$0_found])])])[]dnl
  10252. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  10253. +])[]dnl
  10254. +])
  10255. +
  10256. +
  10257. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  10258. +# ----------------------------------------
  10259. +# OPTION-LIST is a space-separated list of Libtool options associated
  10260. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  10261. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  10262. +# the unknown option and exit.
  10263. +m4_defun([_LT_SET_OPTIONS],
  10264. +[# Set options
  10265. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  10266. + [_LT_SET_OPTION([$1], _LT_Option)])
  10267. +
  10268. +m4_if([$1],[LT_INIT],[
  10269. + dnl
  10270. + dnl Simply set some default values (i.e off) if boolean options were not
  10271. + dnl specified:
  10272. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  10273. + ])
  10274. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  10275. + ])
  10276. + dnl
  10277. + dnl If no reference was made to various pairs of opposing options, then
  10278. + dnl we run the default mode handler for the pair. For example, if neither
  10279. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  10280. + dnl archives by default:
  10281. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  10282. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  10283. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  10284. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  10285. + [_LT_ENABLE_FAST_INSTALL])
  10286. + ])
  10287. +])# _LT_SET_OPTIONS
  10288. +
  10289. +
  10290. +
  10291. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  10292. +# -----------------------------------------
  10293. +m4_define([_LT_MANGLE_DEFUN],
  10294. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  10295. +
  10296. +
  10297. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  10298. +# -----------------------------------------------
  10299. +m4_define([LT_OPTION_DEFINE],
  10300. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  10301. +])# LT_OPTION_DEFINE
  10302. +
  10303. +
  10304. +# dlopen
  10305. +# ------
  10306. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  10307. +])
  10308. +
  10309. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  10310. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  10311. +AC_DIAGNOSE([obsolete],
  10312. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10313. +put the `dlopen' option into LT_INIT's first parameter.])
  10314. +])
  10315. +
  10316. +dnl aclocal-1.4 backwards compatibility:
  10317. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  10318. +
  10319. +
  10320. +# win32-dll
  10321. +# ---------
  10322. +# Declare package support for building win32 dll's.
  10323. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  10324. +[enable_win32_dll=yes
  10325. +
  10326. +case $host in
  10327. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  10328. + AC_CHECK_TOOL(AS, as, false)
  10329. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  10330. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  10331. + ;;
  10332. +esac
  10333. +
  10334. +test -z "$AS" && AS=as
  10335. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  10336. +
  10337. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  10338. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  10339. +
  10340. +test -z "$OBJDUMP" && OBJDUMP=objdump
  10341. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  10342. +])# win32-dll
  10343. +
  10344. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  10345. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  10346. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  10347. +AC_DIAGNOSE([obsolete],
  10348. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10349. +put the `win32-dll' option into LT_INIT's first parameter.])
  10350. +])
  10351. +
  10352. +dnl aclocal-1.4 backwards compatibility:
  10353. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  10354. +
  10355. +
  10356. +# _LT_ENABLE_SHARED([DEFAULT])
  10357. +# ----------------------------
  10358. +# implement the --enable-shared flag, and supports the `shared' and
  10359. +# `disable-shared' LT_INIT options.
  10360. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10361. +m4_define([_LT_ENABLE_SHARED],
  10362. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10363. +AC_ARG_ENABLE([shared],
  10364. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  10365. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  10366. + [p=${PACKAGE-default}
  10367. + case $enableval in
  10368. + yes) enable_shared=yes ;;
  10369. + no) enable_shared=no ;;
  10370. + *)
  10371. + enable_shared=no
  10372. + # Look at the argument we got. We use all the common list separators.
  10373. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10374. + for pkg in $enableval; do
  10375. + IFS="$lt_save_ifs"
  10376. + if test "X$pkg" = "X$p"; then
  10377. + enable_shared=yes
  10378. + fi
  10379. + done
  10380. + IFS="$lt_save_ifs"
  10381. + ;;
  10382. + esac],
  10383. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  10384. +
  10385. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  10386. + [Whether or not to build shared libraries])
  10387. +])# _LT_ENABLE_SHARED
  10388. +
  10389. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  10390. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  10391. +
  10392. +# Old names:
  10393. +AC_DEFUN([AC_ENABLE_SHARED],
  10394. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  10395. +])
  10396. +
  10397. +AC_DEFUN([AC_DISABLE_SHARED],
  10398. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  10399. +])
  10400. +
  10401. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  10402. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  10403. +
  10404. +dnl aclocal-1.4 backwards compatibility:
  10405. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  10406. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  10407. +
  10408. +
  10409. +
  10410. +# _LT_ENABLE_STATIC([DEFAULT])
  10411. +# ----------------------------
  10412. +# implement the --enable-static flag, and support the `static' and
  10413. +# `disable-static' LT_INIT options.
  10414. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10415. +m4_define([_LT_ENABLE_STATIC],
  10416. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10417. +AC_ARG_ENABLE([static],
  10418. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  10419. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  10420. + [p=${PACKAGE-default}
  10421. + case $enableval in
  10422. + yes) enable_static=yes ;;
  10423. + no) enable_static=no ;;
  10424. + *)
  10425. + enable_static=no
  10426. + # Look at the argument we got. We use all the common list separators.
  10427. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10428. + for pkg in $enableval; do
  10429. + IFS="$lt_save_ifs"
  10430. + if test "X$pkg" = "X$p"; then
  10431. + enable_static=yes
  10432. + fi
  10433. + done
  10434. + IFS="$lt_save_ifs"
  10435. + ;;
  10436. + esac],
  10437. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  10438. +
  10439. + _LT_DECL([build_old_libs], [enable_static], [0],
  10440. + [Whether or not to build static libraries])
  10441. +])# _LT_ENABLE_STATIC
  10442. +
  10443. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  10444. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  10445. +
  10446. +# Old names:
  10447. +AC_DEFUN([AC_ENABLE_STATIC],
  10448. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  10449. +])
  10450. +
  10451. +AC_DEFUN([AC_DISABLE_STATIC],
  10452. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  10453. ])
  10454. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  10455. - lt_cv_sys_global_symbol_to_cdecl=
  10456. -fi
  10457. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  10458. - AC_MSG_RESULT(failed)
  10459. -else
  10460. - AC_MSG_RESULT(ok)
  10461. -fi
  10462. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  10463. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  10464. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  10465. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  10466. -# ---------------------------------------
  10467. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  10468. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  10469. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  10470. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  10471. +dnl aclocal-1.4 backwards compatibility:
  10472. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  10473. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  10474. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  10475. - ifelse([$1],[CXX],[
  10476. - # C++ specific cases for pic, static, wl, etc.
  10477. - if test "$GXX" = yes; then
  10478. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10479. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  10480. - case $host_os in
  10481. - aix*)
  10482. - # All AIX code is PIC.
  10483. - if test "$host_cpu" = ia64; then
  10484. - # AIX 5 now supports IA64 processor
  10485. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10486. - fi
  10487. - ;;
  10488. - amigaos*)
  10489. - # FIXME: we need at least 68020 code to build shared libraries, but
  10490. - # adding the `-m68020' flag to GCC prevents building anything better,
  10491. - # like `-m68040'.
  10492. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  10493. - ;;
  10494. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10495. - # PIC is the default for these OSes.
  10496. - ;;
  10497. - mingw* | os2* | pw32*)
  10498. - # This hack is so that the source file can tell whether it is being
  10499. - # built for inclusion in a dll (and should export symbols for example).
  10500. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  10501. - ;;
  10502. - darwin* | rhapsody*)
  10503. - # PIC is the default on this platform
  10504. - # Common symbols not allowed in MH_DYLIB files
  10505. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  10506. - ;;
  10507. - *djgpp*)
  10508. - # DJGPP does not support shared libraries at all
  10509. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  10510. - ;;
  10511. - sysv4*MP*)
  10512. - if test -d /usr/nec; then
  10513. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  10514. - fi
  10515. - ;;
  10516. - hpux*)
  10517. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10518. - # not for PA HP-UX.
  10519. - case "$host_cpu" in
  10520. - hppa*64*|ia64*)
  10521. - ;;
  10522. - *)
  10523. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  10524. - ;;
  10525. - esac
  10526. - ;;
  10527. +
  10528. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  10529. +# ----------------------------------
  10530. +# implement the --enable-fast-install flag, and support the `fast-install'
  10531. +# and `disable-fast-install' LT_INIT options.
  10532. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10533. +m4_define([_LT_ENABLE_FAST_INSTALL],
  10534. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10535. +AC_ARG_ENABLE([fast-install],
  10536. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  10537. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  10538. + [p=${PACKAGE-default}
  10539. + case $enableval in
  10540. + yes) enable_fast_install=yes ;;
  10541. + no) enable_fast_install=no ;;
  10542. *)
  10543. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  10544. - ;;
  10545. - esac
  10546. - else
  10547. - case $host_os in
  10548. - aix4* | aix5*)
  10549. - # All AIX code is PIC.
  10550. - if test "$host_cpu" = ia64; then
  10551. - # AIX 5 now supports IA64 processor
  10552. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10553. - else
  10554. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  10555. + enable_fast_install=no
  10556. + # Look at the argument we got. We use all the common list separators.
  10557. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10558. + for pkg in $enableval; do
  10559. + IFS="$lt_save_ifs"
  10560. + if test "X$pkg" = "X$p"; then
  10561. + enable_fast_install=yes
  10562. fi
  10563. - ;;
  10564. - chorus*)
  10565. - case $cc_basename in
  10566. - cxch68)
  10567. - # Green Hills C++ Compiler
  10568. - # _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"
  10569. - ;;
  10570. - esac
  10571. - ;;
  10572. - dgux*)
  10573. - case $cc_basename in
  10574. - ec++)
  10575. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10576. - ;;
  10577. - ghcx)
  10578. - # Green Hills C++ Compiler
  10579. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10580. - ;;
  10581. - *)
  10582. - ;;
  10583. - esac
  10584. - ;;
  10585. - freebsd*)
  10586. - # FreeBSD uses GNU C++
  10587. - ;;
  10588. - hpux9* | hpux10* | hpux11*)
  10589. - case $cc_basename in
  10590. - CC)
  10591. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10592. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  10593. - if test "$host_cpu" != ia64; then
  10594. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  10595. - fi
  10596. - ;;
  10597. - aCC)
  10598. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10599. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  10600. - case "$host_cpu" in
  10601. - hppa*64*|ia64*)
  10602. - # +Z the default
  10603. - ;;
  10604. - *)
  10605. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  10606. - ;;
  10607. - esac
  10608. - ;;
  10609. - *)
  10610. - ;;
  10611. - esac
  10612. - ;;
  10613. - irix5* | irix6* | nonstopux*)
  10614. - case $cc_basename in
  10615. - CC)
  10616. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10617. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  10618. - # CC pic flag -KPIC is the default.
  10619. - ;;
  10620. - *)
  10621. - ;;
  10622. - esac
  10623. - ;;
  10624. - linux*)
  10625. - case $cc_basename in
  10626. - KCC)
  10627. - # KAI C++ Compiler
  10628. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  10629. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  10630. - ;;
  10631. - icpc)
  10632. - # Intel C++
  10633. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10634. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10635. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  10636. - ;;
  10637. - cxx)
  10638. - # Compaq C++
  10639. - # Make sure the PIC flag is empty. It appears that all Alpha
  10640. - # Linux and Compaq Tru64 Unix objects are PIC.
  10641. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  10642. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  10643. - ;;
  10644. - *)
  10645. - ;;
  10646. - esac
  10647. - ;;
  10648. - lynxos*)
  10649. - ;;
  10650. - m88k*)
  10651. - ;;
  10652. - mvs*)
  10653. - case $cc_basename in
  10654. - cxx)
  10655. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  10656. - ;;
  10657. - *)
  10658. - ;;
  10659. - esac
  10660. - ;;
  10661. - netbsd*)
  10662. - ;;
  10663. - osf3* | osf4* | osf5*)
  10664. - case $cc_basename in
  10665. - KCC)
  10666. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  10667. - ;;
  10668. - RCC)
  10669. - # Rational C++ 2.4.1
  10670. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10671. - ;;
  10672. - cxx)
  10673. - # Digital/Compaq C++
  10674. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10675. - # Make sure the PIC flag is empty. It appears that all Alpha
  10676. - # Linux and Compaq Tru64 Unix objects are PIC.
  10677. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  10678. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  10679. - ;;
  10680. - *)
  10681. - ;;
  10682. - esac
  10683. - ;;
  10684. - psos*)
  10685. - ;;
  10686. - sco*)
  10687. - case $cc_basename in
  10688. - CC)
  10689. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  10690. - ;;
  10691. - *)
  10692. - ;;
  10693. - esac
  10694. - ;;
  10695. - solaris*)
  10696. - case $cc_basename in
  10697. - CC)
  10698. - # Sun C++ 4.2, 5.x and Centerline C++
  10699. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10700. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10701. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  10702. - ;;
  10703. - gcx)
  10704. - # Green Hills C++ Compiler
  10705. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  10706. - ;;
  10707. - *)
  10708. - ;;
  10709. - esac
  10710. - ;;
  10711. - sunos4*)
  10712. - case $cc_basename in
  10713. - CC)
  10714. - # Sun C++ 4.x
  10715. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10716. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10717. - ;;
  10718. - lcc)
  10719. - # Lucid
  10720. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10721. - ;;
  10722. - *)
  10723. - ;;
  10724. - esac
  10725. - ;;
  10726. - tandem*)
  10727. - case $cc_basename in
  10728. - NCC)
  10729. - # NonStop-UX NCC 3.20
  10730. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10731. - ;;
  10732. - *)
  10733. - ;;
  10734. - esac
  10735. - ;;
  10736. - unixware*)
  10737. - ;;
  10738. - vxworks*)
  10739. - ;;
  10740. - *)
  10741. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  10742. - ;;
  10743. - esac
  10744. - fi
  10745. -],
  10746. -[
  10747. - if test "$GCC" = yes; then
  10748. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10749. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  10750. -
  10751. - case $host_os in
  10752. - aix*)
  10753. - # All AIX code is PIC.
  10754. - if test "$host_cpu" = ia64; then
  10755. - # AIX 5 now supports IA64 processor
  10756. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10757. - fi
  10758. + done
  10759. + IFS="$lt_save_ifs"
  10760. ;;
  10761. + esac],
  10762. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  10763. - amigaos*)
  10764. - # FIXME: we need at least 68020 code to build shared libraries, but
  10765. - # adding the `-m68020' flag to GCC prevents building anything better,
  10766. - # like `-m68040'.
  10767. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  10768. - ;;
  10769. +_LT_DECL([fast_install], [enable_fast_install], [0],
  10770. + [Whether or not to optimize for fast installation])dnl
  10771. +])# _LT_ENABLE_FAST_INSTALL
  10772. +
  10773. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  10774. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  10775. +
  10776. +# Old names:
  10777. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  10778. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  10779. +AC_DIAGNOSE([obsolete],
  10780. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  10781. +the `fast-install' option into LT_INIT's first parameter.])
  10782. +])
  10783. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10784. - # PIC is the default for these OSes.
  10785. - ;;
  10786. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  10787. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  10788. +AC_DIAGNOSE([obsolete],
  10789. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  10790. +the `disable-fast-install' option into LT_INIT's first parameter.])
  10791. +])
  10792. - mingw* | pw32* | os2*)
  10793. - # This hack is so that the source file can tell whether it is being
  10794. - # built for inclusion in a dll (and should export symbols for example).
  10795. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  10796. - ;;
  10797. +dnl aclocal-1.4 backwards compatibility:
  10798. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  10799. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  10800. - darwin* | rhapsody*)
  10801. - # PIC is the default on this platform
  10802. - # Common symbols not allowed in MH_DYLIB files
  10803. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  10804. - ;;
  10805. - msdosdjgpp*)
  10806. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  10807. - # on systems that don't support them.
  10808. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  10809. - enable_shared=no
  10810. - ;;
  10811. +# _LT_WITH_PIC([MODE])
  10812. +# --------------------
  10813. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  10814. +# LT_INIT options.
  10815. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  10816. +m4_define([_LT_WITH_PIC],
  10817. +[AC_ARG_WITH([pic],
  10818. + [AS_HELP_STRING([--with-pic],
  10819. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  10820. + [pic_mode="$withval"],
  10821. + [pic_mode=default])
  10822. +
  10823. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  10824. +
  10825. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  10826. +])# _LT_WITH_PIC
  10827. +
  10828. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  10829. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  10830. +
  10831. +# Old name:
  10832. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  10833. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  10834. +AC_DIAGNOSE([obsolete],
  10835. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10836. +put the `pic-only' option into LT_INIT's first parameter.])
  10837. +])
  10838. +
  10839. +dnl aclocal-1.4 backwards compatibility:
  10840. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  10841. +
  10842. +
  10843. +m4_define([_LTDL_MODE], [])
  10844. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  10845. + [m4_define([_LTDL_MODE], [nonrecursive])])
  10846. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  10847. + [m4_define([_LTDL_MODE], [recursive])])
  10848. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  10849. + [m4_define([_LTDL_MODE], [subproject])])
  10850. +
  10851. +m4_define([_LTDL_TYPE], [])
  10852. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  10853. + [m4_define([_LTDL_TYPE], [installable])])
  10854. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  10855. + [m4_define([_LTDL_TYPE], [convenience])])
  10856. +
  10857. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  10858. +#
  10859. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  10860. +# Written by Gary V. Vaughan, 2004
  10861. +#
  10862. +# This file is free software; the Free Software Foundation gives
  10863. +# unlimited permission to copy and/or distribute it, with or without
  10864. +# modifications, as long as this notice is preserved.
  10865. +
  10866. +# serial 6 ltsugar.m4
  10867. +
  10868. +# This is to help aclocal find these macros, as it can't see m4_define.
  10869. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  10870. +
  10871. +
  10872. +# lt_join(SEP, ARG1, [ARG2...])
  10873. +# -----------------------------
  10874. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  10875. +# associated separator.
  10876. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  10877. +# versions in m4sugar had bugs.
  10878. +m4_define([lt_join],
  10879. +[m4_if([$#], [1], [],
  10880. + [$#], [2], [[$2]],
  10881. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  10882. +m4_define([_lt_join],
  10883. +[m4_if([$#$2], [2], [],
  10884. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  10885. +
  10886. +
  10887. +# lt_car(LIST)
  10888. +# lt_cdr(LIST)
  10889. +# ------------
  10890. +# Manipulate m4 lists.
  10891. +# These macros are necessary as long as will still need to support
  10892. +# Autoconf-2.59 which quotes differently.
  10893. +m4_define([lt_car], [[$1]])
  10894. +m4_define([lt_cdr],
  10895. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  10896. + [$#], 1, [],
  10897. + [m4_dquote(m4_shift($@))])])
  10898. +m4_define([lt_unquote], $1)
  10899. +
  10900. +
  10901. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  10902. +# ------------------------------------------
  10903. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  10904. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  10905. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  10906. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  10907. +# than defined and empty).
  10908. +#
  10909. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  10910. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  10911. +m4_define([lt_append],
  10912. +[m4_define([$1],
  10913. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  10914. +
  10915. +
  10916. +
  10917. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  10918. +# ----------------------------------------------------------
  10919. +# Produce a SEP delimited list of all paired combinations of elements of
  10920. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  10921. +# has the form PREFIXmINFIXSUFFIXn.
  10922. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  10923. +m4_define([lt_combine],
  10924. +[m4_if(m4_eval([$# > 3]), [1],
  10925. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  10926. +[[m4_foreach([_Lt_prefix], [$2],
  10927. + [m4_foreach([_Lt_suffix],
  10928. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  10929. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  10930. +
  10931. +
  10932. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  10933. +# -----------------------------------------------------------------------
  10934. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  10935. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  10936. +m4_define([lt_if_append_uniq],
  10937. +[m4_ifdef([$1],
  10938. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  10939. + [lt_append([$1], [$2], [$3])$4],
  10940. + [$5])],
  10941. + [lt_append([$1], [$2], [$3])$4])])
  10942. - sysv4*MP*)
  10943. - if test -d /usr/nec; then
  10944. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  10945. - fi
  10946. - ;;
  10947. - hpux*)
  10948. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10949. - # not for PA HP-UX.
  10950. - case "$host_cpu" in
  10951. - hppa*64*|ia64*)
  10952. - # +Z the default
  10953. - ;;
  10954. - *)
  10955. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  10956. - ;;
  10957. - esac
  10958. - ;;
  10959. +# lt_dict_add(DICT, KEY, VALUE)
  10960. +# -----------------------------
  10961. +m4_define([lt_dict_add],
  10962. +[m4_define([$1($2)], [$3])])
  10963. - *)
  10964. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  10965. - ;;
  10966. - esac
  10967. - else
  10968. - # PORTME Check for flag to pass linker flags through the system compiler.
  10969. - case $host_os in
  10970. - aix*)
  10971. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10972. - if test "$host_cpu" = ia64; then
  10973. - # AIX 5 now supports IA64 processor
  10974. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10975. - else
  10976. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  10977. - fi
  10978. - ;;
  10979. - mingw* | pw32* | os2*)
  10980. - # This hack is so that the source file can tell whether it is being
  10981. - # built for inclusion in a dll (and should export symbols for example).
  10982. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  10983. - ;;
  10984. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  10985. +# --------------------------------------------
  10986. +m4_define([lt_dict_add_subkey],
  10987. +[m4_define([$1($2:$3)], [$4])])
  10988. - hpux9* | hpux10* | hpux11*)
  10989. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10990. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10991. - # not for PA HP-UX.
  10992. - case "$host_cpu" in
  10993. - hppa*64*|ia64*)
  10994. - # +Z the default
  10995. - ;;
  10996. - *)
  10997. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  10998. - ;;
  10999. - esac
  11000. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11001. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  11002. - ;;
  11003. - irix5* | irix6* | nonstopux*)
  11004. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11005. - # PIC (with -KPIC) is the default.
  11006. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11007. - ;;
  11008. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  11009. +# ----------------------------------
  11010. +m4_define([lt_dict_fetch],
  11011. +[m4_ifval([$3],
  11012. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  11013. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  11014. - newsos6)
  11015. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11016. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11017. - ;;
  11018. - linux*)
  11019. - case $CC in
  11020. - icc|ecc)
  11021. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11022. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11023. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  11024. - ;;
  11025. - ccc)
  11026. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11027. - # All Alpha code is PIC.
  11028. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11029. - ;;
  11030. - esac
  11031. - ;;
  11032. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  11033. +# -----------------------------------------------------------------
  11034. +m4_define([lt_if_dict_fetch],
  11035. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  11036. + [$5],
  11037. + [$6])])
  11038. - osf3* | osf4* | osf5*)
  11039. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11040. - # All OSF/1 code is PIC.
  11041. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11042. - ;;
  11043. - sco3.2v5*)
  11044. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
  11045. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
  11046. - ;;
  11047. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  11048. +# --------------------------------------------------------------
  11049. +m4_define([lt_dict_filter],
  11050. +[m4_if([$5], [], [],
  11051. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  11052. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  11053. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  11054. +])
  11055. - solaris*)
  11056. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11057. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11058. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11059. - ;;
  11060. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  11061. +#
  11062. +# Copyright (C) 2004 Free Software Foundation, Inc.
  11063. +# Written by Scott James Remnant, 2004
  11064. +#
  11065. +# This file is free software; the Free Software Foundation gives
  11066. +# unlimited permission to copy and/or distribute it, with or without
  11067. +# modifications, as long as this notice is preserved.
  11068. +
  11069. +# Generated from ltversion.in.
  11070. +
  11071. +# serial 3017 ltversion.m4
  11072. +# This file is part of GNU Libtool
  11073. +
  11074. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  11075. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  11076. +
  11077. +AC_DEFUN([LTVERSION_VERSION],
  11078. +[macro_version='2.2.6b'
  11079. +macro_revision='1.3017'
  11080. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  11081. +_LT_DECL(, macro_revision, 0)
  11082. +])
  11083. - sunos4*)
  11084. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  11085. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  11086. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11087. - ;;
  11088. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  11089. +#
  11090. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  11091. +# Written by Scott James Remnant, 2004.
  11092. +#
  11093. +# This file is free software; the Free Software Foundation gives
  11094. +# unlimited permission to copy and/or distribute it, with or without
  11095. +# modifications, as long as this notice is preserved.
  11096. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11097. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11098. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11099. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11100. - ;;
  11101. +# serial 4 lt~obsolete.m4
  11102. - sysv4*MP*)
  11103. - if test -d /usr/nec ;then
  11104. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  11105. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11106. - fi
  11107. - ;;
  11108. +# These exist entirely to fool aclocal when bootstrapping libtool.
  11109. +#
  11110. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  11111. +# which have later been changed to m4_define as they aren't part of the
  11112. +# exported API, or moved to Autoconf or Automake where they belong.
  11113. +#
  11114. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  11115. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  11116. +# using a macro with the same name in our local m4/libtool.m4 it'll
  11117. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  11118. +# and doesn't know about Autoconf macros at all.)
  11119. +#
  11120. +# So we provide this file, which has a silly filename so it's always
  11121. +# included after everything else. This provides aclocal with the
  11122. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  11123. +# because those macros already exist, or will be overwritten later.
  11124. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  11125. +#
  11126. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  11127. +# Yes, that means every name once taken will need to remain here until
  11128. +# we give up compatibility with versions before 1.7, at which point
  11129. +# we need to keep only those names which we still refer to.
  11130. +
  11131. +# This is to help aclocal find these macros, as it can't see m4_define.
  11132. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  11133. +
  11134. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  11135. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  11136. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  11137. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  11138. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  11139. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  11140. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  11141. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  11142. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  11143. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  11144. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  11145. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  11146. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  11147. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  11148. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  11149. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  11150. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  11151. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  11152. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  11153. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  11154. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  11155. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  11156. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  11157. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  11158. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  11159. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  11160. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  11161. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  11162. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  11163. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  11164. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  11165. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  11166. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  11167. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  11168. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  11169. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  11170. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  11171. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  11172. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  11173. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  11174. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  11175. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  11176. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  11177. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  11178. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  11179. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  11180. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  11181. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  11182. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  11183. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  11184. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  11185. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  11186. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  11187. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  11188. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  11189. - uts4*)
  11190. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  11191. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11192. - ;;
  11193. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  11194. +#
  11195. +# This file is free software; the Free Software Foundation
  11196. +# gives unlimited permission to copy and/or distribute it,
  11197. +# with or without modifications, as long as this notice is preserved.
  11198. - *)
  11199. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  11200. - ;;
  11201. - esac
  11202. - fi
  11203. +# AM_AUTOMAKE_VERSION(VERSION)
  11204. +# ----------------------------
  11205. +# Automake X.Y traces this macro to ensure aclocal.m4 has been
  11206. +# generated from the m4 files accompanying Automake X.Y.
  11207. +# (This private macro should not be called outside this file.)
  11208. +AC_DEFUN([AM_AUTOMAKE_VERSION],
  11209. +[am__api_version='1.11'
  11210. +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  11211. +dnl require some minimum version. Point them to the right macro.
  11212. +m4_if([$1], [1.11.1], [],
  11213. + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  11214. ])
  11215. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  11216. +# _AM_AUTOCONF_VERSION(VERSION)
  11217. +# -----------------------------
  11218. +# aclocal traces this macro to find the Autoconf version.
  11219. +# This is a private macro too. Using m4_define simplifies
  11220. +# the logic in aclocal, which can simply ignore this definition.
  11221. +m4_define([_AM_AUTOCONF_VERSION], [])
  11222. +
  11223. +# AM_SET_CURRENT_AUTOMAKE_VERSION
  11224. +# -------------------------------
  11225. +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  11226. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  11227. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  11228. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  11229. +m4_ifndef([AC_AUTOCONF_VERSION],
  11230. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  11231. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  11232. +
  11233. +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
  11234. +
  11235. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  11236. #
  11237. -# Check to make sure the PIC flag actually works.
  11238. +# This file is free software; the Free Software Foundation
  11239. +# gives unlimited permission to copy and/or distribute it,
  11240. +# with or without modifications, as long as this notice is preserved.
  11241. +
  11242. +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  11243. +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  11244. +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  11245. #
  11246. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  11247. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  11248. - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  11249. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  11250. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  11251. - "" | " "*) ;;
  11252. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  11253. - esac],
  11254. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  11255. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  11256. -fi
  11257. -case "$host_os" in
  11258. - # For platforms which do not support PIC, -DPIC is meaningless:
  11259. - *djgpp*)
  11260. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  11261. - ;;
  11262. - *)
  11263. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  11264. - ;;
  11265. -esac
  11266. +# Of course, Automake must honor this variable whenever it calls a
  11267. +# tool from the auxiliary directory. The problem is that $srcdir (and
  11268. +# therefore $ac_aux_dir as well) can be either absolute or relative,
  11269. +# depending on how configure is run. This is pretty annoying, since
  11270. +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
  11271. +# source directory, any form will work fine, but in subdirectories a
  11272. +# relative path needs to be adjusted first.
  11273. +#
  11274. +# $ac_aux_dir/missing
  11275. +# fails when called from a subdirectory if $ac_aux_dir is relative
  11276. +# $top_srcdir/$ac_aux_dir/missing
  11277. +# fails if $ac_aux_dir is absolute,
  11278. +# fails when called from a subdirectory in a VPATH build with
  11279. +# a relative $ac_aux_dir
  11280. +#
  11281. +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  11282. +# are both prefixed by $srcdir. In an in-source build this is usually
  11283. +# harmless because $srcdir is `.', but things will broke when you
  11284. +# start a VPATH build or use an absolute $srcdir.
  11285. +#
  11286. +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  11287. +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  11288. +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  11289. +# and then we would define $MISSING as
  11290. +# MISSING="\${SHELL} $am_aux_dir/missing"
  11291. +# This will work as long as MISSING is not called from configure, because
  11292. +# unfortunately $(top_srcdir) has no meaning in configure.
  11293. +# However there are other variables, like CC, which are often used in
  11294. +# configure, and could therefore not use this "fixed" $ac_aux_dir.
  11295. +#
  11296. +# Another solution, used here, is to always expand $ac_aux_dir to an
  11297. +# absolute PATH. The drawback is that using absolute paths prevent a
  11298. +# configured tree to be moved without reconfiguration.
  11299. +
  11300. +AC_DEFUN([AM_AUX_DIR_EXPAND],
  11301. +[dnl Rely on autoconf to set up CDPATH properly.
  11302. +AC_PREREQ([2.50])dnl
  11303. +# expand $ac_aux_dir to an absolute path
  11304. +am_aux_dir=`cd $ac_aux_dir && pwd`
  11305. ])
  11306. +# AM_CONDITIONAL -*- Autoconf -*-
  11307. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  11308. -# ------------------------------------
  11309. -# See if the linker supports building shared libraries.
  11310. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  11311. -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  11312. -ifelse([$1],[CXX],[
  11313. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11314. - case $host_os in
  11315. - aix4* | aix5*)
  11316. - # If we're using GNU nm, then we don't want the "-C" option.
  11317. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11318. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11319. - _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'
  11320. - else
  11321. - _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'
  11322. - fi
  11323. - ;;
  11324. - pw32*)
  11325. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  11326. - ;;
  11327. - cygwin* | mingw*)
  11328. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  11329. - ;;
  11330. - *)
  11331. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11332. - ;;
  11333. - esac
  11334. -],[
  11335. - runpath_var=
  11336. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  11337. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  11338. - _LT_AC_TAGVAR(archive_cmds, $1)=
  11339. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  11340. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  11341. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  11342. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  11343. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11344. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  11345. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11346. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  11347. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  11348. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11349. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  11350. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  11351. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  11352. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  11353. - _LT_AC_TAGVAR(module_cmds, $1)=
  11354. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  11355. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  11356. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11357. - # include_expsyms should be a list of space-separated symbols to be *always*
  11358. - # included in the symbol list
  11359. - _LT_AC_TAGVAR(include_expsyms, $1)=
  11360. - # exclude_expsyms can be an extended regexp of symbols to exclude
  11361. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  11362. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  11363. - # as well as any symbol that contains `d'.
  11364. - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  11365. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11366. - # platforms (ab)use it in PIC code, but their linkers get confused if
  11367. - # the symbol is explicitly referenced. Since portable code cannot
  11368. - # rely on this symbol name, it's probably fine to never include it in
  11369. - # preloaded symbol tables.
  11370. - extract_expsyms_cmds=
  11371. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  11372. +# Free Software Foundation, Inc.
  11373. +#
  11374. +# This file is free software; the Free Software Foundation
  11375. +# gives unlimited permission to copy and/or distribute it,
  11376. +# with or without modifications, as long as this notice is preserved.
  11377. - case $host_os in
  11378. - cygwin* | mingw* | pw32*)
  11379. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11380. - # When not using gcc, we currently assume that we are using
  11381. - # Microsoft Visual C++.
  11382. - if test "$GCC" != yes; then
  11383. - with_gnu_ld=no
  11384. - fi
  11385. - ;;
  11386. - openbsd*)
  11387. - with_gnu_ld=no
  11388. - ;;
  11389. - esac
  11390. +# serial 9
  11391. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  11392. - if test "$with_gnu_ld" = yes; then
  11393. - # If archive_cmds runs LD, not CC, wlarc should be empty
  11394. - wlarc='${wl}'
  11395. +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
  11396. +# -------------------------------------
  11397. +# Define a conditional.
  11398. +AC_DEFUN([AM_CONDITIONAL],
  11399. +[AC_PREREQ(2.52)dnl
  11400. + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  11401. + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  11402. +AC_SUBST([$1_TRUE])dnl
  11403. +AC_SUBST([$1_FALSE])dnl
  11404. +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  11405. +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  11406. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  11407. +if $2; then
  11408. + $1_TRUE=
  11409. + $1_FALSE='#'
  11410. +else
  11411. + $1_TRUE='#'
  11412. + $1_FALSE=
  11413. +fi
  11414. +AC_CONFIG_COMMANDS_PRE(
  11415. +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  11416. + AC_MSG_ERROR([[conditional "$1" was never defined.
  11417. +Usually this means the macro was only invoked conditionally.]])
  11418. +fi])])
  11419. - # See if GNU ld supports shared libraries.
  11420. - case $host_os in
  11421. - aix3* | aix4* | aix5*)
  11422. - # On AIX/PPC, the GNU linker is very broken
  11423. - if test "$host_cpu" != ia64; then
  11424. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11425. - cat <<EOF 1>&2
  11426. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  11427. +# Free Software Foundation, Inc.
  11428. +#
  11429. +# This file is free software; the Free Software Foundation
  11430. +# gives unlimited permission to copy and/or distribute it,
  11431. +# with or without modifications, as long as this notice is preserved.
  11432. +
  11433. +# serial 10
  11434. +
  11435. +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  11436. +# written in clear, in which case automake, when reading aclocal.m4,
  11437. +# will think it sees a *use*, and therefore will trigger all it's
  11438. +# C support machinery. Also note that it means that autoscan, seeing
  11439. +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  11440. +
  11441. +
  11442. +# _AM_DEPENDENCIES(NAME)
  11443. +# ----------------------
  11444. +# See how the compiler implements dependency checking.
  11445. +# NAME is "CC", "CXX", "GCJ", or "OBJC".
  11446. +# We try a few techniques and use that to set a single cache variable.
  11447. +#
  11448. +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  11449. +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  11450. +# dependency, and given that the user is not expected to run this macro,
  11451. +# just rely on AC_PROG_CC.
  11452. +AC_DEFUN([_AM_DEPENDENCIES],
  11453. +[AC_REQUIRE([AM_SET_DEPDIR])dnl
  11454. +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  11455. +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  11456. +AC_REQUIRE([AM_DEP_TRACK])dnl
  11457. +
  11458. +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  11459. + [$1], CXX, [depcc="$CXX" am_compiler_list=],
  11460. + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  11461. + [$1], UPC, [depcc="$UPC" am_compiler_list=],
  11462. + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  11463. + [depcc="$$1" am_compiler_list=])
  11464. +
  11465. +AC_CACHE_CHECK([dependency style of $depcc],
  11466. + [am_cv_$1_dependencies_compiler_type],
  11467. +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11468. + # We make a subdir and do the tests there. Otherwise we can end up
  11469. + # making bogus files that we don't know about and never remove. For
  11470. + # instance it was reported that on HP-UX the gcc test will end up
  11471. + # making a dummy file named `D' -- because `-MD' means `put the output
  11472. + # in D'.
  11473. + mkdir conftest.dir
  11474. + # Copy depcomp to subdir because otherwise we won't find it if we're
  11475. + # using a relative directory.
  11476. + cp "$am_depcomp" conftest.dir
  11477. + cd conftest.dir
  11478. + # We will build objects and dependencies in a subdirectory because
  11479. + # it helps to detect inapplicable dependency modes. For instance
  11480. + # both Tru64's cc and ICC support -MD to output dependencies as a
  11481. + # side effect of compilation, but ICC will put the dependencies in
  11482. + # the current directory while Tru64 will put them in the object
  11483. + # directory.
  11484. + mkdir sub
  11485. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  11486. -*** to be unable to reliably create shared libraries on AIX.
  11487. -*** Therefore, libtool is disabling shared libraries support. If you
  11488. -*** really care for shared libraries, you may want to modify your PATH
  11489. -*** so that a non-GNU linker is found, and then restart.
  11490. + am_cv_$1_dependencies_compiler_type=none
  11491. + if test "$am_compiler_list" = ""; then
  11492. + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  11493. + fi
  11494. + am__universal=false
  11495. + m4_case([$1], [CC],
  11496. + [case " $depcc " in #(
  11497. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11498. + esac],
  11499. + [CXX],
  11500. + [case " $depcc " in #(
  11501. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11502. + esac])
  11503. -EOF
  11504. - fi
  11505. - ;;
  11506. + for depmode in $am_compiler_list; do
  11507. + # Setup a source with many dependencies, because some compilers
  11508. + # like to wrap large dependency lists on column 80 (with \), and
  11509. + # we should not choose a depcomp mode which is confused by this.
  11510. + #
  11511. + # We need to recreate these files for each test, as the compiler may
  11512. + # overwrite some of them when testing with obscure command lines.
  11513. + # This happens at least with the AIX C compiler.
  11514. + : > sub/conftest.c
  11515. + for i in 1 2 3 4 5 6; do
  11516. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11517. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  11518. + # Solaris 8's {/usr,}/bin/sh.
  11519. + touch sub/conftst$i.h
  11520. + done
  11521. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11522. - amigaos*)
  11523. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
  11524. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11525. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11526. -
  11527. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  11528. - # that the semantics of dynamic libraries on AmigaOS, at least up
  11529. - # to version 4, is to share data among multiple programs linked
  11530. - # with the same dynamic library. Since this doesn't match the
  11531. - # behavior of shared libraries on other platforms, we can't use
  11532. - # them.
  11533. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11534. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  11535. + # mode. It turns out that the SunPro C++ compiler does not properly
  11536. + # handle `-M -o', and we need to detect this. Also, some Intel
  11537. + # versions had trouble with output in subdirs
  11538. + am__obj=sub/conftest.${OBJEXT-o}
  11539. + am__minus_obj="-o $am__obj"
  11540. + case $depmode in
  11541. + gcc)
  11542. + # This depmode causes a compiler race in universal mode.
  11543. + test "$am__universal" = false || continue
  11544. ;;
  11545. -
  11546. - beos*)
  11547. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11548. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11549. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11550. - # support --undefined. This deserves some investigation. FIXME
  11551. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11552. + nosideeffect)
  11553. + # after this tag, mechanisms are not by side-effect, so they'll
  11554. + # only be used when explicitly requested
  11555. + if test "x$enable_dependency_tracking" = xyes; then
  11556. + continue
  11557. else
  11558. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11559. + break
  11560. fi
  11561. ;;
  11562. + msvisualcpp | msvcmsys)
  11563. + # This compiler won't grok `-c -o', but also, the minuso test has
  11564. + # not run yet. These depmodes are late enough in the game, and
  11565. + # so weak that their functioning should not be impacted.
  11566. + am__obj=conftest.${OBJEXT-o}
  11567. + am__minus_obj=
  11568. + ;;
  11569. + none) break ;;
  11570. + esac
  11571. + if depmode=$depmode \
  11572. + source=sub/conftest.c object=$am__obj \
  11573. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11574. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11575. + >/dev/null 2>conftest.err &&
  11576. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11577. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11578. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11579. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11580. + # icc doesn't choke on unknown options, it will just issue warnings
  11581. + # or remarks (even with -Werror). So we grep stderr for any message
  11582. + # that says an option was ignored or not supported.
  11583. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  11584. + # icc: Command line warning: ignoring option '-M'; no argument required
  11585. + # The diagnosis changed in icc 8.0:
  11586. + # icc: Command line remark: option '-MP' not supported
  11587. + if (grep 'ignoring option' conftest.err ||
  11588. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  11589. + am_cv_$1_dependencies_compiler_type=$depmode
  11590. + break
  11591. + fi
  11592. + fi
  11593. + done
  11594. - cygwin* | mingw* | pw32*)
  11595. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  11596. - # as there is no search path for DLLs.
  11597. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11598. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11599. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  11600. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  11601. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  11602. + cd ..
  11603. + rm -rf conftest.dir
  11604. +else
  11605. + am_cv_$1_dependencies_compiler_type=none
  11606. +fi
  11607. +])
  11608. +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  11609. +AM_CONDITIONAL([am__fastdep$1], [
  11610. + test "x$enable_dependency_tracking" != xno \
  11611. + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  11612. +])
  11613. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  11614. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  11615. - # If the export-symbols file already is a .def file (1st line
  11616. - # is EXPORTS), use it as is; otherwise, prepend...
  11617. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11618. - cp $export_symbols $output_objdir/$soname.def;
  11619. - else
  11620. - echo EXPORTS > $output_objdir/$soname.def;
  11621. - cat $export_symbols >> $output_objdir/$soname.def;
  11622. - fi${_S_}
  11623. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  11624. - else
  11625. - ld_shlibs=no
  11626. - fi
  11627. - ;;
  11628. - netbsd*)
  11629. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11630. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11631. - wlarc=
  11632. - else
  11633. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11634. - _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'
  11635. - fi
  11636. - ;;
  11637. +# AM_SET_DEPDIR
  11638. +# -------------
  11639. +# Choose a directory name for dependency files.
  11640. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
  11641. +AC_DEFUN([AM_SET_DEPDIR],
  11642. +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  11643. +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  11644. +])
  11645. - solaris* | sysv5*)
  11646. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  11647. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11648. - cat <<EOF 1>&2
  11649. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11650. -*** create shared libraries on Solaris systems. Therefore, libtool
  11651. -*** is disabling shared libraries support. We urge you to upgrade GNU
  11652. -*** binutils to release 2.9.1 or newer. Another option is to modify
  11653. -*** your PATH or compiler configuration so that the native linker is
  11654. -*** used, and then restart.
  11655. +# AM_DEP_TRACK
  11656. +# ------------
  11657. +AC_DEFUN([AM_DEP_TRACK],
  11658. +[AC_ARG_ENABLE(dependency-tracking,
  11659. +[ --disable-dependency-tracking speeds up one-time build
  11660. + --enable-dependency-tracking do not reject slow dependency extractors])
  11661. +if test "x$enable_dependency_tracking" != xno; then
  11662. + am_depcomp="$ac_aux_dir/depcomp"
  11663. + AMDEPBACKSLASH='\'
  11664. +fi
  11665. +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  11666. +AC_SUBST([AMDEPBACKSLASH])dnl
  11667. +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  11668. +])
  11669. -EOF
  11670. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11671. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11672. - _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'
  11673. - else
  11674. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11675. - fi
  11676. - ;;
  11677. +# Generate code to set up dependency tracking. -*- Autoconf -*-
  11678. - sunos4*)
  11679. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11680. - wlarc=
  11681. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11682. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11683. - ;;
  11684. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  11685. +# Free Software Foundation, Inc.
  11686. +#
  11687. +# This file is free software; the Free Software Foundation
  11688. +# gives unlimited permission to copy and/or distribute it,
  11689. +# with or without modifications, as long as this notice is preserved.
  11690. - *)
  11691. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11692. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11693. - _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'
  11694. - else
  11695. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11696. - fi
  11697. - ;;
  11698. - esac
  11699. +#serial 5
  11700. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
  11701. - runpath_var=LD_RUN_PATH
  11702. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  11703. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  11704. - # ancient GNU ld didn't support --whole-archive et. al.
  11705. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  11706. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11707. - else
  11708. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11709. - fi
  11710. +# _AM_OUTPUT_DEPENDENCY_COMMANDS
  11711. +# ------------------------------
  11712. +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  11713. +[{
  11714. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  11715. + # are listed without --file. Let's play safe and only enable the eval
  11716. + # if we detect the quoting.
  11717. + case $CONFIG_FILES in
  11718. + *\'*) eval set x "$CONFIG_FILES" ;;
  11719. + *) set x $CONFIG_FILES ;;
  11720. + esac
  11721. + shift
  11722. + for mf
  11723. + do
  11724. + # Strip MF so we end up with the name of the file.
  11725. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  11726. + # Check whether this is an Automake generated Makefile or not.
  11727. + # We used to match only the files named `Makefile.in', but
  11728. + # some people rename them; so instead we look at the file content.
  11729. + # Grep'ing the first line is not enough: some people post-process
  11730. + # each Makefile.in and add a new line on top of each file to say so.
  11731. + # Grep'ing the whole file is not good either: AIX grep has a line
  11732. + # limit of 2048, but all sed's we know have understand at least 4000.
  11733. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11734. + dirpart=`AS_DIRNAME("$mf")`
  11735. + else
  11736. + continue
  11737. fi
  11738. - else
  11739. - # PORTME fill in a description of your system's linker (not GNU ld)
  11740. - case $host_os in
  11741. - aix3*)
  11742. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11743. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11744. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE${_S_}$AR $AR_FLAGS $lib $output_objdir/$soname'
  11745. - # Note: this linker hardcodes the directories in LIBPATH if there
  11746. - # are no directories specified by -L.
  11747. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11748. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  11749. - # Neither direct hardcoding nor static linking is supported with a
  11750. - # broken collect2.
  11751. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  11752. - fi
  11753. - ;;
  11754. + # Extract the definition of DEPDIR, am__include, and am__quote
  11755. + # from the Makefile without running `make'.
  11756. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11757. + test -z "$DEPDIR" && continue
  11758. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11759. + test -z "am__include" && continue
  11760. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11761. + # When using ansi2knr, U may be empty or an underscore; expand it
  11762. + U=`sed -n 's/^U = //p' < "$mf"`
  11763. + # Find all dependency output files, they are included files with
  11764. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  11765. + # simplest approach to changing $(DEPDIR) to its actual value in the
  11766. + # expansion.
  11767. + for file in `sed -n "
  11768. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11769. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11770. + # Make sure the directory exists.
  11771. + test -f "$dirpart/$file" && continue
  11772. + fdir=`AS_DIRNAME(["$file"])`
  11773. + AS_MKDIR_P([$dirpart/$fdir])
  11774. + # echo "creating $dirpart/$file"
  11775. + echo '# dummy' > "$dirpart/$file"
  11776. + done
  11777. + done
  11778. +}
  11779. +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  11780. - aix4* | aix5*)
  11781. - if test "$host_cpu" = ia64; then
  11782. - # On IA64, the linker does run time linking by default, so we don't
  11783. - # have to do anything special.
  11784. - aix_use_runtimelinking=no
  11785. - exp_sym_flag='-Bexport'
  11786. - no_entry_flag=""
  11787. - else
  11788. - # If we're using GNU nm, then we don't want the "-C" option.
  11789. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11790. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11791. - _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'
  11792. - else
  11793. - _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'
  11794. - fi
  11795. - aix_use_runtimelinking=no
  11796. - # Test if we are trying to use run time linking or normal
  11797. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11798. - # need to do runtime linking.
  11799. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  11800. - for ld_flag in $LDFLAGS; do
  11801. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  11802. - aix_use_runtimelinking=yes
  11803. - break
  11804. - fi
  11805. - done
  11806. - esac
  11807. +# AM_OUTPUT_DEPENDENCY_COMMANDS
  11808. +# -----------------------------
  11809. +# This macro should only be invoked once -- use via AC_REQUIRE.
  11810. +#
  11811. +# This code is only required when automatic dependency tracking
  11812. +# is enabled. FIXME. This creates each `.P' file that we will
  11813. +# need in order to bootstrap the dependency handling code.
  11814. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  11815. +[AC_CONFIG_COMMANDS([depfiles],
  11816. + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  11817. + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  11818. +])
  11819. - exp_sym_flag='-bexport'
  11820. - no_entry_flag='-bnoentry'
  11821. - fi
  11822. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  11823. +# Free Software Foundation, Inc.
  11824. +#
  11825. +# This file is free software; the Free Software Foundation
  11826. +# gives unlimited permission to copy and/or distribute it,
  11827. +# with or without modifications, as long as this notice is preserved.
  11828. - # When large executables or shared objects are built, AIX ld can
  11829. - # have problems creating the table of contents. If linking a library
  11830. - # or program results in "error TOC overflow" add -mminimal-toc to
  11831. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11832. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11833. +# serial 8
  11834. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  11835. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11836. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  11837. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  11838. +# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
  11839. +AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
  11840. - if test "$GCC" = yes; then
  11841. - case $host_os in aix4.[012]|aix4.[012].*)
  11842. - # We only want to do this on AIX 4.2 and lower, the check
  11843. - # below for broken collect2 doesn't work under 4.3+
  11844. - collect2name=`${CC} -print-prog-name=collect2`
  11845. - if test -f "$collect2name" && \
  11846. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  11847. - then
  11848. - # We have reworked collect2
  11849. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11850. - else
  11851. - # We have old collect2
  11852. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  11853. - # It fails to find uninstalled libraries when the uninstalled
  11854. - # path is not listed in the libpath. Setting hardcode_minus_L
  11855. - # to unsupported forces relinking
  11856. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11857. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11858. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  11859. - fi
  11860. - esac
  11861. - shared_flag='-shared'
  11862. - else
  11863. - # not using gcc
  11864. - if test "$host_cpu" = ia64; then
  11865. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11866. - # chokes on -Wl,-G. The following line is correct:
  11867. - shared_flag='-G'
  11868. - else
  11869. - if test "$aix_use_runtimelinking" = yes; then
  11870. - shared_flag='${wl}-G'
  11871. - else
  11872. - shared_flag='${wl}-bM:SRE'
  11873. - fi
  11874. - fi
  11875. - fi
  11876. +# Do all the work for Automake. -*- Autoconf -*-
  11877. - # It seems that -bexpall does not export symbols beginning with
  11878. - # underscore (_), so it is better to generate a list of symbols to export.
  11879. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11880. - if test "$aix_use_runtimelinking" = yes; then
  11881. - # Warning - without using the other runtime loading flags (-brtl),
  11882. - # -berok will link without error, but may produce a broken library.
  11883. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  11884. - # Determine the default libpath from the value encoded in an empty executable.
  11885. - _LT_AC_SYS_LIBPATH_AIX
  11886. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  11887. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11888. - else
  11889. - if test "$host_cpu" = ia64; then
  11890. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  11891. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  11892. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  11893. - else
  11894. - # Determine the default libpath from the value encoded in an empty executable.
  11895. - _LT_AC_SYS_LIBPATH_AIX
  11896. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  11897. - # Warning - without using the other run time loading flags,
  11898. - # -berok will link without error, but may produce a broken library.
  11899. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  11900. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  11901. - # -bexpall does not export symbols beginning with underscore (_)
  11902. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11903. - # Exported symbols can be pulled into shared objects from archives
  11904. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  11905. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  11906. - # This is similar to how AIX traditionally builds it's shared libraries.
  11907. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11908. - fi
  11909. - fi
  11910. - ;;
  11911. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  11912. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  11913. +#
  11914. +# This file is free software; the Free Software Foundation
  11915. +# gives unlimited permission to copy and/or distribute it,
  11916. +# with or without modifications, as long as this notice is preserved.
  11917. - amigaos*)
  11918. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
  11919. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11920. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11921. - # see comment about different semantics on the GNU ld section
  11922. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11923. - ;;
  11924. +# serial 16
  11925. - bsdi4*)
  11926. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  11927. - ;;
  11928. +# This macro actually does too much. Some checks are only needed if
  11929. +# your package does certain things. But this isn't really a big deal.
  11930. - cygwin* | mingw* | pw32*)
  11931. - # When not using gcc, we currently assume that we are using
  11932. - # Microsoft Visual C++.
  11933. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  11934. - # no search path for DLLs.
  11935. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  11936. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11937. - # Tell ltmain to make .lib files, not .a files.
  11938. - libext=lib
  11939. - # Tell ltmain to make .dll files, not .so files.
  11940. - shrext=".dll"
  11941. - # FIXME: Setting linknames here is a bad hack.
  11942. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll${_S_}linknames='
  11943. - # The linker will automatically build a .lib file if we build a DLL.
  11944. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  11945. - # FIXME: Should let the user specify the lib program.
  11946. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  11947. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  11948. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  11949. - ;;
  11950. +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  11951. +# AM_INIT_AUTOMAKE([OPTIONS])
  11952. +# -----------------------------------------------
  11953. +# The call with PACKAGE and VERSION arguments is the old style
  11954. +# call (pre autoconf-2.50), which is being phased out. PACKAGE
  11955. +# and VERSION should now be passed to AC_INIT and removed from
  11956. +# the call to AM_INIT_AUTOMAKE.
  11957. +# We support both call styles for the transition. After
  11958. +# the next Automake release, Autoconf can make the AC_INIT
  11959. +# arguments mandatory, and then we can depend on a new Autoconf
  11960. +# release and drop the old call support.
  11961. +AC_DEFUN([AM_INIT_AUTOMAKE],
  11962. +[AC_PREREQ([2.62])dnl
  11963. +dnl Autoconf wants to disallow AM_ names. We explicitly allow
  11964. +dnl the ones we care about.
  11965. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  11966. +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  11967. +AC_REQUIRE([AC_PROG_INSTALL])dnl
  11968. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  11969. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  11970. + # is not polluted with repeated "-I."
  11971. + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  11972. + # test to see if srcdir already configured
  11973. + if test -f $srcdir/config.status; then
  11974. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  11975. + fi
  11976. +fi
  11977. - darwin* | rhapsody*)
  11978. - if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
  11979. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  11980. - case "$host_os" in
  11981. - rhapsody* | darwin1.[[012]])
  11982. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  11983. - ;;
  11984. - darwin1.* | darwin[[2-6]].*) # Darwin 1.3 on, but less than 7.0
  11985. - test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  11986. - ;;
  11987. - *) # Darwin 7.0 on
  11988. - case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
  11989. - 10.[[012]])
  11990. - test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  11991. - ;;
  11992. - *) # 10.3 on
  11993. - if test -z ${LD_TWOLEVEL_NAMESPACE}; then
  11994. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  11995. - else
  11996. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  11997. - fi
  11998. - ;;
  11999. - esac
  12000. - ;;
  12001. - esac
  12002. - # FIXME: Relying on posixy $() will cause problems for
  12003. - # cross-compilation, but unfortunately the echo tests do not
  12004. - # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  12005. - # `"' quotes if we put them in here... so don't!
  12006. - lt_int_apple_cc_single_mod=no
  12007. - output_verbose_link_cmd='echo'
  12008. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  12009. - lt_int_apple_cc_single_mod=yes
  12010. - fi
  12011. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  12012. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12013. - else
  12014. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12015. - fi
  12016. - _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
  12017. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  12018. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  12019. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12020. - else
  12021. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12022. - fi
  12023. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12024. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12025. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  12026. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  12027. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  12028. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12029. - fi
  12030. - ;;
  12031. +# test whether we have cygpath
  12032. +if test -z "$CYGPATH_W"; then
  12033. + if (cygpath --version) >/dev/null 2>/dev/null; then
  12034. + CYGPATH_W='cygpath -w'
  12035. + else
  12036. + CYGPATH_W=echo
  12037. + fi
  12038. +fi
  12039. +AC_SUBST([CYGPATH_W])
  12040. - dgux*)
  12041. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12042. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12043. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12044. - ;;
  12045. +# Define the identity of the package.
  12046. +dnl Distinguish between old-style and new-style calls.
  12047. +m4_ifval([$2],
  12048. +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  12049. + AC_SUBST([PACKAGE], [$1])dnl
  12050. + AC_SUBST([VERSION], [$2])],
  12051. +[_AM_SET_OPTIONS([$1])dnl
  12052. +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  12053. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  12054. + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  12055. + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  12056. + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  12057. - freebsd1*)
  12058. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12059. - ;;
  12060. +_AM_IF_OPTION([no-define],,
  12061. +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  12062. + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  12063. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12064. - # support. Future versions do this automatically, but an explicit c++rt0.o
  12065. - # does not break anything, and helps significantly (at the cost of a little
  12066. - # extra space).
  12067. - freebsd2.2*)
  12068. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12069. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12070. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12071. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12072. - ;;
  12073. +# Some tools Automake needs.
  12074. +AC_REQUIRE([AM_SANITY_CHECK])dnl
  12075. +AC_REQUIRE([AC_ARG_PROGRAM])dnl
  12076. +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  12077. +AM_MISSING_PROG(AUTOCONF, autoconf)
  12078. +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  12079. +AM_MISSING_PROG(AUTOHEADER, autoheader)
  12080. +AM_MISSING_PROG(MAKEINFO, makeinfo)
  12081. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  12082. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  12083. +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  12084. +# We need awk for the "check" target. The system "awk" is bad on
  12085. +# some platforms.
  12086. +AC_REQUIRE([AC_PROG_AWK])dnl
  12087. +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  12088. +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  12089. +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  12090. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  12091. + [_AM_PROG_TAR([v7])])])
  12092. +_AM_IF_OPTION([no-dependencies],,
  12093. +[AC_PROVIDE_IFELSE([AC_PROG_CC],
  12094. + [_AM_DEPENDENCIES(CC)],
  12095. + [define([AC_PROG_CC],
  12096. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  12097. +AC_PROVIDE_IFELSE([AC_PROG_CXX],
  12098. + [_AM_DEPENDENCIES(CXX)],
  12099. + [define([AC_PROG_CXX],
  12100. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  12101. +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  12102. + [_AM_DEPENDENCIES(OBJC)],
  12103. + [define([AC_PROG_OBJC],
  12104. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  12105. +])
  12106. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  12107. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  12108. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  12109. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  12110. +AC_CONFIG_COMMANDS_PRE(dnl
  12111. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  12112. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  12113. +])
  12114. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12115. - freebsd2*)
  12116. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12117. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12118. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12119. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12120. - ;;
  12121. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  12122. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  12123. +dnl mangled by Autoconf and run in a shell conditional statement.
  12124. +m4_define([_AC_COMPILER_EXEEXT],
  12125. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  12126. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12127. - freebsd*)
  12128. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12129. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12130. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12131. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12132. - ;;
  12133. - hpux9*)
  12134. - if test "$GCC" = yes; then
  12135. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname${_S_}$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  12136. - else
  12137. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname${_S_}$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  12138. - fi
  12139. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12140. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12141. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12142. +# When config.status generates a header, we must update the stamp-h file.
  12143. +# This file resides in the same directory as the config header
  12144. +# that is generated. The stamp files are numbered to have different names.
  12145. - # hardcode_minus_L: Not really in the search PATH,
  12146. - # but as the default location of the library.
  12147. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12148. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12149. - ;;
  12150. +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  12151. +# loop where config.status creates the headers, so we can generate
  12152. +# our stamp files there.
  12153. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  12154. +[# Compute $1's index in $config_headers.
  12155. +_am_arg=$1
  12156. +_am_stamp_count=1
  12157. +for _am_header in $config_headers :; do
  12158. + case $_am_header in
  12159. + $_am_arg | $_am_arg:* )
  12160. + break ;;
  12161. + * )
  12162. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12163. + esac
  12164. +done
  12165. +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  12166. - hpux10* | hpux11*)
  12167. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12168. - case "$host_cpu" in
  12169. - hppa*64*|ia64*)
  12170. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12171. - ;;
  12172. - *)
  12173. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12174. - ;;
  12175. - esac
  12176. - else
  12177. - case "$host_cpu" in
  12178. - hppa*64*|ia64*)
  12179. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  12180. - ;;
  12181. - *)
  12182. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12183. - ;;
  12184. - esac
  12185. - fi
  12186. - if test "$with_gnu_ld" = no; then
  12187. - case "$host_cpu" in
  12188. - hppa*64*)
  12189. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12190. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  12191. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12192. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12193. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12194. - ;;
  12195. - ia64*)
  12196. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12197. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12198. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12199. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  12200. +#
  12201. +# This file is free software; the Free Software Foundation
  12202. +# gives unlimited permission to copy and/or distribute it,
  12203. +# with or without modifications, as long as this notice is preserved.
  12204. - # hardcode_minus_L: Not really in the search PATH,
  12205. - # but as the default location of the library.
  12206. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12207. - ;;
  12208. - *)
  12209. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12210. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12211. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12212. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12213. +# AM_PROG_INSTALL_SH
  12214. +# ------------------
  12215. +# Define $install_sh.
  12216. +AC_DEFUN([AM_PROG_INSTALL_SH],
  12217. +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  12218. +if test x"${install_sh}" != xset; then
  12219. + case $am_aux_dir in
  12220. + *\ * | *\ *)
  12221. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  12222. + *)
  12223. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  12224. + esac
  12225. +fi
  12226. +AC_SUBST(install_sh)])
  12227. - # hardcode_minus_L: Not really in the search PATH,
  12228. - # but as the default location of the library.
  12229. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12230. - ;;
  12231. - esac
  12232. - fi
  12233. - ;;
  12234. +# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  12235. +#
  12236. +# This file is free software; the Free Software Foundation
  12237. +# gives unlimited permission to copy and/or distribute it,
  12238. +# with or without modifications, as long as this notice is preserved.
  12239. - irix5* | irix6* | nonstopux*)
  12240. - if test "$GCC" = yes; then
  12241. - _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'
  12242. - else
  12243. - _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'
  12244. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  12245. - fi
  12246. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12247. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12248. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12249. - ;;
  12250. +# serial 2
  12251. - netbsd*)
  12252. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12253. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12254. - else
  12255. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12256. - fi
  12257. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12258. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12259. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12260. - ;;
  12261. +# Check whether the underlying file-system supports filenames
  12262. +# with a leading dot. For instance MS-DOS doesn't.
  12263. +AC_DEFUN([AM_SET_LEADING_DOT],
  12264. +[rm -rf .tst 2>/dev/null
  12265. +mkdir .tst 2>/dev/null
  12266. +if test -d .tst; then
  12267. + am__leading_dot=.
  12268. +else
  12269. + am__leading_dot=_
  12270. +fi
  12271. +rmdir .tst 2>/dev/null
  12272. +AC_SUBST([am__leading_dot])])
  12273. - newsos6)
  12274. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12275. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12276. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12277. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12278. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12279. - ;;
  12280. +# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  12281. +# From Jim Meyering
  12282. - openbsd*)
  12283. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12284. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12285. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12286. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12287. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  12288. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12289. - else
  12290. - case $host_os in
  12291. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  12292. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12293. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12294. - ;;
  12295. - *)
  12296. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12297. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  12298. - ;;
  12299. - esac
  12300. - fi
  12301. - ;;
  12302. +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  12303. +# Free Software Foundation, Inc.
  12304. +#
  12305. +# This file is free software; the Free Software Foundation
  12306. +# gives unlimited permission to copy and/or distribute it,
  12307. +# with or without modifications, as long as this notice is preserved.
  12308. - os2*)
  12309. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12310. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12311. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  12312. - _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def${_S_}$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def${_S_}$echo DATA >> $output_objdir/$libname.def${_S_}$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def${_S_}$echo EXPORTS >> $output_objdir/$libname.def${_S_}emxexp $libobjs >> $output_objdir/$libname.def${_S_}$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  12313. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12314. - ;;
  12315. +# serial 5
  12316. - osf3*)
  12317. - if test "$GCC" = yes; then
  12318. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  12319. - _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'
  12320. - else
  12321. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  12322. - _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'
  12323. - fi
  12324. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12325. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12326. - ;;
  12327. +# AM_MAINTAINER_MODE([DEFAULT-MODE])
  12328. +# ----------------------------------
  12329. +# Control maintainer-specific portions of Makefiles.
  12330. +# Default is to disable them, unless `enable' is passed literally.
  12331. +# For symmetry, `disable' may be passed as well. Anyway, the user
  12332. +# can override the default with the --enable/--disable switch.
  12333. +AC_DEFUN([AM_MAINTAINER_MODE],
  12334. +[m4_case(m4_default([$1], [disable]),
  12335. + [enable], [m4_define([am_maintainer_other], [disable])],
  12336. + [disable], [m4_define([am_maintainer_other], [enable])],
  12337. + [m4_define([am_maintainer_other], [enable])
  12338. + m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  12339. +AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
  12340. + dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  12341. + AC_ARG_ENABLE([maintainer-mode],
  12342. +[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
  12343. + (and sometimes confusing) to the casual installer],
  12344. + [USE_MAINTAINER_MODE=$enableval],
  12345. + [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  12346. + AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  12347. + AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  12348. + MAINT=$MAINTAINER_MODE_TRUE
  12349. + AC_SUBST([MAINT])dnl
  12350. +]
  12351. +)
  12352. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  12353. - if test "$GCC" = yes; then
  12354. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  12355. - _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'
  12356. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12357. - else
  12358. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  12359. - _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'
  12360. - _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${_S_}
  12361. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib${_S_}$rm $lib.exp'
  12362. +AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
  12363. - # Both c and cxx compiler support -rpath directly
  12364. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  12365. - fi
  12366. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12367. - ;;
  12368. +# Check to see how 'make' treats includes. -*- Autoconf -*-
  12369. - sco3.2v5*)
  12370. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12371. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12372. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  12373. - runpath_var=LD_RUN_PATH
  12374. - hardcode_runpath_var=yes
  12375. - ;;
  12376. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  12377. +#
  12378. +# This file is free software; the Free Software Foundation
  12379. +# gives unlimited permission to copy and/or distribute it,
  12380. +# with or without modifications, as long as this notice is preserved.
  12381. - solaris*)
  12382. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  12383. - if test "$GCC" = yes; then
  12384. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12385. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
  12386. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags${_S_}$rm $lib.exp'
  12387. - else
  12388. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12389. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
  12390. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
  12391. - fi
  12392. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12393. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12394. - case $host_os in
  12395. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  12396. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  12397. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  12398. - esac
  12399. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12400. - ;;
  12401. +# serial 4
  12402. - sunos4*)
  12403. - if test "x$host_vendor" = xsequent; then
  12404. - # Use $CC to link under sequent, because it throws in some extra .o
  12405. - # files that make .init and .fini sections work.
  12406. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12407. - else
  12408. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12409. - fi
  12410. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12411. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12412. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12413. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12414. - ;;
  12415. +# AM_MAKE_INCLUDE()
  12416. +# -----------------
  12417. +# Check to see how make treats includes.
  12418. +AC_DEFUN([AM_MAKE_INCLUDE],
  12419. +[am_make=${MAKE-make}
  12420. +cat > confinc << 'END'
  12421. +am__doit:
  12422. + @echo this is the am__doit target
  12423. +.PHONY: am__doit
  12424. +END
  12425. +# If we don't find an include directive, just comment out the code.
  12426. +AC_MSG_CHECKING([for style of include used by $am_make])
  12427. +am__include="#"
  12428. +am__quote=
  12429. +_am_result=none
  12430. +# First try GNU make style include.
  12431. +echo "include confinc" > confmf
  12432. +# Ignore all kinds of additional output from `make'.
  12433. +case `$am_make -s -f confmf 2> /dev/null` in #(
  12434. +*the\ am__doit\ target*)
  12435. + am__include=include
  12436. + am__quote=
  12437. + _am_result=GNU
  12438. + ;;
  12439. +esac
  12440. +# Now try BSD make style include.
  12441. +if test "$am__include" = "#"; then
  12442. + echo '.include "confinc"' > confmf
  12443. + case `$am_make -s -f confmf 2> /dev/null` in #(
  12444. + *the\ am__doit\ target*)
  12445. + am__include=.include
  12446. + am__quote="\""
  12447. + _am_result=BSD
  12448. + ;;
  12449. + esac
  12450. +fi
  12451. +AC_SUBST([am__include])
  12452. +AC_SUBST([am__quote])
  12453. +AC_MSG_RESULT([$_am_result])
  12454. +rm -f confinc confmf
  12455. +])
  12456. - sysv4)
  12457. - case $host_vendor in
  12458. - sni)
  12459. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12460. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  12461. - ;;
  12462. - siemens)
  12463. - ## LD is ld it makes a PLAMLIB
  12464. - ## CC just makes a GrossModule.
  12465. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12466. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  12467. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12468. - ;;
  12469. - motorola)
  12470. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12471. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  12472. - ;;
  12473. - esac
  12474. - runpath_var='LD_RUN_PATH'
  12475. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12476. - ;;
  12477. +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  12478. - sysv4.3*)
  12479. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12480. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12481. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  12482. - ;;
  12483. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  12484. +# Free Software Foundation, Inc.
  12485. +#
  12486. +# This file is free software; the Free Software Foundation
  12487. +# gives unlimited permission to copy and/or distribute it,
  12488. +# with or without modifications, as long as this notice is preserved.
  12489. - sysv4*MP*)
  12490. - if test -d /usr/nec; then
  12491. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12492. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12493. - runpath_var=LD_RUN_PATH
  12494. - hardcode_runpath_var=yes
  12495. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  12496. - fi
  12497. - ;;
  12498. +# serial 6
  12499. - sysv4.2uw2*)
  12500. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12501. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12502. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  12503. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12504. - hardcode_runpath_var=yes
  12505. - runpath_var=LD_RUN_PATH
  12506. - ;;
  12507. +# AM_MISSING_PROG(NAME, PROGRAM)
  12508. +# ------------------------------
  12509. +AC_DEFUN([AM_MISSING_PROG],
  12510. +[AC_REQUIRE([AM_MISSING_HAS_RUN])
  12511. +$1=${$1-"${am_missing_run}$2"}
  12512. +AC_SUBST($1)])
  12513. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  12514. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
  12515. - if test "$GCC" = yes; then
  12516. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12517. - else
  12518. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12519. - fi
  12520. - runpath_var='LD_RUN_PATH'
  12521. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12522. - ;;
  12523. - sysv5*)
  12524. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  12525. - # $CC -shared without GNU ld will not create a library from C++
  12526. - # object files and a static libstdc++, better avoid it by now
  12527. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12528. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
  12529. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
  12530. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  12531. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12532. - runpath_var='LD_RUN_PATH'
  12533. - ;;
  12534. +# AM_MISSING_HAS_RUN
  12535. +# ------------------
  12536. +# Define MISSING if not defined so far and test if it supports --run.
  12537. +# If it does, set am_missing_run to use it, otherwise, to nothing.
  12538. +AC_DEFUN([AM_MISSING_HAS_RUN],
  12539. +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  12540. +AC_REQUIRE_AUX_FILE([missing])dnl
  12541. +if test x"${MISSING+set}" != xset; then
  12542. + case $am_aux_dir in
  12543. + *\ * | *\ *)
  12544. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  12545. + *)
  12546. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  12547. + esac
  12548. +fi
  12549. +# Use eval to expand $SHELL
  12550. +if eval "$MISSING --run true"; then
  12551. + am_missing_run="$MISSING --run "
  12552. +else
  12553. + am_missing_run=
  12554. + AC_MSG_WARN([`missing' script is too old or missing])
  12555. +fi
  12556. +])
  12557. - uts4*)
  12558. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12559. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12560. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12561. - ;;
  12562. +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  12563. +#
  12564. +# This file is free software; the Free Software Foundation
  12565. +# gives unlimited permission to copy and/or distribute it,
  12566. +# with or without modifications, as long as this notice is preserved.
  12567. - *)
  12568. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12569. - ;;
  12570. - esac
  12571. - fi
  12572. +# AM_PROG_MKDIR_P
  12573. +# ---------------
  12574. +# Check for `mkdir -p'.
  12575. +AC_DEFUN([AM_PROG_MKDIR_P],
  12576. +[AC_PREREQ([2.60])dnl
  12577. +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  12578. +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  12579. +dnl while keeping a definition of mkdir_p for backward compatibility.
  12580. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  12581. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  12582. +dnl Makefile.ins that do not define MKDIR_P, so we do our own
  12583. +dnl adjustment using top_builddir (which is defined more often than
  12584. +dnl MKDIR_P).
  12585. +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  12586. +case $mkdir_p in
  12587. + [[\\/$]]* | ?:[[\\/]]*) ;;
  12588. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  12589. +esac
  12590. ])
  12591. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  12592. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  12593. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12594. -if test "$GCC" = yes; then
  12595. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12596. -fi
  12597. +# Helper functions for option handling. -*- Autoconf -*-
  12598. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  12599. #
  12600. -# Do we need to explicitly link libc?
  12601. -#
  12602. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  12603. -x|xyes)
  12604. - # Assume -lc should be added
  12605. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12606. +# This file is free software; the Free Software Foundation
  12607. +# gives unlimited permission to copy and/or distribute it,
  12608. +# with or without modifications, as long as this notice is preserved.
  12609. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  12610. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  12611. - *"$_S_"*)
  12612. - # FIXME: we may have to deal with multi-command sequences.
  12613. - ;;
  12614. - '$CC '*)
  12615. - # Test whether the compiler implicitly links with -lc since on some
  12616. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12617. - # to ld, don't add -lc before -lgcc.
  12618. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  12619. - $rm conftest*
  12620. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12621. -
  12622. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  12623. - soname=conftest
  12624. - lib=conftest
  12625. - libobjs=conftest.$ac_objext
  12626. - deplibs=
  12627. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  12628. - compiler_flags=-v
  12629. - linker_flags=-v
  12630. - verstring=
  12631. - output_objdir=.
  12632. - libname=conftest
  12633. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  12634. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  12635. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  12636. - then
  12637. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12638. - else
  12639. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12640. - fi
  12641. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  12642. - else
  12643. - cat conftest.err 1>&5
  12644. - fi
  12645. - $rm conftest*
  12646. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  12647. - ;;
  12648. - esac
  12649. - fi
  12650. - ;;
  12651. -esac
  12652. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  12653. +# serial 4
  12654. +# _AM_MANGLE_OPTION(NAME)
  12655. +# -----------------------
  12656. +AC_DEFUN([_AM_MANGLE_OPTION],
  12657. +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  12658. -# _LT_AC_FILE_LTDLL_C
  12659. -# -------------------
  12660. -# Be careful that the start marker always follows a newline.
  12661. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  12662. -# /* ltdll.c starts here */
  12663. -# #define WIN32_LEAN_AND_MEAN
  12664. -# #include <windows.h>
  12665. -# #undef WIN32_LEAN_AND_MEAN
  12666. -# #include <stdio.h>
  12667. -#
  12668. -# #ifndef __CYGWIN__
  12669. -# # ifdef __CYGWIN32__
  12670. -# # define __CYGWIN__ __CYGWIN32__
  12671. -# # endif
  12672. -# #endif
  12673. -#
  12674. -# #ifdef __cplusplus
  12675. -# extern "C" {
  12676. -# #endif
  12677. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  12678. -# #ifdef __cplusplus
  12679. -# }
  12680. -# #endif
  12681. -#
  12682. -# #ifdef __CYGWIN__
  12683. -# #include <cygwin/cygwin_dll.h>
  12684. -# DECLARE_CYGWIN_DLL( DllMain );
  12685. -# #endif
  12686. -# HINSTANCE __hDllInstance_base;
  12687. -#
  12688. -# BOOL APIENTRY
  12689. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  12690. -# {
  12691. -# __hDllInstance_base = hInst;
  12692. -# return TRUE;
  12693. -# }
  12694. -# /* ltdll.c ends here */
  12695. -])# _LT_AC_FILE_LTDLL_C
  12696. +# _AM_SET_OPTION(NAME)
  12697. +# ------------------------------
  12698. +# Set option NAME. Presently that only means defining a flag for this option.
  12699. +AC_DEFUN([_AM_SET_OPTION],
  12700. +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  12701. +# _AM_SET_OPTIONS(OPTIONS)
  12702. +# ----------------------------------
  12703. +# OPTIONS is a space-separated list of Automake options.
  12704. +AC_DEFUN([_AM_SET_OPTIONS],
  12705. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  12706. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  12707. -# ---------------------------------
  12708. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  12709. +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  12710. +# -------------------------------------------
  12711. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  12712. +AC_DEFUN([_AM_IF_OPTION],
  12713. +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  12714. +# Check to make sure that the build environment is sane. -*- Autoconf -*-
  12715. -# old names
  12716. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  12717. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  12718. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  12719. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  12720. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  12721. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  12722. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  12723. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  12724. +# Free Software Foundation, Inc.
  12725. +#
  12726. +# This file is free software; the Free Software Foundation
  12727. +# gives unlimited permission to copy and/or distribute it,
  12728. +# with or without modifications, as long as this notice is preserved.
  12729. -# This is just to silence aclocal about the macro not being used
  12730. -ifelse([AC_DISABLE_FAST_INSTALL])
  12731. +# serial 5
  12732. -AC_DEFUN([LT_AC_PROG_GCJ],
  12733. -[AC_CHECK_TOOL(GCJ, gcj, no)
  12734. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  12735. - AC_SUBST(GCJFLAGS)
  12736. -])
  12737. +# AM_SANITY_CHECK
  12738. +# ---------------
  12739. +AC_DEFUN([AM_SANITY_CHECK],
  12740. +[AC_MSG_CHECKING([whether build environment is sane])
  12741. +# Just in case
  12742. +sleep 1
  12743. +echo timestamp > conftest.file
  12744. +# Reject unsafe characters in $srcdir or the absolute working directory
  12745. +# name. Accept space and tab only in the latter.
  12746. +am_lf='
  12747. +'
  12748. +case `pwd` in
  12749. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  12750. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  12751. +esac
  12752. +case $srcdir in
  12753. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  12754. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  12755. +esac
  12756. -AC_DEFUN([LT_AC_PROG_RC],
  12757. -[AC_CHECK_TOOL(RC, windres, no)
  12758. -])
  12759. +# Do `set' in a subshell so we don't clobber the current shell's
  12760. +# arguments. Must try -L first in case configure is actually a
  12761. +# symlink; some systems play weird games with the mod time of symlinks
  12762. +# (eg FreeBSD returns the mod time of the symlink's containing
  12763. +# directory).
  12764. +if (
  12765. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  12766. + if test "$[*]" = "X"; then
  12767. + # -L didn't work.
  12768. + set X `ls -t "$srcdir/configure" conftest.file`
  12769. + fi
  12770. + rm -f conftest.file
  12771. + if test "$[*]" != "X $srcdir/configure conftest.file" \
  12772. + && test "$[*]" != "X conftest.file $srcdir/configure"; then
  12773. -# NOTE: This macro has been submitted for inclusion into #
  12774. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  12775. -# a released version of Autoconf we should remove this #
  12776. -# macro and use it instead. #
  12777. -# LT_AC_PROG_SED
  12778. -# --------------
  12779. -# Check for a fully-functional sed program, that truncates
  12780. -# as few characters as possible. Prefer GNU sed if found.
  12781. -AC_DEFUN([LT_AC_PROG_SED],
  12782. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  12783. -AC_CACHE_VAL(lt_cv_path_SED,
  12784. -[# Loop through the user's path and test for sed and gsed.
  12785. -# Then use that list of sed's as ones to test for truncation.
  12786. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12787. -for as_dir in $PATH
  12788. -do
  12789. - IFS=$as_save_IFS
  12790. - test -z "$as_dir" && as_dir=.
  12791. - for lt_ac_prog in sed gsed; do
  12792. - for ac_exec_ext in '' $ac_executable_extensions; do
  12793. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  12794. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  12795. - fi
  12796. - done
  12797. - done
  12798. -done
  12799. -lt_ac_max=0
  12800. -lt_ac_count=0
  12801. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  12802. -# along with /bin/sed that truncates output.
  12803. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  12804. - test ! -f $lt_ac_sed && break
  12805. - cat /dev/null > conftest.in
  12806. - lt_ac_count=0
  12807. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  12808. - # Check for GNU sed and select it if it is found.
  12809. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  12810. - lt_cv_path_SED=$lt_ac_sed
  12811. - break
  12812. - fi
  12813. - while true; do
  12814. - cat conftest.in conftest.in >conftest.tmp
  12815. - mv conftest.tmp conftest.in
  12816. - cp conftest.in conftest.nl
  12817. - echo >>conftest.nl
  12818. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  12819. - cmp -s conftest.out conftest.nl || break
  12820. - # 10000 chars as input seems more than enough
  12821. - test $lt_ac_count -gt 10 && break
  12822. - lt_ac_count=`expr $lt_ac_count + 1`
  12823. - if test $lt_ac_count -gt $lt_ac_max; then
  12824. - lt_ac_max=$lt_ac_count
  12825. - lt_cv_path_SED=$lt_ac_sed
  12826. - fi
  12827. - done
  12828. -done
  12829. -SED=$lt_cv_path_SED
  12830. -])
  12831. -AC_MSG_RESULT([$SED])
  12832. -])
  12833. + # If neither matched, then we have a broken ls. This can happen
  12834. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  12835. + # broken ls alias from the environment. This has actually
  12836. + # happened. Such a system could not be considered "sane".
  12837. + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  12838. +alias in your environment])
  12839. + fi
  12840. -dnl
  12841. -dnl Check for 4.4 BSD sa_len member in sockaddr struct
  12842. -dnl
  12843. -dnl usage: AC_DNET_SOCKADDR_SA_LEN
  12844. -dnl results: HAVE_SOCKADDR_SA_LEN (defined)
  12845. -dnl
  12846. -AC_DEFUN(AC_DNET_SOCKADDR_SA_LEN,
  12847. - [AC_MSG_CHECKING(for sa_len in sockaddr struct)
  12848. - AC_CACHE_VAL(ac_cv_dnet_sockaddr_has_sa_len,
  12849. - AC_TRY_COMPILE([
  12850. -# ifndef _SOCKADDR_LEN
  12851. -# define _SOCKADDR_LEN 1
  12852. -# endif
  12853. -# include <sys/types.h>
  12854. -# include <sys/socket.h>],
  12855. - [u_int i = sizeof(((struct sockaddr *)0)->sa_len)],
  12856. - ac_cv_dnet_sockaddr_has_sa_len=yes,
  12857. - ac_cv_dnet_sockaddr_has_sa_len=no))
  12858. - AC_MSG_RESULT($ac_cv_dnet_sockaddr_has_sa_len)
  12859. - if test $ac_cv_dnet_sockaddr_has_sa_len = yes ; then
  12860. - AC_DEFINE(HAVE_SOCKADDR_SA_LEN, 1,
  12861. - [Define if sockaddr struct has sa_len.])
  12862. - fi])
  12863. + test "$[2]" = conftest.file
  12864. + )
  12865. +then
  12866. + # Ok.
  12867. + :
  12868. +else
  12869. + AC_MSG_ERROR([newly created file is older than distributed files!
  12870. +Check your system clock])
  12871. +fi
  12872. +AC_MSG_RESULT(yes)])
  12873. -dnl
  12874. -dnl Check for sockaddr_in6 struct in <netinet/in.h>
  12875. -dnl
  12876. -dnl usage: AC_DNET_SOCKADDR_IN6
  12877. -dnl results: HAVE_SOCKADDR_IN6
  12878. -dnl
  12879. -AC_DEFUN(AC_DNET_SOCKADDR_IN6,
  12880. - [AC_MSG_CHECKING(for sockaddr_in6 struct in <netinet/in.h>)
  12881. - AC_CACHE_VAL(ac_cv_dnet_netinet_in_h_has_sockaddr_in6,
  12882. - AC_TRY_COMPILE([
  12883. -# include <sys/types.h>
  12884. -# include <sys/socket.h>
  12885. -# include <netinet/in.h>],
  12886. - [struct sockaddr_in6 sin6; sin6.sin6_family = AF_INET6;],
  12887. - ac_cv_dnet_netinet_in_h_has_sockaddr_in6=yes,
  12888. - ac_cv_dnet_netinet_in_h_has_sockaddr_in6=no))
  12889. - AC_MSG_RESULT($ac_cv_dnet_netinet_in_h_has_sockaddr_in6)
  12890. - if test $ac_cv_dnet_netinet_in_h_has_sockaddr_in6 = yes ; then
  12891. - AC_DEFINE(HAVE_SOCKADDR_IN6, 1,
  12892. - [Define if <netinet/in.h> has sockaddr_in6 struct.])
  12893. - fi])
  12894. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  12895. +#
  12896. +# This file is free software; the Free Software Foundation
  12897. +# gives unlimited permission to copy and/or distribute it,
  12898. +# with or without modifications, as long as this notice is preserved.
  12899. -dnl
  12900. -dnl Check for arp_dev member in arpreq struct
  12901. -dnl
  12902. -dnl usage: AC_DNET_ARPREQ_ARP_DEV
  12903. -dnl results: HAVE_ARPREQ_ARP_DEV (defined)
  12904. -dnl
  12905. -AC_DEFUN(AC_DNET_ARPREQ_ARP_DEV,
  12906. - [AC_MSG_CHECKING(for arp_dev in arpreq struct)
  12907. - AC_CACHE_VAL(ac_cv_dnet_arpreq_has_arp_dev,
  12908. - AC_TRY_COMPILE([
  12909. -# include <sys/types.h>
  12910. -# include <sys/socket.h>
  12911. -# include <net/if_arp.h>],
  12912. - [void *p = ((struct arpreq *)0)->arp_dev],
  12913. - ac_cv_dnet_arpreq_has_arp_dev=yes,
  12914. - ac_cv_dnet_arpreq_has_arp_dev=no))
  12915. - AC_MSG_RESULT($ac_cv_dnet_arpreq_has_arp_dev)
  12916. - if test $ac_cv_dnet_arpreq_has_arp_dev = yes ; then
  12917. - AC_DEFINE(HAVE_ARPREQ_ARP_DEV, 1,
  12918. - [Define if arpreq struct has arp_dev.])
  12919. - fi])
  12920. +# AM_PROG_INSTALL_STRIP
  12921. +# ---------------------
  12922. +# One issue with vendor `install' (even GNU) is that you can't
  12923. +# specify the program used to strip binaries. This is especially
  12924. +# annoying in cross-compiling environments, where the build's strip
  12925. +# is unlikely to handle the host's binaries.
  12926. +# Fortunately install-sh will honor a STRIPPROG variable, so we
  12927. +# always use install-sh in `make install-strip', and initialize
  12928. +# STRIPPROG with the value of the STRIP variable (set by the user).
  12929. +AC_DEFUN([AM_PROG_INSTALL_STRIP],
  12930. +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  12931. +# Installed binaries are usually stripped using `strip' when the user
  12932. +# run `make install-strip'. However `strip' might not be the right
  12933. +# tool to use in cross-compilation environments, therefore Automake
  12934. +# will honor the `STRIP' environment variable to overrule this program.
  12935. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  12936. +if test "$cross_compiling" != no; then
  12937. + AC_CHECK_TOOL([STRIP], [strip], :)
  12938. +fi
  12939. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  12940. +AC_SUBST([INSTALL_STRIP_PROGRAM])])
  12941. -dnl
  12942. -dnl Check for rt_msghdr struct in <net/route.h>
  12943. -dnl
  12944. -dnl usage: AC_DNET_ROUTE_RT_MSGHDR
  12945. -dnl results: HAVE_ROUTE_RT_MSGHDR
  12946. -dnl
  12947. -AC_DEFUN(AC_DNET_ROUTE_RT_MSGHDR,
  12948. - [AC_MSG_CHECKING(for rt_msghdr struct in <net/route.h>)
  12949. - AC_CACHE_VAL(ac_cv_dnet_route_h_has_rt_msghdr,
  12950. - AC_TRY_COMPILE([
  12951. -# include <sys/types.h>
  12952. -# include <sys/socket.h>
  12953. -# include <net/if.h>
  12954. -# include <net/route.h>],
  12955. - [struct rt_msghdr rtm; rtm.rtm_msglen = 0;],
  12956. - ac_cv_dnet_route_h_has_rt_msghdr=yes,
  12957. - ac_cv_dnet_route_h_has_rt_msghdr=no))
  12958. - AC_MSG_RESULT($ac_cv_dnet_route_h_has_rt_msghdr)
  12959. - if test $ac_cv_dnet_route_h_has_rt_msghdr = yes ; then
  12960. - AC_DEFINE(HAVE_ROUTE_RT_MSGHDR, 1,
  12961. - [Define if <net/route.h> has rt_msghdr struct.])
  12962. - fi])
  12963. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  12964. +#
  12965. +# This file is free software; the Free Software Foundation
  12966. +# gives unlimited permission to copy and/or distribute it,
  12967. +# with or without modifications, as long as this notice is preserved.
  12968. -dnl
  12969. -dnl Check for the Berkeley Packet Filter
  12970. -dnl
  12971. -dnl usage: AC_DNET_BSD_BPF
  12972. -dnl results: HAVE_BSD_BPF
  12973. -dnl
  12974. -AC_DEFUN(AC_DNET_BSD_BPF,
  12975. - [AC_MSG_CHECKING(for Berkeley Packet Filter)
  12976. - AC_CACHE_VAL(ac_cv_dnet_bsd_bpf,
  12977. - if test -c /dev/bpf0 ; then
  12978. - ac_cv_dnet_bsd_bpf=yes
  12979. - else
  12980. - ac_cv_dnet_bsd_bpf=no
  12981. - fi)
  12982. - AC_MSG_RESULT($ac_cv_dnet_bsd_bpf)
  12983. - if test $ac_cv_dnet_bsd_bpf = yes ; then
  12984. - AC_DEFINE(HAVE_BSD_BPF, 1,
  12985. - [Define if you have the Berkeley Packet Filter.])
  12986. - fi])
  12987. +# serial 2
  12988. -dnl
  12989. -dnl Check for the Linux /proc filesystem
  12990. -dnl
  12991. -dnl usage: AC_DNET_LINUX_PROCFS
  12992. -dnl results: HAVE_LINUX_PROCFS
  12993. -dnl
  12994. -AC_DEFUN(AC_DNET_LINUX_PROCFS,
  12995. - [AC_MSG_CHECKING(for Linux proc filesystem)
  12996. - AC_CACHE_VAL(ac_cv_dnet_linux_procfs,
  12997. - if test "x`cat /proc/sys/kernel/ostype 2>&-`" = "xLinux" ; then
  12998. - ac_cv_dnet_linux_procfs=yes
  12999. - else
  13000. - ac_cv_dnet_linux_procfs=no
  13001. - fi)
  13002. - AC_MSG_RESULT($ac_cv_dnet_linux_procfs)
  13003. - if test $ac_cv_dnet_linux_procfs = yes ; then
  13004. - AC_DEFINE(HAVE_LINUX_PROCFS, 1,
  13005. - [Define if you have the Linux /proc filesystem.])
  13006. - fi])
  13007. +# _AM_SUBST_NOTMAKE(VARIABLE)
  13008. +# ---------------------------
  13009. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  13010. +# This macro is traced by Automake.
  13011. +AC_DEFUN([_AM_SUBST_NOTMAKE])
  13012. -dnl
  13013. -dnl Check for Linux PF_PACKET sockets
  13014. -dnl
  13015. -dnl usage: AC_DNET_LINUX_PF_PACKET
  13016. -dnl results: HAVE_LINUX_PF_PACKET
  13017. -dnl
  13018. -AC_DEFUN(AC_DNET_LINUX_PF_PACKET,
  13019. - [AC_MSG_CHECKING(for Linux PF_PACKET sockets)
  13020. - AC_CACHE_VAL(ac_cv_dnet_linux_pf_packet,
  13021. - if test -f /usr/include/netpacket/packet.h ; then
  13022. - ac_cv_dnet_linux_pf_packet=yes
  13023. - else
  13024. - ac_cv_dnet_linux_pf_packet=no
  13025. - fi)
  13026. - AC_MSG_RESULT($ac_cv_dnet_linux_pf_packet)
  13027. - if test $ac_cv_dnet_linux_pf_packet = yes ; then
  13028. - AC_DEFINE(HAVE_LINUX_PF_PACKET, 1,
  13029. - [Define if you have Linux PF_PACKET sockets.])
  13030. - fi])
  13031. +# AM_SUBST_NOTMAKE(VARIABLE)
  13032. +# ---------------------------
  13033. +# Public sister of _AM_SUBST_NOTMAKE.
  13034. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  13035. -dnl
  13036. -dnl Check for SNMP MIB2 STREAMS (Solaris only?)
  13037. -dnl
  13038. -dnl usage: AC_DNET_STREAMS_MIB2
  13039. -dnl results: HAVE_STREAMS_MIB2
  13040. -dnl
  13041. -AC_DEFUN(AC_DNET_STREAMS_MIB2,
  13042. - [AC_MSG_CHECKING(for SNMP MIB2 STREAMS)
  13043. - AC_CACHE_VAL(ac_cv_dnet_streams_mib2,
  13044. - if test -f /usr/include/inet/mib2.h -a -c /dev/ip ; then
  13045. - ac_cv_dnet_streams_mib2=yes
  13046. - else
  13047. - ac_cv_dnet_streams_mib2=no
  13048. - fi)
  13049. - AC_MSG_RESULT($ac_cv_dnet_streams_mib2)
  13050. - if test $ac_cv_dnet_streams_mib2 = yes ; then
  13051. - AC_DEFINE(HAVE_STREAMS_MIB2, 1,
  13052. - [Define if you have SNMP MIB2 STREAMS.])
  13053. - fi])
  13054. +# Check how to create a tarball. -*- Autoconf -*-
  13055. -dnl
  13056. -dnl Check for route(7) STREAMS (UnixWare only?)
  13057. -dnl
  13058. -dnl usage: AC_DNET_STREAMS_ROUTE
  13059. -dnl results: HAVE_STREAMS_ROUTE
  13060. -dnl
  13061. -AC_DEFUN(AC_DNET_STREAMS_ROUTE,
  13062. - [AC_MSG_CHECKING(for route(7) STREAMS)
  13063. - AC_CACHE_VAL(ac_cv_dnet_streams_route,
  13064. - if grep RTSTR_SEND /usr/include/net/route.h >/dev/null 2>&1 ; then
  13065. - ac_cv_dnet_streams_route=yes
  13066. - else
  13067. - ac_cv_dnet_streams_route=no
  13068. - fi)
  13069. - AC_MSG_RESULT($ac_cv_dnet_streams_route)
  13070. - if test $ac_cv_dnet_streams_route = yes ; then
  13071. - AC_DEFINE(HAVE_STREAMS_ROUTE, 1,
  13072. - [Define if you have route(7) STREAMS.])
  13073. - fi])
  13074. +# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  13075. +#
  13076. +# This file is free software; the Free Software Foundation
  13077. +# gives unlimited permission to copy and/or distribute it,
  13078. +# with or without modifications, as long as this notice is preserved.
  13079. -dnl
  13080. -dnl Check for arp(7) ioctls
  13081. -dnl
  13082. -dnl usage: AC_DNET_IOCTL_ARP
  13083. -dnl results: HAVE_IOCTL_ARP
  13084. -dnl
  13085. -AC_DEFUN(AC_DNET_IOCTL_ARP,
  13086. - [AC_MSG_CHECKING(for arp(7) ioctls)
  13087. - AC_CACHE_VAL(ac_cv_dnet_ioctl_arp,
  13088. - AC_EGREP_CPP(werd, [
  13089. -# include <sys/types.h>
  13090. -# define BSD_COMP
  13091. -# include <sys/ioctl.h>
  13092. -# ifdef SIOCGARP
  13093. - werd
  13094. -# endif],
  13095. - ac_cv_dnet_ioctl_arp=yes,
  13096. - ac_cv_dnet_ioctl_arp=no))
  13097. - case "$host_os" in
  13098. - irix*)
  13099. - ac_cv_dnet_ioctl_arp=no ;;
  13100. - esac
  13101. - AC_MSG_RESULT($ac_cv_dnet_ioctl_arp)
  13102. - if test $ac_cv_dnet_ioctl_arp = yes ; then
  13103. - AC_DEFINE(HAVE_IOCTL_ARP, 1,
  13104. - [Define if you have arp(7) ioctls.])
  13105. - fi])
  13106. +# serial 2
  13107. -dnl
  13108. -dnl Check for raw IP sockets ip_{len,off} host byte ordering
  13109. -dnl
  13110. -dnl usage: AC_DNET_RAWIP_HOST_OFFLEN
  13111. -dnl results: HAVE_RAWIP_HOST_OFFLEN
  13112. -dnl
  13113. -AC_DEFUN(AC_DNET_RAWIP_HOST_OFFLEN,
  13114. - [AC_MSG_CHECKING([for raw IP sockets ip_{len,off} host byte ordering])
  13115. - AC_CACHE_VAL(ac_cv_dnet_rawip_host_offlen, [
  13116. - case "$host_os" in
  13117. - *openbsd*)
  13118. - ac_cv_dnet_rawip_host_offlen=no ;;
  13119. - *bsd*|*osf*|*unixware*)
  13120. - ac_cv_dnet_rawip_host_offlen=yes ;;
  13121. - *)
  13122. - ac_cv_dnet_rawip_host_offlen=no ;;
  13123. - esac])
  13124. - AC_MSG_RESULT($ac_cv_dnet_rawip_host_offlen)
  13125. - if test $ac_cv_dnet_rawip_host_offlen = yes ; then
  13126. - AC_DEFINE(HAVE_RAWIP_HOST_OFFLEN, 1,
  13127. - [Define if raw IP sockets require host byte ordering for ip_off, ip_len.])
  13128. - fi])
  13129. +# _AM_PROG_TAR(FORMAT)
  13130. +# --------------------
  13131. +# Check how to create a tarball in format FORMAT.
  13132. +# FORMAT should be one of `v7', `ustar', or `pax'.
  13133. +#
  13134. +# Substitute a variable $(am__tar) that is a command
  13135. +# writing to stdout a FORMAT-tarball containing the directory
  13136. +# $tardir.
  13137. +# tardir=directory && $(am__tar) > result.tar
  13138. +#
  13139. +# Substitute a variable $(am__untar) that extract such
  13140. +# a tarball read from stdin.
  13141. +# $(am__untar) < result.tar
  13142. +AC_DEFUN([_AM_PROG_TAR],
  13143. +[# Always define AMTAR for backward compatibility.
  13144. +AM_MISSING_PROG([AMTAR], [tar])
  13145. +m4_if([$1], [v7],
  13146. + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  13147. + [m4_case([$1], [ustar],, [pax],,
  13148. + [m4_fatal([Unknown tar format])])
  13149. +AC_MSG_CHECKING([how to create a $1 tar archive])
  13150. +# Loop over all known methods to create a tar archive until one works.
  13151. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  13152. +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
  13153. +# Do not fold the above two line into one, because Tru64 sh and
  13154. +# Solaris sh will not grok spaces in the rhs of `-'.
  13155. +for _am_tool in $_am_tools
  13156. +do
  13157. + case $_am_tool in
  13158. + gnutar)
  13159. + for _am_tar in tar gnutar gtar;
  13160. + do
  13161. + AM_RUN_LOG([$_am_tar --version]) && break
  13162. + done
  13163. + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  13164. + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  13165. + am__untar="$_am_tar -xf -"
  13166. + ;;
  13167. + plaintar)
  13168. + # Must skip GNU tar: if it does not support --format= it doesn't create
  13169. + # ustar tarball either.
  13170. + (tar --version) >/dev/null 2>&1 && continue
  13171. + am__tar='tar chf - "$$tardir"'
  13172. + am__tar_='tar chf - "$tardir"'
  13173. + am__untar='tar xf -'
  13174. + ;;
  13175. + pax)
  13176. + am__tar='pax -L -x $1 -w "$$tardir"'
  13177. + am__tar_='pax -L -x $1 -w "$tardir"'
  13178. + am__untar='pax -r'
  13179. + ;;
  13180. + cpio)
  13181. + am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  13182. + am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  13183. + am__untar='cpio -i -H $1 -d'
  13184. + ;;
  13185. + none)
  13186. + am__tar=false
  13187. + am__tar_=false
  13188. + am__untar=false
  13189. + ;;
  13190. + esac
  13191. -dnl
  13192. -dnl Check for cooked raw IP sockets
  13193. -dnl
  13194. -dnl usage: AC_DNET_RAWIP_COOKED
  13195. -dnl results: HAVE_RAWIP_COOKED
  13196. -dnl
  13197. -AC_DEFUN(AC_DNET_RAWIP_COOKED,
  13198. - [AC_MSG_CHECKING(for cooked raw IP sockets)
  13199. - AC_CACHE_VAL(ac_cv_dnet_rawip_cooked, [
  13200. - case "$host_os" in
  13201. - solaris*|irix*)
  13202. - ac_cv_dnet_rawip_cooked=yes ;;
  13203. - *)
  13204. - ac_cv_dnet_rawip_cooked=no ;;
  13205. - esac])
  13206. - AC_MSG_RESULT($ac_cv_dnet_rawip_cooked)
  13207. - if test $ac_cv_dnet_rawip_cooked = yes ; then
  13208. - AC_DEFINE(HAVE_RAWIP_COOKED, 1,
  13209. - [Define if you have cooked raw IP sockets.])
  13210. - fi])
  13211. + # If the value was cached, stop now. We just wanted to have am__tar
  13212. + # and am__untar set.
  13213. + test -n "${am_cv_prog_tar_$1}" && break
  13214. -dnl
  13215. -dnl AC_LBL_LIBRARY_NET
  13216. -dnl
  13217. -dnl This test is for network applications that need socket() and
  13218. -dnl gethostbyname() -ish functions. Under Solaris, those applications
  13219. -dnl need to link with "-lsocket -lnsl". Under IRIX, they need to link
  13220. -dnl with "-lnsl" but should *not* link with "-lsocket" because
  13221. -dnl libsocket.a breaks a number of things (for instance:
  13222. -dnl gethostbyname() under IRIX 5.2, and snoop sockets under most
  13223. -dnl versions of IRIX).
  13224. -dnl
  13225. -dnl Unfortunately, many application developers are not aware of this,
  13226. -dnl and mistakenly write tests that cause -lsocket to be used under
  13227. -dnl IRIX. It is also easy to write tests that cause -lnsl to be used
  13228. -dnl under operating systems where neither are necessary (or useful),
  13229. -dnl such as SunOS 4.1.4, which uses -lnsl for TLI.
  13230. -dnl
  13231. -dnl This test exists so that every application developer does not test
  13232. -dnl this in a different, and subtly broken fashion.
  13233. + # tar/untar a dummy directory, and stop if the command works
  13234. + rm -rf conftest.dir
  13235. + mkdir conftest.dir
  13236. + echo GrepMe > conftest.dir/file
  13237. + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  13238. + rm -rf conftest.dir
  13239. + if test -s conftest.tar; then
  13240. + AM_RUN_LOG([$am__untar <conftest.tar])
  13241. + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  13242. + fi
  13243. +done
  13244. +rm -rf conftest.dir
  13245. -dnl It has been argued that this test should be broken up into two
  13246. -dnl seperate tests, one for the resolver libraries, and one for the
  13247. -dnl libraries necessary for using Sockets API. Unfortunately, the two
  13248. -dnl are carefully intertwined and allowing the autoconf user to use
  13249. -dnl them independantly potentially results in unfortunate ordering
  13250. -dnl dependancies -- as such, such component macros would have to
  13251. -dnl carefully use indirection and be aware if the other components were
  13252. -dnl executed. Since other autoconf macros do not go to this trouble,
  13253. -dnl and almost no applications use sockets without the resolver, this
  13254. -dnl complexity has not been implemented.
  13255. -dnl
  13256. -dnl The check for libresolv is in case you are attempting to link
  13257. -dnl statically and happen to have a libresolv.a lying around (and no
  13258. -dnl libnsl.a).
  13259. -dnl
  13260. -AC_DEFUN(AC_LBL_LIBRARY_NET, [
  13261. - # Most operating systems have gethostbyname() in the default searched
  13262. - # libraries (i.e. libc):
  13263. - AC_CHECK_FUNC(gethostbyname, ,
  13264. - # Some OSes (eg. Solaris) place it in libnsl:
  13265. - AC_CHECK_LIB(nsl, gethostbyname, ,
  13266. - # Some strange OSes (SINIX) have it in libsocket:
  13267. - AC_CHECK_LIB(socket, gethostbyname, ,
  13268. - # Unfortunately libsocket sometimes depends on libnsl.
  13269. - # AC_CHECK_LIB's API is essentially broken so the
  13270. - # following ugliness is necessary:
  13271. - AC_CHECK_LIB(socket, gethostbyname,
  13272. - LIBS="-lsocket -lnsl $LIBS",
  13273. - AC_CHECK_LIB(resolv, gethostbyname),
  13274. - -lnsl))))
  13275. - AC_CHECK_FUNC(socket, , AC_CHECK_LIB(socket, socket, ,
  13276. - AC_CHECK_LIB(socket, socket, LIBS="-lsocket -lnsl $LIBS", ,
  13277. - -lnsl)))
  13278. - # DLPI needs putmsg under HPUX so test for -lstr while we're at it
  13279. - AC_CHECK_LIB(str, putmsg)
  13280. - ])
  13281. +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  13282. +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  13283. +AC_SUBST([am__tar])
  13284. +AC_SUBST([am__untar])
  13285. +]) # _AM_PROG_TAR
  13286. +m4_include([config/acinclude.m4])
  13287. diff -Nur libdnet-1.11.orig/config/config.guess libdnet-1.11/config/config.guess
  13288. --- libdnet-1.11.orig/config/config.guess 2006-01-09 23:46:45.000000000 +0100
  13289. +++ libdnet-1.11/config/config.guess 2011-02-19 12:27:14.093551942 +0100
  13290. @@ -1,9 +1,10 @@
  13291. #! /bin/sh
  13292. # Attempt to guess a canonical system name.
  13293. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  13294. -# 2000, 2001, 2002 Free Software Foundation, Inc.
  13295. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  13296. +# Free Software Foundation, Inc.
  13297. -timestamp='2002-07-23'
  13298. +timestamp='2009-06-10'
  13299. # This file is free software; you can redistribute it and/or modify it
  13300. # under the terms of the GNU General Public License as published by
  13301. @@ -17,13 +18,15 @@
  13302. #
  13303. # You should have received a copy of the GNU General Public License
  13304. # along with this program; if not, write to the Free Software
  13305. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  13306. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  13307. +# 02110-1301, USA.
  13308. #
  13309. # As a special exception to the GNU General Public License, if you
  13310. # distribute this file as part of a program that contains a
  13311. # configuration script generated by Autoconf, you may include it under
  13312. # the same distribution terms that you use for the rest of that program.
  13313. +
  13314. # Originally written by Per Bothner <per@bothner.com>.
  13315. # Please send patches to <config-patches@gnu.org>. Submit a context
  13316. # diff and a properly formatted ChangeLog entry.
  13317. @@ -53,8 +56,8 @@
  13318. GNU config.guess ($timestamp)
  13319. Originally written by Per Bothner.
  13320. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
  13321. -Free Software Foundation, Inc.
  13322. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  13323. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  13324. This is free software; see the source for copying conditions. There is NO
  13325. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  13326. @@ -66,11 +69,11 @@
  13327. while test $# -gt 0 ; do
  13328. case $1 in
  13329. --time-stamp | --time* | -t )
  13330. - echo "$timestamp" ; exit 0 ;;
  13331. + echo "$timestamp" ; exit ;;
  13332. --version | -v )
  13333. - echo "$version" ; exit 0 ;;
  13334. + echo "$version" ; exit ;;
  13335. --help | --h* | -h )
  13336. - echo "$usage"; exit 0 ;;
  13337. + echo "$usage"; exit ;;
  13338. -- ) # Stop option processing
  13339. shift; break ;;
  13340. - ) # Use stdin as input.
  13341. @@ -98,30 +101,32 @@
  13342. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
  13343. # use `HOST_CC' if defined, but it is deprecated.
  13344. -# This shell variable is my proudest work .. or something. --bje
  13345. +# Portable tmp directory creation inspired by the Autoconf team.
  13346. -set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ;
  13347. -(old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old)
  13348. - || (echo "$me: cannot create $tmpdir" >&2 && exit 1) ;
  13349. -dummy=$tmpdir/dummy ;
  13350. -files="$dummy.c $dummy.o $dummy.rel $dummy" ;
  13351. -trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ;
  13352. +set_cc_for_build='
  13353. +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  13354. +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  13355. +: ${TMPDIR=/tmp} ;
  13356. + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  13357. + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  13358. + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
  13359. + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  13360. +dummy=$tmp/dummy ;
  13361. +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
  13362. case $CC_FOR_BUILD,$HOST_CC,$CC in
  13363. ,,) echo "int x;" > $dummy.c ;
  13364. for c in cc gcc c89 c99 ; do
  13365. - if ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; then
  13366. + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
  13367. CC_FOR_BUILD="$c"; break ;
  13368. fi ;
  13369. done ;
  13370. - rm -f $files ;
  13371. if test x"$CC_FOR_BUILD" = x ; then
  13372. CC_FOR_BUILD=no_compiler_found ;
  13373. fi
  13374. ;;
  13375. ,,*) CC_FOR_BUILD=$CC ;;
  13376. ,*,*) CC_FOR_BUILD=$HOST_CC ;;
  13377. -esac ;
  13378. -unset files'
  13379. +esac ; set_cc_for_build= ;'
  13380. # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  13381. # (ghazi@noc.rutgers.edu 1994-08-24)
  13382. @@ -156,6 +161,7 @@
  13383. arm*) machine=arm-unknown ;;
  13384. sh3el) machine=shl-unknown ;;
  13385. sh3eb) machine=sh-unknown ;;
  13386. + sh5el) machine=sh5le-unknown ;;
  13387. *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  13388. esac
  13389. # The Operating System including object format, if it has switched
  13390. @@ -164,7 +170,7 @@
  13391. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  13392. eval $set_cc_for_build
  13393. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  13394. - | grep __ELF__ >/dev/null
  13395. + | grep -q __ELF__
  13396. then
  13397. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  13398. # Return netbsd for either. FIX?
  13399. @@ -178,144 +184,128 @@
  13400. ;;
  13401. esac
  13402. # The OS release
  13403. - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  13404. + # Debian GNU/NetBSD machines have a different userland, and
  13405. + # thus, need a distinct triplet. However, they do not need
  13406. + # kernel version information, so it can be replaced with a
  13407. + # suitable tag, in the style of linux-gnu.
  13408. + case "${UNAME_VERSION}" in
  13409. + Debian*)
  13410. + release='-gnu'
  13411. + ;;
  13412. + *)
  13413. + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  13414. + ;;
  13415. + esac
  13416. # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
  13417. # contains redundant information, the shorter form:
  13418. # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  13419. echo "${machine}-${os}${release}"
  13420. - exit 0 ;;
  13421. - amiga:OpenBSD:*:*)
  13422. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13423. - exit 0 ;;
  13424. - arc:OpenBSD:*:*)
  13425. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  13426. - exit 0 ;;
  13427. - hp300:OpenBSD:*:*)
  13428. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13429. - exit 0 ;;
  13430. - mac68k:OpenBSD:*:*)
  13431. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13432. - exit 0 ;;
  13433. - macppc:OpenBSD:*:*)
  13434. - echo powerpc-unknown-openbsd${UNAME_RELEASE}
  13435. - exit 0 ;;
  13436. - mvme68k:OpenBSD:*:*)
  13437. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13438. - exit 0 ;;
  13439. - mvme88k:OpenBSD:*:*)
  13440. - echo m88k-unknown-openbsd${UNAME_RELEASE}
  13441. - exit 0 ;;
  13442. - mvmeppc:OpenBSD:*:*)
  13443. - echo powerpc-unknown-openbsd${UNAME_RELEASE}
  13444. - exit 0 ;;
  13445. - pmax:OpenBSD:*:*)
  13446. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  13447. - exit 0 ;;
  13448. - sgi:OpenBSD:*:*)
  13449. - echo mipseb-unknown-openbsd${UNAME_RELEASE}
  13450. - exit 0 ;;
  13451. - sun3:OpenBSD:*:*)
  13452. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13453. - exit 0 ;;
  13454. - wgrisc:OpenBSD:*:*)
  13455. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  13456. - exit 0 ;;
  13457. + exit ;;
  13458. *:OpenBSD:*:*)
  13459. - echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
  13460. - exit 0 ;;
  13461. + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
  13462. + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
  13463. + exit ;;
  13464. + *:ekkoBSD:*:*)
  13465. + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
  13466. + exit ;;
  13467. + *:SolidBSD:*:*)
  13468. + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
  13469. + exit ;;
  13470. + macppc:MirBSD:*:*)
  13471. + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
  13472. + exit ;;
  13473. + *:MirBSD:*:*)
  13474. + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
  13475. + exit ;;
  13476. alpha:OSF1:*:*)
  13477. - if test $UNAME_RELEASE = "V4.0"; then
  13478. + case $UNAME_RELEASE in
  13479. + *4.0)
  13480. UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
  13481. - fi
  13482. + ;;
  13483. + *5.*)
  13484. + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
  13485. + ;;
  13486. + esac
  13487. + # According to Compaq, /usr/sbin/psrinfo has been available on
  13488. + # OSF/1 and Tru64 systems produced since 1995. I hope that
  13489. + # covers most systems running today. This code pipes the CPU
  13490. + # types through head -n 1, so we only detect the type of CPU 0.
  13491. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
  13492. + case "$ALPHA_CPU_TYPE" in
  13493. + "EV4 (21064)")
  13494. + UNAME_MACHINE="alpha" ;;
  13495. + "EV4.5 (21064)")
  13496. + UNAME_MACHINE="alpha" ;;
  13497. + "LCA4 (21066/21068)")
  13498. + UNAME_MACHINE="alpha" ;;
  13499. + "EV5 (21164)")
  13500. + UNAME_MACHINE="alphaev5" ;;
  13501. + "EV5.6 (21164A)")
  13502. + UNAME_MACHINE="alphaev56" ;;
  13503. + "EV5.6 (21164PC)")
  13504. + UNAME_MACHINE="alphapca56" ;;
  13505. + "EV5.7 (21164PC)")
  13506. + UNAME_MACHINE="alphapca57" ;;
  13507. + "EV6 (21264)")
  13508. + UNAME_MACHINE="alphaev6" ;;
  13509. + "EV6.7 (21264A)")
  13510. + UNAME_MACHINE="alphaev67" ;;
  13511. + "EV6.8CB (21264C)")
  13512. + UNAME_MACHINE="alphaev68" ;;
  13513. + "EV6.8AL (21264B)")
  13514. + UNAME_MACHINE="alphaev68" ;;
  13515. + "EV6.8CX (21264D)")
  13516. + UNAME_MACHINE="alphaev68" ;;
  13517. + "EV6.9A (21264/EV69A)")
  13518. + UNAME_MACHINE="alphaev69" ;;
  13519. + "EV7 (21364)")
  13520. + UNAME_MACHINE="alphaev7" ;;
  13521. + "EV7.9 (21364A)")
  13522. + UNAME_MACHINE="alphaev79" ;;
  13523. + esac
  13524. + # A Pn.n version is a patched version.
  13525. # A Vn.n version is a released version.
  13526. # A Tn.n version is a released field test version.
  13527. # A Xn.n version is an unreleased experimental baselevel.
  13528. # 1.2 uses "1.2" for uname -r.
  13529. - eval $set_cc_for_build
  13530. - cat <<EOF >$dummy.s
  13531. - .data
  13532. -\$Lformat:
  13533. - .byte 37,100,45,37,120,10,0 # "%d-%x\n"
  13534. -
  13535. - .text
  13536. - .globl main
  13537. - .align 4
  13538. - .ent main
  13539. -main:
  13540. - .frame \$30,16,\$26,0
  13541. - ldgp \$29,0(\$27)
  13542. - .prologue 1
  13543. - .long 0x47e03d80 # implver \$0
  13544. - lda \$2,-1
  13545. - .long 0x47e20c21 # amask \$2,\$1
  13546. - lda \$16,\$Lformat
  13547. - mov \$0,\$17
  13548. - not \$1,\$18
  13549. - jsr \$26,printf
  13550. - ldgp \$29,0(\$26)
  13551. - mov 0,\$16
  13552. - jsr \$26,exit
  13553. - .end main
  13554. -EOF
  13555. - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
  13556. - if test "$?" = 0 ; then
  13557. - case `$dummy` in
  13558. - 0-0)
  13559. - UNAME_MACHINE="alpha"
  13560. - ;;
  13561. - 1-0)
  13562. - UNAME_MACHINE="alphaev5"
  13563. - ;;
  13564. - 1-1)
  13565. - UNAME_MACHINE="alphaev56"
  13566. - ;;
  13567. - 1-101)
  13568. - UNAME_MACHINE="alphapca56"
  13569. - ;;
  13570. - 2-303)
  13571. - UNAME_MACHINE="alphaev6"
  13572. - ;;
  13573. - 2-307)
  13574. - UNAME_MACHINE="alphaev67"
  13575. - ;;
  13576. - 2-1307)
  13577. - UNAME_MACHINE="alphaev68"
  13578. - ;;
  13579. - 3-1307)
  13580. - UNAME_MACHINE="alphaev7"
  13581. - ;;
  13582. - esac
  13583. - fi
  13584. - rm -f $dummy.s $dummy && rmdir $tmpdir
  13585. - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  13586. - exit 0 ;;
  13587. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  13588. + exit ;;
  13589. Alpha\ *:Windows_NT*:*)
  13590. # How do we know it's Interix rather than the generic POSIX subsystem?
  13591. # Should we change UNAME_MACHINE based on the output of uname instead
  13592. # of the specific Alpha model?
  13593. echo alpha-pc-interix
  13594. - exit 0 ;;
  13595. + exit ;;
  13596. 21064:Windows_NT:50:3)
  13597. echo alpha-dec-winnt3.5
  13598. - exit 0 ;;
  13599. + exit ;;
  13600. Amiga*:UNIX_System_V:4.0:*)
  13601. echo m68k-unknown-sysv4
  13602. - exit 0;;
  13603. + exit ;;
  13604. *:[Aa]miga[Oo][Ss]:*:*)
  13605. echo ${UNAME_MACHINE}-unknown-amigaos
  13606. - exit 0 ;;
  13607. + exit ;;
  13608. *:[Mm]orph[Oo][Ss]:*:*)
  13609. echo ${UNAME_MACHINE}-unknown-morphos
  13610. - exit 0 ;;
  13611. + exit ;;
  13612. *:OS/390:*:*)
  13613. echo i370-ibm-openedition
  13614. - exit 0 ;;
  13615. + exit ;;
  13616. + *:z/VM:*:*)
  13617. + echo s390-ibm-zvmoe
  13618. + exit ;;
  13619. + *:OS400:*:*)
  13620. + echo powerpc-ibm-os400
  13621. + exit ;;
  13622. arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  13623. echo arm-acorn-riscix${UNAME_RELEASE}
  13624. - exit 0;;
  13625. + exit ;;
  13626. + arm:riscos:*:*|arm:RISCOS:*:*)
  13627. + echo arm-unknown-riscos
  13628. + exit ;;
  13629. SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  13630. echo hppa1.1-hitachi-hiuxmpp
  13631. - exit 0;;
  13632. + exit ;;
  13633. Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
  13634. # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
  13635. if test "`(/bin/universe) 2>/dev/null`" = att ; then
  13636. @@ -323,29 +313,48 @@
  13637. else
  13638. echo pyramid-pyramid-bsd
  13639. fi
  13640. - exit 0 ;;
  13641. + exit ;;
  13642. NILE*:*:*:dcosx)
  13643. echo pyramid-pyramid-svr4
  13644. - exit 0 ;;
  13645. - DRS?6000:UNIX_SV:4.2*:7*)
  13646. + exit ;;
  13647. + DRS?6000:unix:4.0:6*)
  13648. + echo sparc-icl-nx6
  13649. + exit ;;
  13650. + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
  13651. case `/usr/bin/uname -p` in
  13652. - sparc) echo sparc-icl-nx7 && exit 0 ;;
  13653. + sparc) echo sparc-icl-nx7; exit ;;
  13654. esac ;;
  13655. + s390x:SunOS:*:*)
  13656. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13657. + exit ;;
  13658. sun4H:SunOS:5.*:*)
  13659. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13660. - exit 0 ;;
  13661. + exit ;;
  13662. sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  13663. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13664. - exit 0 ;;
  13665. - i86pc:SunOS:5.*:*)
  13666. - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13667. - exit 0 ;;
  13668. + exit ;;
  13669. + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  13670. + eval $set_cc_for_build
  13671. + SUN_ARCH="i386"
  13672. + # If there is a compiler, see if it is configured for 64-bit objects.
  13673. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  13674. + # This test works for both compilers.
  13675. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  13676. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  13677. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  13678. + grep IS_64BIT_ARCH >/dev/null
  13679. + then
  13680. + SUN_ARCH="x86_64"
  13681. + fi
  13682. + fi
  13683. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13684. + exit ;;
  13685. sun4*:SunOS:6*:*)
  13686. # According to config.sub, this is the proper way to canonicalize
  13687. # SunOS6. Hard to guess exactly what SunOS6 will be like, but
  13688. # it's likely to be more like Solaris than SunOS4.
  13689. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13690. - exit 0 ;;
  13691. + exit ;;
  13692. sun4*:SunOS:*:*)
  13693. case "`/usr/bin/arch -k`" in
  13694. Series*|S4*)
  13695. @@ -354,10 +363,10 @@
  13696. esac
  13697. # Japanese Language versions have a version number like `4.1.3-JL'.
  13698. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
  13699. - exit 0 ;;
  13700. + exit ;;
  13701. sun3*:SunOS:*:*)
  13702. echo m68k-sun-sunos${UNAME_RELEASE}
  13703. - exit 0 ;;
  13704. + exit ;;
  13705. sun*:*:4.2BSD:*)
  13706. UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  13707. test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  13708. @@ -369,10 +378,10 @@
  13709. echo sparc-sun-sunos${UNAME_RELEASE}
  13710. ;;
  13711. esac
  13712. - exit 0 ;;
  13713. + exit ;;
  13714. aushp:SunOS:*:*)
  13715. echo sparc-auspex-sunos${UNAME_RELEASE}
  13716. - exit 0 ;;
  13717. + exit ;;
  13718. # The situation for MiNT is a little confusing. The machine name
  13719. # can be virtually everything (everything which is not
  13720. # "atarist" or "atariste" at least should have a processor
  13721. @@ -383,37 +392,40 @@
  13722. # be no problem.
  13723. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
  13724. echo m68k-atari-mint${UNAME_RELEASE}
  13725. - exit 0 ;;
  13726. + exit ;;
  13727. atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
  13728. echo m68k-atari-mint${UNAME_RELEASE}
  13729. - exit 0 ;;
  13730. + exit ;;
  13731. *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
  13732. echo m68k-atari-mint${UNAME_RELEASE}
  13733. - exit 0 ;;
  13734. + exit ;;
  13735. milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
  13736. echo m68k-milan-mint${UNAME_RELEASE}
  13737. - exit 0 ;;
  13738. + exit ;;
  13739. hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
  13740. echo m68k-hades-mint${UNAME_RELEASE}
  13741. - exit 0 ;;
  13742. + exit ;;
  13743. *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  13744. echo m68k-unknown-mint${UNAME_RELEASE}
  13745. - exit 0 ;;
  13746. + exit ;;
  13747. + m68k:machten:*:*)
  13748. + echo m68k-apple-machten${UNAME_RELEASE}
  13749. + exit ;;
  13750. powerpc:machten:*:*)
  13751. echo powerpc-apple-machten${UNAME_RELEASE}
  13752. - exit 0 ;;
  13753. + exit ;;
  13754. RISC*:Mach:*:*)
  13755. echo mips-dec-mach_bsd4.3
  13756. - exit 0 ;;
  13757. + exit ;;
  13758. RISC*:ULTRIX:*:*)
  13759. echo mips-dec-ultrix${UNAME_RELEASE}
  13760. - exit 0 ;;
  13761. + exit ;;
  13762. VAX*:ULTRIX*:*:*)
  13763. echo vax-dec-ultrix${UNAME_RELEASE}
  13764. - exit 0 ;;
  13765. + exit ;;
  13766. 2020:CLIX:*:* | 2430:CLIX:*:*)
  13767. echo clipper-intergraph-clix${UNAME_RELEASE}
  13768. - exit 0 ;;
  13769. + exit ;;
  13770. mips:*:*:UMIPS | mips:*:*:RISCos)
  13771. eval $set_cc_for_build
  13772. sed 's/^ //' << EOF >$dummy.c
  13773. @@ -437,30 +449,33 @@
  13774. exit (-1);
  13775. }
  13776. EOF
  13777. - $CC_FOR_BUILD $dummy.c -o $dummy \
  13778. - && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
  13779. - && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
  13780. - rm -f $dummy.c $dummy && rmdir $tmpdir
  13781. + $CC_FOR_BUILD -o $dummy $dummy.c &&
  13782. + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
  13783. + SYSTEM_NAME=`$dummy $dummyarg` &&
  13784. + { echo "$SYSTEM_NAME"; exit; }
  13785. echo mips-mips-riscos${UNAME_RELEASE}
  13786. - exit 0 ;;
  13787. + exit ;;
  13788. Motorola:PowerMAX_OS:*:*)
  13789. echo powerpc-motorola-powermax
  13790. - exit 0 ;;
  13791. - Night_Hawk:*:*:PowerMAX_OS)
  13792. + exit ;;
  13793. + Motorola:*:4.3:PL8-*)
  13794. echo powerpc-harris-powermax
  13795. - exit 0 ;;
  13796. + exit ;;
  13797. + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
  13798. + echo powerpc-harris-powermax
  13799. + exit ;;
  13800. Night_Hawk:Power_UNIX:*:*)
  13801. echo powerpc-harris-powerunix
  13802. - exit 0 ;;
  13803. + exit ;;
  13804. m88k:CX/UX:7*:*)
  13805. echo m88k-harris-cxux7
  13806. - exit 0 ;;
  13807. + exit ;;
  13808. m88k:*:4*:R4*)
  13809. echo m88k-motorola-sysv4
  13810. - exit 0 ;;
  13811. + exit ;;
  13812. m88k:*:3*:R3*)
  13813. echo m88k-motorola-sysv3
  13814. - exit 0 ;;
  13815. + exit ;;
  13816. AViiON:dgux:*:*)
  13817. # DG/UX returns AViiON for all architectures
  13818. UNAME_PROCESSOR=`/usr/bin/uname -p`
  13819. @@ -476,29 +491,29 @@
  13820. else
  13821. echo i586-dg-dgux${UNAME_RELEASE}
  13822. fi
  13823. - exit 0 ;;
  13824. + exit ;;
  13825. M88*:DolphinOS:*:*) # DolphinOS (SVR3)
  13826. echo m88k-dolphin-sysv3
  13827. - exit 0 ;;
  13828. + exit ;;
  13829. M88*:*:R3*:*)
  13830. # Delta 88k system running SVR3
  13831. echo m88k-motorola-sysv3
  13832. - exit 0 ;;
  13833. + exit ;;
  13834. XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
  13835. echo m88k-tektronix-sysv3
  13836. - exit 0 ;;
  13837. + exit ;;
  13838. Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
  13839. echo m68k-tektronix-bsd
  13840. - exit 0 ;;
  13841. + exit ;;
  13842. *:IRIX*:*:*)
  13843. echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
  13844. - exit 0 ;;
  13845. + exit ;;
  13846. ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
  13847. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  13848. - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  13849. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  13850. + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  13851. i*86:AIX:*:*)
  13852. echo i386-ibm-aix
  13853. - exit 0 ;;
  13854. + exit ;;
  13855. ia64:AIX:*:*)
  13856. if [ -x /usr/bin/oslevel ] ; then
  13857. IBM_REV=`/usr/bin/oslevel`
  13858. @@ -506,7 +521,7 @@
  13859. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  13860. fi
  13861. echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
  13862. - exit 0 ;;
  13863. + exit ;;
  13864. *:AIX:2:3)
  13865. if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  13866. eval $set_cc_for_build
  13867. @@ -521,16 +536,19 @@
  13868. exit(0);
  13869. }
  13870. EOF
  13871. - $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
  13872. - rm -f $dummy.c $dummy && rmdir $tmpdir
  13873. - echo rs6000-ibm-aix3.2.5
  13874. + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
  13875. + then
  13876. + echo "$SYSTEM_NAME"
  13877. + else
  13878. + echo rs6000-ibm-aix3.2.5
  13879. + fi
  13880. elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  13881. echo rs6000-ibm-aix3.2.4
  13882. else
  13883. echo rs6000-ibm-aix3.2
  13884. fi
  13885. - exit 0 ;;
  13886. - *:AIX:*:[45])
  13887. + exit ;;
  13888. + *:AIX:*:[456])
  13889. IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  13890. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  13891. IBM_ARCH=rs6000
  13892. @@ -543,28 +561,28 @@
  13893. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  13894. fi
  13895. echo ${IBM_ARCH}-ibm-aix${IBM_REV}
  13896. - exit 0 ;;
  13897. + exit ;;
  13898. *:AIX:*:*)
  13899. echo rs6000-ibm-aix
  13900. - exit 0 ;;
  13901. + exit ;;
  13902. ibmrt:4.4BSD:*|romp-ibm:BSD:*)
  13903. echo romp-ibm-bsd4.4
  13904. - exit 0 ;;
  13905. + exit ;;
  13906. ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
  13907. echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
  13908. - exit 0 ;; # report: romp-ibm BSD 4.3
  13909. + exit ;; # report: romp-ibm BSD 4.3
  13910. *:BOSX:*:*)
  13911. echo rs6000-bull-bosx
  13912. - exit 0 ;;
  13913. + exit ;;
  13914. DPX/2?00:B.O.S.:*:*)
  13915. echo m68k-bull-sysv3
  13916. - exit 0 ;;
  13917. + exit ;;
  13918. 9000/[34]??:4.3bsd:1.*:*)
  13919. echo m68k-hp-bsd
  13920. - exit 0 ;;
  13921. + exit ;;
  13922. hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
  13923. echo m68k-hp-bsd4.4
  13924. - exit 0 ;;
  13925. + exit ;;
  13926. 9000/[34678]??:HP-UX:*:*)
  13927. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  13928. case "${UNAME_MACHINE}" in
  13929. @@ -620,17 +638,37 @@
  13930. exit (0);
  13931. }
  13932. EOF
  13933. - (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`$dummy`
  13934. - if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
  13935. - rm -f $dummy.c $dummy && rmdir $tmpdir
  13936. + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
  13937. + test -z "$HP_ARCH" && HP_ARCH=hppa
  13938. fi ;;
  13939. esac
  13940. + if [ ${HP_ARCH} = "hppa2.0w" ]
  13941. + then
  13942. + eval $set_cc_for_build
  13943. +
  13944. + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
  13945. + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
  13946. + # generating 64-bit code. GNU and HP use different nomenclature:
  13947. + #
  13948. + # $ CC_FOR_BUILD=cc ./config.guess
  13949. + # => hppa2.0w-hp-hpux11.23
  13950. + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
  13951. + # => hppa64-hp-hpux11.23
  13952. +
  13953. + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  13954. + grep -q __LP64__
  13955. + then
  13956. + HP_ARCH="hppa2.0w"
  13957. + else
  13958. + HP_ARCH="hppa64"
  13959. + fi
  13960. + fi
  13961. echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  13962. - exit 0 ;;
  13963. + exit ;;
  13964. ia64:HP-UX:*:*)
  13965. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  13966. echo ia64-hp-hpux${HPUX_REV}
  13967. - exit 0 ;;
  13968. + exit ;;
  13969. 3050*:HI-UX:*:*)
  13970. eval $set_cc_for_build
  13971. sed 's/^ //' << EOF >$dummy.c
  13972. @@ -658,172 +696,227 @@
  13973. exit (0);
  13974. }
  13975. EOF
  13976. - $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
  13977. - rm -f $dummy.c $dummy && rmdir $tmpdir
  13978. + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
  13979. + { echo "$SYSTEM_NAME"; exit; }
  13980. echo unknown-hitachi-hiuxwe2
  13981. - exit 0 ;;
  13982. + exit ;;
  13983. 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  13984. echo hppa1.1-hp-bsd
  13985. - exit 0 ;;
  13986. + exit ;;
  13987. 9000/8??:4.3bsd:*:*)
  13988. echo hppa1.0-hp-bsd
  13989. - exit 0 ;;
  13990. + exit ;;
  13991. *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
  13992. echo hppa1.0-hp-mpeix
  13993. - exit 0 ;;
  13994. + exit ;;
  13995. hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  13996. echo hppa1.1-hp-osf
  13997. - exit 0 ;;
  13998. + exit ;;
  13999. hp8??:OSF1:*:*)
  14000. echo hppa1.0-hp-osf
  14001. - exit 0 ;;
  14002. + exit ;;
  14003. i*86:OSF1:*:*)
  14004. if [ -x /usr/sbin/sysversion ] ; then
  14005. echo ${UNAME_MACHINE}-unknown-osf1mk
  14006. else
  14007. echo ${UNAME_MACHINE}-unknown-osf1
  14008. fi
  14009. - exit 0 ;;
  14010. + exit ;;
  14011. parisc*:Lites*:*:*)
  14012. echo hppa1.1-hp-lites
  14013. - exit 0 ;;
  14014. + exit ;;
  14015. C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  14016. echo c1-convex-bsd
  14017. - exit 0 ;;
  14018. + exit ;;
  14019. C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  14020. if getsysinfo -f scalar_acc
  14021. then echo c32-convex-bsd
  14022. else echo c2-convex-bsd
  14023. fi
  14024. - exit 0 ;;
  14025. + exit ;;
  14026. C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  14027. echo c34-convex-bsd
  14028. - exit 0 ;;
  14029. + exit ;;
  14030. C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  14031. echo c38-convex-bsd
  14032. - exit 0 ;;
  14033. + exit ;;
  14034. C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  14035. echo c4-convex-bsd
  14036. - exit 0 ;;
  14037. + exit ;;
  14038. CRAY*Y-MP:*:*:*)
  14039. echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14040. - exit 0 ;;
  14041. + exit ;;
  14042. CRAY*[A-Z]90:*:*:*)
  14043. echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  14044. | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  14045. -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
  14046. -e 's/\.[^.]*$/.X/'
  14047. - exit 0 ;;
  14048. + exit ;;
  14049. CRAY*TS:*:*:*)
  14050. echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14051. - exit 0 ;;
  14052. - CRAY*T3D:*:*:*)
  14053. - echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14054. - exit 0 ;;
  14055. + exit ;;
  14056. CRAY*T3E:*:*:*)
  14057. echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14058. - exit 0 ;;
  14059. + exit ;;
  14060. CRAY*SV1:*:*:*)
  14061. echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14062. - exit 0 ;;
  14063. + exit ;;
  14064. + *:UNICOS/mp:*:*)
  14065. + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14066. + exit ;;
  14067. F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  14068. FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  14069. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  14070. FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  14071. echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  14072. - exit 0 ;;
  14073. + exit ;;
  14074. + 5000:UNIX_System_V:4.*:*)
  14075. + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  14076. + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  14077. + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  14078. + exit ;;
  14079. i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  14080. echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  14081. - exit 0 ;;
  14082. + exit ;;
  14083. sparc*:BSD/OS:*:*)
  14084. echo sparc-unknown-bsdi${UNAME_RELEASE}
  14085. - exit 0 ;;
  14086. + exit ;;
  14087. *:BSD/OS:*:*)
  14088. echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  14089. - exit 0 ;;
  14090. + exit ;;
  14091. *:FreeBSD:*:*)
  14092. - # Determine whether the default compiler uses glibc.
  14093. - eval $set_cc_for_build
  14094. - sed 's/^ //' << EOF >$dummy.c
  14095. - #include <features.h>
  14096. - #if __GLIBC__ >= 2
  14097. - LIBC=gnu
  14098. - #else
  14099. - LIBC=
  14100. - #endif
  14101. -EOF
  14102. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  14103. - rm -f $dummy.c && rmdir $tmpdir
  14104. - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
  14105. - exit 0 ;;
  14106. + case ${UNAME_MACHINE} in
  14107. + pc98)
  14108. + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  14109. + amd64)
  14110. + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  14111. + *)
  14112. + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  14113. + esac
  14114. + exit ;;
  14115. i*:CYGWIN*:*)
  14116. echo ${UNAME_MACHINE}-pc-cygwin
  14117. - exit 0 ;;
  14118. - i*:MINGW*:*)
  14119. + exit ;;
  14120. + *:MINGW*:*)
  14121. echo ${UNAME_MACHINE}-pc-mingw32
  14122. - exit 0 ;;
  14123. + exit ;;
  14124. + i*:windows32*:*)
  14125. + # uname -m includes "-pc" on this system.
  14126. + echo ${UNAME_MACHINE}-mingw32
  14127. + exit ;;
  14128. i*:PW*:*)
  14129. echo ${UNAME_MACHINE}-pc-pw32
  14130. - exit 0 ;;
  14131. - x86:Interix*:3*)
  14132. - echo i386-pc-interix3
  14133. - exit 0 ;;
  14134. + exit ;;
  14135. + *:Interix*:[3456]*)
  14136. + case ${UNAME_MACHINE} in
  14137. + x86)
  14138. + echo i586-pc-interix${UNAME_RELEASE}
  14139. + exit ;;
  14140. + EM64T | authenticamd | genuineintel)
  14141. + echo x86_64-unknown-interix${UNAME_RELEASE}
  14142. + exit ;;
  14143. + IA64)
  14144. + echo ia64-unknown-interix${UNAME_RELEASE}
  14145. + exit ;;
  14146. + esac ;;
  14147. + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  14148. + echo i${UNAME_MACHINE}-pc-mks
  14149. + exit ;;
  14150. + 8664:Windows_NT:*)
  14151. + echo x86_64-pc-mks
  14152. + exit ;;
  14153. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  14154. # How do we know it's Interix rather than the generic POSIX subsystem?
  14155. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  14156. # UNAME_MACHINE based on the output of uname instead of i386?
  14157. - echo i386-pc-interix
  14158. - exit 0 ;;
  14159. + echo i586-pc-interix
  14160. + exit ;;
  14161. i*:UWIN*:*)
  14162. echo ${UNAME_MACHINE}-pc-uwin
  14163. - exit 0 ;;
  14164. + exit ;;
  14165. + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
  14166. + echo x86_64-unknown-cygwin
  14167. + exit ;;
  14168. p*:CYGWIN*:*)
  14169. echo powerpcle-unknown-cygwin
  14170. - exit 0 ;;
  14171. + exit ;;
  14172. prep*:SunOS:5.*:*)
  14173. echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14174. - exit 0 ;;
  14175. + exit ;;
  14176. *:GNU:*:*)
  14177. + # the GNU system
  14178. echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  14179. - exit 0 ;;
  14180. + exit ;;
  14181. + *:GNU/*:*:*)
  14182. + # other systems with GNU libc and userland
  14183. + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
  14184. + exit ;;
  14185. i*86:Minix:*:*)
  14186. echo ${UNAME_MACHINE}-pc-minix
  14187. - exit 0 ;;
  14188. + exit ;;
  14189. arm*:Linux:*:*)
  14190. + eval $set_cc_for_build
  14191. + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  14192. + | grep -q __ARM_EABI__
  14193. + then
  14194. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  14195. + else
  14196. + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  14197. + fi
  14198. + exit ;;
  14199. + avr32*:Linux:*:*)
  14200. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14201. - exit 0 ;;
  14202. + exit ;;
  14203. + cris:Linux:*:*)
  14204. + echo cris-axis-linux-gnu
  14205. + exit ;;
  14206. + crisv32:Linux:*:*)
  14207. + echo crisv32-axis-linux-gnu
  14208. + exit ;;
  14209. + frv:Linux:*:*)
  14210. + echo frv-unknown-linux-gnu
  14211. + exit ;;
  14212. ia64:Linux:*:*)
  14213. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14214. - exit 0 ;;
  14215. + exit ;;
  14216. + m32r*:Linux:*:*)
  14217. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  14218. + exit ;;
  14219. m68*:Linux:*:*)
  14220. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14221. - exit 0 ;;
  14222. - mips:Linux:*:*)
  14223. + exit ;;
  14224. + mips:Linux:*:* | mips64:Linux:*:*)
  14225. eval $set_cc_for_build
  14226. sed 's/^ //' << EOF >$dummy.c
  14227. #undef CPU
  14228. - #undef mips
  14229. - #undef mipsel
  14230. + #undef ${UNAME_MACHINE}
  14231. + #undef ${UNAME_MACHINE}el
  14232. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  14233. - CPU=mipsel
  14234. + CPU=${UNAME_MACHINE}el
  14235. #else
  14236. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  14237. - CPU=mips
  14238. + CPU=${UNAME_MACHINE}
  14239. #else
  14240. CPU=
  14241. #endif
  14242. #endif
  14243. EOF
  14244. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  14245. - rm -f $dummy.c && rmdir $tmpdir
  14246. - test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0
  14247. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  14248. + /^CPU/{
  14249. + s: ::g
  14250. + p
  14251. + }'`"
  14252. + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  14253. ;;
  14254. + or32:Linux:*:*)
  14255. + echo or32-unknown-linux-gnu
  14256. + exit ;;
  14257. ppc:Linux:*:*)
  14258. echo powerpc-unknown-linux-gnu
  14259. - exit 0 ;;
  14260. + exit ;;
  14261. ppc64:Linux:*:*)
  14262. echo powerpc64-unknown-linux-gnu
  14263. - exit 0 ;;
  14264. + exit ;;
  14265. alpha:Linux:*:*)
  14266. case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  14267. EV5) UNAME_MACHINE=alphaev5 ;;
  14268. @@ -834,10 +927,13 @@
  14269. EV67) UNAME_MACHINE=alphaev67 ;;
  14270. EV68*) UNAME_MACHINE=alphaev68 ;;
  14271. esac
  14272. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  14273. + objdump --private-headers /bin/sh | grep -q ld.so.1
  14274. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  14275. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  14276. - exit 0 ;;
  14277. + exit ;;
  14278. + padre:Linux:*:*)
  14279. + echo sparc-unknown-linux-gnu
  14280. + exit ;;
  14281. parisc:Linux:*:* | hppa:Linux:*:*)
  14282. # Look for CPU level
  14283. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  14284. @@ -845,22 +941,31 @@
  14285. PA8*) echo hppa2.0-unknown-linux-gnu ;;
  14286. *) echo hppa-unknown-linux-gnu ;;
  14287. esac
  14288. - exit 0 ;;
  14289. + exit ;;
  14290. parisc64:Linux:*:* | hppa64:Linux:*:*)
  14291. echo hppa64-unknown-linux-gnu
  14292. - exit 0 ;;
  14293. + exit ;;
  14294. s390:Linux:*:* | s390x:Linux:*:*)
  14295. echo ${UNAME_MACHINE}-ibm-linux
  14296. - exit 0 ;;
  14297. + exit ;;
  14298. + sh64*:Linux:*:*)
  14299. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  14300. + exit ;;
  14301. sh*:Linux:*:*)
  14302. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14303. - exit 0 ;;
  14304. + exit ;;
  14305. sparc:Linux:*:* | sparc64:Linux:*:*)
  14306. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14307. - exit 0 ;;
  14308. + exit ;;
  14309. + vax:Linux:*:*)
  14310. + echo ${UNAME_MACHINE}-dec-linux-gnu
  14311. + exit ;;
  14312. x86_64:Linux:*:*)
  14313. echo x86_64-unknown-linux-gnu
  14314. - exit 0 ;;
  14315. + exit ;;
  14316. + xtensa*:Linux:*:*)
  14317. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  14318. + exit ;;
  14319. i*86:Linux:*:*)
  14320. # The BFD linker knows what the default object file format is, so
  14321. # first see if it will tell us. cd to the root directory to prevent
  14322. @@ -876,17 +981,6 @@
  14323. elf32-i386)
  14324. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  14325. ;;
  14326. - a.out-i386-linux)
  14327. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  14328. - exit 0 ;;
  14329. - coff-i386)
  14330. - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  14331. - exit 0 ;;
  14332. - "")
  14333. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  14334. - # one that does not give us useful --help.
  14335. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  14336. - exit 0 ;;
  14337. esac
  14338. # Determine whether the default compiler is a.out or elf
  14339. eval $set_cc_for_build
  14340. @@ -903,24 +997,33 @@
  14341. LIBC=gnulibc1
  14342. # endif
  14343. #else
  14344. - #ifdef __INTEL_COMPILER
  14345. + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
  14346. LIBC=gnu
  14347. #else
  14348. LIBC=gnuaout
  14349. #endif
  14350. #endif
  14351. + #ifdef __dietlibc__
  14352. + LIBC=dietlibc
  14353. + #endif
  14354. EOF
  14355. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  14356. - rm -f $dummy.c && rmdir $tmpdir
  14357. - test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
  14358. - test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
  14359. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  14360. + /^LIBC/{
  14361. + s: ::g
  14362. + p
  14363. + }'`"
  14364. + test x"${LIBC}" != x && {
  14365. + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  14366. + exit
  14367. + }
  14368. + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
  14369. ;;
  14370. i*86:DYNIX/ptx:4*:*)
  14371. # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  14372. # earlier versions are messed up and put the nodename in both
  14373. # sysname and nodename.
  14374. echo i386-sequent-sysv4
  14375. - exit 0 ;;
  14376. + exit ;;
  14377. i*86:UNIX_SV:4.2MP:2.*)
  14378. # Unixware is an offshoot of SVR4, but it has its own version
  14379. # number series starting with 2...
  14380. @@ -928,7 +1031,27 @@
  14381. # I just have to hope. -- rms.
  14382. # Use sysv4.2uw... so that sysv4* matches it.
  14383. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  14384. - exit 0 ;;
  14385. + exit ;;
  14386. + i*86:OS/2:*:*)
  14387. + # If we were able to find `uname', then EMX Unix compatibility
  14388. + # is probably installed.
  14389. + echo ${UNAME_MACHINE}-pc-os2-emx
  14390. + exit ;;
  14391. + i*86:XTS-300:*:STOP)
  14392. + echo ${UNAME_MACHINE}-unknown-stop
  14393. + exit ;;
  14394. + i*86:atheos:*:*)
  14395. + echo ${UNAME_MACHINE}-unknown-atheos
  14396. + exit ;;
  14397. + i*86:syllable:*:*)
  14398. + echo ${UNAME_MACHINE}-pc-syllable
  14399. + exit ;;
  14400. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  14401. + echo i386-unknown-lynxos${UNAME_RELEASE}
  14402. + exit ;;
  14403. + i*86:*DOS:*:*)
  14404. + echo ${UNAME_MACHINE}-pc-msdosdjgpp
  14405. + exit ;;
  14406. i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  14407. UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  14408. if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  14409. @@ -936,15 +1059,16 @@
  14410. else
  14411. echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  14412. fi
  14413. - exit 0 ;;
  14414. - i*86:*:5:[78]*)
  14415. + exit ;;
  14416. + i*86:*:5:[678]*)
  14417. + # UnixWare 7.x, OpenUNIX and OpenServer 6.
  14418. case `/bin/uname -X | grep "^Machine"` in
  14419. *486*) UNAME_MACHINE=i486 ;;
  14420. *Pentium) UNAME_MACHINE=i586 ;;
  14421. *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  14422. esac
  14423. echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  14424. - exit 0 ;;
  14425. + exit ;;
  14426. i*86:*:3.2:*)
  14427. if test -f /usr/options/cb.name; then
  14428. UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  14429. @@ -962,73 +1086,86 @@
  14430. else
  14431. echo ${UNAME_MACHINE}-pc-sysv32
  14432. fi
  14433. - exit 0 ;;
  14434. - i*86:*DOS:*:*)
  14435. - echo ${UNAME_MACHINE}-pc-msdosdjgpp
  14436. - exit 0 ;;
  14437. + exit ;;
  14438. pc:*:*:*)
  14439. # Left here for compatibility:
  14440. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  14441. - # the processor, so we play safe by assuming i386.
  14442. - echo i386-pc-msdosdjgpp
  14443. - exit 0 ;;
  14444. + # the processor, so we play safe by assuming i586.
  14445. + # Note: whatever this is, it MUST be the same as what config.sub
  14446. + # prints for the "djgpp" host, or else GDB configury will decide that
  14447. + # this is a cross-build.
  14448. + echo i586-pc-msdosdjgpp
  14449. + exit ;;
  14450. Intel:Mach:3*:*)
  14451. echo i386-pc-mach3
  14452. - exit 0 ;;
  14453. + exit ;;
  14454. paragon:*:*:*)
  14455. echo i860-intel-osf1
  14456. - exit 0 ;;
  14457. + exit ;;
  14458. i860:*:4.*:*) # i860-SVR4
  14459. if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  14460. echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  14461. else # Add other i860-SVR4 vendors below as they are discovered.
  14462. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
  14463. fi
  14464. - exit 0 ;;
  14465. + exit ;;
  14466. mini*:CTIX:SYS*5:*)
  14467. # "miniframe"
  14468. echo m68010-convergent-sysv
  14469. - exit 0 ;;
  14470. - M68*:*:R3V[567]*:*)
  14471. - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
  14472. - 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0)
  14473. + exit ;;
  14474. + mc68k:UNIX:SYSTEM5:3.51m)
  14475. + echo m68k-convergent-sysv
  14476. + exit ;;
  14477. + M680?0:D-NIX:5.3:*)
  14478. + echo m68k-diab-dnix
  14479. + exit ;;
  14480. + M68*:*:R3V[5678]*:*)
  14481. + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
  14482. + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
  14483. OS_REL=''
  14484. test -r /etc/.relid \
  14485. && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  14486. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  14487. - && echo i486-ncr-sysv4.3${OS_REL} && exit 0
  14488. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  14489. /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  14490. - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
  14491. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  14492. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  14493. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  14494. - && echo i486-ncr-sysv4 && exit 0 ;;
  14495. + && { echo i486-ncr-sysv4; exit; } ;;
  14496. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  14497. + OS_REL='.3'
  14498. + test -r /etc/.relid \
  14499. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  14500. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  14501. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  14502. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  14503. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  14504. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  14505. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  14506. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  14507. echo m68k-unknown-lynxos${UNAME_RELEASE}
  14508. - exit 0 ;;
  14509. + exit ;;
  14510. mc68030:UNIX_System_V:4.*:*)
  14511. echo m68k-atari-sysv4
  14512. - exit 0 ;;
  14513. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  14514. - echo i386-unknown-lynxos${UNAME_RELEASE}
  14515. - exit 0 ;;
  14516. + exit ;;
  14517. TSUNAMI:LynxOS:2.*:*)
  14518. echo sparc-unknown-lynxos${UNAME_RELEASE}
  14519. - exit 0 ;;
  14520. + exit ;;
  14521. rs6000:LynxOS:2.*:*)
  14522. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  14523. - exit 0 ;;
  14524. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  14525. + exit ;;
  14526. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  14527. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  14528. - exit 0 ;;
  14529. + exit ;;
  14530. SM[BE]S:UNIX_SV:*:*)
  14531. echo mips-dde-sysv${UNAME_RELEASE}
  14532. - exit 0 ;;
  14533. + exit ;;
  14534. RM*:ReliantUNIX-*:*:*)
  14535. echo mips-sni-sysv4
  14536. - exit 0 ;;
  14537. + exit ;;
  14538. RM*:SINIX-*:*:*)
  14539. echo mips-sni-sysv4
  14540. - exit 0 ;;
  14541. + exit ;;
  14542. *:SINIX-*:*:*)
  14543. if uname -p 2>/dev/null >/dev/null ; then
  14544. UNAME_MACHINE=`(uname -p) 2>/dev/null`
  14545. @@ -1036,61 +1173,84 @@
  14546. else
  14547. echo ns32k-sni-sysv
  14548. fi
  14549. - exit 0 ;;
  14550. + exit ;;
  14551. PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  14552. # says <Richard.M.Bartel@ccMail.Census.GOV>
  14553. echo i586-unisys-sysv4
  14554. - exit 0 ;;
  14555. + exit ;;
  14556. *:UNIX_System_V:4*:FTX*)
  14557. # From Gerald Hewes <hewes@openmarket.com>.
  14558. # How about differentiating between stratus architectures? -djm
  14559. echo hppa1.1-stratus-sysv4
  14560. - exit 0 ;;
  14561. + exit ;;
  14562. *:*:*:FTX*)
  14563. # From seanf@swdc.stratus.com.
  14564. echo i860-stratus-sysv4
  14565. - exit 0 ;;
  14566. + exit ;;
  14567. + i*86:VOS:*:*)
  14568. + # From Paul.Green@stratus.com.
  14569. + echo ${UNAME_MACHINE}-stratus-vos
  14570. + exit ;;
  14571. *:VOS:*:*)
  14572. # From Paul.Green@stratus.com.
  14573. echo hppa1.1-stratus-vos
  14574. - exit 0 ;;
  14575. + exit ;;
  14576. mc68*:A/UX:*:*)
  14577. echo m68k-apple-aux${UNAME_RELEASE}
  14578. - exit 0 ;;
  14579. + exit ;;
  14580. news*:NEWS-OS:6*:*)
  14581. echo mips-sony-newsos6
  14582. - exit 0 ;;
  14583. + exit ;;
  14584. R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  14585. if [ -d /usr/nec ]; then
  14586. echo mips-nec-sysv${UNAME_RELEASE}
  14587. else
  14588. echo mips-unknown-sysv${UNAME_RELEASE}
  14589. fi
  14590. - exit 0 ;;
  14591. + exit ;;
  14592. BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
  14593. echo powerpc-be-beos
  14594. - exit 0 ;;
  14595. + exit ;;
  14596. BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
  14597. echo powerpc-apple-beos
  14598. - exit 0 ;;
  14599. + exit ;;
  14600. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  14601. echo i586-pc-beos
  14602. - exit 0 ;;
  14603. + exit ;;
  14604. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  14605. + echo i586-pc-haiku
  14606. + exit ;;
  14607. SX-4:SUPER-UX:*:*)
  14608. echo sx4-nec-superux${UNAME_RELEASE}
  14609. - exit 0 ;;
  14610. + exit ;;
  14611. SX-5:SUPER-UX:*:*)
  14612. echo sx5-nec-superux${UNAME_RELEASE}
  14613. - exit 0 ;;
  14614. + exit ;;
  14615. + SX-6:SUPER-UX:*:*)
  14616. + echo sx6-nec-superux${UNAME_RELEASE}
  14617. + exit ;;
  14618. + SX-7:SUPER-UX:*:*)
  14619. + echo sx7-nec-superux${UNAME_RELEASE}
  14620. + exit ;;
  14621. + SX-8:SUPER-UX:*:*)
  14622. + echo sx8-nec-superux${UNAME_RELEASE}
  14623. + exit ;;
  14624. + SX-8R:SUPER-UX:*:*)
  14625. + echo sx8r-nec-superux${UNAME_RELEASE}
  14626. + exit ;;
  14627. Power*:Rhapsody:*:*)
  14628. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  14629. - exit 0 ;;
  14630. + exit ;;
  14631. *:Rhapsody:*:*)
  14632. echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  14633. - exit 0 ;;
  14634. + exit ;;
  14635. *:Darwin:*:*)
  14636. - echo `uname -p`-apple-darwin${UNAME_RELEASE}
  14637. - exit 0 ;;
  14638. + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  14639. + case $UNAME_PROCESSOR in
  14640. + unknown) UNAME_PROCESSOR=powerpc ;;
  14641. + esac
  14642. + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  14643. + exit ;;
  14644. *:procnto*:*:* | *:QNX:[0123456789]*:*)
  14645. UNAME_PROCESSOR=`uname -p`
  14646. if test "$UNAME_PROCESSOR" = "x86"; then
  14647. @@ -1098,22 +1258,25 @@
  14648. UNAME_MACHINE=pc
  14649. fi
  14650. echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  14651. - exit 0 ;;
  14652. + exit ;;
  14653. *:QNX:*:4*)
  14654. echo i386-pc-qnx
  14655. - exit 0 ;;
  14656. - NSR-[GKLNPTVW]:NONSTOP_KERNEL:*:*)
  14657. + exit ;;
  14658. + NSE-?:NONSTOP_KERNEL:*:*)
  14659. + echo nse-tandem-nsk${UNAME_RELEASE}
  14660. + exit ;;
  14661. + NSR-?:NONSTOP_KERNEL:*:*)
  14662. echo nsr-tandem-nsk${UNAME_RELEASE}
  14663. - exit 0 ;;
  14664. + exit ;;
  14665. *:NonStop-UX:*:*)
  14666. echo mips-compaq-nonstopux
  14667. - exit 0 ;;
  14668. + exit ;;
  14669. BS2000:POSIX*:*:*)
  14670. echo bs2000-siemens-sysv
  14671. - exit 0 ;;
  14672. + exit ;;
  14673. DS/*:UNIX_System_V:*:*)
  14674. echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  14675. - exit 0 ;;
  14676. + exit ;;
  14677. *:Plan9:*:*)
  14678. # "uname -m" is not consistent, so use $cputype instead. 386
  14679. # is converted to i386 for consistency with other x86
  14680. @@ -1124,36 +1287,50 @@
  14681. UNAME_MACHINE="$cputype"
  14682. fi
  14683. echo ${UNAME_MACHINE}-unknown-plan9
  14684. - exit 0 ;;
  14685. - i*86:OS/2:*:*)
  14686. - # If we were able to find `uname', then EMX Unix compatibility
  14687. - # is probably installed.
  14688. - echo ${UNAME_MACHINE}-pc-os2-emx
  14689. - exit 0 ;;
  14690. + exit ;;
  14691. *:TOPS-10:*:*)
  14692. echo pdp10-unknown-tops10
  14693. - exit 0 ;;
  14694. + exit ;;
  14695. *:TENEX:*:*)
  14696. echo pdp10-unknown-tenex
  14697. - exit 0 ;;
  14698. + exit ;;
  14699. KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  14700. echo pdp10-dec-tops20
  14701. - exit 0 ;;
  14702. + exit ;;
  14703. XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  14704. echo pdp10-xkl-tops20
  14705. - exit 0 ;;
  14706. + exit ;;
  14707. *:TOPS-20:*:*)
  14708. echo pdp10-unknown-tops20
  14709. - exit 0 ;;
  14710. + exit ;;
  14711. *:ITS:*:*)
  14712. echo pdp10-unknown-its
  14713. - exit 0 ;;
  14714. - i*86:XTS-300:*:STOP)
  14715. - echo ${UNAME_MACHINE}-unknown-stop
  14716. - exit 0 ;;
  14717. - i*86:atheos:*:*)
  14718. - echo ${UNAME_MACHINE}-unknown-atheos
  14719. - exit 0 ;;
  14720. + exit ;;
  14721. + SEI:*:*:SEIUX)
  14722. + echo mips-sei-seiux${UNAME_RELEASE}
  14723. + exit ;;
  14724. + *:DragonFly:*:*)
  14725. + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  14726. + exit ;;
  14727. + *:*VMS:*:*)
  14728. + UNAME_MACHINE=`(uname -p) 2>/dev/null`
  14729. + case "${UNAME_MACHINE}" in
  14730. + A*) echo alpha-dec-vms ; exit ;;
  14731. + I*) echo ia64-dec-vms ; exit ;;
  14732. + V*) echo vax-dec-vms ; exit ;;
  14733. + esac ;;
  14734. + *:XENIX:*:SysV)
  14735. + echo i386-pc-xenix
  14736. + exit ;;
  14737. + i*86:skyos:*:*)
  14738. + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  14739. + exit ;;
  14740. + i*86:rdos:*:*)
  14741. + echo ${UNAME_MACHINE}-pc-rdos
  14742. + exit ;;
  14743. + i*86:AROS:*:*)
  14744. + echo ${UNAME_MACHINE}-pc-aros
  14745. + exit ;;
  14746. esac
  14747. #echo '(No uname command or uname output not recognized.)' 1>&2
  14748. @@ -1185,7 +1362,7 @@
  14749. #endif
  14750. #if defined (__arm) && defined (__acorn) && defined (__unix)
  14751. - printf ("arm-acorn-riscix"); exit (0);
  14752. + printf ("arm-acorn-riscix\n"); exit (0);
  14753. #endif
  14754. #if defined (hp300) && !defined (hpux)
  14755. @@ -1274,12 +1451,12 @@
  14756. }
  14757. EOF
  14758. -$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
  14759. -rm -f $dummy.c $dummy && rmdir $tmpdir
  14760. +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  14761. + { echo "$SYSTEM_NAME"; exit; }
  14762. # Apollos put the system type in the environment.
  14763. -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
  14764. +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  14765. # Convex versions that predate uname can use getsysinfo(1)
  14766. @@ -1288,22 +1465,22 @@
  14767. case `getsysinfo -f cpu_type` in
  14768. c1*)
  14769. echo c1-convex-bsd
  14770. - exit 0 ;;
  14771. + exit ;;
  14772. c2*)
  14773. if getsysinfo -f scalar_acc
  14774. then echo c32-convex-bsd
  14775. else echo c2-convex-bsd
  14776. fi
  14777. - exit 0 ;;
  14778. + exit ;;
  14779. c34*)
  14780. echo c34-convex-bsd
  14781. - exit 0 ;;
  14782. + exit ;;
  14783. c38*)
  14784. echo c38-convex-bsd
  14785. - exit 0 ;;
  14786. + exit ;;
  14787. c4*)
  14788. echo c4-convex-bsd
  14789. - exit 0 ;;
  14790. + exit ;;
  14791. esac
  14792. fi
  14793. @@ -1314,7 +1491,9 @@
  14794. the operating system you are using. It is advised that you
  14795. download the most up to date version of the config scripts from
  14796. - ftp://ftp.gnu.org/pub/gnu/config/
  14797. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  14798. +and
  14799. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  14800. If the version you run ($0) is already up to date, please
  14801. send the following data and any information you think might be
  14802. diff -Nur libdnet-1.11.orig/config/config.sub libdnet-1.11/config/config.sub
  14803. --- libdnet-1.11.orig/config/config.sub 2006-01-09 23:46:45.000000000 +0100
  14804. +++ libdnet-1.11/config/config.sub 2011-02-19 12:27:14.093551942 +0100
  14805. @@ -1,9 +1,10 @@
  14806. #! /bin/sh
  14807. # Configuration validation subroutine script.
  14808. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  14809. -# 2000, 2001, 2002 Free Software Foundation, Inc.
  14810. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  14811. +# Free Software Foundation, Inc.
  14812. -timestamp='2002-07-03'
  14813. +timestamp='2009-06-11'
  14814. # This file is (in principle) common to ALL GNU software.
  14815. # The presence of a machine in this file suggests that SOME GNU software
  14816. @@ -21,14 +22,15 @@
  14817. #
  14818. # You should have received a copy of the GNU General Public License
  14819. # along with this program; if not, write to the Free Software
  14820. -# Foundation, Inc., 59 Temple Place - Suite 330,
  14821. -# Boston, MA 02111-1307, USA.
  14822. -
  14823. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  14824. +# 02110-1301, USA.
  14825. +#
  14826. # As a special exception to the GNU General Public License, if you
  14827. # distribute this file as part of a program that contains a
  14828. # configuration script generated by Autoconf, you may include it under
  14829. # the same distribution terms that you use for the rest of that program.
  14830. +
  14831. # Please send patches to <config-patches@gnu.org>. Submit a context
  14832. # diff and a properly formatted ChangeLog entry.
  14833. #
  14834. @@ -70,8 +72,8 @@
  14835. version="\
  14836. GNU config.sub ($timestamp)
  14837. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
  14838. -Free Software Foundation, Inc.
  14839. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  14840. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  14841. This is free software; see the source for copying conditions. There is NO
  14842. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  14843. @@ -83,11 +85,11 @@
  14844. while test $# -gt 0 ; do
  14845. case $1 in
  14846. --time-stamp | --time* | -t )
  14847. - echo "$timestamp" ; exit 0 ;;
  14848. + echo "$timestamp" ; exit ;;
  14849. --version | -v )
  14850. - echo "$version" ; exit 0 ;;
  14851. + echo "$version" ; exit ;;
  14852. --help | --h* | -h )
  14853. - echo "$usage"; exit 0 ;;
  14854. + echo "$usage"; exit ;;
  14855. -- ) # Stop option processing
  14856. shift; break ;;
  14857. - ) # Use stdin as input.
  14858. @@ -99,7 +101,7 @@
  14859. *local*)
  14860. # First pass through any local machine types.
  14861. echo $1
  14862. - exit 0;;
  14863. + exit ;;
  14864. * )
  14865. break ;;
  14866. @@ -118,7 +120,10 @@
  14867. # Here we must recognize all the valid KERNEL-OS combinations.
  14868. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  14869. case $maybe_os in
  14870. - nto-qnx* | linux-gnu* | freebsd*-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*)
  14871. + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  14872. + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  14873. + kopensolaris*-gnu* | \
  14874. + storm-chaos* | os2-emx* | rtmk-nova*)
  14875. os=-$maybe_os
  14876. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  14877. ;;
  14878. @@ -144,10 +149,13 @@
  14879. -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
  14880. -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
  14881. -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
  14882. - -apple | -axis)
  14883. + -apple | -axis | -knuth | -cray)
  14884. os=
  14885. basic_machine=$1
  14886. ;;
  14887. + -bluegene*)
  14888. + os=-cnk
  14889. + ;;
  14890. -sim | -cisco | -oki | -wec | -winbond)
  14891. os=
  14892. basic_machine=$1
  14893. @@ -169,6 +177,10 @@
  14894. -hiux*)
  14895. os=-hiuxwe2
  14896. ;;
  14897. + -sco6)
  14898. + os=-sco5v6
  14899. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  14900. + ;;
  14901. -sco5)
  14902. os=-sco3.2v5
  14903. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  14904. @@ -185,6 +197,10 @@
  14905. # Don't forget version if it is 3.2v4 or newer.
  14906. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  14907. ;;
  14908. + -sco5v6*)
  14909. + # Don't forget version if it is 3.2v4 or newer.
  14910. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  14911. + ;;
  14912. -sco*)
  14913. os=-sco3.2v2
  14914. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  14915. @@ -228,40 +244,57 @@
  14916. | a29k \
  14917. | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  14918. | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  14919. - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
  14920. + | am33_2.0 \
  14921. + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
  14922. + | bfin \
  14923. | c4x | clipper \
  14924. | d10v | d30v | dlx | dsp16xx \
  14925. - | fr30 | frv \
  14926. + | fido | fr30 | frv \
  14927. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  14928. | i370 | i860 | i960 | ia64 \
  14929. - | ip2k \
  14930. - | m32r | m68000 | m68k | m88k | mcore \
  14931. + | ip2k | iq2000 \
  14932. + | lm32 \
  14933. + | m32c | m32r | m32rle | m68000 | m68k | m88k \
  14934. + | maxq | mb | microblaze | mcore | mep | metag \
  14935. | mips | mipsbe | mipseb | mipsel | mipsle \
  14936. | mips16 \
  14937. | mips64 | mips64el \
  14938. + | mips64octeon | mips64octeonel \
  14939. | mips64orion | mips64orionel \
  14940. + | mips64r5900 | mips64r5900el \
  14941. + | mips64vr | mips64vrel \
  14942. | mips64vr4100 | mips64vr4100el \
  14943. | mips64vr4300 | mips64vr4300el \
  14944. | mips64vr5000 | mips64vr5000el \
  14945. + | mips64vr5900 | mips64vr5900el \
  14946. | mipsisa32 | mipsisa32el \
  14947. + | mipsisa32r2 | mipsisa32r2el \
  14948. | mipsisa64 | mipsisa64el \
  14949. + | mipsisa64r2 | mipsisa64r2el \
  14950. | mipsisa64sb1 | mipsisa64sb1el \
  14951. + | mipsisa64sr71k | mipsisa64sr71kel \
  14952. | mipstx39 | mipstx39el \
  14953. | mn10200 | mn10300 \
  14954. + | moxie \
  14955. + | mt \
  14956. + | msp430 \
  14957. + | nios | nios2 \
  14958. | ns16k | ns32k \
  14959. - | openrisc | or32 \
  14960. + | or32 \
  14961. | pdp10 | pdp11 | pj | pjl \
  14962. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  14963. | pyramid \
  14964. - | sh | sh[1234] | sh3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
  14965. + | score \
  14966. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  14967. | sh64 | sh64le \
  14968. - | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
  14969. - | strongarm \
  14970. - | tahoe | thumb | tic80 | tron \
  14971. + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  14972. + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  14973. + | spu | strongarm \
  14974. + | tahoe | thumb | tic4x | tic80 | tron \
  14975. | v850 | v850e \
  14976. | we32k \
  14977. - | x86 | xscale | xstormy16 | xtensa \
  14978. - | z8k)
  14979. + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  14980. + | z8k | z80)
  14981. basic_machine=$basic_machine-unknown
  14982. ;;
  14983. m6811 | m68hc11 | m6812 | m68hc12)
  14984. @@ -271,6 +304,9 @@
  14985. ;;
  14986. m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
  14987. ;;
  14988. + ms1)
  14989. + basic_machine=mt-unknown
  14990. + ;;
  14991. # We use `pc' rather than `unknown'
  14992. # because (1) that's what they normally are, and
  14993. @@ -290,48 +326,67 @@
  14994. | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
  14995. | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
  14996. | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
  14997. - | avr-* \
  14998. - | bs2000-* \
  14999. - | c[123]* | c30-* | [cjt]90-* | c54x-* \
  15000. - | clipper-* | cydra-* \
  15001. + | avr-* | avr32-* \
  15002. + | bfin-* | bs2000-* \
  15003. + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
  15004. + | clipper-* | craynv-* | cydra-* \
  15005. | d10v-* | d30v-* | dlx-* \
  15006. | elxsi-* \
  15007. - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
  15008. + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
  15009. | h8300-* | h8500-* \
  15010. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  15011. | i*86-* | i860-* | i960-* | ia64-* \
  15012. - | ip2k-* \
  15013. - | m32r-* \
  15014. + | ip2k-* | iq2000-* \
  15015. + | lm32-* \
  15016. + | m32c-* | m32r-* | m32rle-* \
  15017. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  15018. - | m88110-* | m88k-* | mcore-* \
  15019. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  15020. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  15021. | mips16-* \
  15022. | mips64-* | mips64el-* \
  15023. + | mips64octeon-* | mips64octeonel-* \
  15024. | mips64orion-* | mips64orionel-* \
  15025. + | mips64r5900-* | mips64r5900el-* \
  15026. + | mips64vr-* | mips64vrel-* \
  15027. | mips64vr4100-* | mips64vr4100el-* \
  15028. | mips64vr4300-* | mips64vr4300el-* \
  15029. | mips64vr5000-* | mips64vr5000el-* \
  15030. + | mips64vr5900-* | mips64vr5900el-* \
  15031. | mipsisa32-* | mipsisa32el-* \
  15032. + | mipsisa32r2-* | mipsisa32r2el-* \
  15033. | mipsisa64-* | mipsisa64el-* \
  15034. + | mipsisa64r2-* | mipsisa64r2el-* \
  15035. | mipsisa64sb1-* | mipsisa64sb1el-* \
  15036. - | mipstx39 | mipstx39el \
  15037. + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
  15038. + | mipstx39-* | mipstx39el-* \
  15039. + | mmix-* \
  15040. + | mt-* \
  15041. + | msp430-* \
  15042. + | nios-* | nios2-* \
  15043. | none-* | np1-* | ns16k-* | ns32k-* \
  15044. | orion-* \
  15045. | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  15046. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  15047. | pyramid-* \
  15048. | romp-* | rs6000-* \
  15049. - | sh-* | sh[1234]-* | sh3e-* | sh[34]eb-* | shbe-* \
  15050. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  15051. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  15052. - | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
  15053. - | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
  15054. - | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
  15055. + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  15056. + | sparclite-* \
  15057. + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  15058. + | tahoe-* | thumb-* \
  15059. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  15060. + | tron-* \
  15061. | v850-* | v850e-* | vax-* \
  15062. | we32k-* \
  15063. - | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
  15064. - | xtensa-* \
  15065. + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  15066. + | xstormy16-* | xtensa*-* \
  15067. | ymp-* \
  15068. - | z8k-*)
  15069. + | z8k-* | z80-*)
  15070. + ;;
  15071. + # Recognize the basic CPU types without company name, with glob match.
  15072. + xtensa*)
  15073. + basic_machine=$basic_machine-unknown
  15074. ;;
  15075. # Recognize the various machine names and aliases which stand
  15076. # for a CPU type and a company and sometimes even an OS.
  15077. @@ -349,6 +404,9 @@
  15078. basic_machine=a29k-amd
  15079. os=-udi
  15080. ;;
  15081. + abacus)
  15082. + basic_machine=abacus-unknown
  15083. + ;;
  15084. adobe68k)
  15085. basic_machine=m68010-adobe
  15086. os=-scout
  15087. @@ -363,6 +421,12 @@
  15088. basic_machine=a29k-none
  15089. os=-bsd
  15090. ;;
  15091. + amd64)
  15092. + basic_machine=x86_64-pc
  15093. + ;;
  15094. + amd64-*)
  15095. + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
  15096. + ;;
  15097. amdahl)
  15098. basic_machine=580-amdahl
  15099. os=-sysv
  15100. @@ -386,6 +450,10 @@
  15101. basic_machine=m68k-apollo
  15102. os=-bsd
  15103. ;;
  15104. + aros)
  15105. + basic_machine=i386-pc
  15106. + os=-aros
  15107. + ;;
  15108. aux)
  15109. basic_machine=m68k-apple
  15110. os=-aux
  15111. @@ -394,10 +462,26 @@
  15112. basic_machine=ns32k-sequent
  15113. os=-dynix
  15114. ;;
  15115. + blackfin)
  15116. + basic_machine=bfin-unknown
  15117. + os=-linux
  15118. + ;;
  15119. + blackfin-*)
  15120. + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  15121. + os=-linux
  15122. + ;;
  15123. + bluegene*)
  15124. + basic_machine=powerpc-ibm
  15125. + os=-cnk
  15126. + ;;
  15127. c90)
  15128. basic_machine=c90-cray
  15129. os=-unicos
  15130. ;;
  15131. + cegcc)
  15132. + basic_machine=arm-unknown
  15133. + os=-cegcc
  15134. + ;;
  15135. convex-c1)
  15136. basic_machine=c1-convex
  15137. os=-bsd
  15138. @@ -422,12 +506,27 @@
  15139. basic_machine=j90-cray
  15140. os=-unicos
  15141. ;;
  15142. + craynv)
  15143. + basic_machine=craynv-cray
  15144. + os=-unicosmp
  15145. + ;;
  15146. + cr16)
  15147. + basic_machine=cr16-unknown
  15148. + os=-elf
  15149. + ;;
  15150. crds | unos)
  15151. basic_machine=m68k-crds
  15152. ;;
  15153. + crisv32 | crisv32-* | etraxfs*)
  15154. + basic_machine=crisv32-axis
  15155. + ;;
  15156. cris | cris-* | etrax*)
  15157. basic_machine=cris-axis
  15158. ;;
  15159. + crx)
  15160. + basic_machine=crx-unknown
  15161. + os=-elf
  15162. + ;;
  15163. da30 | da30-*)
  15164. basic_machine=m68k-da30
  15165. ;;
  15166. @@ -450,6 +549,14 @@
  15167. basic_machine=m88k-motorola
  15168. os=-sysv3
  15169. ;;
  15170. + dicos)
  15171. + basic_machine=i686-pc
  15172. + os=-dicos
  15173. + ;;
  15174. + djgpp)
  15175. + basic_machine=i586-pc
  15176. + os=-msdosdjgpp
  15177. + ;;
  15178. dpx20 | dpx20-*)
  15179. basic_machine=rs6000-bull
  15180. os=-bosx
  15181. @@ -600,6 +707,14 @@
  15182. basic_machine=m68k-isi
  15183. os=-sysv
  15184. ;;
  15185. + m68knommu)
  15186. + basic_machine=m68k-unknown
  15187. + os=-linux
  15188. + ;;
  15189. + m68knommu-*)
  15190. + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
  15191. + os=-linux
  15192. + ;;
  15193. m88k-omron*)
  15194. basic_machine=m88k-omron
  15195. ;;
  15196. @@ -615,6 +730,10 @@
  15197. basic_machine=i386-pc
  15198. os=-mingw32
  15199. ;;
  15200. + mingw32ce)
  15201. + basic_machine=arm-unknown
  15202. + os=-mingw32ce
  15203. + ;;
  15204. miniframe)
  15205. basic_machine=m68000-convergent
  15206. ;;
  15207. @@ -628,10 +747,6 @@
  15208. mips3*)
  15209. basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
  15210. ;;
  15211. - mmix*)
  15212. - basic_machine=mmix-knuth
  15213. - os=-mmixware
  15214. - ;;
  15215. monitor)
  15216. basic_machine=m68k-rom68k
  15217. os=-coff
  15218. @@ -644,6 +759,9 @@
  15219. basic_machine=i386-pc
  15220. os=-msdos
  15221. ;;
  15222. + ms1-*)
  15223. + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
  15224. + ;;
  15225. mvs)
  15226. basic_machine=i370-ibm
  15227. os=-mvs
  15228. @@ -719,9 +837,12 @@
  15229. basic_machine=hppa1.1-oki
  15230. os=-proelf
  15231. ;;
  15232. - or32 | or32-*)
  15233. + openrisc | openrisc-*)
  15234. basic_machine=or32-unknown
  15235. - os=-coff
  15236. + ;;
  15237. + os400)
  15238. + basic_machine=powerpc-ibm
  15239. + os=-os400
  15240. ;;
  15241. OSE68000 | ose68000)
  15242. basic_machine=m68000-ericsson
  15243. @@ -739,55 +860,75 @@
  15244. basic_machine=i860-intel
  15245. os=-osf
  15246. ;;
  15247. + parisc)
  15248. + basic_machine=hppa-unknown
  15249. + os=-linux
  15250. + ;;
  15251. + parisc-*)
  15252. + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
  15253. + os=-linux
  15254. + ;;
  15255. pbd)
  15256. basic_machine=sparc-tti
  15257. ;;
  15258. pbb)
  15259. basic_machine=m68k-tti
  15260. ;;
  15261. - pc532 | pc532-*)
  15262. + pc532 | pc532-*)
  15263. basic_machine=ns32k-pc532
  15264. ;;
  15265. + pc98)
  15266. + basic_machine=i386-pc
  15267. + ;;
  15268. + pc98-*)
  15269. + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
  15270. + ;;
  15271. pentium | p5 | k5 | k6 | nexgen | viac3)
  15272. basic_machine=i586-pc
  15273. ;;
  15274. - pentiumpro | p6 | 6x86 | athlon)
  15275. + pentiumpro | p6 | 6x86 | athlon | athlon_*)
  15276. basic_machine=i686-pc
  15277. ;;
  15278. - pentiumii | pentium2)
  15279. + pentiumii | pentium2 | pentiumiii | pentium3)
  15280. basic_machine=i686-pc
  15281. ;;
  15282. + pentium4)
  15283. + basic_machine=i786-pc
  15284. + ;;
  15285. pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
  15286. basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
  15287. ;;
  15288. pentiumpro-* | p6-* | 6x86-* | athlon-*)
  15289. basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  15290. ;;
  15291. - pentiumii-* | pentium2-*)
  15292. + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
  15293. basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  15294. ;;
  15295. + pentium4-*)
  15296. + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
  15297. + ;;
  15298. pn)
  15299. basic_machine=pn-gould
  15300. ;;
  15301. power) basic_machine=power-ibm
  15302. ;;
  15303. ppc) basic_machine=powerpc-unknown
  15304. - ;;
  15305. + ;;
  15306. ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
  15307. ;;
  15308. ppcle | powerpclittle | ppc-le | powerpc-little)
  15309. basic_machine=powerpcle-unknown
  15310. - ;;
  15311. + ;;
  15312. ppcle-* | powerpclittle-*)
  15313. basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
  15314. ;;
  15315. ppc64) basic_machine=powerpc64-unknown
  15316. - ;;
  15317. + ;;
  15318. ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
  15319. ;;
  15320. ppc64le | powerpc64little | ppc64-le | powerpc64-little)
  15321. basic_machine=powerpc64le-unknown
  15322. - ;;
  15323. + ;;
  15324. ppc64le-* | powerpc64little-*)
  15325. basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
  15326. ;;
  15327. @@ -798,6 +939,10 @@
  15328. basic_machine=i586-unknown
  15329. os=-pw32
  15330. ;;
  15331. + rdos)
  15332. + basic_machine=i386-pc
  15333. + os=-rdos
  15334. + ;;
  15335. rom68k)
  15336. basic_machine=m68k-rom68k
  15337. os=-coff
  15338. @@ -818,6 +963,20 @@
  15339. basic_machine=a29k-amd
  15340. os=-udi
  15341. ;;
  15342. + sb1)
  15343. + basic_machine=mipsisa64sb1-unknown
  15344. + ;;
  15345. + sb1el)
  15346. + basic_machine=mipsisa64sb1el-unknown
  15347. + ;;
  15348. + sde)
  15349. + basic_machine=mipsisa32-sde
  15350. + os=-elf
  15351. + ;;
  15352. + sei)
  15353. + basic_machine=mips-sei
  15354. + os=-seiux
  15355. + ;;
  15356. sequent)
  15357. basic_machine=i386-sequent
  15358. ;;
  15359. @@ -825,6 +984,12 @@
  15360. basic_machine=sh-hitachi
  15361. os=-hms
  15362. ;;
  15363. + sh5el)
  15364. + basic_machine=sh5le-unknown
  15365. + ;;
  15366. + sh64)
  15367. + basic_machine=sh64-unknown
  15368. + ;;
  15369. sparclite-wrs | simso-wrs)
  15370. basic_machine=sparclite-wrs
  15371. os=-vxworks
  15372. @@ -883,7 +1048,7 @@
  15373. sun386 | sun386i | roadrunner)
  15374. basic_machine=i386-sun
  15375. ;;
  15376. - sv1)
  15377. + sv1)
  15378. basic_machine=sv1-cray
  15379. os=-unicos
  15380. ;;
  15381. @@ -891,10 +1056,6 @@
  15382. basic_machine=i386-sequent
  15383. os=-dynix
  15384. ;;
  15385. - t3d)
  15386. - basic_machine=alpha-cray
  15387. - os=-unicos
  15388. - ;;
  15389. t3e)
  15390. basic_machine=alphaev5-cray
  15391. os=-unicos
  15392. @@ -907,6 +1068,18 @@
  15393. basic_machine=tic54x-unknown
  15394. os=-coff
  15395. ;;
  15396. + tic55x | c55x*)
  15397. + basic_machine=tic55x-unknown
  15398. + os=-coff
  15399. + ;;
  15400. + tic6x | c6x*)
  15401. + basic_machine=tic6x-unknown
  15402. + os=-coff
  15403. + ;;
  15404. + tile*)
  15405. + basic_machine=tile-unknown
  15406. + os=-linux-gnu
  15407. + ;;
  15408. tx39)
  15409. basic_machine=mipstx39-unknown
  15410. ;;
  15411. @@ -920,6 +1093,10 @@
  15412. tower | tower-32)
  15413. basic_machine=m68k-ncr
  15414. ;;
  15415. + tpf)
  15416. + basic_machine=s390x-ibm
  15417. + os=-tpf
  15418. + ;;
  15419. udi29k)
  15420. basic_machine=a29k-amd
  15421. os=-udi
  15422. @@ -941,8 +1118,8 @@
  15423. os=-vms
  15424. ;;
  15425. vpp*|vx|vx-*)
  15426. - basic_machine=f301-fujitsu
  15427. - ;;
  15428. + basic_machine=f301-fujitsu
  15429. + ;;
  15430. vxworks960)
  15431. basic_machine=i960-wrs
  15432. os=-vxworks
  15433. @@ -963,11 +1140,11 @@
  15434. basic_machine=hppa1.1-winbond
  15435. os=-proelf
  15436. ;;
  15437. - windows32)
  15438. - basic_machine=i386-pc
  15439. - os=-windows32-msvcrt
  15440. + xbox)
  15441. + basic_machine=i686-pc
  15442. + os=-mingw32
  15443. ;;
  15444. - xps | xps100)
  15445. + xps | xps100)
  15446. basic_machine=xps100-honeywell
  15447. ;;
  15448. ymp)
  15449. @@ -978,6 +1155,10 @@
  15450. basic_machine=z8k-unknown
  15451. os=-sim
  15452. ;;
  15453. + z80-*-coff)
  15454. + basic_machine=z80-unknown
  15455. + os=-sim
  15456. + ;;
  15457. none)
  15458. basic_machine=none-none
  15459. os=-none
  15460. @@ -997,6 +1178,9 @@
  15461. romp)
  15462. basic_machine=romp-ibm
  15463. ;;
  15464. + mmix)
  15465. + basic_machine=mmix-knuth
  15466. + ;;
  15467. rs6000)
  15468. basic_machine=rs6000-ibm
  15469. ;;
  15470. @@ -1013,16 +1197,13 @@
  15471. we32k)
  15472. basic_machine=we32k-att
  15473. ;;
  15474. - sh3 | sh4 | sh3eb | sh4eb | sh[1234]le | sh3ele)
  15475. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  15476. basic_machine=sh-unknown
  15477. ;;
  15478. - sh64)
  15479. - basic_machine=sh64-unknown
  15480. - ;;
  15481. - sparc | sparcv9 | sparcv9b)
  15482. + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  15483. basic_machine=sparc-sun
  15484. ;;
  15485. - cydra)
  15486. + cydra)
  15487. basic_machine=cydra-cydrome
  15488. ;;
  15489. orion)
  15490. @@ -1037,10 +1218,6 @@
  15491. pmac | pmac-mpw)
  15492. basic_machine=powerpc-apple
  15493. ;;
  15494. - c4x*)
  15495. - basic_machine=c4x-none
  15496. - os=-coff
  15497. - ;;
  15498. *-unknown)
  15499. # Make sure to match an already-canonicalized machine name.
  15500. ;;
  15501. @@ -1090,24 +1267,30 @@
  15502. # Each alternative MUST END IN A *, to match a version number.
  15503. # -sysv* is not here because it comes later, after sysvr4.
  15504. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  15505. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  15506. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  15507. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  15508. + | -kopensolaris* \
  15509. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  15510. - | -aos* \
  15511. + | -aos* | -aros* \
  15512. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  15513. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  15514. - | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
  15515. - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  15516. + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  15517. + | -openbsd* | -solidbsd* \
  15518. + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  15519. + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  15520. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  15521. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  15522. - | -chorusos* | -chorusrdb* \
  15523. + | -chorusos* | -chorusrdb* | -cegcc* \
  15524. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  15525. - | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
  15526. - | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
  15527. + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  15528. + | -uxpv* | -beos* | -mpeix* | -udk* \
  15529. + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  15530. | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  15531. | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  15532. | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  15533. - | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* | -powermax*)
  15534. + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  15535. + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  15536. + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
  15537. # Remember, each alternative MUST END IN *, to match a version number.
  15538. ;;
  15539. -qnx*)
  15540. @@ -1119,16 +1302,21 @@
  15541. ;;
  15542. esac
  15543. ;;
  15544. + -nto-qnx*)
  15545. + ;;
  15546. -nto*)
  15547. - os=-nto-qnx
  15548. + os=`echo $os | sed -e 's|nto|nto-qnx|'`
  15549. ;;
  15550. -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  15551. - | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
  15552. + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
  15553. | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
  15554. ;;
  15555. -mac*)
  15556. os=`echo $os | sed -e 's|mac|macos|'`
  15557. ;;
  15558. + -linux-dietlibc)
  15559. + os=-linux-dietlibc
  15560. + ;;
  15561. -linux*)
  15562. os=`echo $os | sed -e 's|linux|linux-gnu|'`
  15563. ;;
  15564. @@ -1141,6 +1329,9 @@
  15565. -opened*)
  15566. os=-openedition
  15567. ;;
  15568. + -os400*)
  15569. + os=-os400
  15570. + ;;
  15571. -wince*)
  15572. os=-wince
  15573. ;;
  15574. @@ -1162,6 +1353,9 @@
  15575. -atheos*)
  15576. os=-atheos
  15577. ;;
  15578. + -syllable*)
  15579. + os=-syllable
  15580. + ;;
  15581. -386bsd)
  15582. os=-bsd
  15583. ;;
  15584. @@ -1172,7 +1366,7 @@
  15585. os=-rtmk-nova
  15586. ;;
  15587. -ns2 )
  15588. - os=-nextstep2
  15589. + os=-nextstep2
  15590. ;;
  15591. -nsk*)
  15592. os=-nsk
  15593. @@ -1184,6 +1378,9 @@
  15594. -sinix*)
  15595. os=-sysv4
  15596. ;;
  15597. + -tpf*)
  15598. + os=-tpf
  15599. + ;;
  15600. -triton*)
  15601. os=-sysv3
  15602. ;;
  15603. @@ -1211,8 +1408,20 @@
  15604. -xenix)
  15605. os=-xenix
  15606. ;;
  15607. - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  15608. - os=-mint
  15609. + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  15610. + os=-mint
  15611. + ;;
  15612. + -aros*)
  15613. + os=-aros
  15614. + ;;
  15615. + -kaos*)
  15616. + os=-kaos
  15617. + ;;
  15618. + -zvmoe)
  15619. + os=-zvmoe
  15620. + ;;
  15621. + -dicos*)
  15622. + os=-dicos
  15623. ;;
  15624. -none)
  15625. ;;
  15626. @@ -1236,6 +1445,12 @@
  15627. # system, and we'll never get to this point.
  15628. case $basic_machine in
  15629. + score-*)
  15630. + os=-elf
  15631. + ;;
  15632. + spu-*)
  15633. + os=-elf
  15634. + ;;
  15635. *-acorn)
  15636. os=-riscix1.2
  15637. ;;
  15638. @@ -1245,11 +1460,14 @@
  15639. arm*-semi)
  15640. os=-aout
  15641. ;;
  15642. + c4x-* | tic4x-*)
  15643. + os=-coff
  15644. + ;;
  15645. # This must come before the *-dec entry.
  15646. pdp10-*)
  15647. os=-tops20
  15648. ;;
  15649. - pdp11-*)
  15650. + pdp11-*)
  15651. os=-none
  15652. ;;
  15653. *-dec | vax-*)
  15654. @@ -1270,6 +1488,9 @@
  15655. m68*-cisco)
  15656. os=-aout
  15657. ;;
  15658. + mep-*)
  15659. + os=-elf
  15660. + ;;
  15661. mips*-cisco)
  15662. os=-elf
  15663. ;;
  15664. @@ -1288,9 +1509,15 @@
  15665. *-be)
  15666. os=-beos
  15667. ;;
  15668. + *-haiku)
  15669. + os=-haiku
  15670. + ;;
  15671. *-ibm)
  15672. os=-aix
  15673. ;;
  15674. + *-knuth)
  15675. + os=-mmixware
  15676. + ;;
  15677. *-wec)
  15678. os=-proelf
  15679. ;;
  15680. @@ -1342,19 +1569,19 @@
  15681. *-next)
  15682. os=-nextstep3
  15683. ;;
  15684. - *-gould)
  15685. + *-gould)
  15686. os=-sysv
  15687. ;;
  15688. - *-highlevel)
  15689. + *-highlevel)
  15690. os=-bsd
  15691. ;;
  15692. *-encore)
  15693. os=-bsd
  15694. ;;
  15695. - *-sgi)
  15696. + *-sgi)
  15697. os=-irix
  15698. ;;
  15699. - *-siemens)
  15700. + *-siemens)
  15701. os=-sysv4
  15702. ;;
  15703. *-masscomp)
  15704. @@ -1393,7 +1620,7 @@
  15705. -sunos*)
  15706. vendor=sun
  15707. ;;
  15708. - -aix*)
  15709. + -cnk*|-aix*)
  15710. vendor=ibm
  15711. ;;
  15712. -beos*)
  15713. @@ -1423,9 +1650,15 @@
  15714. -mvs* | -opened*)
  15715. vendor=ibm
  15716. ;;
  15717. + -os400*)
  15718. + vendor=ibm
  15719. + ;;
  15720. -ptx*)
  15721. vendor=sequent
  15722. ;;
  15723. + -tpf*)
  15724. + vendor=ibm
  15725. + ;;
  15726. -vxsim* | -vxworks* | -windiss*)
  15727. vendor=wrs
  15728. ;;
  15729. @@ -1450,7 +1683,7 @@
  15730. esac
  15731. echo $basic_machine$os
  15732. -exit 0
  15733. +exit
  15734. # Local variables:
  15735. # eval: (add-hook 'write-file-hooks 'time-stamp)
  15736. diff -Nur libdnet-1.11.orig/config/install-sh libdnet-1.11/config/install-sh
  15737. --- libdnet-1.11.orig/config/install-sh 2006-01-09 23:46:45.000000000 +0100
  15738. +++ libdnet-1.11/config/install-sh 2011-02-19 12:27:14.093551942 +0100
  15739. @@ -1,251 +1,520 @@
  15740. #!/bin/sh
  15741. -#
  15742. # install - install a program, script, or datafile
  15743. -# This comes from X11R5 (mit/util/scripts/install.sh).
  15744. +
  15745. +scriptversion=2009-04-28.21; # UTC
  15746. +
  15747. +# This originates from X11R5 (mit/util/scripts/install.sh), which was
  15748. +# later released in X11R6 (xc/config/util/install.sh) with the
  15749. +# following copyright and license.
  15750. +#
  15751. +# Copyright (C) 1994 X Consortium
  15752. +#
  15753. +# Permission is hereby granted, free of charge, to any person obtaining a copy
  15754. +# of this software and associated documentation files (the "Software"), to
  15755. +# deal in the Software without restriction, including without limitation the
  15756. +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  15757. +# sell copies of the Software, and to permit persons to whom the Software is
  15758. +# furnished to do so, subject to the following conditions:
  15759. +#
  15760. +# The above copyright notice and this permission notice shall be included in
  15761. +# all copies or substantial portions of the Software.
  15762. +#
  15763. +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15764. +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  15765. +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  15766. +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  15767. +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
  15768. +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  15769. +#
  15770. +# Except as contained in this notice, the name of the X Consortium shall not
  15771. +# be used in advertising or otherwise to promote the sale, use or other deal-
  15772. +# ings in this Software without prior written authorization from the X Consor-
  15773. +# tium.
  15774. #
  15775. -# Copyright 1991 by the Massachusetts Institute of Technology
  15776. #
  15777. -# Permission to use, copy, modify, distribute, and sell this software and its
  15778. -# documentation for any purpose is hereby granted without fee, provided that
  15779. -# the above copyright notice appear in all copies and that both that
  15780. -# copyright notice and this permission notice appear in supporting
  15781. -# documentation, and that the name of M.I.T. not be used in advertising or
  15782. -# publicity pertaining to distribution of the software without specific,
  15783. -# written prior permission. M.I.T. makes no representations about the
  15784. -# suitability of this software for any purpose. It is provided "as is"
  15785. -# without express or implied warranty.
  15786. +# FSF changes to this file are in the public domain.
  15787. #
  15788. # Calling this script install-sh is preferred over install.sh, to prevent
  15789. # `make' implicit rules from creating a file called install from it
  15790. # when there is no Makefile.
  15791. #
  15792. # This script is compatible with the BSD install script, but was written
  15793. -# from scratch. It can only install one file at a time, a restriction
  15794. -# shared with many OS's install programs.
  15795. +# from scratch.
  15796. +nl='
  15797. +'
  15798. +IFS=" "" $nl"
  15799. # set DOITPROG to echo to test this script
  15800. # Don't use :- since 4.3BSD and earlier shells don't like it.
  15801. -doit="${DOITPROG-}"
  15802. -
  15803. +doit=${DOITPROG-}
  15804. +if test -z "$doit"; then
  15805. + doit_exec=exec
  15806. +else
  15807. + doit_exec=$doit
  15808. +fi
  15809. -# put in absolute paths if you don't have them in your path; or use env. vars.
  15810. +# Put in absolute file names if you don't have them in your path;
  15811. +# or use environment vars.
  15812. -mvprog="${MVPROG-mv}"
  15813. -cpprog="${CPPROG-cp}"
  15814. -chmodprog="${CHMODPROG-chmod}"
  15815. -chownprog="${CHOWNPROG-chown}"
  15816. -chgrpprog="${CHGRPPROG-chgrp}"
  15817. -stripprog="${STRIPPROG-strip}"
  15818. -rmprog="${RMPROG-rm}"
  15819. -mkdirprog="${MKDIRPROG-mkdir}"
  15820. -
  15821. -transformbasename=""
  15822. -transform_arg=""
  15823. -instcmd="$mvprog"
  15824. -chmodcmd="$chmodprog 0755"
  15825. -chowncmd=""
  15826. -chgrpcmd=""
  15827. -stripcmd=""
  15828. +chgrpprog=${CHGRPPROG-chgrp}
  15829. +chmodprog=${CHMODPROG-chmod}
  15830. +chownprog=${CHOWNPROG-chown}
  15831. +cmpprog=${CMPPROG-cmp}
  15832. +cpprog=${CPPROG-cp}
  15833. +mkdirprog=${MKDIRPROG-mkdir}
  15834. +mvprog=${MVPROG-mv}
  15835. +rmprog=${RMPROG-rm}
  15836. +stripprog=${STRIPPROG-strip}
  15837. +
  15838. +posix_glob='?'
  15839. +initialize_posix_glob='
  15840. + test "$posix_glob" != "?" || {
  15841. + if (set -f) 2>/dev/null; then
  15842. + posix_glob=
  15843. + else
  15844. + posix_glob=:
  15845. + fi
  15846. + }
  15847. +'
  15848. +
  15849. +posix_mkdir=
  15850. +
  15851. +# Desired mode of installed file.
  15852. +mode=0755
  15853. +
  15854. +chgrpcmd=
  15855. +chmodcmd=$chmodprog
  15856. +chowncmd=
  15857. +mvcmd=$mvprog
  15858. rmcmd="$rmprog -f"
  15859. -mvcmd="$mvprog"
  15860. -src=""
  15861. -dst=""
  15862. -dir_arg=""
  15863. -
  15864. -while [ x"$1" != x ]; do
  15865. - case $1 in
  15866. - -c) instcmd="$cpprog"
  15867. - shift
  15868. - continue;;
  15869. -
  15870. - -d) dir_arg=true
  15871. - shift
  15872. - continue;;
  15873. -
  15874. - -m) chmodcmd="$chmodprog $2"
  15875. - shift
  15876. - shift
  15877. - continue;;
  15878. -
  15879. - -o) chowncmd="$chownprog $2"
  15880. - shift
  15881. - shift
  15882. - continue;;
  15883. -
  15884. - -g) chgrpcmd="$chgrpprog $2"
  15885. - shift
  15886. - shift
  15887. - continue;;
  15888. -
  15889. - -s) stripcmd="$stripprog"
  15890. - shift
  15891. - continue;;
  15892. -
  15893. - -t=*) transformarg=`echo $1 | sed 's/-t=//'`
  15894. - shift
  15895. - continue;;
  15896. -
  15897. - -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
  15898. - shift
  15899. - continue;;
  15900. +stripcmd=
  15901. - *) if [ x"$src" = x ]
  15902. - then
  15903. - src=$1
  15904. - else
  15905. - # this colon is to work around a 386BSD /bin/sh bug
  15906. - :
  15907. - dst=$1
  15908. - fi
  15909. - shift
  15910. - continue;;
  15911. - esac
  15912. -done
  15913. +src=
  15914. +dst=
  15915. +dir_arg=
  15916. +dst_arg=
  15917. -if [ x"$src" = x ]
  15918. -then
  15919. - echo "install: no input file specified"
  15920. - exit 1
  15921. -else
  15922. - :
  15923. -fi
  15924. +copy_on_change=false
  15925. +no_target_directory=
  15926. -if [ x"$dir_arg" != x ]; then
  15927. - dst=$src
  15928. - src=""
  15929. -
  15930. - if [ -d $dst ]; then
  15931. - instcmd=:
  15932. - chmodcmd=""
  15933. - else
  15934. - instcmd=$mkdirprog
  15935. - fi
  15936. -else
  15937. +usage="\
  15938. +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  15939. + or: $0 [OPTION]... SRCFILES... DIRECTORY
  15940. + or: $0 [OPTION]... -t DIRECTORY SRCFILES...
  15941. + or: $0 [OPTION]... -d DIRECTORIES...
  15942. -# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
  15943. -# might cause directories to be created, which would be especially bad
  15944. -# if $src (and thus $dsttmp) contains '*'.
  15945. -
  15946. - if [ -f "$src" ] || [ -d "$src" ]
  15947. - then
  15948. - :
  15949. - else
  15950. - echo "install: $src does not exist"
  15951. - exit 1
  15952. - fi
  15953. -
  15954. - if [ x"$dst" = x ]
  15955. - then
  15956. - echo "install: no destination specified"
  15957. - exit 1
  15958. - else
  15959. - :
  15960. - fi
  15961. +In the 1st form, copy SRCFILE to DSTFILE.
  15962. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
  15963. +In the 4th, create DIRECTORIES.
  15964. -# If destination is a directory, append the input filename; if your system
  15965. -# does not like double slashes in filenames, you may need to add some logic
  15966. +Options:
  15967. + --help display this help and exit.
  15968. + --version display version info and exit.
  15969. - if [ -d $dst ]
  15970. - then
  15971. - dst="$dst"/`basename $src`
  15972. - else
  15973. - :
  15974. - fi
  15975. -fi
  15976. + -c (ignored)
  15977. + -C install only if different (preserve the last data modification time)
  15978. + -d create directories instead of installing files.
  15979. + -g GROUP $chgrpprog installed files to GROUP.
  15980. + -m MODE $chmodprog installed files to MODE.
  15981. + -o USER $chownprog installed files to USER.
  15982. + -s $stripprog installed files.
  15983. + -t DIRECTORY install into DIRECTORY.
  15984. + -T report an error if DSTFILE is a directory.
  15985. -## this sed command emulates the dirname command
  15986. -dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
  15987. +Environment variables override the default commands:
  15988. + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
  15989. + RMPROG STRIPPROG
  15990. +"
  15991. -# Make sure that the destination directory exists.
  15992. -# this part is taken from Noah Friedman's mkinstalldirs script
  15993. +while test $# -ne 0; do
  15994. + case $1 in
  15995. + -c) ;;
  15996. -# Skip lots of stat calls in the usual case.
  15997. -if [ ! -d "$dstdir" ]; then
  15998. -defaultIFS='
  15999. - '
  16000. -IFS="${IFS-${defaultIFS}}"
  16001. -
  16002. -oIFS="${IFS}"
  16003. -# Some sh's can't handle IFS=/ for some reason.
  16004. -IFS='%'
  16005. -set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
  16006. -IFS="${oIFS}"
  16007. -
  16008. -pathcomp=''
  16009. -
  16010. -while [ $# -ne 0 ] ; do
  16011. - pathcomp="${pathcomp}${1}"
  16012. - shift
  16013. -
  16014. - if [ ! -d "${pathcomp}" ] ;
  16015. - then
  16016. - $mkdirprog "${pathcomp}"
  16017. - else
  16018. - :
  16019. - fi
  16020. + -C) copy_on_change=true;;
  16021. - pathcomp="${pathcomp}/"
  16022. -done
  16023. -fi
  16024. + -d) dir_arg=true;;
  16025. -if [ x"$dir_arg" != x ]
  16026. -then
  16027. - $doit $instcmd $dst &&
  16028. -
  16029. - if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else : ; fi &&
  16030. - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else : ; fi &&
  16031. - if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else : ; fi &&
  16032. - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else : ; fi
  16033. -else
  16034. + -g) chgrpcmd="$chgrpprog $2"
  16035. + shift;;
  16036. -# If we're going to rename the final executable, determine the name now.
  16037. + --help) echo "$usage"; exit $?;;
  16038. - if [ x"$transformarg" = x ]
  16039. - then
  16040. - dstfile=`basename $dst`
  16041. - else
  16042. - dstfile=`basename $dst $transformbasename |
  16043. - sed $transformarg`$transformbasename
  16044. - fi
  16045. + -m) mode=$2
  16046. + case $mode in
  16047. + *' '* | *' '* | *'
  16048. +'* | *'*'* | *'?'* | *'['*)
  16049. + echo "$0: invalid mode: $mode" >&2
  16050. + exit 1;;
  16051. + esac
  16052. + shift;;
  16053. -# don't allow the sed command to completely eliminate the filename
  16054. + -o) chowncmd="$chownprog $2"
  16055. + shift;;
  16056. - if [ x"$dstfile" = x ]
  16057. - then
  16058. - dstfile=`basename $dst`
  16059. - else
  16060. - :
  16061. - fi
  16062. + -s) stripcmd=$stripprog;;
  16063. -# Make a temp file name in the proper directory.
  16064. + -t) dst_arg=$2
  16065. + shift;;
  16066. - dsttmp=$dstdir/#inst.$$#
  16067. + -T) no_target_directory=true;;
  16068. -# Move or copy the file name to the temp name
  16069. + --version) echo "$0 $scriptversion"; exit $?;;
  16070. - $doit $instcmd $src $dsttmp &&
  16071. + --) shift
  16072. + break;;
  16073. - trap "rm -f ${dsttmp}" 0 &&
  16074. + -*) echo "$0: invalid option: $1" >&2
  16075. + exit 1;;
  16076. -# and set any options; do chmod last to preserve setuid bits
  16077. + *) break;;
  16078. + esac
  16079. + shift
  16080. +done
  16081. -# If any of these fail, we abort the whole thing. If we want to
  16082. -# ignore errors from any of these, just make sure not to ignore
  16083. -# errors from the above "$doit $instcmd $src $dsttmp" command.
  16084. +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
  16085. + # When -d is used, all remaining arguments are directories to create.
  16086. + # When -t is used, the destination is already specified.
  16087. + # Otherwise, the last argument is the destination. Remove it from $@.
  16088. + for arg
  16089. + do
  16090. + if test -n "$dst_arg"; then
  16091. + # $@ is not empty: it contains at least $arg.
  16092. + set fnord "$@" "$dst_arg"
  16093. + shift # fnord
  16094. + fi
  16095. + shift # arg
  16096. + dst_arg=$arg
  16097. + done
  16098. +fi
  16099. - if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else :;fi &&
  16100. - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else :;fi &&
  16101. - if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else :;fi &&
  16102. - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else :;fi &&
  16103. +if test $# -eq 0; then
  16104. + if test -z "$dir_arg"; then
  16105. + echo "$0: no input file specified." >&2
  16106. + exit 1
  16107. + fi
  16108. + # It's OK to call `install-sh -d' without argument.
  16109. + # This can happen when creating conditional directories.
  16110. + exit 0
  16111. +fi
  16112. -# Now rename the file to the real destination.
  16113. +if test -z "$dir_arg"; then
  16114. + trap '(exit $?); exit' 1 2 13 15
  16115. - $doit $rmcmd -f $dstdir/$dstfile &&
  16116. - $doit $mvcmd $dsttmp $dstdir/$dstfile
  16117. + # Set umask so as not to create temps with too-generous modes.
  16118. + # However, 'strip' requires both read and write access to temps.
  16119. + case $mode in
  16120. + # Optimize common cases.
  16121. + *644) cp_umask=133;;
  16122. + *755) cp_umask=22;;
  16123. +
  16124. + *[0-7])
  16125. + if test -z "$stripcmd"; then
  16126. + u_plus_rw=
  16127. + else
  16128. + u_plus_rw='% 200'
  16129. + fi
  16130. + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
  16131. + *)
  16132. + if test -z "$stripcmd"; then
  16133. + u_plus_rw=
  16134. + else
  16135. + u_plus_rw=,u+rw
  16136. + fi
  16137. + cp_umask=$mode$u_plus_rw;;
  16138. + esac
  16139. +fi
  16140. -fi &&
  16141. +for src
  16142. +do
  16143. + # Protect names starting with `-'.
  16144. + case $src in
  16145. + -*) src=./$src;;
  16146. + esac
  16147. +
  16148. + if test -n "$dir_arg"; then
  16149. + dst=$src
  16150. + dstdir=$dst
  16151. + test -d "$dstdir"
  16152. + dstdir_status=$?
  16153. + else
  16154. +
  16155. + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
  16156. + # might cause directories to be created, which would be especially bad
  16157. + # if $src (and thus $dsttmp) contains '*'.
  16158. + if test ! -f "$src" && test ! -d "$src"; then
  16159. + echo "$0: $src does not exist." >&2
  16160. + exit 1
  16161. + fi
  16162. +
  16163. + if test -z "$dst_arg"; then
  16164. + echo "$0: no destination specified." >&2
  16165. + exit 1
  16166. + fi
  16167. +
  16168. + dst=$dst_arg
  16169. + # Protect names starting with `-'.
  16170. + case $dst in
  16171. + -*) dst=./$dst;;
  16172. + esac
  16173. + # If destination is a directory, append the input filename; won't work
  16174. + # if double slashes aren't ignored.
  16175. + if test -d "$dst"; then
  16176. + if test -n "$no_target_directory"; then
  16177. + echo "$0: $dst_arg: Is a directory" >&2
  16178. + exit 1
  16179. + fi
  16180. + dstdir=$dst
  16181. + dst=$dstdir/`basename "$src"`
  16182. + dstdir_status=0
  16183. + else
  16184. + # Prefer dirname, but fall back on a substitute if dirname fails.
  16185. + dstdir=`
  16186. + (dirname "$dst") 2>/dev/null ||
  16187. + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16188. + X"$dst" : 'X\(//\)[^/]' \| \
  16189. + X"$dst" : 'X\(//\)$' \| \
  16190. + X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
  16191. + echo X"$dst" |
  16192. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16193. + s//\1/
  16194. + q
  16195. + }
  16196. + /^X\(\/\/\)[^/].*/{
  16197. + s//\1/
  16198. + q
  16199. + }
  16200. + /^X\(\/\/\)$/{
  16201. + s//\1/
  16202. + q
  16203. + }
  16204. + /^X\(\/\).*/{
  16205. + s//\1/
  16206. + q
  16207. + }
  16208. + s/.*/./; q'
  16209. + `
  16210. +
  16211. + test -d "$dstdir"
  16212. + dstdir_status=$?
  16213. + fi
  16214. + fi
  16215. +
  16216. + obsolete_mkdir_used=false
  16217. +
  16218. + if test $dstdir_status != 0; then
  16219. + case $posix_mkdir in
  16220. + '')
  16221. + # Create intermediate dirs using mode 755 as modified by the umask.
  16222. + # This is like FreeBSD 'install' as of 1997-10-28.
  16223. + umask=`umask`
  16224. + case $stripcmd.$umask in
  16225. + # Optimize common cases.
  16226. + *[2367][2367]) mkdir_umask=$umask;;
  16227. + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
  16228. +
  16229. + *[0-7])
  16230. + mkdir_umask=`expr $umask + 22 \
  16231. + - $umask % 100 % 40 + $umask % 20 \
  16232. + - $umask % 10 % 4 + $umask % 2
  16233. + `;;
  16234. + *) mkdir_umask=$umask,go-w;;
  16235. + esac
  16236. +
  16237. + # With -d, create the new directory with the user-specified mode.
  16238. + # Otherwise, rely on $mkdir_umask.
  16239. + if test -n "$dir_arg"; then
  16240. + mkdir_mode=-m$mode
  16241. + else
  16242. + mkdir_mode=
  16243. + fi
  16244. +
  16245. + posix_mkdir=false
  16246. + case $umask in
  16247. + *[123567][0-7][0-7])
  16248. + # POSIX mkdir -p sets u+wx bits regardless of umask, which
  16249. + # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
  16250. + ;;
  16251. + *)
  16252. + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
  16253. + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
  16254. +
  16255. + if (umask $mkdir_umask &&
  16256. + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
  16257. + then
  16258. + if test -z "$dir_arg" || {
  16259. + # Check for POSIX incompatibilities with -m.
  16260. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
  16261. + # other-writeable bit of parent directory when it shouldn't.
  16262. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
  16263. + ls_ld_tmpdir=`ls -ld "$tmpdir"`
  16264. + case $ls_ld_tmpdir in
  16265. + d????-?r-*) different_mode=700;;
  16266. + d????-?--*) different_mode=755;;
  16267. + *) false;;
  16268. + esac &&
  16269. + $mkdirprog -m$different_mode -p -- "$tmpdir" && {
  16270. + ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
  16271. + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
  16272. + }
  16273. + }
  16274. + then posix_mkdir=:
  16275. + fi
  16276. + rmdir "$tmpdir/d" "$tmpdir"
  16277. + else
  16278. + # Remove any dirs left behind by ancient mkdir implementations.
  16279. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
  16280. + fi
  16281. + trap '' 0;;
  16282. + esac;;
  16283. + esac
  16284. +
  16285. + if
  16286. + $posix_mkdir && (
  16287. + umask $mkdir_umask &&
  16288. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
  16289. + )
  16290. + then :
  16291. + else
  16292. +
  16293. + # The umask is ridiculous, or mkdir does not conform to POSIX,
  16294. + # or it failed possibly due to a race condition. Create the
  16295. + # directory the slow way, step by step, checking for races as we go.
  16296. +
  16297. + case $dstdir in
  16298. + /*) prefix='/';;
  16299. + -*) prefix='./';;
  16300. + *) prefix='';;
  16301. + esac
  16302. +
  16303. + eval "$initialize_posix_glob"
  16304. +
  16305. + oIFS=$IFS
  16306. + IFS=/
  16307. + $posix_glob set -f
  16308. + set fnord $dstdir
  16309. + shift
  16310. + $posix_glob set +f
  16311. + IFS=$oIFS
  16312. +
  16313. + prefixes=
  16314. +
  16315. + for d
  16316. + do
  16317. + test -z "$d" && continue
  16318. +
  16319. + prefix=$prefix$d
  16320. + if test -d "$prefix"; then
  16321. + prefixes=
  16322. + else
  16323. + if $posix_mkdir; then
  16324. + (umask=$mkdir_umask &&
  16325. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
  16326. + # Don't fail if two instances are running concurrently.
  16327. + test -d "$prefix" || exit 1
  16328. + else
  16329. + case $prefix in
  16330. + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
  16331. + *) qprefix=$prefix;;
  16332. + esac
  16333. + prefixes="$prefixes '$qprefix'"
  16334. + fi
  16335. + fi
  16336. + prefix=$prefix/
  16337. + done
  16338. +
  16339. + if test -n "$prefixes"; then
  16340. + # Don't fail if two instances are running concurrently.
  16341. + (umask $mkdir_umask &&
  16342. + eval "\$doit_exec \$mkdirprog $prefixes") ||
  16343. + test -d "$dstdir" || exit 1
  16344. + obsolete_mkdir_used=true
  16345. + fi
  16346. + fi
  16347. + fi
  16348. +
  16349. + if test -n "$dir_arg"; then
  16350. + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
  16351. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
  16352. + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
  16353. + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
  16354. + else
  16355. +
  16356. + # Make a couple of temp file names in the proper directory.
  16357. + dsttmp=$dstdir/_inst.$$_
  16358. + rmtmp=$dstdir/_rm.$$_
  16359. +
  16360. + # Trap to clean up those temp files at exit.
  16361. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
  16362. +
  16363. + # Copy the file name to the temp name.
  16364. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
  16365. +
  16366. + # and set any options; do chmod last to preserve setuid bits.
  16367. + #
  16368. + # If any of these fail, we abort the whole thing. If we want to
  16369. + # ignore errors from any of these, just make sure not to ignore
  16370. + # errors from the above "$doit $cpprog $src $dsttmp" command.
  16371. + #
  16372. + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
  16373. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
  16374. + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
  16375. + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
  16376. +
  16377. + # If -C, don't bother to copy if it wouldn't change the file.
  16378. + if $copy_on_change &&
  16379. + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
  16380. + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
  16381. +
  16382. + eval "$initialize_posix_glob" &&
  16383. + $posix_glob set -f &&
  16384. + set X $old && old=:$2:$4:$5:$6 &&
  16385. + set X $new && new=:$2:$4:$5:$6 &&
  16386. + $posix_glob set +f &&
  16387. +
  16388. + test "$old" = "$new" &&
  16389. + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
  16390. + then
  16391. + rm -f "$dsttmp"
  16392. + else
  16393. + # Rename the file to the real destination.
  16394. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
  16395. +
  16396. + # The rename failed, perhaps because mv can't rename something else
  16397. + # to itself, or perhaps because mv is so ancient that it does not
  16398. + # support -f.
  16399. + {
  16400. + # Now remove or move aside any old file at destination location.
  16401. + # We try this two ways since rm can't unlink itself on some
  16402. + # systems and the destination file might be busy for other
  16403. + # reasons. In this case, the final cleanup might fail but the new
  16404. + # file should still install successfully.
  16405. + {
  16406. + test ! -f "$dst" ||
  16407. + $doit $rmcmd -f "$dst" 2>/dev/null ||
  16408. + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
  16409. + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
  16410. + } ||
  16411. + { echo "$0: cannot unlink or rename $dst" >&2
  16412. + (exit 1); exit 1
  16413. + }
  16414. + } &&
  16415. +
  16416. + # Now rename the file to the real destination.
  16417. + $doit $mvcmd "$dsttmp" "$dst"
  16418. + }
  16419. + fi || exit 1
  16420. +
  16421. + trap '' 0
  16422. + fi
  16423. +done
  16424. -exit 0
  16425. +# Local variables:
  16426. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  16427. +# time-stamp-start: "scriptversion="
  16428. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  16429. +# time-stamp-time-zone: "UTC"
  16430. +# time-stamp-end: "; # UTC"
  16431. +# End:
  16432. diff -Nur libdnet-1.11.orig/config/ltmain.sh libdnet-1.11/config/ltmain.sh
  16433. --- libdnet-1.11.orig/config/ltmain.sh 2006-01-09 23:47:08.000000000 +0100
  16434. +++ libdnet-1.11/config/ltmain.sh 2011-02-19 12:27:10.053553209 +0100
  16435. @@ -1,4592 +1,3140 @@
  16436. -# ltmain.sh - Provide generalized library-building support services.
  16437. -# NOTE: Changing this file will not affect anything until you rerun configure.
  16438. -#
  16439. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
  16440. -# Free Software Foundation, Inc.
  16441. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  16442. -#
  16443. -# This program is free software; you can redistribute it and/or modify
  16444. +# Generated from ltmain.m4sh.
  16445. +
  16446. +# ltmain.sh (GNU libtool) 2.2.6b
  16447. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  16448. +
  16449. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  16450. +# This is free software; see the source for copying conditions. There is NO
  16451. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  16452. +
  16453. +# GNU Libtool is free software; you can redistribute it and/or modify
  16454. # it under the terms of the GNU General Public License as published by
  16455. # the Free Software Foundation; either version 2 of the License, or
  16456. # (at your option) any later version.
  16457. #
  16458. -# This program is distributed in the hope that it will be useful, but
  16459. +# As a special exception to the GNU General Public License,
  16460. +# if you distribute this file as part of a program or library that
  16461. +# is built using GNU Libtool, you may include this file under the
  16462. +# same distribution terms that you use for the rest of that program.
  16463. +#
  16464. +# GNU Libtool is distributed in the hope that it will be useful, but
  16465. # WITHOUT ANY WARRANTY; without even the implied warranty of
  16466. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16467. # General Public License for more details.
  16468. #
  16469. # You should have received a copy of the GNU General Public License
  16470. -# along with this program; if not, write to the Free Software
  16471. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  16472. +# along with GNU Libtool; see the file COPYING. If not, a copy
  16473. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  16474. +# or obtained by writing to the Free Software Foundation, Inc.,
  16475. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16476. +
  16477. +# Usage: $progname [OPTION]... [MODE-ARG]...
  16478. +#
  16479. +# Provide generalized library-building support services.
  16480. #
  16481. -# As a special exception to the GNU General Public License, if you
  16482. -# distribute this file as part of a program that contains a
  16483. -# configuration script generated by Autoconf, you may include it under
  16484. -# the same distribution terms that you use for the rest of that program.
  16485. +# --config show all configuration variables
  16486. +# --debug enable verbose shell tracing
  16487. +# -n, --dry-run display commands without modifying any files
  16488. +# --features display basic configuration information and exit
  16489. +# --mode=MODE use operation mode MODE
  16490. +# --preserve-dup-deps don't remove duplicate dependency libraries
  16491. +# --quiet, --silent don't print informational messages
  16492. +# --tag=TAG use configuration variables from tag TAG
  16493. +# -v, --verbose print informational messages (default)
  16494. +# --version print version information
  16495. +# -h, --help print short or long help message
  16496. +#
  16497. +# MODE must be one of the following:
  16498. +#
  16499. +# clean remove files from the build directory
  16500. +# compile compile a source file into a libtool object
  16501. +# execute automatically set library path, then run a program
  16502. +# finish complete the installation of libtool libraries
  16503. +# install install libraries or executables
  16504. +# link create a library or an executable
  16505. +# uninstall remove libraries from an installed directory
  16506. +#
  16507. +# MODE-ARGS vary depending on the MODE.
  16508. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  16509. +#
  16510. +# When reporting a bug, please describe a test case to reproduce it and
  16511. +# include the following information:
  16512. +#
  16513. +# host-triplet: $host
  16514. +# shell: $SHELL
  16515. +# compiler: $LTCC
  16516. +# compiler flags: $LTCFLAGS
  16517. +# linker: $LD (gnu? $with_gnu_ld)
  16518. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  16519. +# automake: $automake_version
  16520. +# autoconf: $autoconf_version
  16521. +#
  16522. +# Report bugs to <bug-libtool@gnu.org>.
  16523. +
  16524. +PROGRAM=ltmain.sh
  16525. +PACKAGE=libtool
  16526. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  16527. +TIMESTAMP=""
  16528. +package_revision=1.3017
  16529. +
  16530. +# Be Bourne compatible
  16531. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16532. + emulate sh
  16533. + NULLCMD=:
  16534. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16535. + # is contrary to our usage. Disable this feature.
  16536. + alias -g '${1+"$@"}'='"$@"'
  16537. + setopt NO_GLOB_SUBST
  16538. +else
  16539. + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  16540. +fi
  16541. +BIN_SH=xpg4; export BIN_SH # for Tru64
  16542. +DUALCASE=1; export DUALCASE # for MKS sh
  16543. +
  16544. +# NLS nuisances: We save the old values to restore during execute mode.
  16545. +# Only set LANG and LC_ALL to C if already set.
  16546. +# These must not be set unconditionally because not all systems understand
  16547. +# e.g. LANG=C (notably SCO).
  16548. +lt_user_locale=
  16549. +lt_safe_locale=
  16550. +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  16551. +do
  16552. + eval "if test \"\${$lt_var+set}\" = set; then
  16553. + save_$lt_var=\$$lt_var
  16554. + $lt_var=C
  16555. + export $lt_var
  16556. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  16557. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  16558. + fi"
  16559. +done
  16560. -basename="s,^.*/,,g"
  16561. +$lt_unset CDPATH
  16562. -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  16563. -# is ksh but when the shell is invoked as "sh" and the current value of
  16564. -# the _XPG environment variable is not equal to 1 (one), the special
  16565. -# positional parameter $0, within a function call, is the name of the
  16566. -# function.
  16567. -progpath="$0"
  16568. -# The name of this program:
  16569. -progname=`echo "$progpath" | $SED $basename`
  16570. -modename="$progname"
  16571. +
  16572. +
  16573. +
  16574. +: ${CP="cp -f"}
  16575. +: ${ECHO="echo"}
  16576. +: ${EGREP="/bin/grep -E"}
  16577. +: ${FGREP="/bin/grep -F"}
  16578. +: ${GREP="/bin/grep"}
  16579. +: ${LN_S="ln -s"}
  16580. +: ${MAKE="make"}
  16581. +: ${MKDIR="mkdir"}
  16582. +: ${MV="mv -f"}
  16583. +: ${RM="rm -f"}
  16584. +: ${SED="/bin/sed"}
  16585. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  16586. +: ${Xsed="$SED -e 1s/^X//"}
  16587. # Global variables:
  16588. EXIT_SUCCESS=0
  16589. EXIT_FAILURE=1
  16590. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  16591. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  16592. -PROGRAM=ltmain.sh
  16593. -PACKAGE=libtool
  16594. -VERSION=1.5.6
  16595. -TIMESTAMP=" (1.1220.2.94 2004/04/10 16:27:27)"
  16596. +exit_status=$EXIT_SUCCESS
  16597. +# Make sure IFS has a sensible default
  16598. +lt_nl='
  16599. +'
  16600. +IFS=" $lt_nl"
  16601. +
  16602. +dirname="s,/[^/]*$,,"
  16603. +basename="s,^.*/,,"
  16604. +
  16605. +# func_dirname_and_basename file append nondir_replacement
  16606. +# perform func_basename and func_dirname in a single function
  16607. +# call:
  16608. +# dirname: Compute the dirname of FILE. If nonempty,
  16609. +# add APPEND to the result, otherwise set result
  16610. +# to NONDIR_REPLACEMENT.
  16611. +# value returned in "$func_dirname_result"
  16612. +# basename: Compute filename of FILE.
  16613. +# value retuned in "$func_basename_result"
  16614. +# Implementation must be kept synchronized with func_dirname
  16615. +# and func_basename. For efficiency, we do not delegate to
  16616. +# those functions but instead duplicate the functionality here.
  16617. +func_dirname_and_basename ()
  16618. +{
  16619. + # Extract subdirectory from the argument.
  16620. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  16621. + if test "X$func_dirname_result" = "X${1}"; then
  16622. + func_dirname_result="${3}"
  16623. + else
  16624. + func_dirname_result="$func_dirname_result${2}"
  16625. + fi
  16626. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  16627. +}
  16628. -# Check that we have a working $echo.
  16629. -if test "X$1" = X--no-reexec; then
  16630. - # Discard the --no-reexec flag, and continue.
  16631. - shift
  16632. -elif test "X$1" = X--fallback-echo; then
  16633. - # Avoid inline document here, it may be left over
  16634. - :
  16635. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  16636. - # Yippee, $echo works!
  16637. - :
  16638. -else
  16639. - # Restart under the correct shell, and then maybe $echo will work.
  16640. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  16641. -fi
  16642. +# Generated shell functions inserted here.
  16643. -if test "X$1" = X--fallback-echo; then
  16644. - # used as fallback echo
  16645. - shift
  16646. - cat <<EOF
  16647. -$*
  16648. -EOF
  16649. - exit $EXIT_SUCCESS
  16650. -fi
  16651. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  16652. +# is ksh but when the shell is invoked as "sh" and the current value of
  16653. +# the _XPG environment variable is not equal to 1 (one), the special
  16654. +# positional parameter $0, within a function call, is the name of the
  16655. +# function.
  16656. +progpath="$0"
  16657. -default_mode=
  16658. -help="Try \`$progname --help' for more information."
  16659. -magic="%%%MAGIC variable%%%"
  16660. -mkdir="mkdir"
  16661. -mv="mv -f"
  16662. -rm="rm -f"
  16663. +# The name of this program:
  16664. +# In the unlikely event $progname began with a '-', it would play havoc with
  16665. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  16666. +func_dirname_and_basename "$progpath"
  16667. +progname=$func_basename_result
  16668. +case $progname in
  16669. + -*) progname=./$progname ;;
  16670. +esac
  16671. +
  16672. +# Make sure we have an absolute path for reexecution:
  16673. +case $progpath in
  16674. + [\\/]*|[A-Za-z]:\\*) ;;
  16675. + *[\\/]*)
  16676. + progdir=$func_dirname_result
  16677. + progdir=`cd "$progdir" && pwd`
  16678. + progpath="$progdir/$progname"
  16679. + ;;
  16680. + *)
  16681. + save_IFS="$IFS"
  16682. + IFS=:
  16683. + for progdir in $PATH; do
  16684. + IFS="$save_IFS"
  16685. + test -x "$progdir/$progname" && break
  16686. + done
  16687. + IFS="$save_IFS"
  16688. + test -n "$progdir" || progdir=`pwd`
  16689. + progpath="$progdir/$progname"
  16690. + ;;
  16691. +esac
  16692. # Sed substitution that helps us do robust quoting. It backslashifies
  16693. # metacharacters that are still active within double-quoted strings.
  16694. Xsed="${SED}"' -e 1s/^X//'
  16695. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  16696. -# test EBCDIC or ASCII
  16697. -case `echo A|tr A '\301'` in
  16698. - A) # EBCDIC based system
  16699. - SP2NL="tr '\100' '\n'"
  16700. - NL2SP="tr '\r\n' '\100\100'"
  16701. - ;;
  16702. - *) # Assume ASCII based system
  16703. - SP2NL="tr '\040' '\012'"
  16704. - NL2SP="tr '\015\012' '\040\040'"
  16705. - ;;
  16706. -esac
  16707. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  16708. -# NLS nuisances.
  16709. -# Only set LANG and LC_ALL to C if already set.
  16710. -# These must not be set unconditionally because not all systems understand
  16711. -# e.g. LANG=C (notably SCO).
  16712. -# We save the old values to restore during execute mode.
  16713. -if test "${LC_ALL+set}" = set; then
  16714. - save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
  16715. -fi
  16716. -if test "${LANG+set}" = set; then
  16717. - save_LANG="$LANG"; LANG=C; export LANG
  16718. -fi
  16719. +# Same as above, but do not quote variable references.
  16720. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  16721. -# Make sure IFS has a sensible default
  16722. -: ${IFS="
  16723. -"}
  16724. +# Re-`\' parameter expansions in output of double_quote_subst that were
  16725. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  16726. +# in input to double_quote_subst, that '$' was protected from expansion.
  16727. +# Since each input `\' is now two `\'s, look for any number of runs of
  16728. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  16729. +bs='\\'
  16730. +bs2='\\\\'
  16731. +bs4='\\\\\\\\'
  16732. +dollar='\$'
  16733. +sed_double_backslash="\
  16734. + s/$bs4/&\\
  16735. +/g
  16736. + s/^$bs2$dollar/$bs&/
  16737. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  16738. + s/\n//g"
  16739. +
  16740. +# Standard options:
  16741. +opt_dry_run=false
  16742. +opt_help=false
  16743. +opt_quiet=false
  16744. +opt_verbose=false
  16745. +opt_warning=:
  16746. +
  16747. +# func_echo arg...
  16748. +# Echo program name prefixed message, along with the current mode
  16749. +# name if it has been set yet.
  16750. +func_echo ()
  16751. +{
  16752. + $ECHO "$progname${mode+: }$mode: $*"
  16753. +}
  16754. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  16755. - $echo "$modename: not configured to build any kind of library" 1>&2
  16756. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  16757. - exit $EXIT_FAILURE
  16758. -fi
  16759. +# func_verbose arg...
  16760. +# Echo program name prefixed message in verbose mode only.
  16761. +func_verbose ()
  16762. +{
  16763. + $opt_verbose && func_echo ${1+"$@"}
  16764. -# Global variables.
  16765. -mode=$default_mode
  16766. -nonopt=
  16767. -prev=
  16768. -prevopt=
  16769. -run=
  16770. -show="$echo"
  16771. -show_help=
  16772. -execute_dlfiles=
  16773. -lo2o="s/\\.lo\$/.${objext}/"
  16774. -o2lo="s/\\.${objext}\$/.lo/"
  16775. + # A bug in bash halts the script if the last line of a function
  16776. + # fails when set -e is in force, so we need another command to
  16777. + # work around that:
  16778. + :
  16779. +}
  16780. -#####################################
  16781. -# Shell function definitions:
  16782. -# This seems to be the best place for them
  16783. +# func_error arg...
  16784. +# Echo program name prefixed message to standard error.
  16785. +func_error ()
  16786. +{
  16787. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  16788. +}
  16789. -# func_win32_libid arg
  16790. -# return the library type of file 'arg'
  16791. -#
  16792. -# Need a lot of goo to handle *both* DLLs and import libs
  16793. -# Has to be a shell function in order to 'eat' the argument
  16794. -# that is supplied when $file_magic_command is called.
  16795. -func_win32_libid () {
  16796. - win32_libid_type="unknown"
  16797. - win32_fileres=`file -L $1 2>/dev/null`
  16798. - case $win32_fileres in
  16799. - *ar\ archive\ import\ library*) # definitely import
  16800. - win32_libid_type="x86 archive import"
  16801. - ;;
  16802. - *ar\ archive*) # could be an import, or static
  16803. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  16804. - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  16805. - win32_nmres=`eval $NM -f posix -A $1 | \
  16806. - sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
  16807. - if test "X$win32_nmres" = "Ximport" ; then
  16808. - win32_libid_type="x86 archive import"
  16809. - else
  16810. - win32_libid_type="x86 archive static"
  16811. - fi
  16812. - fi
  16813. - ;;
  16814. - *DLL*)
  16815. - win32_libid_type="x86 DLL"
  16816. - ;;
  16817. - *executable*) # but shell scripts are "executable" too...
  16818. - case $win32_fileres in
  16819. - *MS\ Windows\ PE\ Intel*)
  16820. - win32_libid_type="x86 DLL"
  16821. - ;;
  16822. - esac
  16823. - ;;
  16824. - esac
  16825. - $echo $win32_libid_type
  16826. +# func_warning arg...
  16827. +# Echo program name prefixed warning message to standard error.
  16828. +func_warning ()
  16829. +{
  16830. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  16831. +
  16832. + # bash bug again:
  16833. + :
  16834. }
  16835. +# func_fatal_error arg...
  16836. +# Echo program name prefixed message to standard error, and exit.
  16837. +func_fatal_error ()
  16838. +{
  16839. + func_error ${1+"$@"}
  16840. + exit $EXIT_FAILURE
  16841. +}
  16842. -# func_infer_tag arg
  16843. -# Infer tagged configuration to use if any are available and
  16844. -# if one wasn't chosen via the "--tag" command line option.
  16845. -# Only attempt this if the compiler in the base compile
  16846. -# command doesn't match the default compiler.
  16847. -# arg is usually of the form 'gcc ...'
  16848. -func_infer_tag () {
  16849. - if test -n "$available_tags" && test -z "$tagname"; then
  16850. - CC_quoted=
  16851. - for arg in $CC; do
  16852. - case $arg in
  16853. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  16854. - arg="\"$arg\""
  16855. - ;;
  16856. - esac
  16857. - CC_quoted="$CC_quoted $arg"
  16858. - done
  16859. - case $@ in
  16860. - # Blanks in the command may have been stripped by the calling shell,
  16861. - # but not from the CC environment variable when configure was run.
  16862. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  16863. - # Blanks at the start of $base_compile will cause this to fail
  16864. - # if we don't check for them as well.
  16865. - *)
  16866. - for z in $available_tags; do
  16867. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  16868. - # Evaluate the configuration.
  16869. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  16870. - CC_quoted=
  16871. - for arg in $CC; do
  16872. - # Double-quote args containing other shell metacharacters.
  16873. - case $arg in
  16874. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  16875. - arg="\"$arg\""
  16876. - ;;
  16877. - esac
  16878. - CC_quoted="$CC_quoted $arg"
  16879. - done
  16880. - case "$@ " in
  16881. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  16882. - # The compiler in the base compile command matches
  16883. - # the one in the tagged configuration.
  16884. - # Assume this is the tagged configuration we want.
  16885. - tagname=$z
  16886. - break
  16887. - ;;
  16888. - esac
  16889. - fi
  16890. - done
  16891. - # If $tagname still isn't set, then no tagged configuration
  16892. - # was found and let the user know that the "--tag" command
  16893. - # line option must be used.
  16894. - if test -z "$tagname"; then
  16895. - $echo "$modename: unable to infer tagged configuration"
  16896. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  16897. - exit $EXIT_FAILURE
  16898. -# else
  16899. -# $echo "$modename: using $tagname tagged configuration"
  16900. - fi
  16901. - ;;
  16902. - esac
  16903. - fi
  16904. +# func_fatal_help arg...
  16905. +# Echo program name prefixed message to standard error, followed by
  16906. +# a help hint, and exit.
  16907. +func_fatal_help ()
  16908. +{
  16909. + func_error ${1+"$@"}
  16910. + func_fatal_error "$help"
  16911. }
  16912. -# End of Shell function definitions
  16913. -#####################################
  16914. +help="Try \`$progname --help' for more information." ## default
  16915. -# Darwin sucks
  16916. -eval std_shrext=\"$shrext_cmds\"
  16917. -# Parse our command line options once, thoroughly.
  16918. -while test "$#" -gt 0
  16919. -do
  16920. - arg="$1"
  16921. - shift
  16922. +# func_grep expression filename
  16923. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  16924. +func_grep ()
  16925. +{
  16926. + $GREP "$1" "$2" >/dev/null 2>&1
  16927. +}
  16928. - case $arg in
  16929. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  16930. - *) optarg= ;;
  16931. - esac
  16932. - # If the previous option needs an argument, assign it.
  16933. - if test -n "$prev"; then
  16934. - case $prev in
  16935. - execute_dlfiles)
  16936. - execute_dlfiles="$execute_dlfiles $arg"
  16937. - ;;
  16938. - tag)
  16939. - tagname="$arg"
  16940. - preserve_args="${preserve_args}=$arg"
  16941. -
  16942. - # Check whether tagname contains only valid characters
  16943. - case $tagname in
  16944. - *[!-_A-Za-z0-9,/]*)
  16945. - $echo "$progname: invalid tag name: $tagname" 1>&2
  16946. - exit $EXIT_FAILURE
  16947. - ;;
  16948. - esac
  16949. +# func_mkdir_p directory-path
  16950. +# Make sure the entire path to DIRECTORY-PATH is available.
  16951. +func_mkdir_p ()
  16952. +{
  16953. + my_directory_path="$1"
  16954. + my_dir_list=
  16955. - case $tagname in
  16956. - CC)
  16957. - # Don't test for the "default" C tag, as we know, it's there, but
  16958. - # not specially marked.
  16959. - ;;
  16960. - *)
  16961. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  16962. - taglist="$taglist $tagname"
  16963. - # Evaluate the configuration.
  16964. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  16965. - else
  16966. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  16967. - fi
  16968. - ;;
  16969. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  16970. +
  16971. + # Protect directory names starting with `-'
  16972. + case $my_directory_path in
  16973. + -*) my_directory_path="./$my_directory_path" ;;
  16974. esac
  16975. - ;;
  16976. - *)
  16977. - eval "$prev=\$arg"
  16978. - ;;
  16979. - esac
  16980. - prev=
  16981. - prevopt=
  16982. - continue
  16983. - fi
  16984. + # While some portion of DIR does not yet exist...
  16985. + while test ! -d "$my_directory_path"; do
  16986. + # ...make a list in topmost first order. Use a colon delimited
  16987. + # list incase some portion of path contains whitespace.
  16988. + my_dir_list="$my_directory_path:$my_dir_list"
  16989. - # Have we seen a non-optional argument yet?
  16990. - case $arg in
  16991. - --help)
  16992. - show_help=yes
  16993. - ;;
  16994. + # If the last portion added has no slash in it, the list is done
  16995. + case $my_directory_path in */*) ;; *) break ;; esac
  16996. - --version)
  16997. - $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
  16998. - $echo
  16999. - $echo "Copyright (C) 2003 Free Software Foundation, Inc."
  17000. - $echo "This is free software; see the source for copying conditions. There is NO"
  17001. - $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  17002. - exit $EXIT_SUCCESS
  17003. - ;;
  17004. + # ...otherwise throw away the child directory and loop
  17005. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  17006. + done
  17007. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  17008. - --config)
  17009. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  17010. - # Now print the configurations for the tags.
  17011. - for tagname in $taglist; do
  17012. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  17013. - done
  17014. - exit $EXIT_SUCCESS
  17015. - ;;
  17016. + save_mkdir_p_IFS="$IFS"; IFS=':'
  17017. + for my_dir in $my_dir_list; do
  17018. + IFS="$save_mkdir_p_IFS"
  17019. + # mkdir can fail with a `File exist' error if two processes
  17020. + # try to create one of the directories concurrently. Don't
  17021. + # stop in that case!
  17022. + $MKDIR "$my_dir" 2>/dev/null || :
  17023. + done
  17024. + IFS="$save_mkdir_p_IFS"
  17025. - --debug)
  17026. - $echo "$progname: enabling shell trace mode"
  17027. - set -x
  17028. - preserve_args="$preserve_args $arg"
  17029. - ;;
  17030. + # Bail out if we (or some other process) failed to create a directory.
  17031. + test -d "$my_directory_path" || \
  17032. + func_fatal_error "Failed to create \`$1'"
  17033. + fi
  17034. +}
  17035. - --dry-run | -n)
  17036. - run=:
  17037. - ;;
  17038. - --features)
  17039. - $echo "host: $host"
  17040. - if test "$build_libtool_libs" = yes; then
  17041. - $echo "enable shared libraries"
  17042. - else
  17043. - $echo "disable shared libraries"
  17044. - fi
  17045. - if test "$build_old_libs" = yes; then
  17046. - $echo "enable static libraries"
  17047. +# func_mktempdir [string]
  17048. +# Make a temporary directory that won't clash with other running
  17049. +# libtool processes, and avoids race conditions if possible. If
  17050. +# given, STRING is the basename for that directory.
  17051. +func_mktempdir ()
  17052. +{
  17053. + my_template="${TMPDIR-/tmp}/${1-$progname}"
  17054. +
  17055. + if test "$opt_dry_run" = ":"; then
  17056. + # Return a directory name, but don't create it in dry-run mode
  17057. + my_tmpdir="${my_template}-$$"
  17058. else
  17059. - $echo "disable static libraries"
  17060. - fi
  17061. - exit $EXIT_SUCCESS
  17062. - ;;
  17063. - --finish) mode="finish" ;;
  17064. + # If mktemp works, use that first and foremost
  17065. + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  17066. - --mode) prevopt="--mode" prev=mode ;;
  17067. - --mode=*) mode="$optarg" ;;
  17068. + if test ! -d "$my_tmpdir"; then
  17069. + # Failing that, at least try and use $RANDOM to avoid a race
  17070. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  17071. - --preserve-dup-deps) duplicate_deps="yes" ;;
  17072. + save_mktempdir_umask=`umask`
  17073. + umask 0077
  17074. + $MKDIR "$my_tmpdir"
  17075. + umask $save_mktempdir_umask
  17076. + fi
  17077. - --quiet | --silent)
  17078. - show=:
  17079. - preserve_args="$preserve_args $arg"
  17080. - ;;
  17081. + # If we're not in dry-run mode, bomb out on failure
  17082. + test -d "$my_tmpdir" || \
  17083. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  17084. + fi
  17085. - --tag) prevopt="--tag" prev=tag ;;
  17086. - --tag=*)
  17087. - set tag "$optarg" ${1+"$@"}
  17088. - shift
  17089. - prev=tag
  17090. - preserve_args="$preserve_args --tag"
  17091. - ;;
  17092. + $ECHO "X$my_tmpdir" | $Xsed
  17093. +}
  17094. - -dlopen)
  17095. - prevopt="-dlopen"
  17096. - prev=execute_dlfiles
  17097. - ;;
  17098. - -*)
  17099. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  17100. - $echo "$help" 1>&2
  17101. - exit $EXIT_FAILURE
  17102. - ;;
  17103. +# func_quote_for_eval arg
  17104. +# Aesthetically quote ARG to be evaled later.
  17105. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  17106. +# is double-quoted, suitable for a subsequent eval, whereas
  17107. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  17108. +# which are still active within double quotes backslashified.
  17109. +func_quote_for_eval ()
  17110. +{
  17111. + case $1 in
  17112. + *[\\\`\"\$]*)
  17113. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  17114. + *)
  17115. + func_quote_for_eval_unquoted_result="$1" ;;
  17116. + esac
  17117. - *)
  17118. - nonopt="$arg"
  17119. - break
  17120. - ;;
  17121. - esac
  17122. -done
  17123. + case $func_quote_for_eval_unquoted_result in
  17124. + # Double-quote args containing shell metacharacters to delay
  17125. + # word splitting, command substitution and and variable
  17126. + # expansion for a subsequent eval.
  17127. + # Many Bourne shells cannot handle close brackets correctly
  17128. + # in scan sets, so we specify it separately.
  17129. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  17130. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  17131. + ;;
  17132. + *)
  17133. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  17134. + esac
  17135. +}
  17136. -if test -n "$prevopt"; then
  17137. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  17138. - $echo "$help" 1>&2
  17139. - exit $EXIT_FAILURE
  17140. -fi
  17141. -# If this variable is set in any of the actions, the command in it
  17142. -# will be execed at the end. This prevents here-documents from being
  17143. -# left over by shells.
  17144. -exec_cmd=
  17145. +# func_quote_for_expand arg
  17146. +# Aesthetically quote ARG to be evaled later; same as above,
  17147. +# but do not quote variable references.
  17148. +func_quote_for_expand ()
  17149. +{
  17150. + case $1 in
  17151. + *[\\\`\"]*)
  17152. + my_arg=`$ECHO "X$1" | $Xsed \
  17153. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  17154. + *)
  17155. + my_arg="$1" ;;
  17156. + esac
  17157. -if test -z "$show_help"; then
  17158. + case $my_arg in
  17159. + # Double-quote args containing shell metacharacters to delay
  17160. + # word splitting and command substitution for a subsequent eval.
  17161. + # Many Bourne shells cannot handle close brackets correctly
  17162. + # in scan sets, so we specify it separately.
  17163. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  17164. + my_arg="\"$my_arg\""
  17165. + ;;
  17166. + esac
  17167. - # Infer the operation mode.
  17168. - if test -z "$mode"; then
  17169. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  17170. - $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
  17171. - case $nonopt in
  17172. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  17173. - mode=link
  17174. - for arg
  17175. - do
  17176. - case $arg in
  17177. - -c)
  17178. - mode=compile
  17179. - break
  17180. - ;;
  17181. - esac
  17182. - done
  17183. - ;;
  17184. - *db | *dbx | *strace | *truss)
  17185. - mode=execute
  17186. - ;;
  17187. - *install*|cp|mv)
  17188. - mode=install
  17189. - ;;
  17190. - *rm)
  17191. - mode=uninstall
  17192. - ;;
  17193. - *)
  17194. - # If we have no mode, but dlfiles were specified, then do execute mode.
  17195. - test -n "$execute_dlfiles" && mode=execute
  17196. + func_quote_for_expand_result="$my_arg"
  17197. +}
  17198. - # Just use the default operation mode.
  17199. - if test -z "$mode"; then
  17200. - if test -n "$nonopt"; then
  17201. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  17202. - else
  17203. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  17204. - fi
  17205. +
  17206. +# func_show_eval cmd [fail_exp]
  17207. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  17208. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  17209. +# is given, then evaluate it.
  17210. +func_show_eval ()
  17211. +{
  17212. + my_cmd="$1"
  17213. + my_fail_exp="${2-:}"
  17214. +
  17215. + ${opt_silent-false} || {
  17216. + func_quote_for_expand "$my_cmd"
  17217. + eval "func_echo $func_quote_for_expand_result"
  17218. + }
  17219. +
  17220. + if ${opt_dry_run-false}; then :; else
  17221. + eval "$my_cmd"
  17222. + my_status=$?
  17223. + if test "$my_status" -eq 0; then :; else
  17224. + eval "(exit $my_status); $my_fail_exp"
  17225. fi
  17226. - ;;
  17227. - esac
  17228. - fi
  17229. + fi
  17230. +}
  17231. - # Only execute mode is allowed to have -dlopen flags.
  17232. - if test -n "$execute_dlfiles" && test "$mode" != execute; then
  17233. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  17234. - $echo "$help" 1>&2
  17235. - exit $EXIT_FAILURE
  17236. - fi
  17237. - # Change the help message to a mode-specific one.
  17238. - generic_help="$help"
  17239. - help="Try \`$modename --help --mode=$mode' for more information."
  17240. +# func_show_eval_locale cmd [fail_exp]
  17241. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  17242. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  17243. +# is given, then evaluate it. Use the saved locale for evaluation.
  17244. +func_show_eval_locale ()
  17245. +{
  17246. + my_cmd="$1"
  17247. + my_fail_exp="${2-:}"
  17248. - # These modes are in order of execution frequency so that they run quickly.
  17249. - case $mode in
  17250. - # libtool compile mode
  17251. - compile)
  17252. - modename="$modename: compile"
  17253. - # Get the compilation command and the source file.
  17254. - base_compile=
  17255. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  17256. - suppress_opt=yes
  17257. - suppress_output=
  17258. - arg_mode=normal
  17259. - libobj=
  17260. - later=
  17261. + ${opt_silent-false} || {
  17262. + func_quote_for_expand "$my_cmd"
  17263. + eval "func_echo $func_quote_for_expand_result"
  17264. + }
  17265. +
  17266. + if ${opt_dry_run-false}; then :; else
  17267. + eval "$lt_user_locale
  17268. + $my_cmd"
  17269. + my_status=$?
  17270. + eval "$lt_safe_locale"
  17271. + if test "$my_status" -eq 0; then :; else
  17272. + eval "(exit $my_status); $my_fail_exp"
  17273. + fi
  17274. + fi
  17275. +}
  17276. - for arg
  17277. - do
  17278. - case "$arg_mode" in
  17279. - arg )
  17280. - # do not "continue". Instead, add this to base_compile
  17281. - lastarg="$arg"
  17282. - arg_mode=normal
  17283. - ;;
  17284. - target )
  17285. - libobj="$arg"
  17286. - arg_mode=normal
  17287. - continue
  17288. - ;;
  17289. - normal )
  17290. - # Accept any command-line options.
  17291. - case $arg in
  17292. - -o)
  17293. - if test -n "$libobj" ; then
  17294. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  17295. - exit $EXIT_FAILURE
  17296. - fi
  17297. - arg_mode=target
  17298. - continue
  17299. - ;;
  17300. - -static | -prefer-pic | -prefer-non-pic)
  17301. - later="$later $arg"
  17302. - continue
  17303. - ;;
  17304. - -no-suppress)
  17305. - suppress_opt=no
  17306. - continue
  17307. - ;;
  17308. +# func_version
  17309. +# Echo version message to standard output and exit.
  17310. +func_version ()
  17311. +{
  17312. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  17313. + s/^# //
  17314. + s/^# *$//
  17315. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  17316. + p
  17317. + }' < "$progpath"
  17318. + exit $?
  17319. +}
  17320. - -Xcompiler)
  17321. - arg_mode=arg # the next one goes into the "base_compile" arg list
  17322. - continue # The current "srcfile" will either be retained or
  17323. - ;; # replaced later. I would guess that would be a bug.
  17324. +# func_usage
  17325. +# Echo short help message to standard output and exit.
  17326. +func_usage ()
  17327. +{
  17328. + $SED -n '/^# Usage:/,/# -h/ {
  17329. + s/^# //
  17330. + s/^# *$//
  17331. + s/\$progname/'$progname'/
  17332. + p
  17333. + }' < "$progpath"
  17334. + $ECHO
  17335. + $ECHO "run \`$progname --help | more' for full usage"
  17336. + exit $?
  17337. +}
  17338. - -Wc,*)
  17339. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  17340. - lastarg=
  17341. - save_ifs="$IFS"; IFS=','
  17342. - for arg in $args; do
  17343. - IFS="$save_ifs"
  17344. +# func_help
  17345. +# Echo long help message to standard output and exit.
  17346. +func_help ()
  17347. +{
  17348. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  17349. + s/^# //
  17350. + s/^# *$//
  17351. + s*\$progname*'$progname'*
  17352. + s*\$host*'"$host"'*
  17353. + s*\$SHELL*'"$SHELL"'*
  17354. + s*\$LTCC*'"$LTCC"'*
  17355. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  17356. + s*\$LD*'"$LD"'*
  17357. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  17358. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  17359. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  17360. + p
  17361. + }' < "$progpath"
  17362. + exit $?
  17363. +}
  17364. - # Double-quote args containing other shell metacharacters.
  17365. - # Many Bourne shells cannot handle close brackets correctly
  17366. - # in scan sets, so we specify it separately.
  17367. - case $arg in
  17368. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  17369. - arg="\"$arg\""
  17370. - ;;
  17371. - esac
  17372. - lastarg="$lastarg $arg"
  17373. - done
  17374. - IFS="$save_ifs"
  17375. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  17376. +# func_missing_arg argname
  17377. +# Echo program name prefixed message to standard error and set global
  17378. +# exit_cmd.
  17379. +func_missing_arg ()
  17380. +{
  17381. + func_error "missing argument for $1"
  17382. + exit_cmd=exit
  17383. +}
  17384. - # Add the arguments to base_compile.
  17385. - base_compile="$base_compile $lastarg"
  17386. - continue
  17387. - ;;
  17388. +exit_cmd=:
  17389. - * )
  17390. - # Accept the current argument as the source file.
  17391. - # The previous "srcfile" becomes the current argument.
  17392. - #
  17393. - lastarg="$srcfile"
  17394. - srcfile="$arg"
  17395. - ;;
  17396. - esac # case $arg
  17397. - ;;
  17398. - esac # case $arg_mode
  17399. - # Aesthetically quote the previous argument.
  17400. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  17401. - case $lastarg in
  17402. - # Double-quote args containing other shell metacharacters.
  17403. - # Many Bourne shells cannot handle close brackets correctly
  17404. - # in scan sets, so we specify it separately.
  17405. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  17406. - lastarg="\"$lastarg\""
  17407. - ;;
  17408. - esac
  17409. - base_compile="$base_compile $lastarg"
  17410. - done # for arg
  17411. - case $arg_mode in
  17412. - arg)
  17413. - $echo "$modename: you must specify an argument for -Xcompile"
  17414. - exit $EXIT_FAILURE
  17415. - ;;
  17416. - target)
  17417. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  17418. - exit $EXIT_FAILURE
  17419. - ;;
  17420. - *)
  17421. - # Get the name of the library object.
  17422. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  17423. - ;;
  17424. - esac
  17425. +# Check that we have a working $ECHO.
  17426. +if test "X$1" = X--no-reexec; then
  17427. + # Discard the --no-reexec flag, and continue.
  17428. + shift
  17429. +elif test "X$1" = X--fallback-echo; then
  17430. + # Avoid inline document here, it may be left over
  17431. + :
  17432. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  17433. + # Yippee, $ECHO works!
  17434. + :
  17435. +else
  17436. + # Restart under the correct shell, and then maybe $ECHO will work.
  17437. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  17438. +fi
  17439. - # Recognize several different file suffixes.
  17440. - # If the user specifies -o file.o, it is replaced with file.lo
  17441. - xform='[cCFSifmso]'
  17442. - case $libobj in
  17443. - *.ada) xform=ada ;;
  17444. - *.adb) xform=adb ;;
  17445. - *.ads) xform=ads ;;
  17446. - *.asm) xform=asm ;;
  17447. - *.c++) xform=c++ ;;
  17448. - *.cc) xform=cc ;;
  17449. - *.ii) xform=ii ;;
  17450. - *.class) xform=class ;;
  17451. - *.cpp) xform=cpp ;;
  17452. - *.cxx) xform=cxx ;;
  17453. - *.f90) xform=f90 ;;
  17454. - *.for) xform=for ;;
  17455. - *.java) xform=java ;;
  17456. - esac
  17457. +if test "X$1" = X--fallback-echo; then
  17458. + # used as fallback echo
  17459. + shift
  17460. + cat <<EOF
  17461. +$*
  17462. +EOF
  17463. + exit $EXIT_SUCCESS
  17464. +fi
  17465. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  17466. +magic="%%%MAGIC variable%%%"
  17467. +magic_exe="%%%MAGIC EXE variable%%%"
  17468. - case $libobj in
  17469. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  17470. - *)
  17471. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  17472. - exit $EXIT_FAILURE
  17473. - ;;
  17474. - esac
  17475. +# Global variables.
  17476. +# $mode is unset
  17477. +nonopt=
  17478. +execute_dlfiles=
  17479. +preserve_args=
  17480. +lo2o="s/\\.lo\$/.${objext}/"
  17481. +o2lo="s/\\.${objext}\$/.lo/"
  17482. +extracted_archives=
  17483. +extracted_serial=0
  17484. - func_infer_tag $base_compile
  17485. +opt_dry_run=false
  17486. +opt_duplicate_deps=false
  17487. +opt_silent=false
  17488. +opt_debug=:
  17489. - for arg in $later; do
  17490. - case $arg in
  17491. - -static)
  17492. - build_old_libs=yes
  17493. - continue
  17494. - ;;
  17495. +# If this variable is set in any of the actions, the command in it
  17496. +# will be execed at the end. This prevents here-documents from being
  17497. +# left over by shells.
  17498. +exec_cmd=
  17499. - -prefer-pic)
  17500. - pic_mode=yes
  17501. - continue
  17502. - ;;
  17503. +# func_fatal_configuration arg...
  17504. +# Echo program name prefixed message to standard error, followed by
  17505. +# a configuration failure hint, and exit.
  17506. +func_fatal_configuration ()
  17507. +{
  17508. + func_error ${1+"$@"}
  17509. + func_error "See the $PACKAGE documentation for more information."
  17510. + func_fatal_error "Fatal configuration error."
  17511. +}
  17512. - -prefer-non-pic)
  17513. - pic_mode=no
  17514. - continue
  17515. - ;;
  17516. - esac
  17517. +
  17518. +# func_config
  17519. +# Display the configuration for all the tags in this script.
  17520. +func_config ()
  17521. +{
  17522. + re_begincf='^# ### BEGIN LIBTOOL'
  17523. + re_endcf='^# ### END LIBTOOL'
  17524. +
  17525. + # Default configuration.
  17526. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  17527. +
  17528. + # Now print the configurations for the tags.
  17529. + for tagname in $taglist; do
  17530. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  17531. done
  17532. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  17533. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  17534. - if test "X$xdir" = "X$obj"; then
  17535. - xdir=
  17536. - else
  17537. - xdir=$xdir/
  17538. - fi
  17539. - lobj=${xdir}$objdir/$objname
  17540. + exit $?
  17541. +}
  17542. - if test -z "$base_compile"; then
  17543. - $echo "$modename: you must specify a compilation command" 1>&2
  17544. - $echo "$help" 1>&2
  17545. - exit $EXIT_FAILURE
  17546. +# func_features
  17547. +# Display the features supported by this script.
  17548. +func_features ()
  17549. +{
  17550. + $ECHO "host: $host"
  17551. + if test "$build_libtool_libs" = yes; then
  17552. + $ECHO "enable shared libraries"
  17553. + else
  17554. + $ECHO "disable shared libraries"
  17555. fi
  17556. -
  17557. - # Delete any leftover library objects.
  17558. if test "$build_old_libs" = yes; then
  17559. - removelist="$obj $lobj $libobj ${libobj}T"
  17560. + $ECHO "enable static libraries"
  17561. else
  17562. - removelist="$lobj $libobj ${libobj}T"
  17563. + $ECHO "disable static libraries"
  17564. fi
  17565. - $run $rm $removelist
  17566. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  17567. -
  17568. - # On Cygwin there's no "real" PIC flag so we must build both object types
  17569. - case $host_os in
  17570. - cygwin* | mingw* | pw32* | os2*)
  17571. - pic_mode=default
  17572. - ;;
  17573. - esac
  17574. - if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
  17575. - # non-PIC code in shared libraries is not supported
  17576. - pic_mode=default
  17577. - fi
  17578. + exit $?
  17579. +}
  17580. - # Calculate the filename of the output object if compiler does
  17581. - # not support -o with -c
  17582. - if test "$compiler_c_o" = no; then
  17583. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  17584. - lockfile="$output_obj.lock"
  17585. - removelist="$removelist $output_obj $lockfile"
  17586. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  17587. - else
  17588. - output_obj=
  17589. - need_locks=no
  17590. - lockfile=
  17591. - fi
  17592. +# func_enable_tag tagname
  17593. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  17594. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  17595. +# variable here.
  17596. +func_enable_tag ()
  17597. +{
  17598. + # Global variable:
  17599. + tagname="$1"
  17600. - # Lock this critical section if it is needed
  17601. - # We use this script file to make the link, it avoids creating a new file
  17602. - if test "$need_locks" = yes; then
  17603. - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  17604. - $show "Waiting for $lockfile to be removed"
  17605. - sleep 2
  17606. - done
  17607. - elif test "$need_locks" = warn; then
  17608. - if test -f "$lockfile"; then
  17609. - $echo "\
  17610. -*** ERROR, $lockfile exists and contains:
  17611. -`cat $lockfile 2>/dev/null`
  17612. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  17613. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  17614. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  17615. +
  17616. + # Validate tagname.
  17617. + case $tagname in
  17618. + *[!-_A-Za-z0-9,/]*)
  17619. + func_fatal_error "invalid tag name: $tagname"
  17620. + ;;
  17621. + esac
  17622. -This indicates that another process is trying to use the same
  17623. -temporary object file, and libtool could not work around it because
  17624. -your compiler does not support \`-c' and \`-o' together. If you
  17625. -repeat this compilation, it may succeed, by chance, but you had better
  17626. -avoid parallel builds (make -j) in this platform, or get a better
  17627. -compiler."
  17628. + # Don't test for the "default" C tag, as we know it's
  17629. + # there but not specially marked.
  17630. + case $tagname in
  17631. + CC) ;;
  17632. + *)
  17633. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  17634. + taglist="$taglist $tagname"
  17635. - $run $rm $removelist
  17636. - exit $EXIT_FAILURE
  17637. + # Evaluate the configuration. Be careful to quote the path
  17638. + # and the sed script, to avoid splitting on whitespace, but
  17639. + # also don't use non-portable quotes within backquotes within
  17640. + # quotes we have to do it in 2 steps:
  17641. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  17642. + eval "$extractedcf"
  17643. + else
  17644. + func_error "ignoring unknown tag $tagname"
  17645. fi
  17646. - $echo $srcfile > "$lockfile"
  17647. - fi
  17648. + ;;
  17649. + esac
  17650. +}
  17651. - if test -n "$fix_srcfile_path"; then
  17652. - eval srcfile=\"$fix_srcfile_path\"
  17653. - fi
  17654. +# Parse options once, thoroughly. This comes as soon as possible in
  17655. +# the script to make things like `libtool --version' happen quickly.
  17656. +{
  17657. - $run $rm "$libobj" "${libobj}T"
  17658. + # Shorthand for --mode=foo, only valid as the first argument
  17659. + case $1 in
  17660. + clean|clea|cle|cl)
  17661. + shift; set dummy --mode clean ${1+"$@"}; shift
  17662. + ;;
  17663. + compile|compil|compi|comp|com|co|c)
  17664. + shift; set dummy --mode compile ${1+"$@"}; shift
  17665. + ;;
  17666. + execute|execut|execu|exec|exe|ex|e)
  17667. + shift; set dummy --mode execute ${1+"$@"}; shift
  17668. + ;;
  17669. + finish|finis|fini|fin|fi|f)
  17670. + shift; set dummy --mode finish ${1+"$@"}; shift
  17671. + ;;
  17672. + install|instal|insta|inst|ins|in|i)
  17673. + shift; set dummy --mode install ${1+"$@"}; shift
  17674. + ;;
  17675. + link|lin|li|l)
  17676. + shift; set dummy --mode link ${1+"$@"}; shift
  17677. + ;;
  17678. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  17679. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  17680. + ;;
  17681. + esac
  17682. - # Create a libtool object file (analogous to a ".la" file),
  17683. - # but don't create it if we're doing a dry run.
  17684. - test -z "$run" && cat > ${libobj}T <<EOF
  17685. -# $libobj - a libtool object file
  17686. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  17687. -#
  17688. -# Please DO NOT delete this file!
  17689. -# It is necessary for linking the library.
  17690. + # Parse non-mode specific arguments:
  17691. + while test "$#" -gt 0; do
  17692. + opt="$1"
  17693. + shift
  17694. -# Name of the PIC object.
  17695. -EOF
  17696. + case $opt in
  17697. + --config) func_config ;;
  17698. - # Only build a PIC object if we are building libtool libraries.
  17699. - if test "$build_libtool_libs" = yes; then
  17700. - # Without this assignment, base_compile gets emptied.
  17701. - fbsd_hideous_sh_bug=$base_compile
  17702. + --debug) preserve_args="$preserve_args $opt"
  17703. + func_echo "enabling shell trace mode"
  17704. + opt_debug='set -x'
  17705. + $opt_debug
  17706. + ;;
  17707. - if test "$pic_mode" != no; then
  17708. - command="$base_compile $srcfile $pic_flag"
  17709. - else
  17710. - # Don't build PIC code
  17711. - command="$base_compile $srcfile"
  17712. - fi
  17713. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  17714. + execute_dlfiles="$execute_dlfiles $1"
  17715. + shift
  17716. + ;;
  17717. - if test ! -d "${xdir}$objdir"; then
  17718. - $show "$mkdir ${xdir}$objdir"
  17719. - $run $mkdir ${xdir}$objdir
  17720. - status=$?
  17721. - if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
  17722. - exit $status
  17723. - fi
  17724. - fi
  17725. + --dry-run | -n) opt_dry_run=: ;;
  17726. + --features) func_features ;;
  17727. + --finish) mode="finish" ;;
  17728. +
  17729. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  17730. + case $1 in
  17731. + # Valid mode arguments:
  17732. + clean) ;;
  17733. + compile) ;;
  17734. + execute) ;;
  17735. + finish) ;;
  17736. + install) ;;
  17737. + link) ;;
  17738. + relink) ;;
  17739. + uninstall) ;;
  17740. +
  17741. + # Catch anything else as an error
  17742. + *) func_error "invalid argument for $opt"
  17743. + exit_cmd=exit
  17744. + break
  17745. + ;;
  17746. + esac
  17747. - if test -z "$output_obj"; then
  17748. - # Place PIC objects in $objdir
  17749. - command="$command -o $lobj"
  17750. - fi
  17751. + mode="$1"
  17752. + shift
  17753. + ;;
  17754. - $run $rm "$lobj" "$output_obj"
  17755. + --preserve-dup-deps)
  17756. + opt_duplicate_deps=: ;;
  17757. - $show "$command"
  17758. - if $run eval "$command"; then :
  17759. - else
  17760. - test -n "$output_obj" && $run $rm $removelist
  17761. - exit $EXIT_FAILURE
  17762. - fi
  17763. + --quiet|--silent) preserve_args="$preserve_args $opt"
  17764. + opt_silent=:
  17765. + ;;
  17766. - if test "$need_locks" = warn &&
  17767. - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  17768. - $echo "\
  17769. -*** ERROR, $lockfile contains:
  17770. -`cat $lockfile 2>/dev/null`
  17771. + --verbose| -v) preserve_args="$preserve_args $opt"
  17772. + opt_silent=false
  17773. + ;;
  17774. -but it should contain:
  17775. -$srcfile
  17776. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  17777. + preserve_args="$preserve_args $opt $1"
  17778. + func_enable_tag "$1" # tagname is set here
  17779. + shift
  17780. + ;;
  17781. -This indicates that another process is trying to use the same
  17782. -temporary object file, and libtool could not work around it because
  17783. -your compiler does not support \`-c' and \`-o' together. If you
  17784. -repeat this compilation, it may succeed, by chance, but you had better
  17785. -avoid parallel builds (make -j) in this platform, or get a better
  17786. -compiler."
  17787. + # Separate optargs to long options:
  17788. + -dlopen=*|--mode=*|--tag=*)
  17789. + func_opt_split "$opt"
  17790. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  17791. + shift
  17792. + ;;
  17793. - $run $rm $removelist
  17794. - exit $EXIT_FAILURE
  17795. - fi
  17796. + -\?|-h) func_usage ;;
  17797. + --help) opt_help=: ;;
  17798. + --version) func_version ;;
  17799. - # Just move the object if needed, then go on to compile the next one
  17800. - if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  17801. - $show "$mv $output_obj $lobj"
  17802. - if $run $mv $output_obj $lobj; then :
  17803. - else
  17804. - error=$?
  17805. - $run $rm $removelist
  17806. - exit $error
  17807. - fi
  17808. - fi
  17809. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  17810. - # Append the name of the PIC object to the libtool object file.
  17811. - test -z "$run" && cat >> ${libobj}T <<EOF
  17812. -pic_object='$objdir/$objname'
  17813. + *) nonopt="$opt"
  17814. + break
  17815. + ;;
  17816. + esac
  17817. + done
  17818. -EOF
  17819. - # Allow error messages only from the first compilation.
  17820. - if test "$suppress_opt" = yes; then
  17821. - suppress_output=' >/dev/null 2>&1'
  17822. - fi
  17823. - else
  17824. - # No PIC object so indicate it doesn't exist in the libtool
  17825. - # object file.
  17826. - test -z "$run" && cat >> ${libobj}T <<EOF
  17827. -pic_object=none
  17828. + case $host in
  17829. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  17830. + # don't eliminate duplications in $postdeps and $predeps
  17831. + opt_duplicate_compiler_generated_deps=:
  17832. + ;;
  17833. + *)
  17834. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  17835. + ;;
  17836. + esac
  17837. -EOF
  17838. - fi
  17839. + # Having warned about all mis-specified options, bail out if
  17840. + # anything was wrong.
  17841. + $exit_cmd $EXIT_FAILURE
  17842. +}
  17843. - # Only build a position-dependent object if we build old libraries.
  17844. - if test "$build_old_libs" = yes; then
  17845. - if test "$pic_mode" != yes; then
  17846. - # Don't build PIC code
  17847. - command="$base_compile $srcfile"
  17848. +# func_check_version_match
  17849. +# Ensure that we are using m4 macros, and libtool script from the same
  17850. +# release of libtool.
  17851. +func_check_version_match ()
  17852. +{
  17853. + if test "$package_revision" != "$macro_revision"; then
  17854. + if test "$VERSION" != "$macro_version"; then
  17855. + if test -z "$macro_version"; then
  17856. + cat >&2 <<_LT_EOF
  17857. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  17858. +$progname: definition of this LT_INIT comes from an older release.
  17859. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  17860. +$progname: and run autoconf again.
  17861. +_LT_EOF
  17862. else
  17863. - command="$base_compile $srcfile $pic_flag"
  17864. - fi
  17865. - if test "$compiler_c_o" = yes; then
  17866. - command="$command -o $obj"
  17867. + cat >&2 <<_LT_EOF
  17868. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  17869. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  17870. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  17871. +$progname: and run autoconf again.
  17872. +_LT_EOF
  17873. fi
  17874. + else
  17875. + cat >&2 <<_LT_EOF
  17876. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  17877. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  17878. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  17879. +$progname: of $PACKAGE $VERSION and run autoconf again.
  17880. +_LT_EOF
  17881. + fi
  17882. - # Suppress compiler output if we already did a PIC compilation.
  17883. - command="$command$suppress_output"
  17884. - $run $rm "$obj" "$output_obj"
  17885. - $show "$command"
  17886. - if $run eval "$command"; then :
  17887. - else
  17888. - $run $rm $removelist
  17889. - exit $EXIT_FAILURE
  17890. - fi
  17891. + exit $EXIT_MISMATCH
  17892. + fi
  17893. +}
  17894. - if test "$need_locks" = warn &&
  17895. - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  17896. - $echo "\
  17897. -*** ERROR, $lockfile contains:
  17898. -`cat $lockfile 2>/dev/null`
  17899. -but it should contain:
  17900. -$srcfile
  17901. +## ----------- ##
  17902. +## Main. ##
  17903. +## ----------- ##
  17904. +
  17905. +$opt_help || {
  17906. + # Sanity checks first:
  17907. + func_check_version_match
  17908. -This indicates that another process is trying to use the same
  17909. -temporary object file, and libtool could not work around it because
  17910. -your compiler does not support \`-c' and \`-o' together. If you
  17911. -repeat this compilation, it may succeed, by chance, but you had better
  17912. -avoid parallel builds (make -j) in this platform, or get a better
  17913. -compiler."
  17914. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  17915. + func_fatal_configuration "not configured to build any kind of library"
  17916. + fi
  17917. - $run $rm $removelist
  17918. - exit $EXIT_FAILURE
  17919. - fi
  17920. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  17921. - # Just move the object if needed
  17922. - if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  17923. - $show "$mv $output_obj $obj"
  17924. - if $run $mv $output_obj $obj; then :
  17925. - else
  17926. - error=$?
  17927. - $run $rm $removelist
  17928. - exit $error
  17929. - fi
  17930. - fi
  17931. - # Append the name of the non-PIC object the libtool object file.
  17932. - # Only append if the libtool object file exists.
  17933. - test -z "$run" && cat >> ${libobj}T <<EOF
  17934. -# Name of the non-PIC object.
  17935. -non_pic_object='$objname'
  17936. + # Darwin sucks
  17937. + eval std_shrext=\"$shrext_cmds\"
  17938. -EOF
  17939. - else
  17940. - # Append the name of the non-PIC object the libtool object file.
  17941. - # Only append if the libtool object file exists.
  17942. - test -z "$run" && cat >> ${libobj}T <<EOF
  17943. -# Name of the non-PIC object.
  17944. -non_pic_object=none
  17945. -EOF
  17946. + # Only execute mode is allowed to have -dlopen flags.
  17947. + if test -n "$execute_dlfiles" && test "$mode" != execute; then
  17948. + func_error "unrecognized option \`-dlopen'"
  17949. + $ECHO "$help" 1>&2
  17950. + exit $EXIT_FAILURE
  17951. + fi
  17952. +
  17953. + # Change the help message to a mode-specific one.
  17954. + generic_help="$help"
  17955. + help="Try \`$progname --help --mode=$mode' for more information."
  17956. +}
  17957. +
  17958. +
  17959. +# func_lalib_p file
  17960. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  17961. +# This function is only a basic sanity check; it will hardly flush out
  17962. +# determined imposters.
  17963. +func_lalib_p ()
  17964. +{
  17965. + test -f "$1" &&
  17966. + $SED -e 4q "$1" 2>/dev/null \
  17967. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  17968. +}
  17969. +
  17970. +# func_lalib_unsafe_p file
  17971. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  17972. +# This function implements the same check as func_lalib_p without
  17973. +# resorting to external programs. To this end, it redirects stdin and
  17974. +# closes it afterwards, without saving the original file descriptor.
  17975. +# As a safety measure, use it only where a negative result would be
  17976. +# fatal anyway. Works if `file' does not exist.
  17977. +func_lalib_unsafe_p ()
  17978. +{
  17979. + lalib_p=no
  17980. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  17981. + for lalib_p_l in 1 2 3 4
  17982. + do
  17983. + read lalib_p_line
  17984. + case "$lalib_p_line" in
  17985. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  17986. + esac
  17987. + done
  17988. + exec 0<&5 5<&-
  17989. fi
  17990. + test "$lalib_p" = yes
  17991. +}
  17992. +
  17993. +# func_ltwrapper_script_p file
  17994. +# True iff FILE is a libtool wrapper script
  17995. +# This function is only a basic sanity check; it will hardly flush out
  17996. +# determined imposters.
  17997. +func_ltwrapper_script_p ()
  17998. +{
  17999. + func_lalib_p "$1"
  18000. +}
  18001. - $run $mv "${libobj}T" "${libobj}"
  18002. +# func_ltwrapper_executable_p file
  18003. +# True iff FILE is a libtool wrapper executable
  18004. +# This function is only a basic sanity check; it will hardly flush out
  18005. +# determined imposters.
  18006. +func_ltwrapper_executable_p ()
  18007. +{
  18008. + func_ltwrapper_exec_suffix=
  18009. + case $1 in
  18010. + *.exe) ;;
  18011. + *) func_ltwrapper_exec_suffix=.exe ;;
  18012. + esac
  18013. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  18014. +}
  18015. - # Unlock the critical section if it was locked
  18016. - if test "$need_locks" != no; then
  18017. - $run $rm "$lockfile"
  18018. +# func_ltwrapper_scriptname file
  18019. +# Assumes file is an ltwrapper_executable
  18020. +# uses $file to determine the appropriate filename for a
  18021. +# temporary ltwrapper_script.
  18022. +func_ltwrapper_scriptname ()
  18023. +{
  18024. + func_ltwrapper_scriptname_result=""
  18025. + if func_ltwrapper_executable_p "$1"; then
  18026. + func_dirname_and_basename "$1" "" "."
  18027. + func_stripname '' '.exe' "$func_basename_result"
  18028. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  18029. fi
  18030. +}
  18031. - exit $EXIT_SUCCESS
  18032. - ;;
  18033. +# func_ltwrapper_p file
  18034. +# True iff FILE is a libtool wrapper script or wrapper executable
  18035. +# This function is only a basic sanity check; it will hardly flush out
  18036. +# determined imposters.
  18037. +func_ltwrapper_p ()
  18038. +{
  18039. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  18040. +}
  18041. - # libtool link mode
  18042. - link | relink)
  18043. - modename="$modename: link"
  18044. - case $host in
  18045. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  18046. - # It is impossible to link a dll without this setting, and
  18047. - # we shouldn't force the makefile maintainer to figure out
  18048. - # which system we are compiling for in order to pass an extra
  18049. - # flag for every libtool invocation.
  18050. - # allow_undefined=no
  18051. - # FIXME: Unfortunately, there are problems with the above when trying
  18052. - # to make a dll which has undefined symbols, in which case not
  18053. - # even a static library is built. For now, we need to specify
  18054. - # -no-undefined on the libtool link line when we can be certain
  18055. - # that all symbols are satisfied, otherwise we get a static library.
  18056. - allow_undefined=yes
  18057. - ;;
  18058. - *)
  18059. - allow_undefined=yes
  18060. - ;;
  18061. - esac
  18062. - libtool_args="$nonopt"
  18063. - base_compile="$nonopt $@"
  18064. - compile_command="$nonopt"
  18065. - finalize_command="$nonopt"
  18066. +# func_execute_cmds commands fail_cmd
  18067. +# Execute tilde-delimited COMMANDS.
  18068. +# If FAIL_CMD is given, eval that upon failure.
  18069. +# FAIL_CMD may read-access the current command in variable CMD!
  18070. +func_execute_cmds ()
  18071. +{
  18072. + $opt_debug
  18073. + save_ifs=$IFS; IFS='~'
  18074. + for cmd in $1; do
  18075. + IFS=$save_ifs
  18076. + eval cmd=\"$cmd\"
  18077. + func_show_eval "$cmd" "${2-:}"
  18078. + done
  18079. + IFS=$save_ifs
  18080. +}
  18081. - compile_rpath=
  18082. - finalize_rpath=
  18083. - compile_shlibpath=
  18084. - finalize_shlibpath=
  18085. - convenience=
  18086. - old_convenience=
  18087. - deplibs=
  18088. - old_deplibs=
  18089. - compiler_flags=
  18090. - linker_flags=
  18091. - dllsearchpath=
  18092. - lib_search_path=`pwd`
  18093. - inst_prefix_dir=
  18094. - avoid_version=no
  18095. - dlfiles=
  18096. - dlprefiles=
  18097. - dlself=no
  18098. - export_dynamic=no
  18099. - export_symbols=
  18100. - export_symbols_regex=
  18101. - generated=
  18102. - libobjs=
  18103. - ltlibs=
  18104. - module=no
  18105. - no_install=no
  18106. - objs=
  18107. - non_pic_objects=
  18108. - precious_files_regex=
  18109. - prefer_static_libs=no
  18110. - preload=no
  18111. - prev=
  18112. - prevarg=
  18113. - release=
  18114. - rpath=
  18115. - xrpath=
  18116. - perm_rpath=
  18117. - temp_rpath=
  18118. - thread_safe=no
  18119. - vinfo=
  18120. - vinfo_number=no
  18121. +# func_source file
  18122. +# Source FILE, adding directory component if necessary.
  18123. +# Note that it is not necessary on cygwin/mingw to append a dot to
  18124. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  18125. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  18126. +# `FILE.' does not work on cygwin managed mounts.
  18127. +func_source ()
  18128. +{
  18129. + $opt_debug
  18130. + case $1 in
  18131. + */* | *\\*) . "$1" ;;
  18132. + *) . "./$1" ;;
  18133. + esac
  18134. +}
  18135. - func_infer_tag $base_compile
  18136. - # We need to know -static, to get the right output filenames.
  18137. - for arg
  18138. - do
  18139. - case $arg in
  18140. - -all-static | -static)
  18141. - if test "X$arg" = "X-all-static"; then
  18142. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  18143. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  18144. - fi
  18145. - if test -n "$link_static_flag"; then
  18146. - dlopen_self=$dlopen_self_static
  18147. - fi
  18148. - else
  18149. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  18150. - dlopen_self=$dlopen_self_static
  18151. +# func_infer_tag arg
  18152. +# Infer tagged configuration to use if any are available and
  18153. +# if one wasn't chosen via the "--tag" command line option.
  18154. +# Only attempt this if the compiler in the base compile
  18155. +# command doesn't match the default compiler.
  18156. +# arg is usually of the form 'gcc ...'
  18157. +func_infer_tag ()
  18158. +{
  18159. + $opt_debug
  18160. + if test -n "$available_tags" && test -z "$tagname"; then
  18161. + CC_quoted=
  18162. + for arg in $CC; do
  18163. + func_quote_for_eval "$arg"
  18164. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  18165. + done
  18166. + case $@ in
  18167. + # Blanks in the command may have been stripped by the calling shell,
  18168. + # but not from the CC environment variable when configure was run.
  18169. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  18170. + # Blanks at the start of $base_compile will cause this to fail
  18171. + # if we don't check for them as well.
  18172. + *)
  18173. + for z in $available_tags; do
  18174. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  18175. + # Evaluate the configuration.
  18176. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  18177. + CC_quoted=
  18178. + for arg in $CC; do
  18179. + # Double-quote args containing other shell metacharacters.
  18180. + func_quote_for_eval "$arg"
  18181. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  18182. + done
  18183. + case "$@ " in
  18184. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  18185. + # The compiler in the base compile command matches
  18186. + # the one in the tagged configuration.
  18187. + # Assume this is the tagged configuration we want.
  18188. + tagname=$z
  18189. + break
  18190. + ;;
  18191. + esac
  18192. fi
  18193. + done
  18194. + # If $tagname still isn't set, then no tagged configuration
  18195. + # was found and let the user know that the "--tag" command
  18196. + # line option must be used.
  18197. + if test -z "$tagname"; then
  18198. + func_echo "unable to infer tagged configuration"
  18199. + func_fatal_error "specify a tag with \`--tag'"
  18200. +# else
  18201. +# func_verbose "using $tagname tagged configuration"
  18202. fi
  18203. - build_libtool_libs=no
  18204. - build_old_libs=yes
  18205. - prefer_static_libs=yes
  18206. - break
  18207. ;;
  18208. esac
  18209. - done
  18210. -
  18211. - # See if our shared archives depend on static archives.
  18212. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  18213. + fi
  18214. +}
  18215. - # Go through the arguments, transforming them on the way.
  18216. - while test "$#" -gt 0; do
  18217. - arg="$1"
  18218. - shift
  18219. - case $arg in
  18220. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  18221. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  18222. - ;;
  18223. - *) qarg=$arg ;;
  18224. - esac
  18225. - libtool_args="$libtool_args $qarg"
  18226. - # If the previous option needs an argument, assign it.
  18227. - if test -n "$prev"; then
  18228. - case $prev in
  18229. - output)
  18230. - compile_command="$compile_command @OUTPUT@"
  18231. - finalize_command="$finalize_command @OUTPUT@"
  18232. - ;;
  18233. - esac
  18234. - case $prev in
  18235. - dlfiles|dlprefiles)
  18236. - if test "$preload" = no; then
  18237. - # Add the symbol object into the linking commands.
  18238. - compile_command="$compile_command @SYMFILE@"
  18239. - finalize_command="$finalize_command @SYMFILE@"
  18240. - preload=yes
  18241. - fi
  18242. - case $arg in
  18243. - *.la | *.lo) ;; # We handle these cases below.
  18244. - force)
  18245. - if test "$dlself" = no; then
  18246. - dlself=needless
  18247. - export_dynamic=yes
  18248. - fi
  18249. - prev=
  18250. - continue
  18251. - ;;
  18252. - self)
  18253. - if test "$prev" = dlprefiles; then
  18254. - dlself=yes
  18255. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  18256. - dlself=yes
  18257. - else
  18258. - dlself=needless
  18259. - export_dynamic=yes
  18260. - fi
  18261. - prev=
  18262. - continue
  18263. - ;;
  18264. - *)
  18265. - if test "$prev" = dlfiles; then
  18266. - dlfiles="$dlfiles $arg"
  18267. - else
  18268. - dlprefiles="$dlprefiles $arg"
  18269. - fi
  18270. - prev=
  18271. - continue
  18272. - ;;
  18273. - esac
  18274. - ;;
  18275. - expsyms)
  18276. - export_symbols="$arg"
  18277. - if test ! -f "$arg"; then
  18278. - $echo "$modename: symbol file \`$arg' does not exist"
  18279. - exit $EXIT_FAILURE
  18280. - fi
  18281. - prev=
  18282. - continue
  18283. - ;;
  18284. - expsyms_regex)
  18285. - export_symbols_regex="$arg"
  18286. - prev=
  18287. - continue
  18288. - ;;
  18289. - inst_prefix)
  18290. - inst_prefix_dir="$arg"
  18291. - prev=
  18292. - continue
  18293. - ;;
  18294. - precious_regex)
  18295. - precious_files_regex="$arg"
  18296. - prev=
  18297. - continue
  18298. - ;;
  18299. - release)
  18300. - release="-$arg"
  18301. - prev=
  18302. - continue
  18303. - ;;
  18304. - objectlist)
  18305. - if test -f "$arg"; then
  18306. - save_arg=$arg
  18307. - moreargs=
  18308. - for fil in `cat $save_arg`
  18309. - do
  18310. -# moreargs="$moreargs $fil"
  18311. - arg=$fil
  18312. - # A libtool-controlled object.
  18313. -
  18314. - # Check to see that this really is a libtool object.
  18315. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  18316. - pic_object=
  18317. - non_pic_object=
  18318. -
  18319. - # Read the .lo file
  18320. - # If there is no directory component, then add one.
  18321. - case $arg in
  18322. - */* | *\\*) . $arg ;;
  18323. - *) . ./$arg ;;
  18324. - esac
  18325. -
  18326. - if test -z "$pic_object" || \
  18327. - test -z "$non_pic_object" ||
  18328. - test "$pic_object" = none && \
  18329. - test "$non_pic_object" = none; then
  18330. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  18331. - exit $EXIT_FAILURE
  18332. - fi
  18333. +# func_write_libtool_object output_name pic_name nonpic_name
  18334. +# Create a libtool object file (analogous to a ".la" file),
  18335. +# but don't create it if we're doing a dry run.
  18336. +func_write_libtool_object ()
  18337. +{
  18338. + write_libobj=${1}
  18339. + if test "$build_libtool_libs" = yes; then
  18340. + write_lobj=\'${2}\'
  18341. + else
  18342. + write_lobj=none
  18343. + fi
  18344. - # Extract subdirectory from the argument.
  18345. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  18346. - if test "X$xdir" = "X$arg"; then
  18347. - xdir=
  18348. - else
  18349. - xdir="$xdir/"
  18350. - fi
  18351. + if test "$build_old_libs" = yes; then
  18352. + write_oldobj=\'${3}\'
  18353. + else
  18354. + write_oldobj=none
  18355. + fi
  18356. - if test "$pic_object" != none; then
  18357. - # Prepend the subdirectory the object is found in.
  18358. - pic_object="$xdir$pic_object"
  18359. + $opt_dry_run || {
  18360. + cat >${write_libobj}T <<EOF
  18361. +# $write_libobj - a libtool object file
  18362. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  18363. +#
  18364. +# Please DO NOT delete this file!
  18365. +# It is necessary for linking the library.
  18366. - if test "$prev" = dlfiles; then
  18367. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  18368. - dlfiles="$dlfiles $pic_object"
  18369. - prev=
  18370. - continue
  18371. - else
  18372. - # If libtool objects are unsupported, then we need to preload.
  18373. - prev=dlprefiles
  18374. - fi
  18375. - fi
  18376. +# Name of the PIC object.
  18377. +pic_object=$write_lobj
  18378. - # CHECK ME: I think I busted this. -Ossama
  18379. - if test "$prev" = dlprefiles; then
  18380. - # Preload the old-style object.
  18381. - dlprefiles="$dlprefiles $pic_object"
  18382. - prev=
  18383. - fi
  18384. +# Name of the non-PIC object
  18385. +non_pic_object=$write_oldobj
  18386. - # A PIC object.
  18387. - libobjs="$libobjs $pic_object"
  18388. - arg="$pic_object"
  18389. - fi
  18390. +EOF
  18391. + $MV "${write_libobj}T" "${write_libobj}"
  18392. + }
  18393. +}
  18394. - # Non-PIC object.
  18395. - if test "$non_pic_object" != none; then
  18396. - # Prepend the subdirectory the object is found in.
  18397. - non_pic_object="$xdir$non_pic_object"
  18398. +# func_mode_compile arg...
  18399. +func_mode_compile ()
  18400. +{
  18401. + $opt_debug
  18402. + # Get the compilation command and the source file.
  18403. + base_compile=
  18404. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  18405. + suppress_opt=yes
  18406. + suppress_output=
  18407. + arg_mode=normal
  18408. + libobj=
  18409. + later=
  18410. + pie_flag=
  18411. - # A standard non-PIC object
  18412. - non_pic_objects="$non_pic_objects $non_pic_object"
  18413. - if test -z "$pic_object" || test "$pic_object" = none ; then
  18414. - arg="$non_pic_object"
  18415. - fi
  18416. - fi
  18417. - else
  18418. - # Only an error if not doing a dry-run.
  18419. - if test -z "$run"; then
  18420. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  18421. - exit $EXIT_FAILURE
  18422. - else
  18423. - # Dry-run case.
  18424. + for arg
  18425. + do
  18426. + case $arg_mode in
  18427. + arg )
  18428. + # do not "continue". Instead, add this to base_compile
  18429. + lastarg="$arg"
  18430. + arg_mode=normal
  18431. + ;;
  18432. - # Extract subdirectory from the argument.
  18433. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  18434. - if test "X$xdir" = "X$arg"; then
  18435. - xdir=
  18436. - else
  18437. - xdir="$xdir/"
  18438. - fi
  18439. + target )
  18440. + libobj="$arg"
  18441. + arg_mode=normal
  18442. + continue
  18443. + ;;
  18444. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  18445. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  18446. - libobjs="$libobjs $pic_object"
  18447. - non_pic_objects="$non_pic_objects $non_pic_object"
  18448. - fi
  18449. - fi
  18450. - done
  18451. - else
  18452. - $echo "$modename: link input file \`$save_arg' does not exist"
  18453. - exit $EXIT_FAILURE
  18454. - fi
  18455. - arg=$save_arg
  18456. - prev=
  18457. - continue
  18458. - ;;
  18459. - rpath | xrpath)
  18460. - # We need an absolute path.
  18461. - case $arg in
  18462. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  18463. - *)
  18464. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  18465. - exit $EXIT_FAILURE
  18466. - ;;
  18467. - esac
  18468. - if test "$prev" = rpath; then
  18469. - case "$rpath " in
  18470. - *" $arg "*) ;;
  18471. - *) rpath="$rpath $arg" ;;
  18472. - esac
  18473. - else
  18474. - case "$xrpath " in
  18475. - *" $arg "*) ;;
  18476. - *) xrpath="$xrpath $arg" ;;
  18477. - esac
  18478. - fi
  18479. - prev=
  18480. + normal )
  18481. + # Accept any command-line options.
  18482. + case $arg in
  18483. + -o)
  18484. + test -n "$libobj" && \
  18485. + func_fatal_error "you cannot specify \`-o' more than once"
  18486. + arg_mode=target
  18487. continue
  18488. ;;
  18489. - xcompiler)
  18490. - compiler_flags="$compiler_flags $qarg"
  18491. - prev=
  18492. - compile_command="$compile_command $qarg"
  18493. - finalize_command="$finalize_command $qarg"
  18494. +
  18495. + -pie | -fpie | -fPIE)
  18496. + pie_flag="$pie_flag $arg"
  18497. continue
  18498. ;;
  18499. - xlinker)
  18500. - linker_flags="$linker_flags $qarg"
  18501. - compiler_flags="$compiler_flags $wl$qarg"
  18502. - prev=
  18503. - compile_command="$compile_command $wl$qarg"
  18504. - finalize_command="$finalize_command $wl$qarg"
  18505. +
  18506. + -shared | -static | -prefer-pic | -prefer-non-pic)
  18507. + later="$later $arg"
  18508. continue
  18509. ;;
  18510. - xcclinker)
  18511. - linker_flags="$linker_flags $qarg"
  18512. - compiler_flags="$compiler_flags $qarg"
  18513. - prev=
  18514. - compile_command="$compile_command $qarg"
  18515. - finalize_command="$finalize_command $qarg"
  18516. +
  18517. + -no-suppress)
  18518. + suppress_opt=no
  18519. continue
  18520. ;;
  18521. - shrext)
  18522. - shrext_cmds="$arg"
  18523. - prev=
  18524. +
  18525. + -Xcompiler)
  18526. + arg_mode=arg # the next one goes into the "base_compile" arg list
  18527. + continue # The current "srcfile" will either be retained or
  18528. + ;; # replaced later. I would guess that would be a bug.
  18529. +
  18530. + -Wc,*)
  18531. + func_stripname '-Wc,' '' "$arg"
  18532. + args=$func_stripname_result
  18533. + lastarg=
  18534. + save_ifs="$IFS"; IFS=','
  18535. + for arg in $args; do
  18536. + IFS="$save_ifs"
  18537. + func_quote_for_eval "$arg"
  18538. + lastarg="$lastarg $func_quote_for_eval_result"
  18539. + done
  18540. + IFS="$save_ifs"
  18541. + func_stripname ' ' '' "$lastarg"
  18542. + lastarg=$func_stripname_result
  18543. +
  18544. + # Add the arguments to base_compile.
  18545. + base_compile="$base_compile $lastarg"
  18546. continue
  18547. ;;
  18548. +
  18549. *)
  18550. - eval "$prev=\"\$arg\""
  18551. - prev=
  18552. - continue
  18553. + # Accept the current argument as the source file.
  18554. + # The previous "srcfile" becomes the current argument.
  18555. + #
  18556. + lastarg="$srcfile"
  18557. + srcfile="$arg"
  18558. ;;
  18559. - esac
  18560. - fi # test -n "$prev"
  18561. -
  18562. - prevarg="$arg"
  18563. -
  18564. - case $arg in
  18565. - -all-static)
  18566. - if test -n "$link_static_flag"; then
  18567. - compile_command="$compile_command $link_static_flag"
  18568. - finalize_command="$finalize_command $link_static_flag"
  18569. - fi
  18570. - continue
  18571. - ;;
  18572. -
  18573. - -allow-undefined)
  18574. - # FIXME: remove this flag sometime in the future.
  18575. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  18576. - continue
  18577. + esac # case $arg
  18578. ;;
  18579. + esac # case $arg_mode
  18580. - -avoid-version)
  18581. - avoid_version=yes
  18582. - continue
  18583. - ;;
  18584. + # Aesthetically quote the previous argument.
  18585. + func_quote_for_eval "$lastarg"
  18586. + base_compile="$base_compile $func_quote_for_eval_result"
  18587. + done # for arg
  18588. - -dlopen)
  18589. - prev=dlfiles
  18590. - continue
  18591. - ;;
  18592. + case $arg_mode in
  18593. + arg)
  18594. + func_fatal_error "you must specify an argument for -Xcompile"
  18595. + ;;
  18596. + target)
  18597. + func_fatal_error "you must specify a target with \`-o'"
  18598. + ;;
  18599. + *)
  18600. + # Get the name of the library object.
  18601. + test -z "$libobj" && {
  18602. + func_basename "$srcfile"
  18603. + libobj="$func_basename_result"
  18604. + }
  18605. + ;;
  18606. + esac
  18607. - -dlpreopen)
  18608. - prev=dlprefiles
  18609. - continue
  18610. - ;;
  18611. + # Recognize several different file suffixes.
  18612. + # If the user specifies -o file.o, it is replaced with file.lo
  18613. + case $libobj in
  18614. + *.[cCFSifmso] | \
  18615. + *.ada | *.adb | *.ads | *.asm | \
  18616. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  18617. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  18618. + func_xform "$libobj"
  18619. + libobj=$func_xform_result
  18620. + ;;
  18621. + esac
  18622. - -export-dynamic)
  18623. - export_dynamic=yes
  18624. - continue
  18625. - ;;
  18626. + case $libobj in
  18627. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  18628. + *)
  18629. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  18630. + ;;
  18631. + esac
  18632. - -export-symbols | -export-symbols-regex)
  18633. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  18634. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  18635. - exit $EXIT_FAILURE
  18636. - fi
  18637. - if test "X$arg" = "X-export-symbols"; then
  18638. - prev=expsyms
  18639. - else
  18640. - prev=expsyms_regex
  18641. - fi
  18642. - continue
  18643. - ;;
  18644. + func_infer_tag $base_compile
  18645. - -inst-prefix-dir)
  18646. - prev=inst_prefix
  18647. + for arg in $later; do
  18648. + case $arg in
  18649. + -shared)
  18650. + test "$build_libtool_libs" != yes && \
  18651. + func_fatal_configuration "can not build a shared library"
  18652. + build_old_libs=no
  18653. continue
  18654. ;;
  18655. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  18656. - # so, if we see these flags be careful not to treat them like -L
  18657. - -L[A-Z][A-Z]*:*)
  18658. - case $with_gcc/$host in
  18659. - no/*-*-irix* | /*-*-irix*)
  18660. - compile_command="$compile_command $arg"
  18661. - finalize_command="$finalize_command $arg"
  18662. - ;;
  18663. - esac
  18664. + -static)
  18665. + build_libtool_libs=no
  18666. + build_old_libs=yes
  18667. continue
  18668. ;;
  18669. - -L*)
  18670. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  18671. - # We need an absolute path.
  18672. - case $dir in
  18673. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  18674. - *)
  18675. - absdir=`cd "$dir" && pwd`
  18676. - if test -z "$absdir"; then
  18677. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  18678. - exit $EXIT_FAILURE
  18679. - fi
  18680. - dir="$absdir"
  18681. - ;;
  18682. - esac
  18683. - case "$deplibs " in
  18684. - *" -L$dir "*) ;;
  18685. - *)
  18686. - deplibs="$deplibs -L$dir"
  18687. - lib_search_path="$lib_search_path $dir"
  18688. - ;;
  18689. - esac
  18690. - case $host in
  18691. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  18692. - case :$dllsearchpath: in
  18693. - *":$dir:"*) ;;
  18694. - *) dllsearchpath="$dllsearchpath:$dir";;
  18695. - esac
  18696. - ;;
  18697. - esac
  18698. + -prefer-pic)
  18699. + pic_mode=yes
  18700. continue
  18701. ;;
  18702. - -l*)
  18703. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  18704. - case $host in
  18705. - *-*-cygwin* | *-*-pw32* | *-*-beos*)
  18706. - # These systems don't actually have a C or math library (as such)
  18707. - continue
  18708. - ;;
  18709. - *-*-mingw* | *-*-os2*)
  18710. - # These systems don't actually have a C library (as such)
  18711. - test "X$arg" = "X-lc" && continue
  18712. - ;;
  18713. - *-*-openbsd* | *-*-freebsd*)
  18714. - # Do not include libc due to us having libc/libc_r.
  18715. - test "X$arg" = "X-lc" && continue
  18716. - ;;
  18717. - *-*-rhapsody* | *-*-darwin1.[012])
  18718. - # Rhapsody C and math libraries are in the System framework
  18719. - deplibs="$deplibs -framework System"
  18720. - continue
  18721. - esac
  18722. - elif test "X$arg" = "X-lc_r"; then
  18723. - case $host in
  18724. - *-*-openbsd* | *-*-freebsd*)
  18725. - # Do not include libc_r directly, use -pthread flag.
  18726. - continue
  18727. - ;;
  18728. - esac
  18729. - fi
  18730. - deplibs="$deplibs $arg"
  18731. + -prefer-non-pic)
  18732. + pic_mode=no
  18733. continue
  18734. ;;
  18735. + esac
  18736. + done
  18737. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  18738. - deplibs="$deplibs $arg"
  18739. - continue
  18740. - ;;
  18741. + func_quote_for_eval "$libobj"
  18742. + test "X$libobj" != "X$func_quote_for_eval_result" \
  18743. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  18744. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  18745. + func_dirname_and_basename "$obj" "/" ""
  18746. + objname="$func_basename_result"
  18747. + xdir="$func_dirname_result"
  18748. + lobj=${xdir}$objdir/$objname
  18749. - -module)
  18750. - module=yes
  18751. - continue
  18752. - ;;
  18753. + test -z "$base_compile" && \
  18754. + func_fatal_help "you must specify a compilation command"
  18755. - # gcc -m* arguments should be passed to the linker via $compiler_flags
  18756. - # in order to pass architecture information to the linker
  18757. - # (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo
  18758. - # but this is not reliable with gcc because gcc may use -mfoo to
  18759. - # select a different linker, different libraries, etc, while
  18760. - # -Wl,-mfoo simply passes -mfoo to the linker.
  18761. - -m*)
  18762. - # Unknown arguments in both finalize_command and compile_command need
  18763. - # to be aesthetically quoted because they are evaled later.
  18764. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  18765. - case $arg in
  18766. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  18767. - arg="\"$arg\""
  18768. - ;;
  18769. - esac
  18770. - compile_command="$compile_command $arg"
  18771. - finalize_command="$finalize_command $arg"
  18772. - if test "$with_gcc" = "yes" ; then
  18773. - compiler_flags="$compiler_flags $arg"
  18774. - fi
  18775. - continue
  18776. - ;;
  18777. + # Delete any leftover library objects.
  18778. + if test "$build_old_libs" = yes; then
  18779. + removelist="$obj $lobj $libobj ${libobj}T"
  18780. + else
  18781. + removelist="$lobj $libobj ${libobj}T"
  18782. + fi
  18783. - -shrext)
  18784. - prev=shrext
  18785. - continue
  18786. - ;;
  18787. + # On Cygwin there's no "real" PIC flag so we must build both object types
  18788. + case $host_os in
  18789. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  18790. + pic_mode=default
  18791. + ;;
  18792. + esac
  18793. + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
  18794. + # non-PIC code in shared libraries is not supported
  18795. + pic_mode=default
  18796. + fi
  18797. - -no-fast-install)
  18798. - fast_install=no
  18799. - continue
  18800. - ;;
  18801. + # Calculate the filename of the output object if compiler does
  18802. + # not support -o with -c
  18803. + if test "$compiler_c_o" = no; then
  18804. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  18805. + lockfile="$output_obj.lock"
  18806. + else
  18807. + output_obj=
  18808. + need_locks=no
  18809. + lockfile=
  18810. + fi
  18811. - -no-install)
  18812. - case $host in
  18813. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  18814. - # The PATH hackery in wrapper scripts is required on Windows
  18815. - # in order for the loader to find any dlls it needs.
  18816. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  18817. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  18818. - fast_install=no
  18819. - ;;
  18820. - *) no_install=yes ;;
  18821. - esac
  18822. - continue
  18823. - ;;
  18824. + # Lock this critical section if it is needed
  18825. + # We use this script file to make the link, it avoids creating a new file
  18826. + if test "$need_locks" = yes; then
  18827. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  18828. + func_echo "Waiting for $lockfile to be removed"
  18829. + sleep 2
  18830. + done
  18831. + elif test "$need_locks" = warn; then
  18832. + if test -f "$lockfile"; then
  18833. + $ECHO "\
  18834. +*** ERROR, $lockfile exists and contains:
  18835. +`cat $lockfile 2>/dev/null`
  18836. - -no-undefined)
  18837. - allow_undefined=no
  18838. - continue
  18839. - ;;
  18840. +This indicates that another process is trying to use the same
  18841. +temporary object file, and libtool could not work around it because
  18842. +your compiler does not support \`-c' and \`-o' together. If you
  18843. +repeat this compilation, it may succeed, by chance, but you had better
  18844. +avoid parallel builds (make -j) in this platform, or get a better
  18845. +compiler."
  18846. - -objectlist)
  18847. - prev=objectlist
  18848. - continue
  18849. - ;;
  18850. + $opt_dry_run || $RM $removelist
  18851. + exit $EXIT_FAILURE
  18852. + fi
  18853. + removelist="$removelist $output_obj"
  18854. + $ECHO "$srcfile" > "$lockfile"
  18855. + fi
  18856. - -o) prev=output ;;
  18857. + $opt_dry_run || $RM $removelist
  18858. + removelist="$removelist $lockfile"
  18859. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  18860. - -precious-files-regex)
  18861. - prev=precious_regex
  18862. - continue
  18863. - ;;
  18864. + if test -n "$fix_srcfile_path"; then
  18865. + eval srcfile=\"$fix_srcfile_path\"
  18866. + fi
  18867. + func_quote_for_eval "$srcfile"
  18868. + qsrcfile=$func_quote_for_eval_result
  18869. - -release)
  18870. - prev=release
  18871. - continue
  18872. - ;;
  18873. + # Only build a PIC object if we are building libtool libraries.
  18874. + if test "$build_libtool_libs" = yes; then
  18875. + # Without this assignment, base_compile gets emptied.
  18876. + fbsd_hideous_sh_bug=$base_compile
  18877. - -rpath)
  18878. - prev=rpath
  18879. - continue
  18880. - ;;
  18881. + if test "$pic_mode" != no; then
  18882. + command="$base_compile $qsrcfile $pic_flag"
  18883. + else
  18884. + # Don't build PIC code
  18885. + command="$base_compile $qsrcfile"
  18886. + fi
  18887. - -R)
  18888. - prev=xrpath
  18889. - continue
  18890. - ;;
  18891. + func_mkdir_p "$xdir$objdir"
  18892. - -R*)
  18893. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  18894. - # We need an absolute path.
  18895. - case $dir in
  18896. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  18897. - *)
  18898. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  18899. - exit $EXIT_FAILURE
  18900. - ;;
  18901. - esac
  18902. - case "$xrpath " in
  18903. - *" $dir "*) ;;
  18904. - *) xrpath="$xrpath $dir" ;;
  18905. - esac
  18906. - continue
  18907. - ;;
  18908. + if test -z "$output_obj"; then
  18909. + # Place PIC objects in $objdir
  18910. + command="$command -o $lobj"
  18911. + fi
  18912. - -static)
  18913. - # The effects of -static are defined in a previous loop.
  18914. - # We used to do the same as -all-static on platforms that
  18915. - # didn't have a PIC flag, but the assumption that the effects
  18916. - # would be equivalent was wrong. It would break on at least
  18917. - # Digital Unix and AIX.
  18918. - continue
  18919. - ;;
  18920. + func_show_eval_locale "$command" \
  18921. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  18922. - -thread-safe)
  18923. - thread_safe=yes
  18924. - continue
  18925. - ;;
  18926. + if test "$need_locks" = warn &&
  18927. + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  18928. + $ECHO "\
  18929. +*** ERROR, $lockfile contains:
  18930. +`cat $lockfile 2>/dev/null`
  18931. - -version-info)
  18932. - prev=vinfo
  18933. - continue
  18934. - ;;
  18935. - -version-number)
  18936. - prev=vinfo
  18937. - vinfo_number=yes
  18938. - continue
  18939. - ;;
  18940. +but it should contain:
  18941. +$srcfile
  18942. - -Wc,*)
  18943. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  18944. - arg=
  18945. - save_ifs="$IFS"; IFS=','
  18946. - for flag in $args; do
  18947. - IFS="$save_ifs"
  18948. - case $flag in
  18949. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  18950. - flag="\"$flag\""
  18951. - ;;
  18952. - esac
  18953. - arg="$arg $wl$flag"
  18954. - compiler_flags="$compiler_flags $flag"
  18955. - done
  18956. - IFS="$save_ifs"
  18957. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  18958. - ;;
  18959. +This indicates that another process is trying to use the same
  18960. +temporary object file, and libtool could not work around it because
  18961. +your compiler does not support \`-c' and \`-o' together. If you
  18962. +repeat this compilation, it may succeed, by chance, but you had better
  18963. +avoid parallel builds (make -j) in this platform, or get a better
  18964. +compiler."
  18965. - -Wl,*)
  18966. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  18967. - arg=
  18968. - save_ifs="$IFS"; IFS=','
  18969. - for flag in $args; do
  18970. - IFS="$save_ifs"
  18971. - case $flag in
  18972. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  18973. - flag="\"$flag\""
  18974. - ;;
  18975. - esac
  18976. - arg="$arg $wl$flag"
  18977. - compiler_flags="$compiler_flags $wl$flag"
  18978. - linker_flags="$linker_flags $flag"
  18979. - done
  18980. - IFS="$save_ifs"
  18981. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  18982. - ;;
  18983. + $opt_dry_run || $RM $removelist
  18984. + exit $EXIT_FAILURE
  18985. + fi
  18986. - -Xcompiler)
  18987. - prev=xcompiler
  18988. - continue
  18989. - ;;
  18990. + # Just move the object if needed, then go on to compile the next one
  18991. + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  18992. + func_show_eval '$MV "$output_obj" "$lobj"' \
  18993. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  18994. + fi
  18995. - -Xlinker)
  18996. - prev=xlinker
  18997. - continue
  18998. - ;;
  18999. + # Allow error messages only from the first compilation.
  19000. + if test "$suppress_opt" = yes; then
  19001. + suppress_output=' >/dev/null 2>&1'
  19002. + fi
  19003. + fi
  19004. - -XCClinker)
  19005. - prev=xcclinker
  19006. - continue
  19007. - ;;
  19008. + # Only build a position-dependent object if we build old libraries.
  19009. + if test "$build_old_libs" = yes; then
  19010. + if test "$pic_mode" != yes; then
  19011. + # Don't build PIC code
  19012. + command="$base_compile $qsrcfile$pie_flag"
  19013. + else
  19014. + command="$base_compile $qsrcfile $pic_flag"
  19015. + fi
  19016. + if test "$compiler_c_o" = yes; then
  19017. + command="$command -o $obj"
  19018. + fi
  19019. - # Some other compiler flag.
  19020. - -* | +*)
  19021. - # Unknown arguments in both finalize_command and compile_command need
  19022. - # to be aesthetically quoted because they are evaled later.
  19023. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  19024. - case $arg in
  19025. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  19026. - arg="\"$arg\""
  19027. - ;;
  19028. - esac
  19029. - ;;
  19030. + # Suppress compiler output if we already did a PIC compilation.
  19031. + command="$command$suppress_output"
  19032. + func_show_eval_locale "$command" \
  19033. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  19034. - *.$objext)
  19035. - # A standard object.
  19036. - objs="$objs $arg"
  19037. - ;;
  19038. + if test "$need_locks" = warn &&
  19039. + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  19040. + $ECHO "\
  19041. +*** ERROR, $lockfile contains:
  19042. +`cat $lockfile 2>/dev/null`
  19043. - *.lo)
  19044. - # A libtool-controlled object.
  19045. +but it should contain:
  19046. +$srcfile
  19047. - # Check to see that this really is a libtool object.
  19048. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  19049. - pic_object=
  19050. - non_pic_object=
  19051. +This indicates that another process is trying to use the same
  19052. +temporary object file, and libtool could not work around it because
  19053. +your compiler does not support \`-c' and \`-o' together. If you
  19054. +repeat this compilation, it may succeed, by chance, but you had better
  19055. +avoid parallel builds (make -j) in this platform, or get a better
  19056. +compiler."
  19057. - # Read the .lo file
  19058. - # If there is no directory component, then add one.
  19059. - case $arg in
  19060. - */* | *\\*) . $arg ;;
  19061. - *) . ./$arg ;;
  19062. - esac
  19063. + $opt_dry_run || $RM $removelist
  19064. + exit $EXIT_FAILURE
  19065. + fi
  19066. - if test -z "$pic_object" || \
  19067. - test -z "$non_pic_object" ||
  19068. - test "$pic_object" = none && \
  19069. - test "$non_pic_object" = none; then
  19070. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  19071. - exit $EXIT_FAILURE
  19072. - fi
  19073. + # Just move the object if needed
  19074. + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  19075. + func_show_eval '$MV "$output_obj" "$obj"' \
  19076. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  19077. + fi
  19078. + fi
  19079. - # Extract subdirectory from the argument.
  19080. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  19081. - if test "X$xdir" = "X$arg"; then
  19082. - xdir=
  19083. - else
  19084. - xdir="$xdir/"
  19085. - fi
  19086. + $opt_dry_run || {
  19087. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  19088. - if test "$pic_object" != none; then
  19089. - # Prepend the subdirectory the object is found in.
  19090. - pic_object="$xdir$pic_object"
  19091. + # Unlock the critical section if it was locked
  19092. + if test "$need_locks" != no; then
  19093. + removelist=$lockfile
  19094. + $RM "$lockfile"
  19095. + fi
  19096. + }
  19097. - if test "$prev" = dlfiles; then
  19098. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  19099. - dlfiles="$dlfiles $pic_object"
  19100. - prev=
  19101. - continue
  19102. - else
  19103. - # If libtool objects are unsupported, then we need to preload.
  19104. - prev=dlprefiles
  19105. - fi
  19106. - fi
  19107. + exit $EXIT_SUCCESS
  19108. +}
  19109. - # CHECK ME: I think I busted this. -Ossama
  19110. - if test "$prev" = dlprefiles; then
  19111. - # Preload the old-style object.
  19112. - dlprefiles="$dlprefiles $pic_object"
  19113. - prev=
  19114. - fi
  19115. +$opt_help || {
  19116. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  19117. +}
  19118. - # A PIC object.
  19119. - libobjs="$libobjs $pic_object"
  19120. - arg="$pic_object"
  19121. - fi
  19122. +func_mode_help ()
  19123. +{
  19124. + # We need to display help for each of the modes.
  19125. + case $mode in
  19126. + "")
  19127. + # Generic help is extracted from the usage comments
  19128. + # at the start of this file.
  19129. + func_help
  19130. + ;;
  19131. - # Non-PIC object.
  19132. - if test "$non_pic_object" != none; then
  19133. - # Prepend the subdirectory the object is found in.
  19134. - non_pic_object="$xdir$non_pic_object"
  19135. + clean)
  19136. + $ECHO \
  19137. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  19138. - # A standard non-PIC object
  19139. - non_pic_objects="$non_pic_objects $non_pic_object"
  19140. - if test -z "$pic_object" || test "$pic_object" = none ; then
  19141. - arg="$non_pic_object"
  19142. - fi
  19143. - fi
  19144. - else
  19145. - # Only an error if not doing a dry-run.
  19146. - if test -z "$run"; then
  19147. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  19148. - exit $EXIT_FAILURE
  19149. - else
  19150. - # Dry-run case.
  19151. +Remove files from the build directory.
  19152. - # Extract subdirectory from the argument.
  19153. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  19154. - if test "X$xdir" = "X$arg"; then
  19155. - xdir=
  19156. - else
  19157. - xdir="$xdir/"
  19158. - fi
  19159. +RM is the name of the program to use to delete files associated with each FILE
  19160. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  19161. +to RM.
  19162. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  19163. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  19164. - libobjs="$libobjs $pic_object"
  19165. - non_pic_objects="$non_pic_objects $non_pic_object"
  19166. - fi
  19167. - fi
  19168. - ;;
  19169. +If FILE is a libtool library, object or program, all the files associated
  19170. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  19171. + ;;
  19172. - *.$libext)
  19173. - # An archive.
  19174. - deplibs="$deplibs $arg"
  19175. - old_deplibs="$old_deplibs $arg"
  19176. - continue
  19177. - ;;
  19178. + compile)
  19179. + $ECHO \
  19180. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  19181. - *.la)
  19182. - # A libtool-controlled library.
  19183. +Compile a source file into a libtool library object.
  19184. - if test "$prev" = dlfiles; then
  19185. - # This library was specified with -dlopen.
  19186. - dlfiles="$dlfiles $arg"
  19187. - prev=
  19188. - elif test "$prev" = dlprefiles; then
  19189. - # The library was specified with -dlpreopen.
  19190. - dlprefiles="$dlprefiles $arg"
  19191. - prev=
  19192. - else
  19193. - deplibs="$deplibs $arg"
  19194. - fi
  19195. - continue
  19196. - ;;
  19197. +This mode accepts the following additional options:
  19198. - # Some other compiler argument.
  19199. - *)
  19200. - # Unknown arguments in both finalize_command and compile_command need
  19201. - # to be aesthetically quoted because they are evaled later.
  19202. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  19203. - case $arg in
  19204. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  19205. - arg="\"$arg\""
  19206. - ;;
  19207. - esac
  19208. - ;;
  19209. - esac # arg
  19210. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  19211. + -no-suppress do not suppress compiler output for multiple passes
  19212. + -prefer-pic try to building PIC objects only
  19213. + -prefer-non-pic try to building non-PIC objects only
  19214. + -shared do not build a \`.o' file suitable for static linking
  19215. + -static only build a \`.o' file suitable for static linking
  19216. - # Now actually substitute the argument into the commands.
  19217. - if test -n "$arg"; then
  19218. - compile_command="$compile_command $arg"
  19219. - finalize_command="$finalize_command $arg"
  19220. - fi
  19221. - done # argument parsing loop
  19222. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  19223. +from the given SOURCEFILE.
  19224. - if test -n "$prev"; then
  19225. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  19226. - $echo "$help" 1>&2
  19227. - exit $EXIT_FAILURE
  19228. - fi
  19229. +The output file name is determined by removing the directory component from
  19230. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  19231. +library object suffix, \`.lo'."
  19232. + ;;
  19233. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  19234. - eval arg=\"$export_dynamic_flag_spec\"
  19235. - compile_command="$compile_command $arg"
  19236. - finalize_command="$finalize_command $arg"
  19237. - fi
  19238. + execute)
  19239. + $ECHO \
  19240. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  19241. - oldlibs=
  19242. - # calculate the name of the file, without its directory
  19243. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  19244. - libobjs_save="$libobjs"
  19245. +Automatically set library path, then run a program.
  19246. - if test -n "$shlibpath_var"; then
  19247. - # get the directories listed in $shlibpath_var
  19248. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  19249. - else
  19250. - shlib_search_path=
  19251. - fi
  19252. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  19253. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  19254. +This mode accepts the following additional options:
  19255. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  19256. - if test "X$output_objdir" = "X$output"; then
  19257. - output_objdir="$objdir"
  19258. - else
  19259. - output_objdir="$output_objdir/$objdir"
  19260. - fi
  19261. - # Create the object directory.
  19262. - if test ! -d "$output_objdir"; then
  19263. - $show "$mkdir $output_objdir"
  19264. - $run $mkdir $output_objdir
  19265. - status=$?
  19266. - if test "$status" -ne 0 && test ! -d "$output_objdir"; then
  19267. - exit $status
  19268. - fi
  19269. - fi
  19270. + -dlopen FILE add the directory containing FILE to the library path
  19271. - # Determine the type of output
  19272. - case $output in
  19273. - "")
  19274. - $echo "$modename: you must specify an output file" 1>&2
  19275. - $echo "$help" 1>&2
  19276. - exit $EXIT_FAILURE
  19277. - ;;
  19278. - *.$libext) linkmode=oldlib ;;
  19279. - *.lo | *.$objext) linkmode=obj ;;
  19280. - *.la) linkmode=lib ;;
  19281. - *) linkmode=prog ;; # Anything else should be a program.
  19282. - esac
  19283. +This mode sets the library path environment variable according to \`-dlopen'
  19284. +flags.
  19285. - case $host in
  19286. - *cygwin* | *mingw* | *pw32*)
  19287. - # don't eliminate duplications in $postdeps and $predeps
  19288. - duplicate_compiler_generated_deps=yes
  19289. - ;;
  19290. - *)
  19291. - duplicate_compiler_generated_deps=$duplicate_deps
  19292. - ;;
  19293. - esac
  19294. - specialdeplibs=
  19295. +If any of the ARGS are libtool executable wrappers, then they are translated
  19296. +into their corresponding uninstalled binary, and any of their required library
  19297. +directories are added to the library path.
  19298. - libs=
  19299. - # Find all interdependent deplibs by searching for libraries
  19300. - # that are linked more than once (e.g. -la -lb -la)
  19301. - for deplib in $deplibs; do
  19302. - if test "X$duplicate_deps" = "Xyes" ; then
  19303. - case "$libs " in
  19304. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  19305. - esac
  19306. - fi
  19307. - libs="$libs $deplib"
  19308. - done
  19309. +Then, COMMAND is executed, with ARGS as arguments."
  19310. + ;;
  19311. - if test "$linkmode" = lib; then
  19312. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  19313. + finish)
  19314. + $ECHO \
  19315. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  19316. - # Compute libraries that are listed more than once in $predeps
  19317. - # $postdeps and mark them as special (i.e., whose duplicates are
  19318. - # not to be eliminated).
  19319. - pre_post_deps=
  19320. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  19321. - for pre_post_dep in $predeps $postdeps; do
  19322. - case "$pre_post_deps " in
  19323. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  19324. - esac
  19325. - pre_post_deps="$pre_post_deps $pre_post_dep"
  19326. - done
  19327. - fi
  19328. - pre_post_deps=
  19329. - fi
  19330. +Complete the installation of libtool libraries.
  19331. - deplibs=
  19332. - newdependency_libs=
  19333. - newlib_search_path=
  19334. - need_relink=no # whether we're linking any uninstalled libtool libraries
  19335. - notinst_deplibs= # not-installed libtool libraries
  19336. - notinst_path= # paths that contain not-installed libtool libraries
  19337. - case $linkmode in
  19338. - lib)
  19339. - passes="conv link"
  19340. - for file in $dlfiles $dlprefiles; do
  19341. - case $file in
  19342. - *.la) ;;
  19343. - *)
  19344. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  19345. - exit $EXIT_FAILURE
  19346. - ;;
  19347. - esac
  19348. - done
  19349. - ;;
  19350. - prog)
  19351. - compile_deplibs=
  19352. - finalize_deplibs=
  19353. - alldeplibs=no
  19354. - newdlfiles=
  19355. - newdlprefiles=
  19356. - passes="conv scan dlopen dlpreopen link"
  19357. - ;;
  19358. - *) passes="conv"
  19359. - ;;
  19360. - esac
  19361. - for pass in $passes; do
  19362. - if test "$linkmode,$pass" = "lib,link" ||
  19363. - test "$linkmode,$pass" = "prog,scan"; then
  19364. - libs="$deplibs"
  19365. - deplibs=
  19366. - fi
  19367. - if test "$linkmode" = prog; then
  19368. - case $pass in
  19369. - dlopen) libs="$dlfiles" ;;
  19370. - dlpreopen) libs="$dlprefiles" ;;
  19371. - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  19372. - esac
  19373. - fi
  19374. - if test "$pass" = dlopen; then
  19375. - # Collect dlpreopened libraries
  19376. - save_deplibs="$deplibs"
  19377. - deplibs=
  19378. - fi
  19379. - for deplib in $libs; do
  19380. - lib=
  19381. - found=no
  19382. - case $deplib in
  19383. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  19384. - if test "$linkmode,$pass" = "prog,link"; then
  19385. - compile_deplibs="$deplib $compile_deplibs"
  19386. - finalize_deplibs="$deplib $finalize_deplibs"
  19387. - else
  19388. - deplibs="$deplib $deplibs"
  19389. - fi
  19390. - continue
  19391. - ;;
  19392. - -l*)
  19393. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  19394. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  19395. - continue
  19396. - fi
  19397. - if test "$pass" = conv; then
  19398. - deplibs="$deplib $deplibs"
  19399. - continue
  19400. - fi
  19401. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  19402. - for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  19403. - for search_ext in .la $std_shrext .so .a; do
  19404. - # Search the libtool library
  19405. - lib="$searchdir/lib${name}${search_ext}"
  19406. - if test -f "$lib"; then
  19407. - if test "$search_ext" = ".la"; then
  19408. - found=yes
  19409. - else
  19410. - found=no
  19411. - fi
  19412. - break 2
  19413. - fi
  19414. - done
  19415. - done
  19416. - if test "$found" != yes; then
  19417. - # deplib doesn't seem to be a libtool library
  19418. - if test "$linkmode,$pass" = "prog,link"; then
  19419. - compile_deplibs="$deplib $compile_deplibs"
  19420. - finalize_deplibs="$deplib $finalize_deplibs"
  19421. - else
  19422. - deplibs="$deplib $deplibs"
  19423. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  19424. - fi
  19425. - continue
  19426. - else # deplib is a libtool library
  19427. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  19428. - # We need to do some special things here, and not later.
  19429. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  19430. - case " $predeps $postdeps " in
  19431. - *" $deplib "*)
  19432. - if (${SED} -e '2q' $lib |
  19433. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  19434. - library_names=
  19435. - old_library=
  19436. - case $lib in
  19437. - */* | *\\*) . $lib ;;
  19438. - *) . ./$lib ;;
  19439. - esac
  19440. - for l in $old_library $library_names; do
  19441. - ll="$l"
  19442. - done
  19443. - if test "X$ll" = "X$old_library" ; then # only static version available
  19444. - found=no
  19445. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  19446. - test "X$ladir" = "X$lib" && ladir="."
  19447. - lib=$ladir/$old_library
  19448. - if test "$linkmode,$pass" = "prog,link"; then
  19449. - compile_deplibs="$deplib $compile_deplibs"
  19450. - finalize_deplibs="$deplib $finalize_deplibs"
  19451. - else
  19452. - deplibs="$deplib $deplibs"
  19453. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  19454. - fi
  19455. - continue
  19456. - fi
  19457. - fi
  19458. - ;;
  19459. - *) ;;
  19460. - esac
  19461. - fi
  19462. - fi
  19463. - ;; # -l
  19464. - -L*)
  19465. - case $linkmode in
  19466. - lib)
  19467. - deplibs="$deplib $deplibs"
  19468. - test "$pass" = conv && continue
  19469. - newdependency_libs="$deplib $newdependency_libs"
  19470. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  19471. - ;;
  19472. - prog)
  19473. - if test "$pass" = conv; then
  19474. - deplibs="$deplib $deplibs"
  19475. - continue
  19476. - fi
  19477. - if test "$pass" = scan; then
  19478. - deplibs="$deplib $deplibs"
  19479. - else
  19480. - compile_deplibs="$deplib $compile_deplibs"
  19481. - finalize_deplibs="$deplib $finalize_deplibs"
  19482. - fi
  19483. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  19484. - ;;
  19485. - *)
  19486. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  19487. - ;;
  19488. - esac # linkmode
  19489. - continue
  19490. - ;; # -L
  19491. - -R*)
  19492. - if test "$pass" = link; then
  19493. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  19494. - # Make sure the xrpath contains only unique directories.
  19495. - case "$xrpath " in
  19496. - *" $dir "*) ;;
  19497. - *) xrpath="$xrpath $dir" ;;
  19498. - esac
  19499. - fi
  19500. - deplibs="$deplib $deplibs"
  19501. - continue
  19502. - ;;
  19503. - *.la) lib="$deplib" ;;
  19504. - *.$libext)
  19505. - if test "$pass" = conv; then
  19506. - deplibs="$deplib $deplibs"
  19507. - continue
  19508. - fi
  19509. - case $linkmode in
  19510. - lib)
  19511. - if test "$deplibs_check_method" != pass_all; then
  19512. - $echo
  19513. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  19514. - $echo "*** I have the capability to make that library automatically link in when"
  19515. - $echo "*** you link to this library. But I can only do this if you have a"
  19516. - $echo "*** shared version of the library, which you do not appear to have"
  19517. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  19518. - $echo "*** that it is just a static archive that I should not used here."
  19519. - else
  19520. - $echo
  19521. - $echo "*** Warning: Linking the shared library $output against the"
  19522. - $echo "*** static library $deplib is not portable!"
  19523. - deplibs="$deplib $deplibs"
  19524. - fi
  19525. - continue
  19526. - ;;
  19527. - prog)
  19528. - if test "$pass" != link; then
  19529. - deplibs="$deplib $deplibs"
  19530. - else
  19531. - compile_deplibs="$deplib $compile_deplibs"
  19532. - finalize_deplibs="$deplib $finalize_deplibs"
  19533. - fi
  19534. - continue
  19535. - ;;
  19536. - esac # linkmode
  19537. - ;; # *.$libext
  19538. - *.lo | *.$objext)
  19539. - if test "$pass" = conv; then
  19540. - deplibs="$deplib $deplibs"
  19541. - elif test "$linkmode" = prog; then
  19542. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  19543. - # If there is no dlopen support or we're linking statically,
  19544. - # we need to preload.
  19545. - newdlprefiles="$newdlprefiles $deplib"
  19546. - compile_deplibs="$deplib $compile_deplibs"
  19547. - finalize_deplibs="$deplib $finalize_deplibs"
  19548. - else
  19549. - newdlfiles="$newdlfiles $deplib"
  19550. - fi
  19551. - fi
  19552. - continue
  19553. - ;;
  19554. - %DEPLIBS%)
  19555. - alldeplibs=yes
  19556. - continue
  19557. - ;;
  19558. - esac # case $deplib
  19559. - if test "$found" = yes || test -f "$lib"; then :
  19560. - else
  19561. - $echo "$modename: cannot find the library \`$lib'" 1>&2
  19562. - exit $EXIT_FAILURE
  19563. - fi
  19564. +Each LIBDIR is a directory that contains libtool libraries.
  19565. - # Check to see that this really is a libtool archive.
  19566. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  19567. - else
  19568. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  19569. - exit $EXIT_FAILURE
  19570. - fi
  19571. +The commands that this mode executes may require superuser privileges. Use
  19572. +the \`--dry-run' option if you just want to see what would be executed."
  19573. + ;;
  19574. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  19575. - test "X$ladir" = "X$lib" && ladir="."
  19576. + install)
  19577. + $ECHO \
  19578. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  19579. - dlname=
  19580. - dlopen=
  19581. - dlpreopen=
  19582. - libdir=
  19583. - library_names=
  19584. - old_library=
  19585. - # If the library was installed with an old release of libtool,
  19586. - # it will not redefine variables installed, or shouldnotlink
  19587. - installed=yes
  19588. - shouldnotlink=no
  19589. +Install executables or libraries.
  19590. - # Read the .la file
  19591. - case $lib in
  19592. - */* | *\\*) . $lib ;;
  19593. - *) . ./$lib ;;
  19594. - esac
  19595. +INSTALL-COMMAND is the installation command. The first component should be
  19596. +either the \`install' or \`cp' program.
  19597. - if test "$linkmode,$pass" = "lib,link" ||
  19598. - test "$linkmode,$pass" = "prog,scan" ||
  19599. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  19600. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  19601. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  19602. - fi
  19603. +The following components of INSTALL-COMMAND are treated specially:
  19604. - if test "$pass" = conv; then
  19605. - # Only check for convenience libraries
  19606. - deplibs="$lib $deplibs"
  19607. - if test -z "$libdir"; then
  19608. - if test -z "$old_library"; then
  19609. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  19610. - exit $EXIT_FAILURE
  19611. - fi
  19612. - # It is a libtool convenience library, so add in its objects.
  19613. - convenience="$convenience $ladir/$objdir/$old_library"
  19614. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  19615. - tmp_libs=
  19616. - for deplib in $dependency_libs; do
  19617. - deplibs="$deplib $deplibs"
  19618. - if test "X$duplicate_deps" = "Xyes" ; then
  19619. - case "$tmp_libs " in
  19620. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  19621. - esac
  19622. - fi
  19623. - tmp_libs="$tmp_libs $deplib"
  19624. - done
  19625. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  19626. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  19627. - exit $EXIT_FAILURE
  19628. - fi
  19629. - continue
  19630. - fi # $pass = conv
  19631. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  19632. +The rest of the components are interpreted as arguments to that command (only
  19633. +BSD-compatible install options are recognized)."
  19634. + ;;
  19635. - # Get the name of the library we link against.
  19636. - linklib=
  19637. - for l in $old_library $library_names; do
  19638. - linklib="$l"
  19639. - done
  19640. - if test -z "$linklib"; then
  19641. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  19642. - exit $EXIT_FAILURE
  19643. - fi
  19644. + link)
  19645. + $ECHO \
  19646. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  19647. - # This library was specified with -dlopen.
  19648. - if test "$pass" = dlopen; then
  19649. - if test -z "$libdir"; then
  19650. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  19651. - exit $EXIT_FAILURE
  19652. - fi
  19653. - if test -z "$dlname" ||
  19654. - test "$dlopen_support" != yes ||
  19655. - test "$build_libtool_libs" = no; then
  19656. - # If there is no dlname, no dlopen support or we're linking
  19657. - # statically, we need to preload. We also need to preload any
  19658. - # dependent libraries so libltdl's deplib preloader doesn't
  19659. - # bomb out in the load deplibs phase.
  19660. - dlprefiles="$dlprefiles $lib $dependency_libs"
  19661. - else
  19662. - newdlfiles="$newdlfiles $lib"
  19663. - fi
  19664. - continue
  19665. - fi # $pass = dlopen
  19666. +Link object files or libraries together to form another library, or to
  19667. +create an executable program.
  19668. - # We need an absolute path.
  19669. - case $ladir in
  19670. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  19671. - *)
  19672. - abs_ladir=`cd "$ladir" && pwd`
  19673. - if test -z "$abs_ladir"; then
  19674. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  19675. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  19676. - abs_ladir="$ladir"
  19677. - fi
  19678. - ;;
  19679. - esac
  19680. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  19681. +LINK-COMMAND is a command using the C compiler that you would use to create
  19682. +a program from several object files.
  19683. - # Find the relevant object directory and library name.
  19684. - if test "X$installed" = Xyes; then
  19685. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  19686. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  19687. - dir="$ladir"
  19688. - absdir="$abs_ladir"
  19689. - libdir="$abs_ladir"
  19690. - else
  19691. - dir="$libdir"
  19692. - absdir="$libdir"
  19693. - fi
  19694. - else
  19695. - dir="$ladir/$objdir"
  19696. - absdir="$abs_ladir/$objdir"
  19697. - # Remove this search path later
  19698. - notinst_path="$notinst_path $abs_ladir"
  19699. - fi # $installed = yes
  19700. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  19701. +The following components of LINK-COMMAND are treated specially:
  19702. - # This library was specified with -dlpreopen.
  19703. - if test "$pass" = dlpreopen; then
  19704. - if test -z "$libdir"; then
  19705. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  19706. - exit $EXIT_FAILURE
  19707. - fi
  19708. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  19709. - # are required to link).
  19710. - if test -n "$old_library"; then
  19711. - newdlprefiles="$newdlprefiles $dir/$old_library"
  19712. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  19713. - elif test -n "$dlname"; then
  19714. - newdlprefiles="$newdlprefiles $dir/$dlname"
  19715. - else
  19716. - newdlprefiles="$newdlprefiles $dir/$linklib"
  19717. - fi
  19718. - fi # $pass = dlpreopen
  19719. + -all-static do not do any dynamic linking at all
  19720. + -avoid-version do not add a version suffix if possible
  19721. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  19722. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  19723. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  19724. + -export-symbols SYMFILE
  19725. + try to export only the symbols listed in SYMFILE
  19726. + -export-symbols-regex REGEX
  19727. + try to export only the symbols matching REGEX
  19728. + -LLIBDIR search LIBDIR for required installed libraries
  19729. + -lNAME OUTPUT-FILE requires the installed library libNAME
  19730. + -module build a library that can dlopened
  19731. + -no-fast-install disable the fast-install mode
  19732. + -no-install link a not-installable executable
  19733. + -no-undefined declare that a library does not refer to external symbols
  19734. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  19735. + -objectlist FILE Use a list of object files found in FILE to specify objects
  19736. + -precious-files-regex REGEX
  19737. + don't remove output files matching REGEX
  19738. + -release RELEASE specify package release information
  19739. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  19740. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  19741. + -shared only do dynamic linking of libtool libraries
  19742. + -shrext SUFFIX override the standard shared library file extension
  19743. + -static do not do any dynamic linking of uninstalled libtool libraries
  19744. + -static-libtool-libs
  19745. + do not do any dynamic linking of libtool libraries
  19746. + -version-info CURRENT[:REVISION[:AGE]]
  19747. + specify library version info [each variable defaults to 0]
  19748. + -weak LIBNAME declare that the target provides the LIBNAME interface
  19749. - if test -z "$libdir"; then
  19750. - # Link the convenience library
  19751. - if test "$linkmode" = lib; then
  19752. - deplibs="$dir/$old_library $deplibs"
  19753. - elif test "$linkmode,$pass" = "prog,link"; then
  19754. - compile_deplibs="$dir/$old_library $compile_deplibs"
  19755. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  19756. - else
  19757. - deplibs="$lib $deplibs" # used for prog,scan pass
  19758. - fi
  19759. - continue
  19760. - fi
  19761. +All other options (arguments beginning with \`-') are ignored.
  19762. +Every other argument is treated as a filename. Files ending in \`.la' are
  19763. +treated as uninstalled libtool libraries, other files are standard or library
  19764. +object files.
  19765. - if test "$linkmode" = prog && test "$pass" != link; then
  19766. - newlib_search_path="$newlib_search_path $ladir"
  19767. - deplibs="$lib $deplibs"
  19768. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  19769. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  19770. +required, except when creating a convenience library.
  19771. - linkalldeplibs=no
  19772. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  19773. - test "$build_libtool_libs" = no; then
  19774. - linkalldeplibs=yes
  19775. - fi
  19776. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  19777. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  19778. - tmp_libs=
  19779. - for deplib in $dependency_libs; do
  19780. - case $deplib in
  19781. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  19782. - esac
  19783. - # Need to link against all dependency_libs?
  19784. - if test "$linkalldeplibs" = yes; then
  19785. - deplibs="$deplib $deplibs"
  19786. - else
  19787. - # Need to hardcode shared library paths
  19788. - # or/and link against static libraries
  19789. - newdependency_libs="$deplib $newdependency_libs"
  19790. - fi
  19791. - if test "X$duplicate_deps" = "Xyes" ; then
  19792. - case "$tmp_libs " in
  19793. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  19794. - esac
  19795. - fi
  19796. - tmp_libs="$tmp_libs $deplib"
  19797. - done # for deplib
  19798. - continue
  19799. - fi # $linkmode = prog...
  19800. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  19801. +is created, otherwise an executable program is created."
  19802. + ;;
  19803. - if test "$linkmode,$pass" = "prog,link"; then
  19804. - if test -n "$library_names" &&
  19805. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  19806. - # We need to hardcode the library path
  19807. - if test -n "$shlibpath_var"; then
  19808. - # Make sure the rpath contains only unique directories.
  19809. - case "$temp_rpath " in
  19810. - *" $dir "*) ;;
  19811. - *" $absdir "*) ;;
  19812. - *) temp_rpath="$temp_rpath $dir" ;;
  19813. - esac
  19814. - fi
  19815. + uninstall)
  19816. + $ECHO \
  19817. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  19818. - # Hardcode the library path.
  19819. - # Skip directories that are in the system default run-time
  19820. - # search path.
  19821. - case " $sys_lib_dlsearch_path " in
  19822. - *" $absdir "*) ;;
  19823. - *)
  19824. - case "$compile_rpath " in
  19825. - *" $absdir "*) ;;
  19826. - *) compile_rpath="$compile_rpath $absdir"
  19827. - esac
  19828. - ;;
  19829. - esac
  19830. - case " $sys_lib_dlsearch_path " in
  19831. - *" $libdir "*) ;;
  19832. - *)
  19833. - case "$finalize_rpath " in
  19834. - *" $libdir "*) ;;
  19835. - *) finalize_rpath="$finalize_rpath $libdir"
  19836. - esac
  19837. - ;;
  19838. - esac
  19839. - fi # $linkmode,$pass = prog,link...
  19840. +Remove libraries from an installation directory.
  19841. - if test "$alldeplibs" = yes &&
  19842. - { test "$deplibs_check_method" = pass_all ||
  19843. - { test "$build_libtool_libs" = yes &&
  19844. - test -n "$library_names"; }; }; then
  19845. - # We only need to search for static libraries
  19846. - continue
  19847. - fi
  19848. - fi
  19849. +RM is the name of the program to use to delete files associated with each FILE
  19850. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  19851. +to RM.
  19852. - link_static=no # Whether the deplib will be linked statically
  19853. - if test -n "$library_names" &&
  19854. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  19855. - if test "$installed" = no; then
  19856. - notinst_deplibs="$notinst_deplibs $lib"
  19857. - need_relink=yes
  19858. - fi
  19859. - # This is a shared library
  19860. +If FILE is a libtool library, all the files associated with it are deleted.
  19861. +Otherwise, only FILE itself is deleted using RM."
  19862. + ;;
  19863. - # Warn about portability, can't link against -module's on
  19864. - # some systems (darwin)
  19865. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  19866. - $echo
  19867. - if test "$linkmode" = prog; then
  19868. - $echo "*** Warning: Linking the executable $output against the loadable module"
  19869. - else
  19870. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  19871. - fi
  19872. - $echo "*** $linklib is not portable!"
  19873. - fi
  19874. - if test "$linkmode" = lib &&
  19875. - test "$hardcode_into_libs" = yes; then
  19876. - # Hardcode the library path.
  19877. - # Skip directories that are in the system default run-time
  19878. - # search path.
  19879. - case " $sys_lib_dlsearch_path " in
  19880. - *" $absdir "*) ;;
  19881. - *)
  19882. - case "$compile_rpath " in
  19883. - *" $absdir "*) ;;
  19884. - *) compile_rpath="$compile_rpath $absdir"
  19885. - esac
  19886. - ;;
  19887. - esac
  19888. - case " $sys_lib_dlsearch_path " in
  19889. - *" $libdir "*) ;;
  19890. - *)
  19891. - case "$finalize_rpath " in
  19892. - *" $libdir "*) ;;
  19893. - *) finalize_rpath="$finalize_rpath $libdir"
  19894. - esac
  19895. - ;;
  19896. - esac
  19897. - fi
  19898. + *)
  19899. + func_fatal_help "invalid operation mode \`$mode'"
  19900. + ;;
  19901. + esac
  19902. - if test -n "$old_archive_from_expsyms_cmds"; then
  19903. - # figure out the soname
  19904. - set dummy $library_names
  19905. - realname="$2"
  19906. - shift; shift
  19907. - libname=`eval \\$echo \"$libname_spec\"`
  19908. - # use dlname if we got it. it's perfectly good, no?
  19909. - if test -n "$dlname"; then
  19910. - soname="$dlname"
  19911. - elif test -n "$soname_spec"; then
  19912. - # bleh windows
  19913. - case $host in
  19914. - *cygwin* | mingw*)
  19915. - major=`expr $current - $age`
  19916. - versuffix="-$major"
  19917. - ;;
  19918. - esac
  19919. - eval soname=\"$soname_spec\"
  19920. - else
  19921. - soname="$realname"
  19922. - fi
  19923. + $ECHO
  19924. + $ECHO "Try \`$progname --help' for more information about other modes."
  19925. - # Make a new name for the extract_expsyms_cmds to use
  19926. - soroot="$soname"
  19927. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  19928. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  19929. + exit $?
  19930. +}
  19931. - # If the library has no export list, then create one now
  19932. - if test -f "$output_objdir/$soname-def"; then :
  19933. - else
  19934. - $show "extracting exported symbol list from \`$soname'"
  19935. - save_ifs="$IFS"; IFS='~'
  19936. - cmds=$extract_expsyms_cmds
  19937. - for cmd in $cmds; do
  19938. - IFS="$save_ifs"
  19939. - eval cmd=\"$cmd\"
  19940. - $show "$cmd"
  19941. - $run eval "$cmd" || exit $?
  19942. - done
  19943. - IFS="$save_ifs"
  19944. - fi
  19945. + # Now that we've collected a possible --mode arg, show help if necessary
  19946. + $opt_help && func_mode_help
  19947. - # Create $newlib
  19948. - if test -f "$output_objdir/$newlib"; then :; else
  19949. - $show "generating import library for \`$soname'"
  19950. - save_ifs="$IFS"; IFS='~'
  19951. - cmds=$old_archive_from_expsyms_cmds
  19952. - for cmd in $cmds; do
  19953. - IFS="$save_ifs"
  19954. - eval cmd=\"$cmd\"
  19955. - $show "$cmd"
  19956. - $run eval "$cmd" || exit $?
  19957. - done
  19958. - IFS="$save_ifs"
  19959. - fi
  19960. - # make sure the library variables are pointing to the new library
  19961. - dir=$output_objdir
  19962. - linklib=$newlib
  19963. - fi # test -n "$old_archive_from_expsyms_cmds"
  19964. - if test "$linkmode" = prog || test "$mode" != relink; then
  19965. - add_shlibpath=
  19966. - add_dir=
  19967. - add=
  19968. - lib_linked=yes
  19969. - case $hardcode_action in
  19970. - immediate | unsupported)
  19971. - if test "$hardcode_direct" = no; then
  19972. - add="$dir/$linklib"
  19973. - case $host in
  19974. - *-*-sco3.2v5* ) add_dir="-L$dir" ;;
  19975. - *-*-darwin* )
  19976. - # if the lib is a module then we can not link against
  19977. - # it, someone is ignoring the new warnings I added
  19978. - if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
  19979. - $echo "** Warning, lib $linklib is a module, not a shared library"
  19980. - if test -z "$old_library" ; then
  19981. - $echo
  19982. - $echo "** And there doesn't seem to be a static archive available"
  19983. - $echo "** The link will probably fail, sorry"
  19984. - else
  19985. - add="$dir/$old_library"
  19986. - fi
  19987. - fi
  19988. - esac
  19989. - elif test "$hardcode_minus_L" = no; then
  19990. - case $host in
  19991. - *-*-sunos*) add_shlibpath="$dir" ;;
  19992. - esac
  19993. - add_dir="-L$dir"
  19994. - add="-l$name"
  19995. - elif test "$hardcode_shlibpath_var" = no; then
  19996. - add_shlibpath="$dir"
  19997. - add="-l$name"
  19998. - else
  19999. - lib_linked=no
  20000. - fi
  20001. - ;;
  20002. - relink)
  20003. - if test "$hardcode_direct" = yes; then
  20004. - add="$dir/$linklib"
  20005. - elif test "$hardcode_minus_L" = yes; then
  20006. - add_dir="-L$dir"
  20007. - # Try looking first in the location we're being installed to.
  20008. - if test -n "$inst_prefix_dir"; then
  20009. - case "$libdir" in
  20010. - [\\/]*)
  20011. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  20012. - ;;
  20013. - esac
  20014. - fi
  20015. - add="-l$name"
  20016. - elif test "$hardcode_shlibpath_var" = yes; then
  20017. - add_shlibpath="$dir"
  20018. - add="-l$name"
  20019. - else
  20020. - lib_linked=no
  20021. - fi
  20022. - ;;
  20023. - *) lib_linked=no ;;
  20024. - esac
  20025. +# func_mode_execute arg...
  20026. +func_mode_execute ()
  20027. +{
  20028. + $opt_debug
  20029. + # The first argument is the command name.
  20030. + cmd="$nonopt"
  20031. + test -z "$cmd" && \
  20032. + func_fatal_help "you must specify a COMMAND"
  20033. - if test "$lib_linked" != yes; then
  20034. - $echo "$modename: configuration error: unsupported hardcode properties"
  20035. - exit $EXIT_FAILURE
  20036. - fi
  20037. + # Handle -dlopen flags immediately.
  20038. + for file in $execute_dlfiles; do
  20039. + test -f "$file" \
  20040. + || func_fatal_help "\`$file' is not a file"
  20041. - if test -n "$add_shlibpath"; then
  20042. - case :$compile_shlibpath: in
  20043. - *":$add_shlibpath:"*) ;;
  20044. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  20045. - esac
  20046. - fi
  20047. - if test "$linkmode" = prog; then
  20048. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  20049. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  20050. - else
  20051. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  20052. - test -n "$add" && deplibs="$add $deplibs"
  20053. - if test "$hardcode_direct" != yes && \
  20054. - test "$hardcode_minus_L" != yes && \
  20055. - test "$hardcode_shlibpath_var" = yes; then
  20056. - case :$finalize_shlibpath: in
  20057. - *":$libdir:"*) ;;
  20058. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  20059. - esac
  20060. - fi
  20061. - fi
  20062. - fi
  20063. + dir=
  20064. + case $file in
  20065. + *.la)
  20066. + # Check to see that this really is a libtool archive.
  20067. + func_lalib_unsafe_p "$file" \
  20068. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  20069. - if test "$linkmode" = prog || test "$mode" = relink; then
  20070. - add_shlibpath=
  20071. - add_dir=
  20072. - add=
  20073. - # Finalize command for both is simple: just hardcode it.
  20074. - if test "$hardcode_direct" = yes; then
  20075. - add="$libdir/$linklib"
  20076. - elif test "$hardcode_minus_L" = yes; then
  20077. - add_dir="-L$libdir"
  20078. - add="-l$name"
  20079. - elif test "$hardcode_shlibpath_var" = yes; then
  20080. - case :$finalize_shlibpath: in
  20081. - *":$libdir:"*) ;;
  20082. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  20083. - esac
  20084. - add="-l$name"
  20085. - elif test "$hardcode_automatic" = yes; then
  20086. - if test -n "$inst_prefix_dir" &&
  20087. - test -f "$inst_prefix_dir$libdir/$linklib" ; then
  20088. - add="$inst_prefix_dir$libdir/$linklib"
  20089. - else
  20090. - add="$libdir/$linklib"
  20091. - fi
  20092. - else
  20093. - # We cannot seem to hardcode it, guess we'll fake it.
  20094. - add_dir="-L$libdir"
  20095. - # Try looking first in the location we're being installed to.
  20096. - if test -n "$inst_prefix_dir"; then
  20097. - case "$libdir" in
  20098. - [\\/]*)
  20099. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  20100. - ;;
  20101. - esac
  20102. - fi
  20103. - add="-l$name"
  20104. - fi
  20105. + # Read the libtool library.
  20106. + dlname=
  20107. + library_names=
  20108. + func_source "$file"
  20109. - if test "$linkmode" = prog; then
  20110. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  20111. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  20112. - else
  20113. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  20114. - test -n "$add" && deplibs="$add $deplibs"
  20115. - fi
  20116. - fi
  20117. - elif test "$linkmode" = prog; then
  20118. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  20119. - # is not unsupported. This is valid on all known static and
  20120. - # shared platforms.
  20121. - if test "$hardcode_direct" != unsupported; then
  20122. - test -n "$old_library" && linklib="$old_library"
  20123. - compile_deplibs="$dir/$linklib $compile_deplibs"
  20124. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  20125. - else
  20126. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  20127. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  20128. - fi
  20129. - elif test "$build_libtool_libs" = yes; then
  20130. - # Not a shared library
  20131. - if test "$deplibs_check_method" != pass_all; then
  20132. - # We're trying link a shared library against a static one
  20133. - # but the system doesn't support it.
  20134. + # Skip this library if it cannot be dlopened.
  20135. + if test -z "$dlname"; then
  20136. + # Warn if it was a shared library.
  20137. + test -n "$library_names" && \
  20138. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  20139. + continue
  20140. + fi
  20141. - # Just print a warning and add the library to dependency_libs so
  20142. - # that the program can be linked against the static library.
  20143. - $echo
  20144. - $echo "*** Warning: This system can not link to static lib archive $lib."
  20145. - $echo "*** I have the capability to make that library automatically link in when"
  20146. - $echo "*** you link to this library. But I can only do this if you have a"
  20147. - $echo "*** shared version of the library, which you do not appear to have."
  20148. - if test "$module" = yes; then
  20149. - $echo "*** But as you try to build a module library, libtool will still create "
  20150. - $echo "*** a static module, that should work as long as the dlopening application"
  20151. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  20152. - if test -z "$global_symbol_pipe"; then
  20153. - $echo
  20154. - $echo "*** However, this would only work if libtool was able to extract symbol"
  20155. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  20156. - $echo "*** not find such a program. So, this module is probably useless."
  20157. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  20158. - fi
  20159. - if test "$build_old_libs" = no; then
  20160. - build_libtool_libs=module
  20161. - build_old_libs=yes
  20162. - else
  20163. - build_libtool_libs=no
  20164. - fi
  20165. - fi
  20166. - else
  20167. - convenience="$convenience $dir/$old_library"
  20168. - old_convenience="$old_convenience $dir/$old_library"
  20169. - deplibs="$dir/$old_library $deplibs"
  20170. - link_static=yes
  20171. - fi
  20172. - fi # link shared/static library?
  20173. + func_dirname "$file" "" "."
  20174. + dir="$func_dirname_result"
  20175. - if test "$linkmode" = lib; then
  20176. - if test -n "$dependency_libs" &&
  20177. - { test "$hardcode_into_libs" != yes ||
  20178. - test "$build_old_libs" = yes ||
  20179. - test "$link_static" = yes; }; then
  20180. - # Extract -R from dependency_libs
  20181. - temp_deplibs=
  20182. - for libdir in $dependency_libs; do
  20183. - case $libdir in
  20184. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  20185. - case " $xrpath " in
  20186. - *" $temp_xrpath "*) ;;
  20187. - *) xrpath="$xrpath $temp_xrpath";;
  20188. - esac;;
  20189. - *) temp_deplibs="$temp_deplibs $libdir";;
  20190. - esac
  20191. - done
  20192. - dependency_libs="$temp_deplibs"
  20193. + if test -f "$dir/$objdir/$dlname"; then
  20194. + dir="$dir/$objdir"
  20195. + else
  20196. + if test ! -f "$dir/$dlname"; then
  20197. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  20198. fi
  20199. + fi
  20200. + ;;
  20201. - newlib_search_path="$newlib_search_path $absdir"
  20202. - # Link against this library
  20203. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  20204. - # ... and its dependency_libs
  20205. - tmp_libs=
  20206. - for deplib in $dependency_libs; do
  20207. - newdependency_libs="$deplib $newdependency_libs"
  20208. - if test "X$duplicate_deps" = "Xyes" ; then
  20209. - case "$tmp_libs " in
  20210. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  20211. - esac
  20212. - fi
  20213. - tmp_libs="$tmp_libs $deplib"
  20214. - done
  20215. + *.lo)
  20216. + # Just add the directory containing the .lo file.
  20217. + func_dirname "$file" "" "."
  20218. + dir="$func_dirname_result"
  20219. + ;;
  20220. - if test "$link_all_deplibs" != no; then
  20221. - # Add the search paths of all dependency libraries
  20222. - for deplib in $dependency_libs; do
  20223. - case $deplib in
  20224. - -L*) path="$deplib" ;;
  20225. - *.la)
  20226. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  20227. - test "X$dir" = "X$deplib" && dir="."
  20228. - # We need an absolute path.
  20229. - case $dir in
  20230. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  20231. - *)
  20232. - absdir=`cd "$dir" && pwd`
  20233. - if test -z "$absdir"; then
  20234. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  20235. - absdir="$dir"
  20236. - fi
  20237. - ;;
  20238. - esac
  20239. - if grep "^installed=no" $deplib > /dev/null; then
  20240. - path="$absdir/$objdir"
  20241. - else
  20242. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  20243. - if test -z "$libdir"; then
  20244. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  20245. - exit $EXIT_FAILURE
  20246. - fi
  20247. - if test "$absdir" != "$libdir"; then
  20248. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  20249. - fi
  20250. - path="$absdir"
  20251. - fi
  20252. - depdepl=
  20253. - case $host in
  20254. - *-*-darwin*)
  20255. - # we do not want to link against static libs,
  20256. - # but need to link against shared
  20257. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  20258. - if test -n "$deplibrary_names" ; then
  20259. - for tmp in $deplibrary_names ; do
  20260. - depdepl=$tmp
  20261. - done
  20262. - if test -f "$path/$depdepl" ; then
  20263. - depdepl="$path/$depdepl"
  20264. - fi
  20265. - # do not add paths which are already there
  20266. - case " $newlib_search_path " in
  20267. - *" $path "*) ;;
  20268. - *) newlib_search_path="$newlib_search_path $path";;
  20269. - esac
  20270. - fi
  20271. - path=""
  20272. - ;;
  20273. - *)
  20274. - path="-L$path"
  20275. - ;;
  20276. - esac
  20277. - ;;
  20278. - -l*)
  20279. - case $host in
  20280. - *-*-darwin*)
  20281. - # Again, we only want to link against shared libraries
  20282. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  20283. - for tmp in $newlib_search_path ; do
  20284. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  20285. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  20286. - break
  20287. - fi
  20288. - done
  20289. - path=""
  20290. - ;;
  20291. - *) continue ;;
  20292. - esac
  20293. - ;;
  20294. - *) continue ;;
  20295. - esac
  20296. - case " $deplibs " in
  20297. - *" $depdepl "*) ;;
  20298. - *) deplibs="$depdepl $deplibs" ;;
  20299. - esac
  20300. - case " $deplibs " in
  20301. - *" $path "*) ;;
  20302. - *) deplibs="$deplibs $path" ;;
  20303. - esac
  20304. - done
  20305. - fi # link_all_deplibs != no
  20306. - fi # linkmode = lib
  20307. - done # for deplib in $libs
  20308. - dependency_libs="$newdependency_libs"
  20309. - if test "$pass" = dlpreopen; then
  20310. - # Link the dlpreopened libraries before other libraries
  20311. - for deplib in $save_deplibs; do
  20312. - deplibs="$deplib $deplibs"
  20313. - done
  20314. - fi
  20315. - if test "$pass" != dlopen; then
  20316. - if test "$pass" != conv; then
  20317. - # Make sure lib_search_path contains only unique directories.
  20318. - lib_search_path=
  20319. - for dir in $newlib_search_path; do
  20320. - case "$lib_search_path " in
  20321. - *" $dir "*) ;;
  20322. - *) lib_search_path="$lib_search_path $dir" ;;
  20323. - esac
  20324. - done
  20325. - newlib_search_path=
  20326. - fi
  20327. -
  20328. - if test "$linkmode,$pass" != "prog,link"; then
  20329. - vars="deplibs"
  20330. - else
  20331. - vars="compile_deplibs finalize_deplibs"
  20332. - fi
  20333. - for var in $vars dependency_libs; do
  20334. - # Add libraries to $var in reverse order
  20335. - eval tmp_libs=\"\$$var\"
  20336. - new_libs=
  20337. - for deplib in $tmp_libs; do
  20338. - # FIXME: Pedantically, this is the right thing to do, so
  20339. - # that some nasty dependency loop isn't accidentally
  20340. - # broken:
  20341. - #new_libs="$deplib $new_libs"
  20342. - # Pragmatically, this seems to cause very few problems in
  20343. - # practice:
  20344. - case $deplib in
  20345. - -L*) new_libs="$deplib $new_libs" ;;
  20346. - -R*) ;;
  20347. - *)
  20348. - # And here is the reason: when a library appears more
  20349. - # than once as an explicit dependence of a library, or
  20350. - # is implicitly linked in more than once by the
  20351. - # compiler, it is considered special, and multiple
  20352. - # occurrences thereof are not removed. Compare this
  20353. - # with having the same library being listed as a
  20354. - # dependency of multiple other libraries: in this case,
  20355. - # we know (pedantically, we assume) the library does not
  20356. - # need to be listed more than once, so we keep only the
  20357. - # last copy. This is not always right, but it is rare
  20358. - # enough that we require users that really mean to play
  20359. - # such unportable linking tricks to link the library
  20360. - # using -Wl,-lname, so that libtool does not consider it
  20361. - # for duplicate removal.
  20362. - case " $specialdeplibs " in
  20363. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  20364. - *)
  20365. - case " $new_libs " in
  20366. - *" $deplib "*) ;;
  20367. - *) new_libs="$deplib $new_libs" ;;
  20368. - esac
  20369. - ;;
  20370. - esac
  20371. - ;;
  20372. - esac
  20373. - done
  20374. - tmp_libs=
  20375. - for deplib in $new_libs; do
  20376. - case $deplib in
  20377. - -L*)
  20378. - case " $tmp_libs " in
  20379. - *" $deplib "*) ;;
  20380. - *) tmp_libs="$tmp_libs $deplib" ;;
  20381. - esac
  20382. - ;;
  20383. - *) tmp_libs="$tmp_libs $deplib" ;;
  20384. - esac
  20385. - done
  20386. - eval $var=\"$tmp_libs\"
  20387. - done # for var
  20388. - fi
  20389. - # Last step: remove runtime libs from dependency_libs
  20390. - # (they stay in deplibs)
  20391. - tmp_libs=
  20392. - for i in $dependency_libs ; do
  20393. - case " $predeps $postdeps $compiler_lib_search_path " in
  20394. - *" $i "*)
  20395. - i=""
  20396. - ;;
  20397. - esac
  20398. - if test -n "$i" ; then
  20399. - tmp_libs="$tmp_libs $i"
  20400. - fi
  20401. - done
  20402. - dependency_libs=$tmp_libs
  20403. - done # for pass
  20404. - if test "$linkmode" = prog; then
  20405. - dlfiles="$newdlfiles"
  20406. - dlprefiles="$newdlprefiles"
  20407. - fi
  20408. -
  20409. - case $linkmode in
  20410. - oldlib)
  20411. - if test -n "$deplibs"; then
  20412. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
  20413. - fi
  20414. -
  20415. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  20416. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  20417. - fi
  20418. -
  20419. - if test -n "$rpath"; then
  20420. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  20421. - fi
  20422. -
  20423. - if test -n "$xrpath"; then
  20424. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  20425. - fi
  20426. -
  20427. - if test -n "$vinfo"; then
  20428. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  20429. - fi
  20430. + *)
  20431. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  20432. + continue
  20433. + ;;
  20434. + esac
  20435. - if test -n "$release"; then
  20436. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  20437. - fi
  20438. + # Get the absolute pathname.
  20439. + absdir=`cd "$dir" && pwd`
  20440. + test -n "$absdir" && dir="$absdir"
  20441. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  20442. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  20443. + # Now add the directory to shlibpath_var.
  20444. + if eval "test -z \"\$$shlibpath_var\""; then
  20445. + eval "$shlibpath_var=\"\$dir\""
  20446. + else
  20447. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  20448. fi
  20449. + done
  20450. - # Now set the variables for building old libraries.
  20451. - build_libtool_libs=no
  20452. - oldlibs="$output"
  20453. - objs="$objs$old_deplibs"
  20454. - ;;
  20455. + # This variable tells wrapper scripts just to set shlibpath_var
  20456. + # rather than running their programs.
  20457. + libtool_execute_magic="$magic"
  20458. - lib)
  20459. - # Make sure we only generate libraries of the form `libNAME.la'.
  20460. - case $outputname in
  20461. - lib*)
  20462. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  20463. - eval shared_ext=\"$shrext_cmds\"
  20464. - eval libname=\"$libname_spec\"
  20465. - ;;
  20466. + # Check if any of the arguments is a wrapper script.
  20467. + args=
  20468. + for file
  20469. + do
  20470. + case $file in
  20471. + -*) ;;
  20472. *)
  20473. - if test "$module" = no; then
  20474. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  20475. - $echo "$help" 1>&2
  20476. - exit $EXIT_FAILURE
  20477. - fi
  20478. - if test "$need_lib_prefix" != no; then
  20479. - # Add the "lib" prefix for modules if required
  20480. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  20481. - eval shared_ext=\"$shrext_cmds\"
  20482. - eval libname=\"$libname_spec\"
  20483. - else
  20484. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  20485. + # Do a test to see if this is really a libtool program.
  20486. + if func_ltwrapper_script_p "$file"; then
  20487. + func_source "$file"
  20488. + # Transform arg to wrapped name.
  20489. + file="$progdir/$program"
  20490. + elif func_ltwrapper_executable_p "$file"; then
  20491. + func_ltwrapper_scriptname "$file"
  20492. + func_source "$func_ltwrapper_scriptname_result"
  20493. + # Transform arg to wrapped name.
  20494. + file="$progdir/$program"
  20495. fi
  20496. ;;
  20497. esac
  20498. + # Quote arguments (to preserve shell metacharacters).
  20499. + func_quote_for_eval "$file"
  20500. + args="$args $func_quote_for_eval_result"
  20501. + done
  20502. - if test -n "$objs"; then
  20503. - if test "$deplibs_check_method" != pass_all; then
  20504. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  20505. - exit $EXIT_FAILURE
  20506. - else
  20507. - $echo
  20508. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  20509. - $echo "*** objects $objs is not portable!"
  20510. - libobjs="$libobjs $objs"
  20511. - fi
  20512. + if test "X$opt_dry_run" = Xfalse; then
  20513. + if test -n "$shlibpath_var"; then
  20514. + # Export the shlibpath_var.
  20515. + eval "export $shlibpath_var"
  20516. fi
  20517. - if test "$dlself" != no; then
  20518. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  20519. - fi
  20520. + # Restore saved environment variables
  20521. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  20522. + do
  20523. + eval "if test \"\${save_$lt_var+set}\" = set; then
  20524. + $lt_var=\$save_$lt_var; export $lt_var
  20525. + else
  20526. + $lt_unset $lt_var
  20527. + fi"
  20528. + done
  20529. - set dummy $rpath
  20530. - if test "$#" -gt 2; then
  20531. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  20532. + # Now prepare to actually exec the command.
  20533. + exec_cmd="\$cmd$args"
  20534. + else
  20535. + # Display what would be done.
  20536. + if test -n "$shlibpath_var"; then
  20537. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  20538. + $ECHO "export $shlibpath_var"
  20539. fi
  20540. - install_libdir="$2"
  20541. + $ECHO "$cmd$args"
  20542. + exit $EXIT_SUCCESS
  20543. + fi
  20544. +}
  20545. - oldlibs=
  20546. - if test -z "$rpath"; then
  20547. - if test "$build_libtool_libs" = yes; then
  20548. - # Building a libtool convenience library.
  20549. - # Some compilers have problems with a `.al' extension so
  20550. - # convenience libraries should have the same extension an
  20551. - # archive normally would.
  20552. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  20553. - build_libtool_libs=convenience
  20554. - build_old_libs=yes
  20555. - fi
  20556. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  20557. - if test -n "$vinfo"; then
  20558. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  20559. - fi
  20560. - if test -n "$release"; then
  20561. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  20562. - fi
  20563. - else
  20564. +# func_mode_finish arg...
  20565. +func_mode_finish ()
  20566. +{
  20567. + $opt_debug
  20568. + libdirs="$nonopt"
  20569. + admincmds=
  20570. - # Parse the version information argument.
  20571. - save_ifs="$IFS"; IFS=':'
  20572. - set dummy $vinfo 0 0 0
  20573. - IFS="$save_ifs"
  20574. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  20575. + for dir
  20576. + do
  20577. + libdirs="$libdirs $dir"
  20578. + done
  20579. - if test -n "$8"; then
  20580. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  20581. - $echo "$help" 1>&2
  20582. - exit $EXIT_FAILURE
  20583. + for libdir in $libdirs; do
  20584. + if test -n "$finish_cmds"; then
  20585. + # Do each command in the finish commands.
  20586. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  20587. +'"$cmd"'"'
  20588. fi
  20589. + if test -n "$finish_eval"; then
  20590. + # Do the single finish_eval.
  20591. + eval cmds=\"$finish_eval\"
  20592. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  20593. + $cmds"
  20594. + fi
  20595. + done
  20596. + fi
  20597. - # convert absolute version numbers to libtool ages
  20598. - # this retains compatibility with .la files and attempts
  20599. - # to make the code below a bit more comprehensible
  20600. + # Exit here if they wanted silent mode.
  20601. + $opt_silent && exit $EXIT_SUCCESS
  20602. - case $vinfo_number in
  20603. - yes)
  20604. - number_major="$2"
  20605. - number_minor="$3"
  20606. - number_revision="$4"
  20607. - #
  20608. - # There are really only two kinds -- those that
  20609. - # use the current revision as the major version
  20610. - # and those that subtract age and use age as
  20611. - # a minor version. But, then there is irix
  20612. - # which has an extra 1 added just for fun
  20613. - #
  20614. - case $version_type in
  20615. - darwin|linux|osf|windows)
  20616. - current=`expr $number_major + $number_minor`
  20617. - age="$number_minor"
  20618. - revision="$number_revision"
  20619. - ;;
  20620. - freebsd-aout|freebsd-elf|sunos)
  20621. - current="$number_major"
  20622. - revision="$number_minor"
  20623. - age="0"
  20624. - ;;
  20625. - irix|nonstopux)
  20626. - current=`expr $number_major + $number_minor - 1`
  20627. - age="$number_minor"
  20628. - revision="$number_minor"
  20629. - ;;
  20630. - esac
  20631. - ;;
  20632. - no)
  20633. - current="$2"
  20634. - revision="$3"
  20635. - age="$4"
  20636. - ;;
  20637. - esac
  20638. -
  20639. - # Check that each of the things are valid numbers.
  20640. - case $current in
  20641. - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  20642. - *)
  20643. - $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
  20644. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  20645. - exit $EXIT_FAILURE
  20646. - ;;
  20647. - esac
  20648. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  20649. + $ECHO "Libraries have been installed in:"
  20650. + for libdir in $libdirs; do
  20651. + $ECHO " $libdir"
  20652. + done
  20653. + $ECHO
  20654. + $ECHO "If you ever happen to want to link against installed libraries"
  20655. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  20656. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  20657. + $ECHO "flag during linking and do at least one of the following:"
  20658. + if test -n "$shlibpath_var"; then
  20659. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  20660. + $ECHO " during execution"
  20661. + fi
  20662. + if test -n "$runpath_var"; then
  20663. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  20664. + $ECHO " during linking"
  20665. + fi
  20666. + if test -n "$hardcode_libdir_flag_spec"; then
  20667. + libdir=LIBDIR
  20668. + eval flag=\"$hardcode_libdir_flag_spec\"
  20669. - case $revision in
  20670. - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  20671. - *)
  20672. - $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
  20673. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  20674. - exit $EXIT_FAILURE
  20675. - ;;
  20676. - esac
  20677. + $ECHO " - use the \`$flag' linker flag"
  20678. + fi
  20679. + if test -n "$admincmds"; then
  20680. + $ECHO " - have your system administrator run these commands:$admincmds"
  20681. + fi
  20682. + if test -f /etc/ld.so.conf; then
  20683. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  20684. + fi
  20685. + $ECHO
  20686. - case $age in
  20687. - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  20688. - *)
  20689. - $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
  20690. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  20691. - exit $EXIT_FAILURE
  20692. - ;;
  20693. - esac
  20694. + $ECHO "See any operating system documentation about shared libraries for"
  20695. + case $host in
  20696. + solaris2.[6789]|solaris2.1[0-9])
  20697. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  20698. + $ECHO "pages."
  20699. + ;;
  20700. + *)
  20701. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  20702. + ;;
  20703. + esac
  20704. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  20705. + exit $EXIT_SUCCESS
  20706. +}
  20707. - if test "$age" -gt "$current"; then
  20708. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  20709. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  20710. - exit $EXIT_FAILURE
  20711. - fi
  20712. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  20713. - # Calculate the version variables.
  20714. - major=
  20715. - versuffix=
  20716. - verstring=
  20717. - case $version_type in
  20718. - none) ;;
  20719. - darwin)
  20720. - # Like Linux, but with the current version available in
  20721. - # verstring for coding it into the library header
  20722. - major=.`expr $current - $age`
  20723. - versuffix="$major.$age.$revision"
  20724. - # Darwin ld doesn't like 0 for these options...
  20725. - minor_current=`expr $current + 1`
  20726. - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  20727. - ;;
  20728. +# func_mode_install arg...
  20729. +func_mode_install ()
  20730. +{
  20731. + $opt_debug
  20732. + # There may be an optional sh(1) argument at the beginning of
  20733. + # install_prog (especially on Windows NT).
  20734. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  20735. + # Allow the use of GNU shtool's install command.
  20736. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  20737. + # Aesthetically quote it.
  20738. + func_quote_for_eval "$nonopt"
  20739. + install_prog="$func_quote_for_eval_result "
  20740. + arg=$1
  20741. + shift
  20742. + else
  20743. + install_prog=
  20744. + arg=$nonopt
  20745. + fi
  20746. - freebsd-aout)
  20747. - major=".$current"
  20748. - versuffix=".$current.$revision";
  20749. - ;;
  20750. + # The real first argument should be the name of the installation program.
  20751. + # Aesthetically quote it.
  20752. + func_quote_for_eval "$arg"
  20753. + install_prog="$install_prog$func_quote_for_eval_result"
  20754. - freebsd-elf)
  20755. - major=".$current"
  20756. - versuffix=".$current";
  20757. - ;;
  20758. + # We need to accept at least all the BSD install flags.
  20759. + dest=
  20760. + files=
  20761. + opts=
  20762. + prev=
  20763. + install_type=
  20764. + isdir=no
  20765. + stripme=
  20766. + for arg
  20767. + do
  20768. + if test -n "$dest"; then
  20769. + files="$files $dest"
  20770. + dest=$arg
  20771. + continue
  20772. + fi
  20773. - irix | nonstopux)
  20774. - major=`expr $current - $age + 1`
  20775. + case $arg in
  20776. + -d) isdir=yes ;;
  20777. + -f)
  20778. + case " $install_prog " in
  20779. + *[\\\ /]cp\ *) ;;
  20780. + *) prev=$arg ;;
  20781. + esac
  20782. + ;;
  20783. + -g | -m | -o)
  20784. + prev=$arg
  20785. + ;;
  20786. + -s)
  20787. + stripme=" -s"
  20788. + continue
  20789. + ;;
  20790. + -*)
  20791. + ;;
  20792. + *)
  20793. + # If the previous option needed an argument, then skip it.
  20794. + if test -n "$prev"; then
  20795. + prev=
  20796. + else
  20797. + dest=$arg
  20798. + continue
  20799. + fi
  20800. + ;;
  20801. + esac
  20802. - case $version_type in
  20803. - nonstopux) verstring_prefix=nonstopux ;;
  20804. - *) verstring_prefix=sgi ;;
  20805. - esac
  20806. - verstring="$verstring_prefix$major.$revision"
  20807. + # Aesthetically quote the argument.
  20808. + func_quote_for_eval "$arg"
  20809. + install_prog="$install_prog $func_quote_for_eval_result"
  20810. + done
  20811. - # Add in all the interfaces that we are compatible with.
  20812. - loop=$revision
  20813. - while test "$loop" -ne 0; do
  20814. - iface=`expr $revision - $loop`
  20815. - loop=`expr $loop - 1`
  20816. - verstring="$verstring_prefix$major.$iface:$verstring"
  20817. - done
  20818. + test -z "$install_prog" && \
  20819. + func_fatal_help "you must specify an install program"
  20820. - # Before this point, $major must not contain `.'.
  20821. - major=.$major
  20822. - versuffix="$major.$revision"
  20823. - ;;
  20824. + test -n "$prev" && \
  20825. + func_fatal_help "the \`$prev' option requires an argument"
  20826. - linux)
  20827. - major=.`expr $current - $age`
  20828. - versuffix="$major.$age.$revision"
  20829. - ;;
  20830. + if test -z "$files"; then
  20831. + if test -z "$dest"; then
  20832. + func_fatal_help "no file or destination specified"
  20833. + else
  20834. + func_fatal_help "you must specify a destination"
  20835. + fi
  20836. + fi
  20837. - osf)
  20838. - major=.`expr $current - $age`
  20839. - versuffix=".$current.$age.$revision"
  20840. - verstring="$current.$age.$revision"
  20841. + # Strip any trailing slash from the destination.
  20842. + func_stripname '' '/' "$dest"
  20843. + dest=$func_stripname_result
  20844. - # Add in all the interfaces that we are compatible with.
  20845. - loop=$age
  20846. - while test "$loop" -ne 0; do
  20847. - iface=`expr $current - $loop`
  20848. - loop=`expr $loop - 1`
  20849. - verstring="$verstring:${iface}.0"
  20850. - done
  20851. + # Check to see that the destination is a directory.
  20852. + test -d "$dest" && isdir=yes
  20853. + if test "$isdir" = yes; then
  20854. + destdir="$dest"
  20855. + destname=
  20856. + else
  20857. + func_dirname_and_basename "$dest" "" "."
  20858. + destdir="$func_dirname_result"
  20859. + destname="$func_basename_result"
  20860. - # Make executables depend on our current version.
  20861. - verstring="$verstring:${current}.0"
  20862. + # Not a directory, so check to see that there is only one file specified.
  20863. + set dummy $files; shift
  20864. + test "$#" -gt 1 && \
  20865. + func_fatal_help "\`$dest' is not a directory"
  20866. + fi
  20867. + case $destdir in
  20868. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  20869. + *)
  20870. + for file in $files; do
  20871. + case $file in
  20872. + *.lo) ;;
  20873. + *)
  20874. + func_fatal_help "\`$destdir' must be an absolute directory name"
  20875. ;;
  20876. + esac
  20877. + done
  20878. + ;;
  20879. + esac
  20880. - sunos)
  20881. - major=".$current"
  20882. - versuffix=".$current.$revision"
  20883. - ;;
  20884. + # This variable tells wrapper scripts just to set variables rather
  20885. + # than running their programs.
  20886. + libtool_install_magic="$magic"
  20887. - windows)
  20888. - # Use '-' rather than '.', since we only want one
  20889. - # extension on DOS 8.3 filesystems.
  20890. - major=`expr $current - $age`
  20891. - versuffix="-$major"
  20892. - ;;
  20893. + staticlibs=
  20894. + future_libdirs=
  20895. + current_libdirs=
  20896. + for file in $files; do
  20897. - *)
  20898. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  20899. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  20900. - exit $EXIT_FAILURE
  20901. - ;;
  20902. - esac
  20903. + # Do each installation.
  20904. + case $file in
  20905. + *.$libext)
  20906. + # Do the static libraries later.
  20907. + staticlibs="$staticlibs $file"
  20908. + ;;
  20909. - # Clear the version info if we defaulted, and they specified a release.
  20910. - if test -z "$vinfo" && test -n "$release"; then
  20911. - major=
  20912. - case $version_type in
  20913. - darwin)
  20914. - # we can't check for "0.0" in archive_cmds due to quoting
  20915. - # problems, so we reset it completely
  20916. - verstring=
  20917. - ;;
  20918. - *)
  20919. - verstring="0.0"
  20920. - ;;
  20921. + *.la)
  20922. + # Check to see that this really is a libtool archive.
  20923. + func_lalib_unsafe_p "$file" \
  20924. + || func_fatal_help "\`$file' is not a valid libtool archive"
  20925. +
  20926. + library_names=
  20927. + old_library=
  20928. + relink_command=
  20929. + func_source "$file"
  20930. +
  20931. + # Add the libdir to current_libdirs if it is the destination.
  20932. + if test "X$destdir" = "X$libdir"; then
  20933. + case "$current_libdirs " in
  20934. + *" $libdir "*) ;;
  20935. + *) current_libdirs="$current_libdirs $libdir" ;;
  20936. + esac
  20937. + else
  20938. + # Note the libdir as a future libdir.
  20939. + case "$future_libdirs " in
  20940. + *" $libdir "*) ;;
  20941. + *) future_libdirs="$future_libdirs $libdir" ;;
  20942. esac
  20943. - if test "$need_version" = no; then
  20944. - versuffix=
  20945. - else
  20946. - versuffix=".0.0"
  20947. - fi
  20948. fi
  20949. - # Remove version info from name if versioning should be avoided
  20950. - if test "$avoid_version" = yes && test "$need_version" = no; then
  20951. - major=
  20952. - versuffix=
  20953. - verstring=""
  20954. - fi
  20955. + func_dirname "$file" "/" ""
  20956. + dir="$func_dirname_result"
  20957. + dir="$dir$objdir"
  20958. - # Check to see if the archive will have undefined symbols.
  20959. - if test "$allow_undefined" = yes; then
  20960. - if test "$allow_undefined_flag" = unsupported; then
  20961. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  20962. - build_libtool_libs=no
  20963. - build_old_libs=yes
  20964. + if test -n "$relink_command"; then
  20965. + # Determine the prefix the user has applied to our future dir.
  20966. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  20967. +
  20968. + # Don't allow the user to place us outside of our expected
  20969. + # location b/c this prevents finding dependent libraries that
  20970. + # are installed to the same prefix.
  20971. + # At present, this check doesn't affect windows .dll's that
  20972. + # are installed into $libdir/../bin (currently, that works fine)
  20973. + # but it's something to keep an eye on.
  20974. + test "$inst_prefix_dir" = "$destdir" && \
  20975. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  20976. +
  20977. + if test -n "$inst_prefix_dir"; then
  20978. + # Stick the inst_prefix_dir data into the link command.
  20979. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  20980. + else
  20981. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  20982. fi
  20983. - else
  20984. - # Don't allow undefined symbols.
  20985. - allow_undefined_flag="$no_undefined_flag"
  20986. +
  20987. + func_warning "relinking \`$file'"
  20988. + func_show_eval "$relink_command" \
  20989. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  20990. fi
  20991. - fi
  20992. - if test "$mode" != relink; then
  20993. - # Remove our outputs, but don't remove object files since they
  20994. - # may have been created when compiling PIC objects.
  20995. - removelist=
  20996. - tempremovelist=`$echo "$output_objdir/*"`
  20997. - for p in $tempremovelist; do
  20998. - case $p in
  20999. - *.$objext)
  21000. - ;;
  21001. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  21002. - if test "X$precious_files_regex" != "X"; then
  21003. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  21004. - then
  21005. - continue
  21006. - fi
  21007. - fi
  21008. - removelist="$removelist $p"
  21009. - ;;
  21010. - *) ;;
  21011. + # See the names of the shared library.
  21012. + set dummy $library_names; shift
  21013. + if test -n "$1"; then
  21014. + realname="$1"
  21015. + shift
  21016. +
  21017. + srcname="$realname"
  21018. + test -n "$relink_command" && srcname="$realname"T
  21019. +
  21020. + # Install the shared library and build the symlinks.
  21021. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  21022. + 'exit $?'
  21023. + tstripme="$stripme"
  21024. + case $host_os in
  21025. + cygwin* | mingw* | pw32* | cegcc*)
  21026. + case $realname in
  21027. + *.dll.a)
  21028. + tstripme=""
  21029. + ;;
  21030. + esac
  21031. + ;;
  21032. esac
  21033. - done
  21034. - if test -n "$removelist"; then
  21035. - $show "${rm}r $removelist"
  21036. - $run ${rm}r $removelist
  21037. + if test -n "$tstripme" && test -n "$striplib"; then
  21038. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  21039. + fi
  21040. +
  21041. + if test "$#" -gt 0; then
  21042. + # Delete the old symlinks, and create new ones.
  21043. + # Try `ln -sf' first, because the `ln' binary might depend on
  21044. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  21045. + # so we also need to try rm && ln -s.
  21046. + for linkname
  21047. + do
  21048. + test "$linkname" != "$realname" \
  21049. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  21050. + done
  21051. + fi
  21052. +
  21053. + # Do each command in the postinstall commands.
  21054. + lib="$destdir/$realname"
  21055. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  21056. fi
  21057. - fi
  21058. - # Now set the variables for building old libraries.
  21059. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  21060. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  21061. + # Install the pseudo-library for information purposes.
  21062. + func_basename "$file"
  21063. + name="$func_basename_result"
  21064. + instname="$dir/$name"i
  21065. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  21066. - # Transform .lo files to .o files.
  21067. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  21068. - fi
  21069. + # Maybe install the static library, too.
  21070. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  21071. + ;;
  21072. - # Eliminate all temporary directories.
  21073. - for path in $notinst_path; do
  21074. - lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
  21075. - deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
  21076. - dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
  21077. - done
  21078. + *.lo)
  21079. + # Install (i.e. copy) a libtool object.
  21080. - if test -n "$xrpath"; then
  21081. - # If the user specified any rpath flags, then add them.
  21082. - temp_xrpath=
  21083. - for libdir in $xrpath; do
  21084. - temp_xrpath="$temp_xrpath -R$libdir"
  21085. - case "$finalize_rpath " in
  21086. - *" $libdir "*) ;;
  21087. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  21088. - esac
  21089. - done
  21090. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  21091. - dependency_libs="$temp_xrpath $dependency_libs"
  21092. + # Figure out destination file name, if it wasn't already specified.
  21093. + if test -n "$destname"; then
  21094. + destfile="$destdir/$destname"
  21095. + else
  21096. + func_basename "$file"
  21097. + destfile="$func_basename_result"
  21098. + destfile="$destdir/$destfile"
  21099. fi
  21100. - fi
  21101. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  21102. - old_dlfiles="$dlfiles"
  21103. - dlfiles=
  21104. - for lib in $old_dlfiles; do
  21105. - case " $dlprefiles $dlfiles " in
  21106. - *" $lib "*) ;;
  21107. - *) dlfiles="$dlfiles $lib" ;;
  21108. + # Deduce the name of the destination old-style object file.
  21109. + case $destfile in
  21110. + *.lo)
  21111. + func_lo2o "$destfile"
  21112. + staticdest=$func_lo2o_result
  21113. + ;;
  21114. + *.$objext)
  21115. + staticdest="$destfile"
  21116. + destfile=
  21117. + ;;
  21118. + *)
  21119. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  21120. + ;;
  21121. esac
  21122. - done
  21123. - # Make sure dlprefiles contains only unique files
  21124. - old_dlprefiles="$dlprefiles"
  21125. - dlprefiles=
  21126. - for lib in $old_dlprefiles; do
  21127. - case "$dlprefiles " in
  21128. - *" $lib "*) ;;
  21129. - *) dlprefiles="$dlprefiles $lib" ;;
  21130. - esac
  21131. - done
  21132. + # Install the libtool object if requested.
  21133. + test -n "$destfile" && \
  21134. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  21135. - if test "$build_libtool_libs" = yes; then
  21136. - if test -n "$rpath"; then
  21137. - case $host in
  21138. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  21139. - # these systems don't actually have a c library (as such)!
  21140. - ;;
  21141. - *-*-rhapsody* | *-*-darwin1.[012])
  21142. - # Rhapsody C library is in the System framework
  21143. - deplibs="$deplibs -framework System"
  21144. + # Install the old object if enabled.
  21145. + if test "$build_old_libs" = yes; then
  21146. + # Deduce the name of the old-style object file.
  21147. + func_lo2o "$file"
  21148. + staticobj=$func_lo2o_result
  21149. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  21150. + fi
  21151. + exit $EXIT_SUCCESS
  21152. + ;;
  21153. +
  21154. + *)
  21155. + # Figure out destination file name, if it wasn't already specified.
  21156. + if test -n "$destname"; then
  21157. + destfile="$destdir/$destname"
  21158. + else
  21159. + func_basename "$file"
  21160. + destfile="$func_basename_result"
  21161. + destfile="$destdir/$destfile"
  21162. + fi
  21163. +
  21164. + # If the file is missing, and there is a .exe on the end, strip it
  21165. + # because it is most likely a libtool script we actually want to
  21166. + # install
  21167. + stripped_ext=""
  21168. + case $file in
  21169. + *.exe)
  21170. + if test ! -f "$file"; then
  21171. + func_stripname '' '.exe' "$file"
  21172. + file=$func_stripname_result
  21173. + stripped_ext=".exe"
  21174. + fi
  21175. ;;
  21176. - *-*-netbsd*)
  21177. - # Don't link with libc until the a.out ld.so is fixed.
  21178. + esac
  21179. +
  21180. + # Do a test to see if this is really a libtool program.
  21181. + case $host in
  21182. + *cygwin* | *mingw*)
  21183. + if func_ltwrapper_executable_p "$file"; then
  21184. + func_ltwrapper_scriptname "$file"
  21185. + wrapper=$func_ltwrapper_scriptname_result
  21186. + else
  21187. + func_stripname '' '.exe' "$file"
  21188. + wrapper=$func_stripname_result
  21189. + fi
  21190. ;;
  21191. - *-*-openbsd* | *-*-freebsd*)
  21192. - # Do not include libc due to us having libc/libc_r.
  21193. - test "X$arg" = "X-lc" && continue
  21194. + *)
  21195. + wrapper=$file
  21196. ;;
  21197. - *)
  21198. - # Add libc to deplibs on all other systems if necessary.
  21199. - if test "$build_libtool_need_lc" = "yes"; then
  21200. - deplibs="$deplibs -lc"
  21201. + esac
  21202. + if func_ltwrapper_script_p "$wrapper"; then
  21203. + notinst_deplibs=
  21204. + relink_command=
  21205. +
  21206. + func_source "$wrapper"
  21207. +
  21208. + # Check the variables that should have been set.
  21209. + test -z "$generated_by_libtool_version" && \
  21210. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  21211. +
  21212. + finalize=yes
  21213. + for lib in $notinst_deplibs; do
  21214. + # Check to see that each library is installed.
  21215. + libdir=
  21216. + if test -f "$lib"; then
  21217. + func_source "$lib"
  21218. fi
  21219. - ;;
  21220. - esac
  21221. - fi
  21222. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  21223. + if test -n "$libdir" && test ! -f "$libfile"; then
  21224. + func_warning "\`$lib' has not been installed in \`$libdir'"
  21225. + finalize=no
  21226. + fi
  21227. + done
  21228. - # Transform deplibs into only deplibs that can be linked in shared.
  21229. - name_save=$name
  21230. - libname_save=$libname
  21231. - release_save=$release
  21232. - versuffix_save=$versuffix
  21233. - major_save=$major
  21234. - # I'm not sure if I'm treating the release correctly. I think
  21235. - # release should show up in the -l (ie -lgmp5) so we don't want to
  21236. - # add it in twice. Is that correct?
  21237. - release=""
  21238. - versuffix=""
  21239. - major=""
  21240. - newdeplibs=
  21241. - droppeddeps=no
  21242. - case $deplibs_check_method in
  21243. - pass_all)
  21244. - # Don't check for shared/static. Everything works.
  21245. - # This might be a little naive. We might want to check
  21246. - # whether the library exists or not. But this is on
  21247. - # osf3 & osf4 and I'm not really sure... Just
  21248. - # implementing what was already the behavior.
  21249. - newdeplibs=$deplibs
  21250. - ;;
  21251. - test_compile)
  21252. - # This code stresses the "libraries are programs" paradigm to its
  21253. - # limits. Maybe even breaks it. We compile a program, linking it
  21254. - # against the deplibs as a proxy for the library. Then we can check
  21255. - # whether they linked in statically or dynamically with ldd.
  21256. - $rm conftest.c
  21257. - cat > conftest.c <<EOF
  21258. - int main() { return 0; }
  21259. -EOF
  21260. - $rm conftest
  21261. - $LTCC -o conftest conftest.c $deplibs
  21262. - if test "$?" -eq 0 ; then
  21263. - ldd_output=`ldd conftest`
  21264. - for i in $deplibs; do
  21265. - name="`expr $i : '-l\(.*\)'`"
  21266. - # If $name is empty we are operating on a -L argument.
  21267. - if test "$name" != "" && test "$name" -ne "0"; then
  21268. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  21269. - case " $predeps $postdeps " in
  21270. - *" $i "*)
  21271. - newdeplibs="$newdeplibs $i"
  21272. - i=""
  21273. - ;;
  21274. - esac
  21275. + relink_command=
  21276. + func_source "$wrapper"
  21277. +
  21278. + outputname=
  21279. + if test "$fast_install" = no && test -n "$relink_command"; then
  21280. + $opt_dry_run || {
  21281. + if test "$finalize" = yes; then
  21282. + tmpdir=`func_mktempdir`
  21283. + func_basename "$file$stripped_ext"
  21284. + file="$func_basename_result"
  21285. + outputname="$tmpdir/$file"
  21286. + # Replace the output file specification.
  21287. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  21288. +
  21289. + $opt_silent || {
  21290. + func_quote_for_expand "$relink_command"
  21291. + eval "func_echo $func_quote_for_expand_result"
  21292. + }
  21293. + if eval "$relink_command"; then :
  21294. + else
  21295. + func_error "error: relink \`$file' with the above command before installing it"
  21296. + $opt_dry_run || ${RM}r "$tmpdir"
  21297. + continue
  21298. fi
  21299. - if test -n "$i" ; then
  21300. - libname=`eval \\$echo \"$libname_spec\"`
  21301. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  21302. - set dummy $deplib_matches
  21303. - deplib_match=$2
  21304. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  21305. - newdeplibs="$newdeplibs $i"
  21306. - else
  21307. - droppeddeps=yes
  21308. - $echo
  21309. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  21310. - $echo "*** I have the capability to make that library automatically link in when"
  21311. - $echo "*** you link to this library. But I can only do this if you have a"
  21312. - $echo "*** shared version of the library, which I believe you do not have"
  21313. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  21314. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  21315. - fi
  21316. - fi
  21317. + file="$outputname"
  21318. else
  21319. - newdeplibs="$newdeplibs $i"
  21320. + func_warning "cannot relink \`$file'"
  21321. fi
  21322. - done
  21323. + }
  21324. else
  21325. - # Error occurred in the first compile. Let's try to salvage
  21326. - # the situation: Compile a separate program for each library.
  21327. - for i in $deplibs; do
  21328. - name="`expr $i : '-l\(.*\)'`"
  21329. - # If $name is empty we are operating on a -L argument.
  21330. - if test "$name" != "" && test "$name" != "0"; then
  21331. - $rm conftest
  21332. - $LTCC -o conftest conftest.c $i
  21333. - # Did it work?
  21334. - if test "$?" -eq 0 ; then
  21335. - ldd_output=`ldd conftest`
  21336. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  21337. - case " $predeps $postdeps " in
  21338. - *" $i "*)
  21339. - newdeplibs="$newdeplibs $i"
  21340. - i=""
  21341. - ;;
  21342. - esac
  21343. - fi
  21344. - if test -n "$i" ; then
  21345. - libname=`eval \\$echo \"$libname_spec\"`
  21346. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  21347. - set dummy $deplib_matches
  21348. - deplib_match=$2
  21349. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  21350. - newdeplibs="$newdeplibs $i"
  21351. - else
  21352. - droppeddeps=yes
  21353. - $echo
  21354. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  21355. - $echo "*** I have the capability to make that library automatically link in when"
  21356. - $echo "*** you link to this library. But I can only do this if you have a"
  21357. - $echo "*** shared version of the library, which you do not appear to have"
  21358. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  21359. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  21360. - fi
  21361. - fi
  21362. - else
  21363. - droppeddeps=yes
  21364. - $echo
  21365. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  21366. - $echo "*** make it link in! You will probably need to install it or some"
  21367. - $echo "*** library that it depends on before this library will be fully"
  21368. - $echo "*** functional. Installing it before continuing would be even better."
  21369. - fi
  21370. - else
  21371. - newdeplibs="$newdeplibs $i"
  21372. - fi
  21373. - done
  21374. - fi
  21375. - ;;
  21376. - file_magic*)
  21377. - set dummy $deplibs_check_method
  21378. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  21379. - for a_deplib in $deplibs; do
  21380. - name="`expr $a_deplib : '-l\(.*\)'`"
  21381. - # If $name is empty we are operating on a -L argument.
  21382. - if test "$name" != "" && test "$name" != "0"; then
  21383. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  21384. - case " $predeps $postdeps " in
  21385. - *" $a_deplib "*)
  21386. - newdeplibs="$newdeplibs $a_deplib"
  21387. - a_deplib=""
  21388. - ;;
  21389. - esac
  21390. - fi
  21391. - if test -n "$a_deplib" ; then
  21392. - libname=`eval \\$echo \"$libname_spec\"`
  21393. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  21394. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  21395. - for potent_lib in $potential_libs; do
  21396. - # Follow soft links.
  21397. - if ls -lLd "$potent_lib" 2>/dev/null \
  21398. - | grep " -> " >/dev/null; then
  21399. - continue
  21400. - fi
  21401. - # The statement above tries to avoid entering an
  21402. - # endless loop below, in case of cyclic links.
  21403. - # We might still enter an endless loop, since a link
  21404. - # loop can be closed while we follow links,
  21405. - # but so what?
  21406. - potlib="$potent_lib"
  21407. - while test -h "$potlib" 2>/dev/null; do
  21408. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  21409. - case $potliblink in
  21410. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  21411. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  21412. - esac
  21413. - done
  21414. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  21415. - | ${SED} 10q \
  21416. - | $EGREP "$file_magic_regex" > /dev/null; then
  21417. - newdeplibs="$newdeplibs $a_deplib"
  21418. - a_deplib=""
  21419. - break 2
  21420. - fi
  21421. - done
  21422. - done
  21423. - fi
  21424. - if test -n "$a_deplib" ; then
  21425. - droppeddeps=yes
  21426. - $echo
  21427. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  21428. - $echo "*** I have the capability to make that library automatically link in when"
  21429. - $echo "*** you link to this library. But I can only do this if you have a"
  21430. - $echo "*** shared version of the library, which you do not appear to have"
  21431. - $echo "*** because I did check the linker path looking for a file starting"
  21432. - if test -z "$potlib" ; then
  21433. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  21434. - else
  21435. - $echo "*** with $libname and none of the candidates passed a file format test"
  21436. - $echo "*** using a file magic. Last file checked: $potlib"
  21437. - fi
  21438. - fi
  21439. - else
  21440. - # Add a -L argument.
  21441. - newdeplibs="$newdeplibs $a_deplib"
  21442. - fi
  21443. - done # Gone through all deplibs.
  21444. - ;;
  21445. - match_pattern*)
  21446. - set dummy $deplibs_check_method
  21447. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  21448. - for a_deplib in $deplibs; do
  21449. - name="`expr $a_deplib : '-l\(.*\)'`"
  21450. - # If $name is empty we are operating on a -L argument.
  21451. - if test -n "$name" && test "$name" != "0"; then
  21452. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  21453. - case " $predeps $postdeps " in
  21454. - *" $a_deplib "*)
  21455. - newdeplibs="$newdeplibs $a_deplib"
  21456. - a_deplib=""
  21457. - ;;
  21458. - esac
  21459. - fi
  21460. - if test -n "$a_deplib" ; then
  21461. - libname=`eval \\$echo \"$libname_spec\"`
  21462. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  21463. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  21464. - for potent_lib in $potential_libs; do
  21465. - potlib="$potent_lib" # see symlink-check above in file_magic test
  21466. - if eval $echo \"$potent_lib\" 2>/dev/null \
  21467. - | ${SED} 10q \
  21468. - | $EGREP "$match_pattern_regex" > /dev/null; then
  21469. - newdeplibs="$newdeplibs $a_deplib"
  21470. - a_deplib=""
  21471. - break 2
  21472. - fi
  21473. - done
  21474. - done
  21475. - fi
  21476. - if test -n "$a_deplib" ; then
  21477. - droppeddeps=yes
  21478. - $echo
  21479. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  21480. - $echo "*** I have the capability to make that library automatically link in when"
  21481. - $echo "*** you link to this library. But I can only do this if you have a"
  21482. - $echo "*** shared version of the library, which you do not appear to have"
  21483. - $echo "*** because I did check the linker path looking for a file starting"
  21484. - if test -z "$potlib" ; then
  21485. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  21486. - else
  21487. - $echo "*** with $libname and none of the candidates passed a file format test"
  21488. - $echo "*** using a regex pattern. Last file checked: $potlib"
  21489. - fi
  21490. - fi
  21491. - else
  21492. - # Add a -L argument.
  21493. - newdeplibs="$newdeplibs $a_deplib"
  21494. - fi
  21495. - done # Gone through all deplibs.
  21496. - ;;
  21497. - none | unknown | *)
  21498. - newdeplibs=""
  21499. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  21500. - -e 's/ -[LR][^ ]*//g'`
  21501. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  21502. - for i in $predeps $postdeps ; do
  21503. - # can't use Xsed below, because $i might contain '/'
  21504. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  21505. - done
  21506. - fi
  21507. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  21508. - | grep . >/dev/null; then
  21509. - $echo
  21510. - if test "X$deplibs_check_method" = "Xnone"; then
  21511. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  21512. - else
  21513. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  21514. - fi
  21515. - $echo "*** All declared inter-library dependencies are being dropped."
  21516. - droppeddeps=yes
  21517. + # Install the binary that we compiled earlier.
  21518. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  21519. fi
  21520. + fi
  21521. +
  21522. + # remove .exe since cygwin /usr/bin/install will append another
  21523. + # one anyway
  21524. + case $install_prog,$host in
  21525. + */usr/bin/install*,*cygwin*)
  21526. + case $file:$destfile in
  21527. + *.exe:*.exe)
  21528. + # this is ok
  21529. + ;;
  21530. + *.exe:*)
  21531. + destfile=$destfile.exe
  21532. + ;;
  21533. + *:*.exe)
  21534. + func_stripname '' '.exe' "$destfile"
  21535. + destfile=$func_stripname_result
  21536. + ;;
  21537. + esac
  21538. ;;
  21539. esac
  21540. - versuffix=$versuffix_save
  21541. - major=$major_save
  21542. - release=$release_save
  21543. - libname=$libname_save
  21544. - name=$name_save
  21545. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  21546. + $opt_dry_run || if test -n "$outputname"; then
  21547. + ${RM}r "$tmpdir"
  21548. + fi
  21549. + ;;
  21550. + esac
  21551. + done
  21552. - case $host in
  21553. - *-*-rhapsody* | *-*-darwin1.[012])
  21554. - # On Rhapsody replace the C library is the System framework
  21555. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  21556. - ;;
  21557. - esac
  21558. + for file in $staticlibs; do
  21559. + func_basename "$file"
  21560. + name="$func_basename_result"
  21561. - if test "$droppeddeps" = yes; then
  21562. - if test "$module" = yes; then
  21563. - $echo
  21564. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  21565. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  21566. - $echo "*** a static module, that should work as long as the dlopening"
  21567. - $echo "*** application is linked with the -dlopen flag."
  21568. - if test -z "$global_symbol_pipe"; then
  21569. - $echo
  21570. - $echo "*** However, this would only work if libtool was able to extract symbol"
  21571. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  21572. - $echo "*** not find such a program. So, this module is probably useless."
  21573. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  21574. - fi
  21575. - if test "$build_old_libs" = no; then
  21576. - oldlibs="$output_objdir/$libname.$libext"
  21577. - build_libtool_libs=module
  21578. - build_old_libs=yes
  21579. - else
  21580. - build_libtool_libs=no
  21581. - fi
  21582. - else
  21583. - $echo "*** The inter-library dependencies that have been dropped here will be"
  21584. - $echo "*** automatically added whenever a program is linked with this library"
  21585. - $echo "*** or is declared to -dlopen it."
  21586. + # Set up the ranlib parameters.
  21587. + oldlib="$destdir/$name"
  21588. - if test "$allow_undefined" = no; then
  21589. - $echo
  21590. - $echo "*** Since this library must not contain undefined symbols,"
  21591. - $echo "*** because either the platform does not support them or"
  21592. - $echo "*** it was explicitly requested with -no-undefined,"
  21593. - $echo "*** libtool will only create a static version of it."
  21594. - if test "$build_old_libs" = no; then
  21595. - oldlibs="$output_objdir/$libname.$libext"
  21596. - build_libtool_libs=module
  21597. - build_old_libs=yes
  21598. - else
  21599. - build_libtool_libs=no
  21600. - fi
  21601. - fi
  21602. - fi
  21603. - fi
  21604. - # Done checking deplibs!
  21605. - deplibs=$newdeplibs
  21606. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  21607. +
  21608. + if test -n "$stripme" && test -n "$old_striplib"; then
  21609. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  21610. fi
  21611. - # All the library-specific variables (install_libdir is set above).
  21612. - library_names=
  21613. - old_library=
  21614. - dlname=
  21615. + # Do each command in the postinstall commands.
  21616. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  21617. + done
  21618. - # Test again, we may have decided not to build it any more
  21619. - if test "$build_libtool_libs" = yes; then
  21620. - if test "$hardcode_into_libs" = yes; then
  21621. - # Hardcode the library paths
  21622. - hardcode_libdirs=
  21623. - dep_rpath=
  21624. - rpath="$finalize_rpath"
  21625. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  21626. - for libdir in $rpath; do
  21627. - if test -n "$hardcode_libdir_flag_spec"; then
  21628. - if test -n "$hardcode_libdir_separator"; then
  21629. - if test -z "$hardcode_libdirs"; then
  21630. - hardcode_libdirs="$libdir"
  21631. - else
  21632. - # Just accumulate the unique libdirs.
  21633. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  21634. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  21635. - ;;
  21636. - *)
  21637. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  21638. - ;;
  21639. - esac
  21640. - fi
  21641. - else
  21642. - eval flag=\"$hardcode_libdir_flag_spec\"
  21643. - dep_rpath="$dep_rpath $flag"
  21644. - fi
  21645. - elif test -n "$runpath_var"; then
  21646. - case "$perm_rpath " in
  21647. - *" $libdir "*) ;;
  21648. - *) perm_rpath="$perm_rpath $libdir" ;;
  21649. - esac
  21650. - fi
  21651. - done
  21652. - # Substitute the hardcoded libdirs into the rpath.
  21653. - if test -n "$hardcode_libdir_separator" &&
  21654. - test -n "$hardcode_libdirs"; then
  21655. - libdir="$hardcode_libdirs"
  21656. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  21657. - eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  21658. - else
  21659. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  21660. - fi
  21661. - fi
  21662. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  21663. - # We should set the runpath_var.
  21664. - rpath=
  21665. - for dir in $perm_rpath; do
  21666. - rpath="$rpath$dir:"
  21667. - done
  21668. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  21669. - fi
  21670. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  21671. - fi
  21672. + test -n "$future_libdirs" && \
  21673. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  21674. - shlibpath="$finalize_shlibpath"
  21675. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  21676. - if test -n "$shlibpath"; then
  21677. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  21678. - fi
  21679. + if test -n "$current_libdirs"; then
  21680. + # Maybe just do a dry run.
  21681. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  21682. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  21683. + else
  21684. + exit $EXIT_SUCCESS
  21685. + fi
  21686. +}
  21687. - # Get the real and link names of the library.
  21688. - eval shared_ext=\"$shrext_cmds\"
  21689. - eval library_names=\"$library_names_spec\"
  21690. - set dummy $library_names
  21691. - realname="$2"
  21692. - shift; shift
  21693. +test "$mode" = install && func_mode_install ${1+"$@"}
  21694. - if test -n "$soname_spec"; then
  21695. - eval soname=\"$soname_spec\"
  21696. - else
  21697. - soname="$realname"
  21698. - fi
  21699. - if test -z "$dlname"; then
  21700. - dlname=$soname
  21701. - fi
  21702. - lib="$output_objdir/$realname"
  21703. - for link
  21704. - do
  21705. - linknames="$linknames $link"
  21706. - done
  21707. +# func_generate_dlsyms outputname originator pic_p
  21708. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  21709. +# a dlpreopen symbol table.
  21710. +func_generate_dlsyms ()
  21711. +{
  21712. + $opt_debug
  21713. + my_outputname="$1"
  21714. + my_originator="$2"
  21715. + my_pic_p="${3-no}"
  21716. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  21717. + my_dlsyms=
  21718. +
  21719. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  21720. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  21721. + my_dlsyms="${my_outputname}S.c"
  21722. + else
  21723. + func_error "not configured to extract global symbols from dlpreopened files"
  21724. + fi
  21725. + fi
  21726. - # Use standard objects if they are pic
  21727. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  21728. + if test -n "$my_dlsyms"; then
  21729. + case $my_dlsyms in
  21730. + "") ;;
  21731. + *.c)
  21732. + # Discover the nlist of each of the dlfiles.
  21733. + nlist="$output_objdir/${my_outputname}.nm"
  21734. - # Prepare the list of exported symbols
  21735. - if test -z "$export_symbols"; then
  21736. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  21737. - $show "generating symbol list for \`$libname.la'"
  21738. - export_symbols="$output_objdir/$libname.exp"
  21739. - $run $rm $export_symbols
  21740. - cmds=$export_symbols_cmds
  21741. - save_ifs="$IFS"; IFS='~'
  21742. - for cmd in $cmds; do
  21743. - IFS="$save_ifs"
  21744. - eval cmd=\"$cmd\"
  21745. - if len=`expr "X$cmd" : ".*"` &&
  21746. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  21747. - $show "$cmd"
  21748. - $run eval "$cmd" || exit $?
  21749. - skipped_export=false
  21750. - else
  21751. - # The command line is too long to execute in one step.
  21752. - $show "using reloadable object file for export list..."
  21753. - skipped_export=:
  21754. - fi
  21755. - done
  21756. - IFS="$save_ifs"
  21757. - if test -n "$export_symbols_regex"; then
  21758. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  21759. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  21760. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  21761. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  21762. - fi
  21763. - fi
  21764. - fi
  21765. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  21766. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  21767. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  21768. - fi
  21769. + # Parse the name list into a source file.
  21770. + func_verbose "creating $output_objdir/$my_dlsyms"
  21771. - tmp_deplibs=
  21772. - for test_deplib in $deplibs; do
  21773. - case " $convenience " in
  21774. - *" $test_deplib "*) ;;
  21775. - *)
  21776. - tmp_deplibs="$tmp_deplibs $test_deplib"
  21777. - ;;
  21778. - esac
  21779. - done
  21780. - deplibs="$tmp_deplibs"
  21781. -
  21782. - if test -n "$convenience"; then
  21783. - if test -n "$whole_archive_flag_spec"; then
  21784. - save_libobjs=$libobjs
  21785. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  21786. - else
  21787. - gentop="$output_objdir/${outputname}x"
  21788. - $show "${rm}r $gentop"
  21789. - $run ${rm}r "$gentop"
  21790. - $show "$mkdir $gentop"
  21791. - $run $mkdir "$gentop"
  21792. - status=$?
  21793. - if test "$status" -ne 0 && test ! -d "$gentop"; then
  21794. - exit $status
  21795. - fi
  21796. - generated="$generated $gentop"
  21797. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  21798. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  21799. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  21800. - for xlib in $convenience; do
  21801. - # Extract the objects.
  21802. - case $xlib in
  21803. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  21804. - *) xabs=`pwd`"/$xlib" ;;
  21805. - esac
  21806. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  21807. - xdir="$gentop/$xlib"
  21808. +#ifdef __cplusplus
  21809. +extern \"C\" {
  21810. +#endif
  21811. - $show "${rm}r $xdir"
  21812. - $run ${rm}r "$xdir"
  21813. - $show "$mkdir $xdir"
  21814. - $run $mkdir "$xdir"
  21815. - status=$?
  21816. - if test "$status" -ne 0 && test ! -d "$xdir"; then
  21817. - exit $status
  21818. - fi
  21819. - # We will extract separately just the conflicting names and we will no
  21820. - # longer touch any unique names. It is faster to leave these extract
  21821. - # automatically by $AR in one run.
  21822. - $show "(cd $xdir && $AR x $xabs)"
  21823. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  21824. - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
  21825. - :
  21826. - else
  21827. - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
  21828. - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
  21829. - $AR t "$xabs" | sort | uniq -cd | while read -r count name
  21830. - do
  21831. - i=1
  21832. - while test "$i" -le "$count"
  21833. - do
  21834. - # Put our $i before any first dot (extension)
  21835. - # Never overwrite any file
  21836. - name_to="$name"
  21837. - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
  21838. - do
  21839. - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
  21840. - done
  21841. - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
  21842. - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
  21843. - i=`expr $i + 1`
  21844. - done
  21845. - done
  21846. - fi
  21847. +/* External symbol declarations for the compiler. */\
  21848. +"
  21849. - libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  21850. - done
  21851. - fi
  21852. - fi
  21853. + if test "$dlself" = yes; then
  21854. + func_verbose "generating symbol list for \`$output'"
  21855. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  21856. - eval flag=\"$thread_safe_flag_spec\"
  21857. - linker_flags="$linker_flags $flag"
  21858. - fi
  21859. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  21860. - # Make a backup of the uninstalled library when relinking
  21861. - if test "$mode" = relink; then
  21862. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  21863. - fi
  21864. + # Add our own program objects to the symbol list.
  21865. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  21866. + for progfile in $progfiles; do
  21867. + func_verbose "extracting global C symbols from \`$progfile'"
  21868. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  21869. + done
  21870. - # Do each of the archive commands.
  21871. - if test "$module" = yes && test -n "$module_cmds" ; then
  21872. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  21873. - eval test_cmds=\"$module_expsym_cmds\"
  21874. - cmds=$module_expsym_cmds
  21875. + if test -n "$exclude_expsyms"; then
  21876. + $opt_dry_run || {
  21877. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  21878. + eval '$MV "$nlist"T "$nlist"'
  21879. + }
  21880. + fi
  21881. +
  21882. + if test -n "$export_symbols_regex"; then
  21883. + $opt_dry_run || {
  21884. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  21885. + eval '$MV "$nlist"T "$nlist"'
  21886. + }
  21887. + fi
  21888. +
  21889. + # Prepare the list of exported symbols
  21890. + if test -z "$export_symbols"; then
  21891. + export_symbols="$output_objdir/$outputname.exp"
  21892. + $opt_dry_run || {
  21893. + $RM $export_symbols
  21894. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  21895. + case $host in
  21896. + *cygwin* | *mingw* | *cegcc* )
  21897. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  21898. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  21899. + ;;
  21900. + esac
  21901. + }
  21902. else
  21903. - eval test_cmds=\"$module_cmds\"
  21904. - cmds=$module_cmds
  21905. - fi
  21906. - else
  21907. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  21908. - eval test_cmds=\"$archive_expsym_cmds\"
  21909. - cmds=$archive_expsym_cmds
  21910. - else
  21911. - eval test_cmds=\"$archive_cmds\"
  21912. - cmds=$archive_cmds
  21913. + $opt_dry_run || {
  21914. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  21915. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  21916. + eval '$MV "$nlist"T "$nlist"'
  21917. + case $host in
  21918. + *cygwin | *mingw* | *cegcc* )
  21919. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  21920. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  21921. + ;;
  21922. + esac
  21923. + }
  21924. fi
  21925. fi
  21926. - if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
  21927. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  21928. - :
  21929. - else
  21930. - # The command line is too long to link in one step, link piecewise.
  21931. - $echo "creating reloadable object files..."
  21932. + for dlprefile in $dlprefiles; do
  21933. + func_verbose "extracting global C symbols from \`$dlprefile'"
  21934. + func_basename "$dlprefile"
  21935. + name="$func_basename_result"
  21936. + $opt_dry_run || {
  21937. + eval '$ECHO ": $name " >> "$nlist"'
  21938. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  21939. + }
  21940. + done
  21941. - # Save the value of $output and $libobjs because we want to
  21942. - # use them later. If we have whole_archive_flag_spec, we
  21943. - # want to use save_libobjs as it was before
  21944. - # whole_archive_flag_spec was expanded, because we can't
  21945. - # assume the linker understands whole_archive_flag_spec.
  21946. - # This may have to be revisited, in case too many
  21947. - # convenience libraries get linked in and end up exceeding
  21948. - # the spec.
  21949. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  21950. - save_libobjs=$libobjs
  21951. + $opt_dry_run || {
  21952. + # Make sure we have at least an empty file.
  21953. + test -f "$nlist" || : > "$nlist"
  21954. +
  21955. + if test -n "$exclude_expsyms"; then
  21956. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  21957. + $MV "$nlist"T "$nlist"
  21958. fi
  21959. - save_output=$output
  21960. - # Clear the reloadable object creation command queue and
  21961. - # initialize k to one.
  21962. - test_cmds=
  21963. - concat_cmds=
  21964. - objlist=
  21965. - delfiles=
  21966. - last_robj=
  21967. - k=1
  21968. - output=$output_objdir/$save_output-${k}.$objext
  21969. - # Loop over the list of objects to be linked.
  21970. - for obj in $save_libobjs
  21971. - do
  21972. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  21973. - if test "X$objlist" = X ||
  21974. - { len=`expr "X$test_cmds" : ".*"` &&
  21975. - test "$len" -le "$max_cmd_len"; }; then
  21976. - objlist="$objlist $obj"
  21977. - else
  21978. - # The command $test_cmds is almost too long, add a
  21979. - # command to the queue.
  21980. - if test "$k" -eq 1 ; then
  21981. - # The first file doesn't have a previous command to add.
  21982. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  21983. + # Try sorting and uniquifying the output.
  21984. + if $GREP -v "^: " < "$nlist" |
  21985. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  21986. + sort -k 3
  21987. else
  21988. - # All subsequent reloadable object files will link in
  21989. - # the last one created.
  21990. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  21991. - fi
  21992. - last_robj=$output_objdir/$save_output-${k}.$objext
  21993. - k=`expr $k + 1`
  21994. - output=$output_objdir/$save_output-${k}.$objext
  21995. - objlist=$obj
  21996. - len=1
  21997. - fi
  21998. - done
  21999. - # Handle the remaining objects by creating one last
  22000. - # reloadable object file. All subsequent reloadable object
  22001. - # files will link in the last one created.
  22002. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  22003. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  22004. + sort +2
  22005. + fi |
  22006. + uniq > "$nlist"S; then
  22007. + :
  22008. + else
  22009. + $GREP -v "^: " < "$nlist" > "$nlist"S
  22010. + fi
  22011. - if ${skipped_export-false}; then
  22012. - $show "generating symbol list for \`$libname.la'"
  22013. - export_symbols="$output_objdir/$libname.exp"
  22014. - $run $rm $export_symbols
  22015. - libobjs=$output
  22016. - # Append the command to create the export file.
  22017. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  22018. - fi
  22019. -
  22020. - # Set up a command to remove the reloadale object files
  22021. - # after they are used.
  22022. - i=0
  22023. - while test "$i" -lt "$k"
  22024. - do
  22025. - i=`expr $i + 1`
  22026. - delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
  22027. - done
  22028. + if test -f "$nlist"S; then
  22029. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  22030. + else
  22031. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  22032. + fi
  22033. - $echo "creating a temporary reloadable object file: $output"
  22034. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  22035. - # Loop through the commands generated above and execute them.
  22036. - save_ifs="$IFS"; IFS='~'
  22037. - for cmd in $concat_cmds; do
  22038. - IFS="$save_ifs"
  22039. - $show "$cmd"
  22040. - $run eval "$cmd" || exit $?
  22041. - done
  22042. - IFS="$save_ifs"
  22043. +/* The mapping between symbol names and symbols. */
  22044. +typedef struct {
  22045. + const char *name;
  22046. + void *address;
  22047. +} lt_dlsymlist;
  22048. +"
  22049. + case $host in
  22050. + *cygwin* | *mingw* | *cegcc* )
  22051. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  22052. +/* DATA imports from DLLs on WIN32 con't be const, because
  22053. + runtime relocations are performed -- see ld's documentation
  22054. + on pseudo-relocs. */"
  22055. + lt_dlsym_const= ;;
  22056. + *osf5*)
  22057. + echo >> "$output_objdir/$my_dlsyms" "\
  22058. +/* This system does not cope well with relocations in const data */"
  22059. + lt_dlsym_const= ;;
  22060. + *)
  22061. + lt_dlsym_const=const ;;
  22062. + esac
  22063. - libobjs=$output
  22064. - # Restore the value of output.
  22065. - output=$save_output
  22066. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  22067. +extern $lt_dlsym_const lt_dlsymlist
  22068. +lt_${my_prefix}_LTX_preloaded_symbols[];
  22069. +$lt_dlsym_const lt_dlsymlist
  22070. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  22071. +{\
  22072. + { \"$my_originator\", (void *) 0 },"
  22073. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  22074. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  22075. - fi
  22076. - # Expand the library linking commands again to reset the
  22077. - # value of $libobjs for piecewise linking.
  22078. + case $need_lib_prefix in
  22079. + no)
  22080. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  22081. + ;;
  22082. + *)
  22083. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  22084. + ;;
  22085. + esac
  22086. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  22087. + {0, (void *) 0}
  22088. +};
  22089. - # Do each of the archive commands.
  22090. - if test "$module" = yes && test -n "$module_cmds" ; then
  22091. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  22092. - cmds=$module_expsym_cmds
  22093. - else
  22094. - cmds=$module_cmds
  22095. - fi
  22096. - else
  22097. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  22098. - cmds=$archive_expsym_cmds
  22099. - else
  22100. - cmds=$archive_cmds
  22101. - fi
  22102. - fi
  22103. +/* This works around a problem in FreeBSD linker */
  22104. +#ifdef FREEBSD_WORKAROUND
  22105. +static const void *lt_preloaded_setup() {
  22106. + return lt_${my_prefix}_LTX_preloaded_symbols;
  22107. +}
  22108. +#endif
  22109. - # Append the command to remove the reloadable object files
  22110. - # to the just-reset $cmds.
  22111. - eval cmds=\"\$cmds~\$rm $delfiles\"
  22112. - fi
  22113. - save_ifs="$IFS"; IFS='~'
  22114. - for cmd in $cmds; do
  22115. - IFS="$save_ifs"
  22116. - eval cmd=\"$cmd\"
  22117. - $show "$cmd"
  22118. - $run eval "$cmd" || exit $?
  22119. +#ifdef __cplusplus
  22120. +}
  22121. +#endif\
  22122. +"
  22123. + } # !$opt_dry_run
  22124. +
  22125. + pic_flag_for_symtable=
  22126. + case "$compile_command " in
  22127. + *" -static "*) ;;
  22128. + *)
  22129. + case $host in
  22130. + # compiling the symbol table file with pic_flag works around
  22131. + # a FreeBSD bug that causes programs to crash when -lm is
  22132. + # linked before any other PIC object. But we must not use
  22133. + # pic_flag when linking with -static. The problem exists in
  22134. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  22135. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  22136. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  22137. + *-*-hpux*)
  22138. + pic_flag_for_symtable=" $pic_flag" ;;
  22139. + *)
  22140. + if test "X$my_pic_p" != Xno; then
  22141. + pic_flag_for_symtable=" $pic_flag"
  22142. + fi
  22143. + ;;
  22144. + esac
  22145. + ;;
  22146. + esac
  22147. + symtab_cflags=
  22148. + for arg in $LTCFLAGS; do
  22149. + case $arg in
  22150. + -pie | -fpie | -fPIE) ;;
  22151. + *) symtab_cflags="$symtab_cflags $arg" ;;
  22152. + esac
  22153. done
  22154. - IFS="$save_ifs"
  22155. - # Restore the uninstalled library and exit
  22156. - if test "$mode" = relink; then
  22157. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  22158. - exit $EXIT_SUCCESS
  22159. - fi
  22160. + # Now compile the dynamic symbol file.
  22161. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  22162. - # Create links to the real library.
  22163. - for linkname in $linknames; do
  22164. - if test "$realname" != "$linkname"; then
  22165. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  22166. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  22167. + # Clean up the generated files.
  22168. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  22169. +
  22170. + # Transform the symbol file into the correct name.
  22171. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  22172. + case $host in
  22173. + *cygwin* | *mingw* | *cegcc* )
  22174. + if test -f "$output_objdir/$my_outputname.def"; then
  22175. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  22176. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  22177. + else
  22178. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  22179. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  22180. fi
  22181. - done
  22182. + ;;
  22183. + *)
  22184. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  22185. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  22186. + ;;
  22187. + esac
  22188. + ;;
  22189. + *)
  22190. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  22191. + ;;
  22192. + esac
  22193. + else
  22194. + # We keep going just in case the user didn't refer to
  22195. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  22196. + # really was required.
  22197. +
  22198. + # Nullify the symbol file.
  22199. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  22200. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  22201. + fi
  22202. +}
  22203. - # If -module or -export-dynamic was specified, set the dlname.
  22204. - if test "$module" = yes || test "$export_dynamic" = yes; then
  22205. - # On all known operating systems, these are identical.
  22206. - dlname="$soname"
  22207. - fi
  22208. - fi
  22209. +# func_win32_libid arg
  22210. +# return the library type of file 'arg'
  22211. +#
  22212. +# Need a lot of goo to handle *both* DLLs and import libs
  22213. +# Has to be a shell function in order to 'eat' the argument
  22214. +# that is supplied when $file_magic_command is called.
  22215. +func_win32_libid ()
  22216. +{
  22217. + $opt_debug
  22218. + win32_libid_type="unknown"
  22219. + win32_fileres=`file -L $1 2>/dev/null`
  22220. + case $win32_fileres in
  22221. + *ar\ archive\ import\ library*) # definitely import
  22222. + win32_libid_type="x86 archive import"
  22223. + ;;
  22224. + *ar\ archive*) # could be an import, or static
  22225. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  22226. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  22227. + win32_nmres=`eval $NM -f posix -A $1 |
  22228. + $SED -n -e '
  22229. + 1,100{
  22230. + / I /{
  22231. + s,.*,import,
  22232. + p
  22233. + q
  22234. + }
  22235. + }'`
  22236. + case $win32_nmres in
  22237. + import*) win32_libid_type="x86 archive import";;
  22238. + *) win32_libid_type="x86 archive static";;
  22239. + esac
  22240. + fi
  22241. + ;;
  22242. + *DLL*)
  22243. + win32_libid_type="x86 DLL"
  22244. + ;;
  22245. + *executable*) # but shell scripts are "executable" too...
  22246. + case $win32_fileres in
  22247. + *MS\ Windows\ PE\ Intel*)
  22248. + win32_libid_type="x86 DLL"
  22249. ;;
  22250. + esac
  22251. + ;;
  22252. + esac
  22253. + $ECHO "$win32_libid_type"
  22254. +}
  22255. - obj)
  22256. - if test -n "$deplibs"; then
  22257. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
  22258. - fi
  22259. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  22260. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  22261. - fi
  22262. - if test -n "$rpath"; then
  22263. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  22264. - fi
  22265. +# func_extract_an_archive dir oldlib
  22266. +func_extract_an_archive ()
  22267. +{
  22268. + $opt_debug
  22269. + f_ex_an_ar_dir="$1"; shift
  22270. + f_ex_an_ar_oldlib="$1"
  22271. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  22272. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  22273. + :
  22274. + else
  22275. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  22276. + fi
  22277. +}
  22278. - if test -n "$xrpath"; then
  22279. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  22280. - fi
  22281. - if test -n "$vinfo"; then
  22282. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  22283. - fi
  22284. +# func_extract_archives gentop oldlib ...
  22285. +func_extract_archives ()
  22286. +{
  22287. + $opt_debug
  22288. + my_gentop="$1"; shift
  22289. + my_oldlibs=${1+"$@"}
  22290. + my_oldobjs=""
  22291. + my_xlib=""
  22292. + my_xabs=""
  22293. + my_xdir=""
  22294. +
  22295. + for my_xlib in $my_oldlibs; do
  22296. + # Extract the objects.
  22297. + case $my_xlib in
  22298. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  22299. + *) my_xabs=`pwd`"/$my_xlib" ;;
  22300. + esac
  22301. + func_basename "$my_xlib"
  22302. + my_xlib="$func_basename_result"
  22303. + my_xlib_u=$my_xlib
  22304. + while :; do
  22305. + case " $extracted_archives " in
  22306. + *" $my_xlib_u "*)
  22307. + func_arith $extracted_serial + 1
  22308. + extracted_serial=$func_arith_result
  22309. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  22310. + *) break ;;
  22311. + esac
  22312. + done
  22313. + extracted_archives="$extracted_archives $my_xlib_u"
  22314. + my_xdir="$my_gentop/$my_xlib_u"
  22315. - if test -n "$release"; then
  22316. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  22317. - fi
  22318. + func_mkdir_p "$my_xdir"
  22319. - case $output in
  22320. - *.lo)
  22321. - if test -n "$objs$old_deplibs"; then
  22322. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  22323. - exit $EXIT_FAILURE
  22324. - fi
  22325. - libobj="$output"
  22326. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  22327. + case $host in
  22328. + *-darwin*)
  22329. + func_verbose "Extracting $my_xabs"
  22330. + # Do not bother doing anything if just a dry run
  22331. + $opt_dry_run || {
  22332. + darwin_orig_dir=`pwd`
  22333. + cd $my_xdir || exit $?
  22334. + darwin_archive=$my_xabs
  22335. + darwin_curdir=`pwd`
  22336. + darwin_base_archive=`basename "$darwin_archive"`
  22337. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  22338. + if test -n "$darwin_arches"; then
  22339. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  22340. + darwin_arch=
  22341. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  22342. + for darwin_arch in $darwin_arches ; do
  22343. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  22344. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  22345. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  22346. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  22347. + cd "$darwin_curdir"
  22348. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  22349. + done # $darwin_arches
  22350. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  22351. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  22352. + darwin_file=
  22353. + darwin_files=
  22354. + for darwin_file in $darwin_filelist; do
  22355. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  22356. + $LIPO -create -output "$darwin_file" $darwin_files
  22357. + done # $darwin_filelist
  22358. + $RM -rf unfat-$$
  22359. + cd "$darwin_orig_dir"
  22360. + else
  22361. + cd $darwin_orig_dir
  22362. + func_extract_an_archive "$my_xdir" "$my_xabs"
  22363. + fi # $darwin_arches
  22364. + } # !$opt_dry_run
  22365. ;;
  22366. *)
  22367. - libobj=
  22368. - obj="$output"
  22369. + func_extract_an_archive "$my_xdir" "$my_xabs"
  22370. ;;
  22371. esac
  22372. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  22373. + done
  22374. - # Delete the old objects.
  22375. - $run $rm $obj $libobj
  22376. + func_extract_archives_result="$my_oldobjs"
  22377. +}
  22378. - # Objects from convenience libraries. This assumes
  22379. - # single-version convenience libraries. Whenever we create
  22380. - # different ones for PIC/non-PIC, this we'll have to duplicate
  22381. - # the extraction.
  22382. - reload_conv_objs=
  22383. - gentop=
  22384. - # reload_cmds runs $LD directly, so let us get rid of
  22385. - # -Wl from whole_archive_flag_spec
  22386. - wl=
  22387. - if test -n "$convenience"; then
  22388. - if test -n "$whole_archive_flag_spec"; then
  22389. - eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
  22390. - else
  22391. - gentop="$output_objdir/${obj}x"
  22392. - $show "${rm}r $gentop"
  22393. - $run ${rm}r "$gentop"
  22394. - $show "$mkdir $gentop"
  22395. - $run $mkdir "$gentop"
  22396. - status=$?
  22397. - if test "$status" -ne 0 && test ! -d "$gentop"; then
  22398. - exit $status
  22399. - fi
  22400. - generated="$generated $gentop"
  22401. - for xlib in $convenience; do
  22402. - # Extract the objects.
  22403. - case $xlib in
  22404. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  22405. - *) xabs=`pwd`"/$xlib" ;;
  22406. - esac
  22407. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  22408. - xdir="$gentop/$xlib"
  22409. +# func_emit_wrapper_part1 [arg=no]
  22410. +#
  22411. +# Emit the first part of a libtool wrapper script on stdout.
  22412. +# For more information, see the description associated with
  22413. +# func_emit_wrapper(), below.
  22414. +func_emit_wrapper_part1 ()
  22415. +{
  22416. + func_emit_wrapper_part1_arg1=no
  22417. + if test -n "$1" ; then
  22418. + func_emit_wrapper_part1_arg1=$1
  22419. + fi
  22420. - $show "${rm}r $xdir"
  22421. - $run ${rm}r "$xdir"
  22422. - $show "$mkdir $xdir"
  22423. - $run $mkdir "$xdir"
  22424. - status=$?
  22425. - if test "$status" -ne 0 && test ! -d "$xdir"; then
  22426. - exit $status
  22427. - fi
  22428. - # We will extract separately just the conflicting names and we will no
  22429. - # longer touch any unique names. It is faster to leave these extract
  22430. - # automatically by $AR in one run.
  22431. - $show "(cd $xdir && $AR x $xabs)"
  22432. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  22433. - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
  22434. - :
  22435. - else
  22436. - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
  22437. - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
  22438. - $AR t "$xabs" | sort | uniq -cd | while read -r count name
  22439. - do
  22440. - i=1
  22441. - while test "$i" -le "$count"
  22442. - do
  22443. - # Put our $i before any first dot (extension)
  22444. - # Never overwrite any file
  22445. - name_to="$name"
  22446. - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
  22447. - do
  22448. - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
  22449. - done
  22450. - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
  22451. - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
  22452. - i=`expr $i + 1`
  22453. - done
  22454. - done
  22455. - fi
  22456. -
  22457. - reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  22458. - done
  22459. - fi
  22460. - fi
  22461. -
  22462. - # Create the old-style object.
  22463. - 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
  22464. + $ECHO "\
  22465. +#! $SHELL
  22466. - output="$obj"
  22467. - cmds=$reload_cmds
  22468. - save_ifs="$IFS"; IFS='~'
  22469. - for cmd in $cmds; do
  22470. - IFS="$save_ifs"
  22471. - eval cmd=\"$cmd\"
  22472. - $show "$cmd"
  22473. - $run eval "$cmd" || exit $?
  22474. - done
  22475. - IFS="$save_ifs"
  22476. +# $output - temporary wrapper script for $objdir/$outputname
  22477. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  22478. +#
  22479. +# The $output program cannot be directly executed until all the libtool
  22480. +# libraries that it depends on are installed.
  22481. +#
  22482. +# This wrapper script should never be moved out of the build directory.
  22483. +# If it is, it will not operate correctly.
  22484. - # Exit if we aren't doing a library object file.
  22485. - if test -z "$libobj"; then
  22486. - if test -n "$gentop"; then
  22487. - $show "${rm}r $gentop"
  22488. - $run ${rm}r $gentop
  22489. - fi
  22490. +# Sed substitution that helps us do robust quoting. It backslashifies
  22491. +# metacharacters that are still active within double-quoted strings.
  22492. +Xsed='${SED} -e 1s/^X//'
  22493. +sed_quote_subst='$sed_quote_subst'
  22494. - exit $EXIT_SUCCESS
  22495. - fi
  22496. +# Be Bourne compatible
  22497. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  22498. + emulate sh
  22499. + NULLCMD=:
  22500. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  22501. + # is contrary to our usage. Disable this feature.
  22502. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  22503. + setopt NO_GLOB_SUBST
  22504. +else
  22505. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  22506. +fi
  22507. +BIN_SH=xpg4; export BIN_SH # for Tru64
  22508. +DUALCASE=1; export DUALCASE # for MKS sh
  22509. - if test "$build_libtool_libs" != yes; then
  22510. - if test -n "$gentop"; then
  22511. - $show "${rm}r $gentop"
  22512. - $run ${rm}r $gentop
  22513. - fi
  22514. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  22515. +# if CDPATH is set.
  22516. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22517. - # Create an invalid libtool object if no PIC, so that we don't
  22518. - # accidentally link it into a program.
  22519. - # $show "echo timestamp > $libobj"
  22520. - # $run eval "echo timestamp > $libobj" || exit $?
  22521. - exit $EXIT_SUCCESS
  22522. - fi
  22523. +relink_command=\"$relink_command\"
  22524. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  22525. - # Only do commands if we really have different PIC objects.
  22526. - reload_objs="$libobjs $reload_conv_objs"
  22527. - output="$libobj"
  22528. - cmds=$reload_cmds
  22529. - save_ifs="$IFS"; IFS='~'
  22530. - for cmd in $cmds; do
  22531. - IFS="$save_ifs"
  22532. - eval cmd=\"$cmd\"
  22533. - $show "$cmd"
  22534. - $run eval "$cmd" || exit $?
  22535. - done
  22536. - IFS="$save_ifs"
  22537. - fi
  22538. +# This environment variable determines our operation mode.
  22539. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  22540. + # install mode needs the following variables:
  22541. + generated_by_libtool_version='$macro_version'
  22542. + notinst_deplibs='$notinst_deplibs'
  22543. +else
  22544. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  22545. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  22546. + ECHO=\"$qecho\"
  22547. + file=\"\$0\"
  22548. + # Make sure echo works.
  22549. + if test \"X\$1\" = X--no-reexec; then
  22550. + # Discard the --no-reexec flag, and continue.
  22551. + shift
  22552. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  22553. + # Yippee, \$ECHO works!
  22554. + :
  22555. + else
  22556. + # Restart under the correct shell, and then maybe \$ECHO will work.
  22557. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  22558. + fi
  22559. + fi\
  22560. +"
  22561. + $ECHO "\
  22562. - if test -n "$gentop"; then
  22563. - $show "${rm}r $gentop"
  22564. - $run ${rm}r $gentop
  22565. - fi
  22566. + # Find the directory that this script lives in.
  22567. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  22568. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  22569. - exit $EXIT_SUCCESS
  22570. - ;;
  22571. + # Follow symbolic links until we get to the real thisdir.
  22572. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  22573. + while test -n \"\$file\"; do
  22574. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  22575. - prog)
  22576. - case $host in
  22577. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  22578. + # If there was a directory component, then change thisdir.
  22579. + if test \"x\$destdir\" != \"x\$file\"; then
  22580. + case \"\$destdir\" in
  22581. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  22582. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  22583. esac
  22584. - if test -n "$vinfo"; then
  22585. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  22586. - fi
  22587. + fi
  22588. - if test -n "$release"; then
  22589. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  22590. - fi
  22591. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  22592. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  22593. + done
  22594. +"
  22595. +}
  22596. +# end: func_emit_wrapper_part1
  22597. - if test "$preload" = yes; then
  22598. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  22599. - test "$dlopen_self_static" = unknown; then
  22600. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  22601. - fi
  22602. - fi
  22603. +# func_emit_wrapper_part2 [arg=no]
  22604. +#
  22605. +# Emit the second part of a libtool wrapper script on stdout.
  22606. +# For more information, see the description associated with
  22607. +# func_emit_wrapper(), below.
  22608. +func_emit_wrapper_part2 ()
  22609. +{
  22610. + func_emit_wrapper_part2_arg1=no
  22611. + if test -n "$1" ; then
  22612. + func_emit_wrapper_part2_arg1=$1
  22613. + fi
  22614. +
  22615. + $ECHO "\
  22616. +
  22617. + # Usually 'no', except on cygwin/mingw when embedded into
  22618. + # the cwrapper.
  22619. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  22620. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  22621. + # special case for '.'
  22622. + if test \"\$thisdir\" = \".\"; then
  22623. + thisdir=\`pwd\`
  22624. + fi
  22625. + # remove .libs from thisdir
  22626. + case \"\$thisdir\" in
  22627. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  22628. + $objdir ) thisdir=. ;;
  22629. + esac
  22630. + fi
  22631. - case $host in
  22632. - *-*-rhapsody* | *-*-darwin1.[012])
  22633. - # On Rhapsody replace the C library is the System framework
  22634. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  22635. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  22636. - ;;
  22637. - esac
  22638. + # Try to get the absolute directory name.
  22639. + absdir=\`cd \"\$thisdir\" && pwd\`
  22640. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  22641. +"
  22642. - case $host in
  22643. - *darwin*)
  22644. - # Don't allow lazy linking, it breaks C++ global constructors
  22645. - if test "$tagname" = CXX ; then
  22646. - compile_command="$compile_command ${wl}-bind_at_load"
  22647. - finalize_command="$finalize_command ${wl}-bind_at_load"
  22648. - fi
  22649. - ;;
  22650. - esac
  22651. + if test "$fast_install" = yes; then
  22652. + $ECHO "\
  22653. + program=lt-'$outputname'$exeext
  22654. + progdir=\"\$thisdir/$objdir\"
  22655. - compile_command="$compile_command $compile_deplibs"
  22656. - finalize_command="$finalize_command $finalize_deplibs"
  22657. + if test ! -f \"\$progdir/\$program\" ||
  22658. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  22659. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  22660. - if test -n "$rpath$xrpath"; then
  22661. - # If the user specified any rpath flags, then add them.
  22662. - for libdir in $rpath $xrpath; do
  22663. - # This is the magic to use -rpath.
  22664. - case "$finalize_rpath " in
  22665. - *" $libdir "*) ;;
  22666. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  22667. - esac
  22668. - done
  22669. - fi
  22670. + file=\"\$\$-\$program\"
  22671. - # Now hardcode the library paths
  22672. - rpath=
  22673. - hardcode_libdirs=
  22674. - for libdir in $compile_rpath $finalize_rpath; do
  22675. - if test -n "$hardcode_libdir_flag_spec"; then
  22676. - if test -n "$hardcode_libdir_separator"; then
  22677. - if test -z "$hardcode_libdirs"; then
  22678. - hardcode_libdirs="$libdir"
  22679. - else
  22680. - # Just accumulate the unique libdirs.
  22681. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  22682. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  22683. - ;;
  22684. - *)
  22685. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  22686. - ;;
  22687. - esac
  22688. - fi
  22689. - else
  22690. - eval flag=\"$hardcode_libdir_flag_spec\"
  22691. - rpath="$rpath $flag"
  22692. - fi
  22693. - elif test -n "$runpath_var"; then
  22694. - case "$perm_rpath " in
  22695. - *" $libdir "*) ;;
  22696. - *) perm_rpath="$perm_rpath $libdir" ;;
  22697. - esac
  22698. - fi
  22699. - case $host in
  22700. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  22701. - case :$dllsearchpath: in
  22702. - *":$libdir:"*) ;;
  22703. - *) dllsearchpath="$dllsearchpath:$libdir";;
  22704. - esac
  22705. - ;;
  22706. - esac
  22707. - done
  22708. - # Substitute the hardcoded libdirs into the rpath.
  22709. - if test -n "$hardcode_libdir_separator" &&
  22710. - test -n "$hardcode_libdirs"; then
  22711. - libdir="$hardcode_libdirs"
  22712. - eval rpath=\" $hardcode_libdir_flag_spec\"
  22713. - fi
  22714. - compile_rpath="$rpath"
  22715. + if test ! -d \"\$progdir\"; then
  22716. + $MKDIR \"\$progdir\"
  22717. + else
  22718. + $RM \"\$progdir/\$file\"
  22719. + fi"
  22720. - rpath=
  22721. - hardcode_libdirs=
  22722. - for libdir in $finalize_rpath; do
  22723. - if test -n "$hardcode_libdir_flag_spec"; then
  22724. - if test -n "$hardcode_libdir_separator"; then
  22725. - if test -z "$hardcode_libdirs"; then
  22726. - hardcode_libdirs="$libdir"
  22727. - else
  22728. - # Just accumulate the unique libdirs.
  22729. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  22730. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  22731. - ;;
  22732. - *)
  22733. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  22734. - ;;
  22735. - esac
  22736. - fi
  22737. - else
  22738. - eval flag=\"$hardcode_libdir_flag_spec\"
  22739. - rpath="$rpath $flag"
  22740. - fi
  22741. - elif test -n "$runpath_var"; then
  22742. - case "$finalize_perm_rpath " in
  22743. - *" $libdir "*) ;;
  22744. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  22745. - esac
  22746. - fi
  22747. - done
  22748. - # Substitute the hardcoded libdirs into the rpath.
  22749. - if test -n "$hardcode_libdir_separator" &&
  22750. - test -n "$hardcode_libdirs"; then
  22751. - libdir="$hardcode_libdirs"
  22752. - eval rpath=\" $hardcode_libdir_flag_spec\"
  22753. - fi
  22754. - finalize_rpath="$rpath"
  22755. + $ECHO "\
  22756. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  22757. - # Transform all the library objects into standard objects.
  22758. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  22759. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  22760. + # relink executable if necessary
  22761. + if test -n \"\$relink_command\"; then
  22762. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  22763. + else
  22764. + $ECHO \"\$relink_command_output\" >&2
  22765. + $RM \"\$progdir/\$file\"
  22766. + exit 1
  22767. fi
  22768. + fi
  22769. - dlsyms=
  22770. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  22771. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  22772. - dlsyms="${outputname}S.c"
  22773. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  22774. + { $RM \"\$progdir/\$program\";
  22775. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  22776. + $RM \"\$progdir/\$file\"
  22777. + fi"
  22778. else
  22779. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  22780. + $ECHO "\
  22781. + program='$outputname'
  22782. + progdir=\"\$thisdir/$objdir\"
  22783. +"
  22784. fi
  22785. - fi
  22786. -
  22787. - if test -n "$dlsyms"; then
  22788. - case $dlsyms in
  22789. - "") ;;
  22790. - *.c)
  22791. - # Discover the nlist of each of the dlfiles.
  22792. - nlist="$output_objdir/${outputname}.nm"
  22793. -
  22794. - $show "$rm $nlist ${nlist}S ${nlist}T"
  22795. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  22796. - # Parse the name list into a source file.
  22797. - $show "creating $output_objdir/$dlsyms"
  22798. + $ECHO "\
  22799. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  22800. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  22801. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  22802. + if test -f \"\$progdir/\$program\"; then"
  22803. -#ifdef __cplusplus
  22804. -extern \"C\" {
  22805. -#endif
  22806. + # Export our shlibpath_var if we have one.
  22807. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  22808. + $ECHO "\
  22809. + # Add our own library path to $shlibpath_var
  22810. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  22811. -/* Prevent the only kind of declaration conflicts we can make. */
  22812. -#define lt_preloaded_symbols some_other_symbol
  22813. + # Some systems cannot cope with colon-terminated $shlibpath_var
  22814. + # The second colon is a workaround for a bug in BeOS R4 sed
  22815. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  22816. -/* External symbol declarations for the compiler. */\
  22817. + export $shlibpath_var
  22818. "
  22819. + fi
  22820. - if test "$dlself" = yes; then
  22821. - $show "generating symbol list for \`$output'"
  22822. -
  22823. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  22824. -
  22825. - # Add our own program objects to the symbol list.
  22826. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  22827. - for arg in $progfiles; do
  22828. - $show "extracting global C symbols from \`$arg'"
  22829. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  22830. - done
  22831. -
  22832. - if test -n "$exclude_expsyms"; then
  22833. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  22834. - $run eval '$mv "$nlist"T "$nlist"'
  22835. - fi
  22836. + # fixup the dll searchpath if we need to.
  22837. + if test -n "$dllsearchpath"; then
  22838. + $ECHO "\
  22839. + # Add the dll search path components to the executable PATH
  22840. + PATH=$dllsearchpath:\$PATH
  22841. +"
  22842. + fi
  22843. - if test -n "$export_symbols_regex"; then
  22844. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  22845. - $run eval '$mv "$nlist"T "$nlist"'
  22846. - fi
  22847. + $ECHO "\
  22848. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  22849. + # Run the actual program with our arguments.
  22850. +"
  22851. + case $host in
  22852. + # Backslashes separate directories on plain windows
  22853. + *-*-mingw | *-*-os2* | *-cegcc*)
  22854. + $ECHO "\
  22855. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  22856. +"
  22857. + ;;
  22858. - # Prepare the list of exported symbols
  22859. - if test -z "$export_symbols"; then
  22860. - export_symbols="$output_objdir/$output.exp"
  22861. - $run $rm $export_symbols
  22862. - $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  22863. - else
  22864. - $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
  22865. - $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
  22866. - $run eval 'mv "$nlist"T "$nlist"'
  22867. - fi
  22868. - fi
  22869. -
  22870. - for arg in $dlprefiles; do
  22871. - $show "extracting global C symbols from \`$arg'"
  22872. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  22873. - $run eval '$echo ": $name " >> "$nlist"'
  22874. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  22875. - done
  22876. -
  22877. - if test -z "$run"; then
  22878. - # Make sure we have at least an empty file.
  22879. - test -f "$nlist" || : > "$nlist"
  22880. -
  22881. - if test -n "$exclude_expsyms"; then
  22882. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  22883. - $mv "$nlist"T "$nlist"
  22884. - fi
  22885. -
  22886. - # Try sorting and uniquifying the output.
  22887. - if grep -v "^: " < "$nlist" |
  22888. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  22889. - sort -k 3
  22890. - else
  22891. - sort +2
  22892. - fi |
  22893. - uniq > "$nlist"S; then
  22894. - :
  22895. - else
  22896. - grep -v "^: " < "$nlist" > "$nlist"S
  22897. - fi
  22898. -
  22899. - if test -f "$nlist"S; then
  22900. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  22901. - else
  22902. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  22903. - fi
  22904. -
  22905. - $echo >> "$output_objdir/$dlsyms" "\
  22906. -
  22907. -#undef lt_preloaded_symbols
  22908. -
  22909. -#if defined (__STDC__) && __STDC__
  22910. -# define lt_ptr void *
  22911. -#else
  22912. -# define lt_ptr char *
  22913. -# define const
  22914. -#endif
  22915. -
  22916. -/* The mapping between symbol names and symbols. */
  22917. -const struct {
  22918. - const char *name;
  22919. - lt_ptr address;
  22920. -}
  22921. -lt_preloaded_symbols[] =
  22922. -{\
  22923. -"
  22924. -
  22925. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  22926. -
  22927. - $echo >> "$output_objdir/$dlsyms" "\
  22928. - {0, (lt_ptr) 0}
  22929. -};
  22930. -
  22931. -/* This works around a problem in FreeBSD linker */
  22932. -#ifdef FREEBSD_WORKAROUND
  22933. -static const void *lt_preloaded_setup() {
  22934. - return lt_preloaded_symbols;
  22935. -}
  22936. -#endif
  22937. -
  22938. -#ifdef __cplusplus
  22939. -}
  22940. -#endif\
  22941. -"
  22942. - fi
  22943. -
  22944. - pic_flag_for_symtable=
  22945. - case $host in
  22946. - # compiling the symbol table file with pic_flag works around
  22947. - # a FreeBSD bug that causes programs to crash when -lm is
  22948. - # linked before any other PIC object. But we must not use
  22949. - # pic_flag when linking with -static. The problem exists in
  22950. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  22951. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  22952. - case "$compile_command " in
  22953. - *" -static "*) ;;
  22954. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  22955. - esac;;
  22956. - *-*-hpux*)
  22957. - case "$compile_command " in
  22958. - *" -static "*) ;;
  22959. - *) pic_flag_for_symtable=" $pic_flag";;
  22960. - esac
  22961. - esac
  22962. -
  22963. - # Now compile the dynamic symbol file.
  22964. - $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  22965. - $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  22966. -
  22967. - # Clean up the generated files.
  22968. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  22969. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  22970. -
  22971. - # Transform the symbol file into the correct name.
  22972. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  22973. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  22974. - ;;
  22975. *)
  22976. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  22977. - exit $EXIT_FAILURE
  22978. + $ECHO "\
  22979. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  22980. +"
  22981. ;;
  22982. esac
  22983. - else
  22984. - # We keep going just in case the user didn't refer to
  22985. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  22986. - # really was required.
  22987. -
  22988. - # Nullify the symbol file.
  22989. - compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  22990. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  22991. - fi
  22992. -
  22993. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  22994. - # Replace the output file specification.
  22995. - compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  22996. - link_command="$compile_command$compile_rpath"
  22997. -
  22998. - # We have no uninstalled library dependencies, so finalize right now.
  22999. - $show "$link_command"
  23000. - $run eval "$link_command"
  23001. - status=$?
  23002. -
  23003. - # Delete the generated files.
  23004. - if test -n "$dlsyms"; then
  23005. - $show "$rm $output_objdir/${outputname}S.${objext}"
  23006. - $run $rm "$output_objdir/${outputname}S.${objext}"
  23007. - fi
  23008. -
  23009. - exit $status
  23010. - fi
  23011. -
  23012. - if test -n "$shlibpath_var"; then
  23013. - # We should set the shlibpath_var
  23014. - rpath=
  23015. - for dir in $temp_rpath; do
  23016. - case $dir in
  23017. - [\\/]* | [A-Za-z]:[\\/]*)
  23018. - # Absolute path.
  23019. - rpath="$rpath$dir:"
  23020. - ;;
  23021. - *)
  23022. - # Relative path: add a thisdir entry.
  23023. - rpath="$rpath\$thisdir/$dir:"
  23024. - ;;
  23025. - esac
  23026. - done
  23027. - temp_rpath="$rpath"
  23028. - fi
  23029. -
  23030. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  23031. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  23032. - fi
  23033. - if test -n "$finalize_shlibpath"; then
  23034. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  23035. - fi
  23036. -
  23037. - compile_var=
  23038. - finalize_var=
  23039. - if test -n "$runpath_var"; then
  23040. - if test -n "$perm_rpath"; then
  23041. - # We should set the runpath_var.
  23042. - rpath=
  23043. - for dir in $perm_rpath; do
  23044. - rpath="$rpath$dir:"
  23045. - done
  23046. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  23047. - fi
  23048. - if test -n "$finalize_perm_rpath"; then
  23049. - # We should set the runpath_var.
  23050. - rpath=
  23051. - for dir in $finalize_perm_rpath; do
  23052. - rpath="$rpath$dir:"
  23053. - done
  23054. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  23055. - fi
  23056. - fi
  23057. -
  23058. - if test "$no_install" = yes; then
  23059. - # We don't need to create a wrapper script.
  23060. - link_command="$compile_var$compile_command$compile_rpath"
  23061. - # Replace the output file specification.
  23062. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  23063. - # Delete the old output file.
  23064. - $run $rm $output
  23065. - # Link the executable and exit
  23066. - $show "$link_command"
  23067. - $run eval "$link_command" || exit $?
  23068. - exit $EXIT_SUCCESS
  23069. - fi
  23070. + $ECHO "\
  23071. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  23072. + exit 1
  23073. + fi
  23074. + else
  23075. + # The program doesn't exist.
  23076. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  23077. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  23078. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  23079. + exit 1
  23080. + fi
  23081. +fi\
  23082. +"
  23083. +}
  23084. +# end: func_emit_wrapper_part2
  23085. - if test "$hardcode_action" = relink; then
  23086. - # Fast installation is not supported
  23087. - link_command="$compile_var$compile_command$compile_rpath"
  23088. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  23089. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  23090. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  23091. - else
  23092. - if test "$fast_install" != no; then
  23093. - link_command="$finalize_var$compile_command$finalize_rpath"
  23094. - if test "$fast_install" = yes; then
  23095. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  23096. - else
  23097. - # fast_install is set to needless
  23098. - relink_command=
  23099. - fi
  23100. - else
  23101. - link_command="$compile_var$compile_command$compile_rpath"
  23102. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  23103. +# func_emit_wrapper [arg=no]
  23104. +#
  23105. +# Emit a libtool wrapper script on stdout.
  23106. +# Don't directly open a file because we may want to
  23107. +# incorporate the script contents within a cygwin/mingw
  23108. +# wrapper executable. Must ONLY be called from within
  23109. +# func_mode_link because it depends on a number of variables
  23110. +# set therein.
  23111. +#
  23112. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  23113. +# variable will take. If 'yes', then the emitted script
  23114. +# will assume that the directory in which it is stored is
  23115. +# the $objdir directory. This is a cygwin/mingw-specific
  23116. +# behavior.
  23117. +func_emit_wrapper ()
  23118. +{
  23119. + func_emit_wrapper_arg1=no
  23120. + if test -n "$1" ; then
  23121. + func_emit_wrapper_arg1=$1
  23122. fi
  23123. - fi
  23124. -
  23125. - # Replace the output file specification.
  23126. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  23127. -
  23128. - # Delete the old output files.
  23129. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  23130. -
  23131. - $show "$link_command"
  23132. - $run eval "$link_command" || exit $?
  23133. - # Now create the wrapper script.
  23134. - $show "creating $output"
  23135. + # split this up so that func_emit_cwrapperexe_src
  23136. + # can call each part independently.
  23137. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  23138. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  23139. +}
  23140. - # Quote the relink command for shipping.
  23141. - if test -n "$relink_command"; then
  23142. - # Preserve any variables that may affect compiler behavior
  23143. - for var in $variables_saved_for_relink; do
  23144. - if eval test -z \"\${$var+set}\"; then
  23145. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  23146. - elif eval var_value=\$$var; test -z "$var_value"; then
  23147. - relink_command="$var=; export $var; $relink_command"
  23148. - else
  23149. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  23150. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  23151. - fi
  23152. - done
  23153. - relink_command="(cd `pwd`; $relink_command)"
  23154. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  23155. - fi
  23156. - # Quote $echo for shipping.
  23157. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  23158. - case $progpath in
  23159. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  23160. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  23161. - esac
  23162. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  23163. - else
  23164. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  23165. - fi
  23166. +# func_to_host_path arg
  23167. +#
  23168. +# Convert paths to host format when used with build tools.
  23169. +# Intended for use with "native" mingw (where libtool itself
  23170. +# is running under the msys shell), or in the following cross-
  23171. +# build environments:
  23172. +# $build $host
  23173. +# mingw (msys) mingw [e.g. native]
  23174. +# cygwin mingw
  23175. +# *nix + wine mingw
  23176. +# where wine is equipped with the `winepath' executable.
  23177. +# In the native mingw case, the (msys) shell automatically
  23178. +# converts paths for any non-msys applications it launches,
  23179. +# but that facility isn't available from inside the cwrapper.
  23180. +# Similar accommodations are necessary for $host mingw and
  23181. +# $build cygwin. Calling this function does no harm for other
  23182. +# $host/$build combinations not listed above.
  23183. +#
  23184. +# ARG is the path (on $build) that should be converted to
  23185. +# the proper representation for $host. The result is stored
  23186. +# in $func_to_host_path_result.
  23187. +func_to_host_path ()
  23188. +{
  23189. + func_to_host_path_result="$1"
  23190. + if test -n "$1" ; then
  23191. + case $host in
  23192. + *mingw* )
  23193. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  23194. + case $build in
  23195. + *mingw* ) # actually, msys
  23196. + # awkward: cmd appends spaces to result
  23197. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  23198. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  23199. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  23200. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  23201. + $SED -e "$lt_sed_naive_backslashify"`
  23202. + ;;
  23203. + *cygwin* )
  23204. + func_to_host_path_tmp1=`cygpath -w "$1"`
  23205. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  23206. + $SED -e "$lt_sed_naive_backslashify"`
  23207. + ;;
  23208. + * )
  23209. + # Unfortunately, winepath does not exit with a non-zero
  23210. + # error code, so we are forced to check the contents of
  23211. + # stdout. On the other hand, if the command is not
  23212. + # found, the shell will set an exit code of 127 and print
  23213. + # *an error message* to stdout. So we must check for both
  23214. + # error code of zero AND non-empty stdout, which explains
  23215. + # the odd construction:
  23216. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  23217. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  23218. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  23219. + $SED -e "$lt_sed_naive_backslashify"`
  23220. + else
  23221. + # Allow warning below.
  23222. + func_to_host_path_result=""
  23223. + fi
  23224. + ;;
  23225. + esac
  23226. + if test -z "$func_to_host_path_result" ; then
  23227. + func_error "Could not determine host path corresponding to"
  23228. + func_error " '$1'"
  23229. + func_error "Continuing, but uninstalled executables may not work."
  23230. + # Fallback:
  23231. + func_to_host_path_result="$1"
  23232. + fi
  23233. + ;;
  23234. + esac
  23235. + fi
  23236. +}
  23237. +# end: func_to_host_path
  23238. - # Only actually do things if our run command is non-null.
  23239. - if test -z "$run"; then
  23240. - # win32 will think the script is a binary if it has
  23241. - # a .exe suffix, so we strip it off here.
  23242. - case $output in
  23243. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  23244. - esac
  23245. - # test for cygwin because mv fails w/o .exe extensions
  23246. - case $host in
  23247. - *cygwin*)
  23248. - exeext=.exe
  23249. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  23250. - *) exeext= ;;
  23251. - esac
  23252. - case $host in
  23253. - *cygwin* | *mingw* )
  23254. - cwrappersource=`$echo ${objdir}/lt-${output}.c`
  23255. - cwrapper=`$echo ${output}.exe`
  23256. - $rm $cwrappersource $cwrapper
  23257. - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  23258. +# func_to_host_pathlist arg
  23259. +#
  23260. +# Convert pathlists to host format when used with build tools.
  23261. +# See func_to_host_path(), above. This function supports the
  23262. +# following $build/$host combinations (but does no harm for
  23263. +# combinations not listed here):
  23264. +# $build $host
  23265. +# mingw (msys) mingw [e.g. native]
  23266. +# cygwin mingw
  23267. +# *nix + wine mingw
  23268. +#
  23269. +# Path separators are also converted from $build format to
  23270. +# $host format. If ARG begins or ends with a path separator
  23271. +# character, it is preserved (but converted to $host format)
  23272. +# on output.
  23273. +#
  23274. +# ARG is a pathlist (on $build) that should be converted to
  23275. +# the proper representation on $host. The result is stored
  23276. +# in $func_to_host_pathlist_result.
  23277. +func_to_host_pathlist ()
  23278. +{
  23279. + func_to_host_pathlist_result="$1"
  23280. + if test -n "$1" ; then
  23281. + case $host in
  23282. + *mingw* )
  23283. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  23284. + # Remove leading and trailing path separator characters from
  23285. + # ARG. msys behavior is inconsistent here, cygpath turns them
  23286. + # into '.;' and ';.', and winepath ignores them completely.
  23287. + func_to_host_pathlist_tmp2="$1"
  23288. + # Once set for this call, this variable should not be
  23289. + # reassigned. It is used in tha fallback case.
  23290. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  23291. + $SED -e 's|^:*||' -e 's|:*$||'`
  23292. + case $build in
  23293. + *mingw* ) # Actually, msys.
  23294. + # Awkward: cmd appends spaces to result.
  23295. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  23296. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  23297. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  23298. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  23299. + $SED -e "$lt_sed_naive_backslashify"`
  23300. + ;;
  23301. + *cygwin* )
  23302. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  23303. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  23304. + $SED -e "$lt_sed_naive_backslashify"`
  23305. + ;;
  23306. + * )
  23307. + # unfortunately, winepath doesn't convert pathlists
  23308. + func_to_host_pathlist_result=""
  23309. + func_to_host_pathlist_oldIFS=$IFS
  23310. + IFS=:
  23311. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  23312. + IFS=$func_to_host_pathlist_oldIFS
  23313. + if test -n "$func_to_host_pathlist_f" ; then
  23314. + func_to_host_path "$func_to_host_pathlist_f"
  23315. + if test -n "$func_to_host_path_result" ; then
  23316. + if test -z "$func_to_host_pathlist_result" ; then
  23317. + func_to_host_pathlist_result="$func_to_host_path_result"
  23318. + else
  23319. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  23320. + fi
  23321. + fi
  23322. + fi
  23323. + IFS=:
  23324. + done
  23325. + IFS=$func_to_host_pathlist_oldIFS
  23326. + ;;
  23327. + esac
  23328. + if test -z "$func_to_host_pathlist_result" ; then
  23329. + func_error "Could not determine the host path(s) corresponding to"
  23330. + func_error " '$1'"
  23331. + func_error "Continuing, but uninstalled executables may not work."
  23332. + # Fallback. This may break if $1 contains DOS-style drive
  23333. + # specifications. The fix is not to complicate the expression
  23334. + # below, but for the user to provide a working wine installation
  23335. + # with winepath so that path translation in the cross-to-mingw
  23336. + # case works properly.
  23337. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  23338. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  23339. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  23340. + fi
  23341. + # Now, add the leading and trailing path separators back
  23342. + case "$1" in
  23343. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  23344. + ;;
  23345. + esac
  23346. + case "$1" in
  23347. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  23348. + ;;
  23349. + esac
  23350. + ;;
  23351. + esac
  23352. + fi
  23353. +}
  23354. +# end: func_to_host_pathlist
  23355. - cat > $cwrappersource <<EOF
  23356. +# func_emit_cwrapperexe_src
  23357. +# emit the source code for a wrapper executable on stdout
  23358. +# Must ONLY be called from within func_mode_link because
  23359. +# it depends on a number of variable set therein.
  23360. +func_emit_cwrapperexe_src ()
  23361. +{
  23362. + cat <<EOF
  23363. /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  23364. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  23365. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  23366. The $output program cannot be directly executed until all the libtool
  23367. libraries that it depends on are installed.
  23368. @@ -4594,18 +3142,40 @@
  23369. This wrapper executable should never be moved out of the build directory.
  23370. If it is, it will not operate correctly.
  23371. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  23372. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  23373. but could eventually absorb all of the scripts functionality and
  23374. exec $objdir/$outputname directly.
  23375. */
  23376. EOF
  23377. - cat >> $cwrappersource<<"EOF"
  23378. + cat <<"EOF"
  23379. #include <stdio.h>
  23380. #include <stdlib.h>
  23381. -#include <unistd.h>
  23382. +#ifdef _MSC_VER
  23383. +# include <direct.h>
  23384. +# include <process.h>
  23385. +# include <io.h>
  23386. +# define setmode _setmode
  23387. +#else
  23388. +# include <unistd.h>
  23389. +# include <stdint.h>
  23390. +# ifdef __CYGWIN__
  23391. +# include <io.h>
  23392. +# define HAVE_SETENV
  23393. +# ifdef __STRICT_ANSI__
  23394. +char *realpath (const char *, char *);
  23395. +int putenv (char *);
  23396. +int setenv (const char *, const char *, int);
  23397. +# endif
  23398. +# endif
  23399. +#endif
  23400. #include <malloc.h>
  23401. #include <stdarg.h>
  23402. #include <assert.h>
  23403. +#include <string.h>
  23404. +#include <ctype.h>
  23405. +#include <errno.h>
  23406. +#include <fcntl.h>
  23407. +#include <sys/stat.h>
  23408. #if defined(PATH_MAX)
  23409. # define LT_PATHMAX PATH_MAX
  23410. @@ -4615,154 +3185,657 @@
  23411. # define LT_PATHMAX 1024
  23412. #endif
  23413. +#ifndef S_IXOTH
  23414. +# define S_IXOTH 0
  23415. +#endif
  23416. +#ifndef S_IXGRP
  23417. +# define S_IXGRP 0
  23418. +#endif
  23419. +
  23420. +#ifdef _MSC_VER
  23421. +# define S_IXUSR _S_IEXEC
  23422. +# define stat _stat
  23423. +# ifndef _INTPTR_T_DEFINED
  23424. +# define intptr_t int
  23425. +# endif
  23426. +#endif
  23427. +
  23428. #ifndef DIR_SEPARATOR
  23429. -#define DIR_SEPARATOR '/'
  23430. +# define DIR_SEPARATOR '/'
  23431. +# define PATH_SEPARATOR ':'
  23432. #endif
  23433. #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  23434. defined (__OS2__)
  23435. -#define HAVE_DOS_BASED_FILE_SYSTEM
  23436. -#ifndef DIR_SEPARATOR_2
  23437. -#define DIR_SEPARATOR_2 '\\'
  23438. -#endif
  23439. +# define HAVE_DOS_BASED_FILE_SYSTEM
  23440. +# define FOPEN_WB "wb"
  23441. +# ifndef DIR_SEPARATOR_2
  23442. +# define DIR_SEPARATOR_2 '\\'
  23443. +# endif
  23444. +# ifndef PATH_SEPARATOR_2
  23445. +# define PATH_SEPARATOR_2 ';'
  23446. +# endif
  23447. #endif
  23448. #ifndef DIR_SEPARATOR_2
  23449. # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  23450. #else /* DIR_SEPARATOR_2 */
  23451. # define IS_DIR_SEPARATOR(ch) \
  23452. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  23453. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  23454. #endif /* DIR_SEPARATOR_2 */
  23455. +#ifndef PATH_SEPARATOR_2
  23456. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  23457. +#else /* PATH_SEPARATOR_2 */
  23458. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  23459. +#endif /* PATH_SEPARATOR_2 */
  23460. +
  23461. +#ifdef __CYGWIN__
  23462. +# define FOPEN_WB "wb"
  23463. +#endif
  23464. +
  23465. +#ifndef FOPEN_WB
  23466. +# define FOPEN_WB "w"
  23467. +#endif
  23468. +#ifndef _O_BINARY
  23469. +# define _O_BINARY 0
  23470. +#endif
  23471. +
  23472. #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  23473. #define XFREE(stale) do { \
  23474. if (stale) { free ((void *) stale); stale = 0; } \
  23475. } while (0)
  23476. +#undef LTWRAPPER_DEBUGPRINTF
  23477. +#if defined DEBUGWRAPPER
  23478. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  23479. +static void
  23480. +ltwrapper_debugprintf (const char *fmt, ...)
  23481. +{
  23482. + va_list args;
  23483. + va_start (args, fmt);
  23484. + (void) vfprintf (stderr, fmt, args);
  23485. + va_end (args);
  23486. +}
  23487. +#else
  23488. +# define LTWRAPPER_DEBUGPRINTF(args)
  23489. +#endif
  23490. +
  23491. const char *program_name = NULL;
  23492. -void * xmalloc (size_t num);
  23493. -char * xstrdup (const char *string);
  23494. -char * basename (const char *name);
  23495. -char * fnqualify(const char *path);
  23496. -char * strendzap(char *str, const char *pat);
  23497. +void *xmalloc (size_t num);
  23498. +char *xstrdup (const char *string);
  23499. +const char *base_name (const char *name);
  23500. +char *find_executable (const char *wrapper);
  23501. +char *chase_symlinks (const char *pathspec);
  23502. +int make_executable (const char *path);
  23503. +int check_executable (const char *path);
  23504. +char *strendzap (char *str, const char *pat);
  23505. void lt_fatal (const char *message, ...);
  23506. +void lt_setenv (const char *name, const char *value);
  23507. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  23508. +void lt_opt_process_env_set (const char *arg);
  23509. +void lt_opt_process_env_prepend (const char *arg);
  23510. +void lt_opt_process_env_append (const char *arg);
  23511. +int lt_split_name_value (const char *arg, char** name, char** value);
  23512. +void lt_update_exe_path (const char *name, const char *value);
  23513. +void lt_update_lib_path (const char *name, const char *value);
  23514. -int
  23515. -main (int argc, char *argv[])
  23516. -{
  23517. - char **newargz;
  23518. - int i;
  23519. +static const char *script_text_part1 =
  23520. +EOF
  23521. - program_name = (char *) xstrdup ((char *) basename (argv[0]));
  23522. - newargz = XMALLOC(char *, argc+2);
  23523. + func_emit_wrapper_part1 yes |
  23524. + $SED -e 's/\([\\"]\)/\\\1/g' \
  23525. + -e 's/^/ "/' -e 's/$/\\n"/'
  23526. + echo ";"
  23527. + cat <<EOF
  23528. +
  23529. +static const char *script_text_part2 =
  23530. +EOF
  23531. + func_emit_wrapper_part2 yes |
  23532. + $SED -e 's/\([\\"]\)/\\\1/g' \
  23533. + -e 's/^/ "/' -e 's/$/\\n"/'
  23534. + echo ";"
  23535. +
  23536. + cat <<EOF
  23537. +const char * MAGIC_EXE = "$magic_exe";
  23538. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  23539. EOF
  23540. - cat >> $cwrappersource <<EOF
  23541. - newargz[0] = "$SHELL";
  23542. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  23543. + func_to_host_pathlist "$temp_rpath"
  23544. + cat <<EOF
  23545. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  23546. +EOF
  23547. + else
  23548. + cat <<"EOF"
  23549. +const char * LIB_PATH_VALUE = "";
  23550. EOF
  23551. + fi
  23552. - cat >> $cwrappersource <<"EOF"
  23553. - newargz[1] = fnqualify(argv[0]);
  23554. - /* we know the script has the same name, without the .exe */
  23555. - /* so make sure newargz[1] doesn't end in .exe */
  23556. - strendzap(newargz[1],".exe");
  23557. - for (i = 1; i < argc; i++)
  23558. - newargz[i+1] = xstrdup(argv[i]);
  23559. - newargz[argc+1] = NULL;
  23560. + if test -n "$dllsearchpath"; then
  23561. + func_to_host_pathlist "$dllsearchpath:"
  23562. + cat <<EOF
  23563. +const char * EXE_PATH_VARNAME = "PATH";
  23564. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  23565. +EOF
  23566. + else
  23567. + cat <<"EOF"
  23568. +const char * EXE_PATH_VARNAME = "";
  23569. +const char * EXE_PATH_VALUE = "";
  23570. EOF
  23571. + fi
  23572. - cat >> $cwrappersource <<EOF
  23573. - execv("$SHELL",newargz);
  23574. + if test "$fast_install" = yes; then
  23575. + cat <<EOF
  23576. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  23577. +EOF
  23578. + else
  23579. + cat <<EOF
  23580. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  23581. EOF
  23582. + fi
  23583. - cat >> $cwrappersource <<"EOF"
  23584. -}
  23585. -void *
  23586. -xmalloc (size_t num)
  23587. -{
  23588. - void * p = (void *) malloc (num);
  23589. - if (!p)
  23590. - lt_fatal ("Memory exhausted");
  23591. + cat <<"EOF"
  23592. - return p;
  23593. -}
  23594. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  23595. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  23596. -char *
  23597. -xstrdup (const char *string)
  23598. -{
  23599. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  23600. -;
  23601. -}
  23602. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  23603. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  23604. -char *
  23605. -basename (const char *name)
  23606. -{
  23607. - const char *base;
  23608. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  23609. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  23610. - /* Skip over the disk name in MSDOS pathnames. */
  23611. - if (isalpha (name[0]) && name[1] == ':')
  23612. - name += 2;
  23613. -#endif
  23614. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  23615. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  23616. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  23617. - for (base = name; *name; name++)
  23618. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  23619. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  23620. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  23621. +
  23622. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  23623. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  23624. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  23625. +
  23626. +int
  23627. +main (int argc, char *argv[])
  23628. +{
  23629. + char **newargz;
  23630. + int newargc;
  23631. + char *tmp_pathspec;
  23632. + char *actual_cwrapper_path;
  23633. + char *actual_cwrapper_name;
  23634. + char *target_name;
  23635. + char *lt_argv_zero;
  23636. + intptr_t rval = 127;
  23637. +
  23638. + int i;
  23639. +
  23640. + program_name = (char *) xstrdup (base_name (argv[0]));
  23641. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  23642. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  23643. +
  23644. + /* very simple arg parsing; don't want to rely on getopt */
  23645. + for (i = 1; i < argc; i++)
  23646. + {
  23647. + if (strcmp (argv[i], dumpscript_opt) == 0)
  23648. + {
  23649. +EOF
  23650. + case "$host" in
  23651. + *mingw* | *cygwin* )
  23652. + # make stdout use "unix" line endings
  23653. + echo " setmode(1,_O_BINARY);"
  23654. + ;;
  23655. + esac
  23656. +
  23657. + cat <<"EOF"
  23658. + printf ("%s", script_text_part1);
  23659. + printf ("%s", script_text_part2);
  23660. + return 0;
  23661. + }
  23662. + }
  23663. +
  23664. + newargz = XMALLOC (char *, argc + 1);
  23665. + tmp_pathspec = find_executable (argv[0]);
  23666. + if (tmp_pathspec == NULL)
  23667. + lt_fatal ("Couldn't find %s", argv[0]);
  23668. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  23669. + tmp_pathspec));
  23670. +
  23671. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  23672. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  23673. + actual_cwrapper_path));
  23674. + XFREE (tmp_pathspec);
  23675. +
  23676. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  23677. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  23678. +
  23679. + /* wrapper name transforms */
  23680. + strendzap (actual_cwrapper_name, ".exe");
  23681. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  23682. + XFREE (actual_cwrapper_name);
  23683. + actual_cwrapper_name = tmp_pathspec;
  23684. + tmp_pathspec = 0;
  23685. +
  23686. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  23687. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  23688. + strendzap (target_name, ".exe");
  23689. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  23690. + XFREE (target_name);
  23691. + target_name = tmp_pathspec;
  23692. + tmp_pathspec = 0;
  23693. +
  23694. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  23695. + target_name));
  23696. +EOF
  23697. +
  23698. + cat <<EOF
  23699. + newargz[0] =
  23700. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  23701. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  23702. + strcpy (newargz[0], actual_cwrapper_path);
  23703. + strcat (newargz[0], "$objdir");
  23704. + strcat (newargz[0], "/");
  23705. +EOF
  23706. +
  23707. + cat <<"EOF"
  23708. + /* stop here, and copy so we don't have to do this twice */
  23709. + tmp_pathspec = xstrdup (newargz[0]);
  23710. +
  23711. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  23712. + strcat (newargz[0], actual_cwrapper_name);
  23713. +
  23714. + /* DO want the lt- prefix here if it exists, so use target_name */
  23715. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  23716. + XFREE (tmp_pathspec);
  23717. + tmp_pathspec = NULL;
  23718. +EOF
  23719. +
  23720. + case $host_os in
  23721. + mingw*)
  23722. + cat <<"EOF"
  23723. + {
  23724. + char* p;
  23725. + while ((p = strchr (newargz[0], '\\')) != NULL)
  23726. + {
  23727. + *p = '/';
  23728. + }
  23729. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  23730. + {
  23731. + *p = '/';
  23732. + }
  23733. + }
  23734. +EOF
  23735. + ;;
  23736. + esac
  23737. +
  23738. + cat <<"EOF"
  23739. + XFREE (target_name);
  23740. + XFREE (actual_cwrapper_path);
  23741. + XFREE (actual_cwrapper_name);
  23742. +
  23743. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  23744. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  23745. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  23746. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  23747. +
  23748. + newargc=0;
  23749. + for (i = 1; i < argc; i++)
  23750. + {
  23751. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  23752. + {
  23753. + if (argv[i][env_set_opt_len] == '=')
  23754. + {
  23755. + const char *p = argv[i] + env_set_opt_len + 1;
  23756. + lt_opt_process_env_set (p);
  23757. + }
  23758. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  23759. + {
  23760. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  23761. + }
  23762. + else
  23763. + lt_fatal ("%s missing required argument", env_set_opt);
  23764. + continue;
  23765. + }
  23766. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  23767. + {
  23768. + if (argv[i][env_prepend_opt_len] == '=')
  23769. + {
  23770. + const char *p = argv[i] + env_prepend_opt_len + 1;
  23771. + lt_opt_process_env_prepend (p);
  23772. + }
  23773. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  23774. + {
  23775. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  23776. + }
  23777. + else
  23778. + lt_fatal ("%s missing required argument", env_prepend_opt);
  23779. + continue;
  23780. + }
  23781. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  23782. + {
  23783. + if (argv[i][env_append_opt_len] == '=')
  23784. + {
  23785. + const char *p = argv[i] + env_append_opt_len + 1;
  23786. + lt_opt_process_env_append (p);
  23787. + }
  23788. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  23789. + {
  23790. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  23791. + }
  23792. + else
  23793. + lt_fatal ("%s missing required argument", env_append_opt);
  23794. + continue;
  23795. + }
  23796. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  23797. + {
  23798. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  23799. + namespace, but it is not one of the ones we know about and
  23800. + have already dealt with, above (inluding dump-script), then
  23801. + report an error. Otherwise, targets might begin to believe
  23802. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  23803. + namespace. The first time any user complains about this, we'll
  23804. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  23805. + or a configure.ac-settable value.
  23806. + */
  23807. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  23808. + ltwrapper_option_prefix, argv[i]);
  23809. + }
  23810. + /* otherwise ... */
  23811. + newargz[++newargc] = xstrdup (argv[i]);
  23812. + }
  23813. + newargz[++newargc] = NULL;
  23814. +
  23815. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  23816. + for (i = 0; i < newargc; i++)
  23817. + {
  23818. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  23819. + }
  23820. +
  23821. +EOF
  23822. +
  23823. + case $host_os in
  23824. + mingw*)
  23825. + cat <<"EOF"
  23826. + /* execv doesn't actually work on mingw as expected on unix */
  23827. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  23828. + if (rval == -1)
  23829. + {
  23830. + /* failed to start process */
  23831. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  23832. + return 127;
  23833. + }
  23834. + return rval;
  23835. +EOF
  23836. + ;;
  23837. + *)
  23838. + cat <<"EOF"
  23839. + execv (lt_argv_zero, newargz);
  23840. + return rval; /* =127, but avoids unused variable warning */
  23841. +EOF
  23842. + ;;
  23843. + esac
  23844. +
  23845. + cat <<"EOF"
  23846. +}
  23847. +
  23848. +void *
  23849. +xmalloc (size_t num)
  23850. +{
  23851. + void *p = (void *) malloc (num);
  23852. + if (!p)
  23853. + lt_fatal ("Memory exhausted");
  23854. +
  23855. + return p;
  23856. +}
  23857. +
  23858. +char *
  23859. +xstrdup (const char *string)
  23860. +{
  23861. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  23862. + string) : NULL;
  23863. +}
  23864. +
  23865. +const char *
  23866. +base_name (const char *name)
  23867. +{
  23868. + const char *base;
  23869. +
  23870. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  23871. + /* Skip over the disk name in MSDOS pathnames. */
  23872. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  23873. + name += 2;
  23874. +#endif
  23875. +
  23876. + for (base = name; *name; name++)
  23877. if (IS_DIR_SEPARATOR (*name))
  23878. base = name + 1;
  23879. - return (char *) base;
  23880. + return base;
  23881. +}
  23882. +
  23883. +int
  23884. +check_executable (const char *path)
  23885. +{
  23886. + struct stat st;
  23887. +
  23888. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  23889. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  23890. + if ((!path) || (!*path))
  23891. + return 0;
  23892. +
  23893. + if ((stat (path, &st) >= 0)
  23894. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  23895. + return 1;
  23896. + else
  23897. + return 0;
  23898. +}
  23899. +
  23900. +int
  23901. +make_executable (const char *path)
  23902. +{
  23903. + int rval = 0;
  23904. + struct stat st;
  23905. +
  23906. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  23907. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  23908. + if ((!path) || (!*path))
  23909. + return 0;
  23910. +
  23911. + if (stat (path, &st) >= 0)
  23912. + {
  23913. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  23914. + }
  23915. + return rval;
  23916. }
  23917. +/* Searches for the full path of the wrapper. Returns
  23918. + newly allocated full path name if found, NULL otherwise
  23919. + Does not chase symlinks, even on platforms that support them.
  23920. +*/
  23921. char *
  23922. -fnqualify(const char *path)
  23923. +find_executable (const char *wrapper)
  23924. {
  23925. - size_t size;
  23926. - char *p;
  23927. + int has_slash = 0;
  23928. + const char *p;
  23929. + const char *p_next;
  23930. + /* static buffer for getcwd */
  23931. char tmp[LT_PATHMAX + 1];
  23932. + int tmp_len;
  23933. + char *concat_name;
  23934. - assert(path != NULL);
  23935. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  23936. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  23937. - /* Is it qualified already? */
  23938. + if ((wrapper == NULL) || (*wrapper == '\0'))
  23939. + return NULL;
  23940. +
  23941. + /* Absolute path? */
  23942. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  23943. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  23944. + {
  23945. + concat_name = xstrdup (wrapper);
  23946. + if (check_executable (concat_name))
  23947. + return concat_name;
  23948. + XFREE (concat_name);
  23949. + }
  23950. + else
  23951. + {
  23952. +#endif
  23953. + if (IS_DIR_SEPARATOR (wrapper[0]))
  23954. + {
  23955. + concat_name = xstrdup (wrapper);
  23956. + if (check_executable (concat_name))
  23957. + return concat_name;
  23958. + XFREE (concat_name);
  23959. + }
  23960. #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  23961. - if (isalpha (path[0]) && path[1] == ':')
  23962. - return xstrdup (path);
  23963. + }
  23964. #endif
  23965. - if (IS_DIR_SEPARATOR (path[0]))
  23966. - return xstrdup (path);
  23967. - /* prepend the current directory */
  23968. - /* doesn't handle '~' */
  23969. + for (p = wrapper; *p; p++)
  23970. + if (*p == '/')
  23971. + {
  23972. + has_slash = 1;
  23973. + break;
  23974. + }
  23975. + if (!has_slash)
  23976. + {
  23977. + /* no slashes; search PATH */
  23978. + const char *path = getenv ("PATH");
  23979. + if (path != NULL)
  23980. + {
  23981. + for (p = path; *p; p = p_next)
  23982. + {
  23983. + const char *q;
  23984. + size_t p_len;
  23985. + for (q = p; *q; q++)
  23986. + if (IS_PATH_SEPARATOR (*q))
  23987. + break;
  23988. + p_len = q - p;
  23989. + p_next = (*q == '\0' ? q : q + 1);
  23990. + if (p_len == 0)
  23991. + {
  23992. + /* empty path: current directory */
  23993. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  23994. + lt_fatal ("getcwd failed");
  23995. + tmp_len = strlen (tmp);
  23996. + concat_name =
  23997. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  23998. + memcpy (concat_name, tmp, tmp_len);
  23999. + concat_name[tmp_len] = '/';
  24000. + strcpy (concat_name + tmp_len + 1, wrapper);
  24001. + }
  24002. + else
  24003. + {
  24004. + concat_name =
  24005. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  24006. + memcpy (concat_name, p, p_len);
  24007. + concat_name[p_len] = '/';
  24008. + strcpy (concat_name + p_len + 1, wrapper);
  24009. + }
  24010. + if (check_executable (concat_name))
  24011. + return concat_name;
  24012. + XFREE (concat_name);
  24013. + }
  24014. + }
  24015. + /* not found in PATH; assume curdir */
  24016. + }
  24017. + /* Relative path | not found in path: prepend cwd */
  24018. if (getcwd (tmp, LT_PATHMAX) == NULL)
  24019. lt_fatal ("getcwd failed");
  24020. - size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
  24021. - p = XMALLOC(char, size);
  24022. - sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
  24023. - return p;
  24024. + tmp_len = strlen (tmp);
  24025. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  24026. + memcpy (concat_name, tmp, tmp_len);
  24027. + concat_name[tmp_len] = '/';
  24028. + strcpy (concat_name + tmp_len + 1, wrapper);
  24029. +
  24030. + if (check_executable (concat_name))
  24031. + return concat_name;
  24032. + XFREE (concat_name);
  24033. + return NULL;
  24034. +}
  24035. +
  24036. +char *
  24037. +chase_symlinks (const char *pathspec)
  24038. +{
  24039. +#ifndef S_ISLNK
  24040. + return xstrdup (pathspec);
  24041. +#else
  24042. + char buf[LT_PATHMAX];
  24043. + struct stat s;
  24044. + char *tmp_pathspec = xstrdup (pathspec);
  24045. + char *p;
  24046. + int has_symlinks = 0;
  24047. + while (strlen (tmp_pathspec) && !has_symlinks)
  24048. + {
  24049. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  24050. + tmp_pathspec));
  24051. + if (lstat (tmp_pathspec, &s) == 0)
  24052. + {
  24053. + if (S_ISLNK (s.st_mode) != 0)
  24054. + {
  24055. + has_symlinks = 1;
  24056. + break;
  24057. + }
  24058. +
  24059. + /* search backwards for last DIR_SEPARATOR */
  24060. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  24061. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  24062. + p--;
  24063. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  24064. + {
  24065. + /* no more DIR_SEPARATORS left */
  24066. + break;
  24067. + }
  24068. + *p = '\0';
  24069. + }
  24070. + else
  24071. + {
  24072. + char *errstr = strerror (errno);
  24073. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  24074. + }
  24075. + }
  24076. + XFREE (tmp_pathspec);
  24077. +
  24078. + if (!has_symlinks)
  24079. + {
  24080. + return xstrdup (pathspec);
  24081. + }
  24082. +
  24083. + tmp_pathspec = realpath (pathspec, buf);
  24084. + if (tmp_pathspec == 0)
  24085. + {
  24086. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  24087. + }
  24088. + return xstrdup (tmp_pathspec);
  24089. +#endif
  24090. }
  24091. char *
  24092. -strendzap(char *str, const char *pat)
  24093. +strendzap (char *str, const char *pat)
  24094. {
  24095. size_t len, patlen;
  24096. - assert(str != NULL);
  24097. - assert(pat != NULL);
  24098. + assert (str != NULL);
  24099. + assert (pat != NULL);
  24100. - len = strlen(str);
  24101. - patlen = strlen(pat);
  24102. + len = strlen (str);
  24103. + patlen = strlen (pat);
  24104. if (patlen <= len)
  24105. - {
  24106. - str += len - patlen;
  24107. - if (strcmp(str, pat) == 0)
  24108. - *str = '\0';
  24109. - }
  24110. + {
  24111. + str += len - patlen;
  24112. + if (strcmp (str, pat) == 0)
  24113. + *str = '\0';
  24114. + }
  24115. return str;
  24116. }
  24117. static void
  24118. -lt_error_core (int exit_status, const char * mode,
  24119. - const char * message, va_list ap)
  24120. +lt_error_core (int exit_status, const char *mode,
  24121. + const char *message, va_list ap)
  24122. {
  24123. fprintf (stderr, "%s: %s: ", program_name, mode);
  24124. vfprintf (stderr, message, ap);
  24125. @@ -4780,1230 +3853,4351 @@
  24126. lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  24127. va_end (ap);
  24128. }
  24129. +
  24130. +void
  24131. +lt_setenv (const char *name, const char *value)
  24132. +{
  24133. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  24134. + (name ? name : "<NULL>"),
  24135. + (value ? value : "<NULL>")));
  24136. + {
  24137. +#ifdef HAVE_SETENV
  24138. + /* always make a copy, for consistency with !HAVE_SETENV */
  24139. + char *str = xstrdup (value);
  24140. + setenv (name, str, 1);
  24141. +#else
  24142. + int len = strlen (name) + 1 + strlen (value) + 1;
  24143. + char *str = XMALLOC (char, len);
  24144. + sprintf (str, "%s=%s", name, value);
  24145. + if (putenv (str) != EXIT_SUCCESS)
  24146. + {
  24147. + XFREE (str);
  24148. + }
  24149. +#endif
  24150. + }
  24151. +}
  24152. +
  24153. +char *
  24154. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  24155. +{
  24156. + char *new_value;
  24157. + if (orig_value && *orig_value)
  24158. + {
  24159. + int orig_value_len = strlen (orig_value);
  24160. + int add_len = strlen (add);
  24161. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  24162. + if (to_end)
  24163. + {
  24164. + strcpy (new_value, orig_value);
  24165. + strcpy (new_value + orig_value_len, add);
  24166. + }
  24167. + else
  24168. + {
  24169. + strcpy (new_value, add);
  24170. + strcpy (new_value + add_len, orig_value);
  24171. + }
  24172. + }
  24173. + else
  24174. + {
  24175. + new_value = xstrdup (add);
  24176. + }
  24177. + return new_value;
  24178. +}
  24179. +
  24180. +int
  24181. +lt_split_name_value (const char *arg, char** name, char** value)
  24182. +{
  24183. + const char *p;
  24184. + int len;
  24185. + if (!arg || !*arg)
  24186. + return 1;
  24187. +
  24188. + p = strchr (arg, (int)'=');
  24189. +
  24190. + if (!p)
  24191. + return 1;
  24192. +
  24193. + *value = xstrdup (++p);
  24194. +
  24195. + len = strlen (arg) - strlen (*value);
  24196. + *name = XMALLOC (char, len);
  24197. + strncpy (*name, arg, len-1);
  24198. + (*name)[len - 1] = '\0';
  24199. +
  24200. + return 0;
  24201. +}
  24202. +
  24203. +void
  24204. +lt_opt_process_env_set (const char *arg)
  24205. +{
  24206. + char *name = NULL;
  24207. + char *value = NULL;
  24208. +
  24209. + if (lt_split_name_value (arg, &name, &value) != 0)
  24210. + {
  24211. + XFREE (name);
  24212. + XFREE (value);
  24213. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  24214. + }
  24215. +
  24216. + lt_setenv (name, value);
  24217. + XFREE (name);
  24218. + XFREE (value);
  24219. +}
  24220. +
  24221. +void
  24222. +lt_opt_process_env_prepend (const char *arg)
  24223. +{
  24224. + char *name = NULL;
  24225. + char *value = NULL;
  24226. + char *new_value = NULL;
  24227. +
  24228. + if (lt_split_name_value (arg, &name, &value) != 0)
  24229. + {
  24230. + XFREE (name);
  24231. + XFREE (value);
  24232. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  24233. + }
  24234. +
  24235. + new_value = lt_extend_str (getenv (name), value, 0);
  24236. + lt_setenv (name, new_value);
  24237. + XFREE (new_value);
  24238. + XFREE (name);
  24239. + XFREE (value);
  24240. +}
  24241. +
  24242. +void
  24243. +lt_opt_process_env_append (const char *arg)
  24244. +{
  24245. + char *name = NULL;
  24246. + char *value = NULL;
  24247. + char *new_value = NULL;
  24248. +
  24249. + if (lt_split_name_value (arg, &name, &value) != 0)
  24250. + {
  24251. + XFREE (name);
  24252. + XFREE (value);
  24253. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  24254. + }
  24255. +
  24256. + new_value = lt_extend_str (getenv (name), value, 1);
  24257. + lt_setenv (name, new_value);
  24258. + XFREE (new_value);
  24259. + XFREE (name);
  24260. + XFREE (value);
  24261. +}
  24262. +
  24263. +void
  24264. +lt_update_exe_path (const char *name, const char *value)
  24265. +{
  24266. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  24267. + (name ? name : "<NULL>"),
  24268. + (value ? value : "<NULL>")));
  24269. +
  24270. + if (name && *name && value && *value)
  24271. + {
  24272. + char *new_value = lt_extend_str (getenv (name), value, 0);
  24273. + /* some systems can't cope with a ':'-terminated path #' */
  24274. + int len = strlen (new_value);
  24275. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  24276. + {
  24277. + new_value[len-1] = '\0';
  24278. + }
  24279. + lt_setenv (name, new_value);
  24280. + XFREE (new_value);
  24281. + }
  24282. +}
  24283. +
  24284. +void
  24285. +lt_update_lib_path (const char *name, const char *value)
  24286. +{
  24287. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  24288. + (name ? name : "<NULL>"),
  24289. + (value ? value : "<NULL>")));
  24290. +
  24291. + if (name && *name && value && *value)
  24292. + {
  24293. + char *new_value = lt_extend_str (getenv (name), value, 0);
  24294. + lt_setenv (name, new_value);
  24295. + XFREE (new_value);
  24296. + }
  24297. +}
  24298. +
  24299. +
  24300. EOF
  24301. - # we should really use a build-platform specific compiler
  24302. - # here, but OTOH, the wrappers (shell script and this C one)
  24303. - # are only useful if you want to execute the "real" binary.
  24304. - # Since the "real" binary is built for $host, then this
  24305. - # wrapper might as well be built for $host, too.
  24306. - $run $LTCC -s -o $cwrapper $cwrappersource
  24307. +}
  24308. +# end: func_emit_cwrapperexe_src
  24309. +
  24310. +# func_mode_link arg...
  24311. +func_mode_link ()
  24312. +{
  24313. + $opt_debug
  24314. + case $host in
  24315. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  24316. + # It is impossible to link a dll without this setting, and
  24317. + # we shouldn't force the makefile maintainer to figure out
  24318. + # which system we are compiling for in order to pass an extra
  24319. + # flag for every libtool invocation.
  24320. + # allow_undefined=no
  24321. +
  24322. + # FIXME: Unfortunately, there are problems with the above when trying
  24323. + # to make a dll which has undefined symbols, in which case not
  24324. + # even a static library is built. For now, we need to specify
  24325. + # -no-undefined on the libtool link line when we can be certain
  24326. + # that all symbols are satisfied, otherwise we get a static library.
  24327. + allow_undefined=yes
  24328. + ;;
  24329. + *)
  24330. + allow_undefined=yes
  24331. + ;;
  24332. + esac
  24333. + libtool_args=$nonopt
  24334. + base_compile="$nonopt $@"
  24335. + compile_command=$nonopt
  24336. + finalize_command=$nonopt
  24337. +
  24338. + compile_rpath=
  24339. + finalize_rpath=
  24340. + compile_shlibpath=
  24341. + finalize_shlibpath=
  24342. + convenience=
  24343. + old_convenience=
  24344. + deplibs=
  24345. + old_deplibs=
  24346. + compiler_flags=
  24347. + linker_flags=
  24348. + dllsearchpath=
  24349. + lib_search_path=`pwd`
  24350. + inst_prefix_dir=
  24351. + new_inherited_linker_flags=
  24352. +
  24353. + avoid_version=no
  24354. + dlfiles=
  24355. + dlprefiles=
  24356. + dlself=no
  24357. + export_dynamic=no
  24358. + export_symbols=
  24359. + export_symbols_regex=
  24360. + generated=
  24361. + libobjs=
  24362. + ltlibs=
  24363. + module=no
  24364. + no_install=no
  24365. + objs=
  24366. + non_pic_objects=
  24367. + precious_files_regex=
  24368. + prefer_static_libs=no
  24369. + preload=no
  24370. + prev=
  24371. + prevarg=
  24372. + release=
  24373. + rpath=
  24374. + xrpath=
  24375. + perm_rpath=
  24376. + temp_rpath=
  24377. + thread_safe=no
  24378. + vinfo=
  24379. + vinfo_number=no
  24380. + weak_libs=
  24381. + single_module="${wl}-single_module"
  24382. + func_infer_tag $base_compile
  24383. +
  24384. + # We need to know -static, to get the right output filenames.
  24385. + for arg
  24386. + do
  24387. + case $arg in
  24388. + -shared)
  24389. + test "$build_libtool_libs" != yes && \
  24390. + func_fatal_configuration "can not build a shared library"
  24391. + build_old_libs=no
  24392. + break
  24393. + ;;
  24394. + -all-static | -static | -static-libtool-libs)
  24395. + case $arg in
  24396. + -all-static)
  24397. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  24398. + func_warning "complete static linking is impossible in this configuration"
  24399. + fi
  24400. + if test -n "$link_static_flag"; then
  24401. + dlopen_self=$dlopen_self_static
  24402. + fi
  24403. + prefer_static_libs=yes
  24404. + ;;
  24405. + -static)
  24406. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  24407. + dlopen_self=$dlopen_self_static
  24408. + fi
  24409. + prefer_static_libs=built
  24410. + ;;
  24411. + -static-libtool-libs)
  24412. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  24413. + dlopen_self=$dlopen_self_static
  24414. + fi
  24415. + prefer_static_libs=yes
  24416. + ;;
  24417. + esac
  24418. + build_libtool_libs=no
  24419. + build_old_libs=yes
  24420. + break
  24421. + ;;
  24422. + esac
  24423. + done
  24424. +
  24425. + # See if our shared archives depend on static archives.
  24426. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  24427. +
  24428. + # Go through the arguments, transforming them on the way.
  24429. + while test "$#" -gt 0; do
  24430. + arg="$1"
  24431. + shift
  24432. + func_quote_for_eval "$arg"
  24433. + qarg=$func_quote_for_eval_unquoted_result
  24434. + func_append libtool_args " $func_quote_for_eval_result"
  24435. +
  24436. + # If the previous option needs an argument, assign it.
  24437. + if test -n "$prev"; then
  24438. + case $prev in
  24439. + output)
  24440. + func_append compile_command " @OUTPUT@"
  24441. + func_append finalize_command " @OUTPUT@"
  24442. + ;;
  24443. + esac
  24444. +
  24445. + case $prev in
  24446. + dlfiles|dlprefiles)
  24447. + if test "$preload" = no; then
  24448. + # Add the symbol object into the linking commands.
  24449. + func_append compile_command " @SYMFILE@"
  24450. + func_append finalize_command " @SYMFILE@"
  24451. + preload=yes
  24452. + fi
  24453. + case $arg in
  24454. + *.la | *.lo) ;; # We handle these cases below.
  24455. + force)
  24456. + if test "$dlself" = no; then
  24457. + dlself=needless
  24458. + export_dynamic=yes
  24459. + fi
  24460. + prev=
  24461. + continue
  24462. + ;;
  24463. + self)
  24464. + if test "$prev" = dlprefiles; then
  24465. + dlself=yes
  24466. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  24467. + dlself=yes
  24468. + else
  24469. + dlself=needless
  24470. + export_dynamic=yes
  24471. + fi
  24472. + prev=
  24473. + continue
  24474. + ;;
  24475. + *)
  24476. + if test "$prev" = dlfiles; then
  24477. + dlfiles="$dlfiles $arg"
  24478. + else
  24479. + dlprefiles="$dlprefiles $arg"
  24480. + fi
  24481. + prev=
  24482. + continue
  24483. + ;;
  24484. + esac
  24485. + ;;
  24486. + expsyms)
  24487. + export_symbols="$arg"
  24488. + test -f "$arg" \
  24489. + || func_fatal_error "symbol file \`$arg' does not exist"
  24490. + prev=
  24491. + continue
  24492. + ;;
  24493. + expsyms_regex)
  24494. + export_symbols_regex="$arg"
  24495. + prev=
  24496. + continue
  24497. + ;;
  24498. + framework)
  24499. + case $host in
  24500. + *-*-darwin*)
  24501. + case "$deplibs " in
  24502. + *" $qarg.ltframework "*) ;;
  24503. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  24504. + ;;
  24505. + esac
  24506. + ;;
  24507. + esac
  24508. + prev=
  24509. + continue
  24510. + ;;
  24511. + inst_prefix)
  24512. + inst_prefix_dir="$arg"
  24513. + prev=
  24514. + continue
  24515. + ;;
  24516. + objectlist)
  24517. + if test -f "$arg"; then
  24518. + save_arg=$arg
  24519. + moreargs=
  24520. + for fil in `cat "$save_arg"`
  24521. + do
  24522. +# moreargs="$moreargs $fil"
  24523. + arg=$fil
  24524. + # A libtool-controlled object.
  24525. +
  24526. + # Check to see that this really is a libtool object.
  24527. + if func_lalib_unsafe_p "$arg"; then
  24528. + pic_object=
  24529. + non_pic_object=
  24530. +
  24531. + # Read the .lo file
  24532. + func_source "$arg"
  24533. +
  24534. + if test -z "$pic_object" ||
  24535. + test -z "$non_pic_object" ||
  24536. + test "$pic_object" = none &&
  24537. + test "$non_pic_object" = none; then
  24538. + func_fatal_error "cannot find name of object for \`$arg'"
  24539. + fi
  24540. +
  24541. + # Extract subdirectory from the argument.
  24542. + func_dirname "$arg" "/" ""
  24543. + xdir="$func_dirname_result"
  24544. +
  24545. + if test "$pic_object" != none; then
  24546. + # Prepend the subdirectory the object is found in.
  24547. + pic_object="$xdir$pic_object"
  24548. +
  24549. + if test "$prev" = dlfiles; then
  24550. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  24551. + dlfiles="$dlfiles $pic_object"
  24552. + prev=
  24553. + continue
  24554. + else
  24555. + # If libtool objects are unsupported, then we need to preload.
  24556. + prev=dlprefiles
  24557. + fi
  24558. + fi
  24559. +
  24560. + # CHECK ME: I think I busted this. -Ossama
  24561. + if test "$prev" = dlprefiles; then
  24562. + # Preload the old-style object.
  24563. + dlprefiles="$dlprefiles $pic_object"
  24564. + prev=
  24565. + fi
  24566. +
  24567. + # A PIC object.
  24568. + func_append libobjs " $pic_object"
  24569. + arg="$pic_object"
  24570. + fi
  24571. +
  24572. + # Non-PIC object.
  24573. + if test "$non_pic_object" != none; then
  24574. + # Prepend the subdirectory the object is found in.
  24575. + non_pic_object="$xdir$non_pic_object"
  24576. +
  24577. + # A standard non-PIC object
  24578. + func_append non_pic_objects " $non_pic_object"
  24579. + if test -z "$pic_object" || test "$pic_object" = none ; then
  24580. + arg="$non_pic_object"
  24581. + fi
  24582. + else
  24583. + # If the PIC object exists, use it instead.
  24584. + # $xdir was prepended to $pic_object above.
  24585. + non_pic_object="$pic_object"
  24586. + func_append non_pic_objects " $non_pic_object"
  24587. + fi
  24588. + else
  24589. + # Only an error if not doing a dry-run.
  24590. + if $opt_dry_run; then
  24591. + # Extract subdirectory from the argument.
  24592. + func_dirname "$arg" "/" ""
  24593. + xdir="$func_dirname_result"
  24594. +
  24595. + func_lo2o "$arg"
  24596. + pic_object=$xdir$objdir/$func_lo2o_result
  24597. + non_pic_object=$xdir$func_lo2o_result
  24598. + func_append libobjs " $pic_object"
  24599. + func_append non_pic_objects " $non_pic_object"
  24600. + else
  24601. + func_fatal_error "\`$arg' is not a valid libtool object"
  24602. + fi
  24603. + fi
  24604. + done
  24605. + else
  24606. + func_fatal_error "link input file \`$arg' does not exist"
  24607. + fi
  24608. + arg=$save_arg
  24609. + prev=
  24610. + continue
  24611. + ;;
  24612. + precious_regex)
  24613. + precious_files_regex="$arg"
  24614. + prev=
  24615. + continue
  24616. + ;;
  24617. + release)
  24618. + release="-$arg"
  24619. + prev=
  24620. + continue
  24621. + ;;
  24622. + rpath | xrpath)
  24623. + # We need an absolute path.
  24624. + case $arg in
  24625. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  24626. + *)
  24627. + func_fatal_error "only absolute run-paths are allowed"
  24628. + ;;
  24629. + esac
  24630. + if test "$prev" = rpath; then
  24631. + case "$rpath " in
  24632. + *" $arg "*) ;;
  24633. + *) rpath="$rpath $arg" ;;
  24634. + esac
  24635. + else
  24636. + case "$xrpath " in
  24637. + *" $arg "*) ;;
  24638. + *) xrpath="$xrpath $arg" ;;
  24639. + esac
  24640. + fi
  24641. + prev=
  24642. + continue
  24643. + ;;
  24644. + shrext)
  24645. + shrext_cmds="$arg"
  24646. + prev=
  24647. + continue
  24648. + ;;
  24649. + weak)
  24650. + weak_libs="$weak_libs $arg"
  24651. + prev=
  24652. + continue
  24653. + ;;
  24654. + xcclinker)
  24655. + linker_flags="$linker_flags $qarg"
  24656. + compiler_flags="$compiler_flags $qarg"
  24657. + prev=
  24658. + func_append compile_command " $qarg"
  24659. + func_append finalize_command " $qarg"
  24660. + continue
  24661. + ;;
  24662. + xcompiler)
  24663. + compiler_flags="$compiler_flags $qarg"
  24664. + prev=
  24665. + func_append compile_command " $qarg"
  24666. + func_append finalize_command " $qarg"
  24667. + continue
  24668. + ;;
  24669. + xlinker)
  24670. + linker_flags="$linker_flags $qarg"
  24671. + compiler_flags="$compiler_flags $wl$qarg"
  24672. + prev=
  24673. + func_append compile_command " $wl$qarg"
  24674. + func_append finalize_command " $wl$qarg"
  24675. + continue
  24676. + ;;
  24677. + *)
  24678. + eval "$prev=\"\$arg\""
  24679. + prev=
  24680. + continue
  24681. + ;;
  24682. + esac
  24683. + fi # test -n "$prev"
  24684. +
  24685. + prevarg="$arg"
  24686. +
  24687. + case $arg in
  24688. + -all-static)
  24689. + if test -n "$link_static_flag"; then
  24690. + # See comment for -static flag below, for more details.
  24691. + func_append compile_command " $link_static_flag"
  24692. + func_append finalize_command " $link_static_flag"
  24693. + fi
  24694. + continue
  24695. + ;;
  24696. +
  24697. + -allow-undefined)
  24698. + # FIXME: remove this flag sometime in the future.
  24699. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  24700. + ;;
  24701. +
  24702. + -avoid-version)
  24703. + avoid_version=yes
  24704. + continue
  24705. + ;;
  24706. +
  24707. + -dlopen)
  24708. + prev=dlfiles
  24709. + continue
  24710. + ;;
  24711. +
  24712. + -dlpreopen)
  24713. + prev=dlprefiles
  24714. + continue
  24715. + ;;
  24716. +
  24717. + -export-dynamic)
  24718. + export_dynamic=yes
  24719. + continue
  24720. + ;;
  24721. +
  24722. + -export-symbols | -export-symbols-regex)
  24723. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  24724. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  24725. + fi
  24726. + if test "X$arg" = "X-export-symbols"; then
  24727. + prev=expsyms
  24728. + else
  24729. + prev=expsyms_regex
  24730. + fi
  24731. + continue
  24732. + ;;
  24733. +
  24734. + -framework)
  24735. + prev=framework
  24736. + continue
  24737. + ;;
  24738. +
  24739. + -inst-prefix-dir)
  24740. + prev=inst_prefix
  24741. + continue
  24742. + ;;
  24743. +
  24744. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  24745. + # so, if we see these flags be careful not to treat them like -L
  24746. + -L[A-Z][A-Z]*:*)
  24747. + case $with_gcc/$host in
  24748. + no/*-*-irix* | /*-*-irix*)
  24749. + func_append compile_command " $arg"
  24750. + func_append finalize_command " $arg"
  24751. + ;;
  24752. + esac
  24753. + continue
  24754. + ;;
  24755. +
  24756. + -L*)
  24757. + func_stripname '-L' '' "$arg"
  24758. + dir=$func_stripname_result
  24759. + if test -z "$dir"; then
  24760. + if test "$#" -gt 0; then
  24761. + func_fatal_error "require no space between \`-L' and \`$1'"
  24762. + else
  24763. + func_fatal_error "need path for \`-L' option"
  24764. + fi
  24765. + fi
  24766. + # We need an absolute path.
  24767. + case $dir in
  24768. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  24769. + *)
  24770. + absdir=`cd "$dir" && pwd`
  24771. + test -z "$absdir" && \
  24772. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  24773. + dir="$absdir"
  24774. + ;;
  24775. + esac
  24776. + case "$deplibs " in
  24777. + *" -L$dir "*) ;;
  24778. + *)
  24779. + deplibs="$deplibs -L$dir"
  24780. + lib_search_path="$lib_search_path $dir"
  24781. + ;;
  24782. + esac
  24783. + case $host in
  24784. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  24785. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  24786. + case :$dllsearchpath: in
  24787. + *":$dir:"*) ;;
  24788. + ::) dllsearchpath=$dir;;
  24789. + *) dllsearchpath="$dllsearchpath:$dir";;
  24790. + esac
  24791. + case :$dllsearchpath: in
  24792. + *":$testbindir:"*) ;;
  24793. + ::) dllsearchpath=$testbindir;;
  24794. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  24795. + esac
  24796. + ;;
  24797. + esac
  24798. + continue
  24799. + ;;
  24800. +
  24801. + -l*)
  24802. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  24803. + case $host in
  24804. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  24805. + # These systems don't actually have a C or math library (as such)
  24806. + continue
  24807. + ;;
  24808. + *-*-os2*)
  24809. + # These systems don't actually have a C library (as such)
  24810. + test "X$arg" = "X-lc" && continue
  24811. + ;;
  24812. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  24813. + # Do not include libc due to us having libc/libc_r.
  24814. + test "X$arg" = "X-lc" && continue
  24815. + ;;
  24816. + *-*-rhapsody* | *-*-darwin1.[012])
  24817. + # Rhapsody C and math libraries are in the System framework
  24818. + deplibs="$deplibs System.ltframework"
  24819. + continue
  24820. + ;;
  24821. + *-*-sco3.2v5* | *-*-sco5v6*)
  24822. + # Causes problems with __ctype
  24823. + test "X$arg" = "X-lc" && continue
  24824. + ;;
  24825. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  24826. + # Compiler inserts libc in the correct place for threads to work
  24827. + test "X$arg" = "X-lc" && continue
  24828. + ;;
  24829. + esac
  24830. + elif test "X$arg" = "X-lc_r"; then
  24831. + case $host in
  24832. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  24833. + # Do not include libc_r directly, use -pthread flag.
  24834. + continue
  24835. + ;;
  24836. + esac
  24837. + fi
  24838. + deplibs="$deplibs $arg"
  24839. + continue
  24840. + ;;
  24841. +
  24842. + -module)
  24843. + module=yes
  24844. + continue
  24845. + ;;
  24846. +
  24847. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  24848. + # classes, name mangling, and exception handling.
  24849. + # Darwin uses the -arch flag to determine output architecture.
  24850. + -model|-arch|-isysroot)
  24851. + compiler_flags="$compiler_flags $arg"
  24852. + func_append compile_command " $arg"
  24853. + func_append finalize_command " $arg"
  24854. + prev=xcompiler
  24855. + continue
  24856. + ;;
  24857. +
  24858. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  24859. + compiler_flags="$compiler_flags $arg"
  24860. + func_append compile_command " $arg"
  24861. + func_append finalize_command " $arg"
  24862. + case "$new_inherited_linker_flags " in
  24863. + *" $arg "*) ;;
  24864. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  24865. + esac
  24866. + continue
  24867. + ;;
  24868. +
  24869. + -multi_module)
  24870. + single_module="${wl}-multi_module"
  24871. + continue
  24872. + ;;
  24873. +
  24874. + -no-fast-install)
  24875. + fast_install=no
  24876. + continue
  24877. + ;;
  24878. +
  24879. + -no-install)
  24880. + case $host in
  24881. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  24882. + # The PATH hackery in wrapper scripts is required on Windows
  24883. + # and Darwin in order for the loader to find any dlls it needs.
  24884. + func_warning "\`-no-install' is ignored for $host"
  24885. + func_warning "assuming \`-no-fast-install' instead"
  24886. + fast_install=no
  24887. + ;;
  24888. + *) no_install=yes ;;
  24889. + esac
  24890. + continue
  24891. + ;;
  24892. +
  24893. + -no-undefined)
  24894. + allow_undefined=no
  24895. + continue
  24896. + ;;
  24897. +
  24898. + -objectlist)
  24899. + prev=objectlist
  24900. + continue
  24901. + ;;
  24902. +
  24903. + -o) prev=output ;;
  24904. +
  24905. + -precious-files-regex)
  24906. + prev=precious_regex
  24907. + continue
  24908. + ;;
  24909. +
  24910. + -release)
  24911. + prev=release
  24912. + continue
  24913. + ;;
  24914. +
  24915. + -rpath)
  24916. + prev=rpath
  24917. + continue
  24918. + ;;
  24919. +
  24920. + -R)
  24921. + prev=xrpath
  24922. + continue
  24923. + ;;
  24924. +
  24925. + -R*)
  24926. + func_stripname '-R' '' "$arg"
  24927. + dir=$func_stripname_result
  24928. + # We need an absolute path.
  24929. + case $dir in
  24930. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  24931. + *)
  24932. + func_fatal_error "only absolute run-paths are allowed"
  24933. + ;;
  24934. + esac
  24935. + case "$xrpath " in
  24936. + *" $dir "*) ;;
  24937. + *) xrpath="$xrpath $dir" ;;
  24938. + esac
  24939. + continue
  24940. + ;;
  24941. +
  24942. + -shared)
  24943. + # The effects of -shared are defined in a previous loop.
  24944. + continue
  24945. + ;;
  24946. +
  24947. + -shrext)
  24948. + prev=shrext
  24949. + continue
  24950. + ;;
  24951. +
  24952. + -static | -static-libtool-libs)
  24953. + # The effects of -static are defined in a previous loop.
  24954. + # We used to do the same as -all-static on platforms that
  24955. + # didn't have a PIC flag, but the assumption that the effects
  24956. + # would be equivalent was wrong. It would break on at least
  24957. + # Digital Unix and AIX.
  24958. + continue
  24959. + ;;
  24960. +
  24961. + -thread-safe)
  24962. + thread_safe=yes
  24963. + continue
  24964. + ;;
  24965. +
  24966. + -version-info)
  24967. + prev=vinfo
  24968. + continue
  24969. + ;;
  24970. +
  24971. + -version-number)
  24972. + prev=vinfo
  24973. + vinfo_number=yes
  24974. + continue
  24975. + ;;
  24976. +
  24977. + -weak)
  24978. + prev=weak
  24979. + continue
  24980. + ;;
  24981. +
  24982. + -Wc,*)
  24983. + func_stripname '-Wc,' '' "$arg"
  24984. + args=$func_stripname_result
  24985. + arg=
  24986. + save_ifs="$IFS"; IFS=','
  24987. + for flag in $args; do
  24988. + IFS="$save_ifs"
  24989. + func_quote_for_eval "$flag"
  24990. + arg="$arg $wl$func_quote_for_eval_result"
  24991. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  24992. + done
  24993. + IFS="$save_ifs"
  24994. + func_stripname ' ' '' "$arg"
  24995. + arg=$func_stripname_result
  24996. + ;;
  24997. +
  24998. + -Wl,*)
  24999. + func_stripname '-Wl,' '' "$arg"
  25000. + args=$func_stripname_result
  25001. + arg=
  25002. + save_ifs="$IFS"; IFS=','
  25003. + for flag in $args; do
  25004. + IFS="$save_ifs"
  25005. + func_quote_for_eval "$flag"
  25006. + arg="$arg $wl$func_quote_for_eval_result"
  25007. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  25008. + linker_flags="$linker_flags $func_quote_for_eval_result"
  25009. + done
  25010. + IFS="$save_ifs"
  25011. + func_stripname ' ' '' "$arg"
  25012. + arg=$func_stripname_result
  25013. + ;;
  25014. +
  25015. + -Xcompiler)
  25016. + prev=xcompiler
  25017. + continue
  25018. + ;;
  25019. +
  25020. + -Xlinker)
  25021. + prev=xlinker
  25022. + continue
  25023. + ;;
  25024. +
  25025. + -XCClinker)
  25026. + prev=xcclinker
  25027. + continue
  25028. + ;;
  25029. +
  25030. + # -msg_* for osf cc
  25031. + -msg_*)
  25032. + func_quote_for_eval "$arg"
  25033. + arg="$func_quote_for_eval_result"
  25034. + ;;
  25035. +
  25036. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  25037. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  25038. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  25039. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  25040. + # -q* pass through compiler args for the IBM compiler
  25041. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  25042. + # compiler args for GCC
  25043. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  25044. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  25045. + # @file GCC response files
  25046. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  25047. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto*)
  25048. + func_quote_for_eval "$arg"
  25049. + arg="$func_quote_for_eval_result"
  25050. + func_append compile_command " $arg"
  25051. + func_append finalize_command " $arg"
  25052. + compiler_flags="$compiler_flags $arg"
  25053. + continue
  25054. + ;;
  25055. +
  25056. + # Some other compiler flag.
  25057. + -* | +*)
  25058. + func_quote_for_eval "$arg"
  25059. + arg="$func_quote_for_eval_result"
  25060. + ;;
  25061. +
  25062. + *.$objext)
  25063. + # A standard object.
  25064. + objs="$objs $arg"
  25065. + ;;
  25066. +
  25067. + *.lo)
  25068. + # A libtool-controlled object.
  25069. +
  25070. + # Check to see that this really is a libtool object.
  25071. + if func_lalib_unsafe_p "$arg"; then
  25072. + pic_object=
  25073. + non_pic_object=
  25074. +
  25075. + # Read the .lo file
  25076. + func_source "$arg"
  25077. +
  25078. + if test -z "$pic_object" ||
  25079. + test -z "$non_pic_object" ||
  25080. + test "$pic_object" = none &&
  25081. + test "$non_pic_object" = none; then
  25082. + func_fatal_error "cannot find name of object for \`$arg'"
  25083. + fi
  25084. +
  25085. + # Extract subdirectory from the argument.
  25086. + func_dirname "$arg" "/" ""
  25087. + xdir="$func_dirname_result"
  25088. +
  25089. + if test "$pic_object" != none; then
  25090. + # Prepend the subdirectory the object is found in.
  25091. + pic_object="$xdir$pic_object"
  25092. +
  25093. + if test "$prev" = dlfiles; then
  25094. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  25095. + dlfiles="$dlfiles $pic_object"
  25096. + prev=
  25097. + continue
  25098. + else
  25099. + # If libtool objects are unsupported, then we need to preload.
  25100. + prev=dlprefiles
  25101. + fi
  25102. + fi
  25103. +
  25104. + # CHECK ME: I think I busted this. -Ossama
  25105. + if test "$prev" = dlprefiles; then
  25106. + # Preload the old-style object.
  25107. + dlprefiles="$dlprefiles $pic_object"
  25108. + prev=
  25109. + fi
  25110. +
  25111. + # A PIC object.
  25112. + func_append libobjs " $pic_object"
  25113. + arg="$pic_object"
  25114. + fi
  25115. +
  25116. + # Non-PIC object.
  25117. + if test "$non_pic_object" != none; then
  25118. + # Prepend the subdirectory the object is found in.
  25119. + non_pic_object="$xdir$non_pic_object"
  25120. +
  25121. + # A standard non-PIC object
  25122. + func_append non_pic_objects " $non_pic_object"
  25123. + if test -z "$pic_object" || test "$pic_object" = none ; then
  25124. + arg="$non_pic_object"
  25125. + fi
  25126. + else
  25127. + # If the PIC object exists, use it instead.
  25128. + # $xdir was prepended to $pic_object above.
  25129. + non_pic_object="$pic_object"
  25130. + func_append non_pic_objects " $non_pic_object"
  25131. + fi
  25132. + else
  25133. + # Only an error if not doing a dry-run.
  25134. + if $opt_dry_run; then
  25135. + # Extract subdirectory from the argument.
  25136. + func_dirname "$arg" "/" ""
  25137. + xdir="$func_dirname_result"
  25138. +
  25139. + func_lo2o "$arg"
  25140. + pic_object=$xdir$objdir/$func_lo2o_result
  25141. + non_pic_object=$xdir$func_lo2o_result
  25142. + func_append libobjs " $pic_object"
  25143. + func_append non_pic_objects " $non_pic_object"
  25144. + else
  25145. + func_fatal_error "\`$arg' is not a valid libtool object"
  25146. + fi
  25147. + fi
  25148. + ;;
  25149. +
  25150. + *.$libext)
  25151. + # An archive.
  25152. + deplibs="$deplibs $arg"
  25153. + old_deplibs="$old_deplibs $arg"
  25154. + continue
  25155. + ;;
  25156. +
  25157. + *.la)
  25158. + # A libtool-controlled library.
  25159. +
  25160. + if test "$prev" = dlfiles; then
  25161. + # This library was specified with -dlopen.
  25162. + dlfiles="$dlfiles $arg"
  25163. + prev=
  25164. + elif test "$prev" = dlprefiles; then
  25165. + # The library was specified with -dlpreopen.
  25166. + dlprefiles="$dlprefiles $arg"
  25167. + prev=
  25168. + else
  25169. + deplibs="$deplibs $arg"
  25170. + fi
  25171. + continue
  25172. + ;;
  25173. +
  25174. + # Some other compiler argument.
  25175. + *)
  25176. + # Unknown arguments in both finalize_command and compile_command need
  25177. + # to be aesthetically quoted because they are evaled later.
  25178. + func_quote_for_eval "$arg"
  25179. + arg="$func_quote_for_eval_result"
  25180. + ;;
  25181. + esac # arg
  25182. +
  25183. + # Now actually substitute the argument into the commands.
  25184. + if test -n "$arg"; then
  25185. + func_append compile_command " $arg"
  25186. + func_append finalize_command " $arg"
  25187. + fi
  25188. + done # argument parsing loop
  25189. +
  25190. + test -n "$prev" && \
  25191. + func_fatal_help "the \`$prevarg' option requires an argument"
  25192. +
  25193. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  25194. + eval arg=\"$export_dynamic_flag_spec\"
  25195. + func_append compile_command " $arg"
  25196. + func_append finalize_command " $arg"
  25197. + fi
  25198. +
  25199. + oldlibs=
  25200. + # calculate the name of the file, without its directory
  25201. + func_basename "$output"
  25202. + outputname="$func_basename_result"
  25203. + libobjs_save="$libobjs"
  25204. +
  25205. + if test -n "$shlibpath_var"; then
  25206. + # get the directories listed in $shlibpath_var
  25207. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  25208. + else
  25209. + shlib_search_path=
  25210. + fi
  25211. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  25212. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  25213. +
  25214. + func_dirname "$output" "/" ""
  25215. + output_objdir="$func_dirname_result$objdir"
  25216. + # Create the object directory.
  25217. + func_mkdir_p "$output_objdir"
  25218. +
  25219. + # Determine the type of output
  25220. + case $output in
  25221. + "")
  25222. + func_fatal_help "you must specify an output file"
  25223. + ;;
  25224. + *.$libext) linkmode=oldlib ;;
  25225. + *.lo | *.$objext) linkmode=obj ;;
  25226. + *.la) linkmode=lib ;;
  25227. + *) linkmode=prog ;; # Anything else should be a program.
  25228. + esac
  25229. +
  25230. + specialdeplibs=
  25231. +
  25232. + libs=
  25233. + # Find all interdependent deplibs by searching for libraries
  25234. + # that are linked more than once (e.g. -la -lb -la)
  25235. + for deplib in $deplibs; do
  25236. + if $opt_duplicate_deps ; then
  25237. + case "$libs " in
  25238. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  25239. + esac
  25240. + fi
  25241. + libs="$libs $deplib"
  25242. + done
  25243. +
  25244. + if test "$linkmode" = lib; then
  25245. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  25246. +
  25247. + # Compute libraries that are listed more than once in $predeps
  25248. + # $postdeps and mark them as special (i.e., whose duplicates are
  25249. + # not to be eliminated).
  25250. + pre_post_deps=
  25251. + if $opt_duplicate_compiler_generated_deps; then
  25252. + for pre_post_dep in $predeps $postdeps; do
  25253. + case "$pre_post_deps " in
  25254. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  25255. + esac
  25256. + pre_post_deps="$pre_post_deps $pre_post_dep"
  25257. + done
  25258. + fi
  25259. + pre_post_deps=
  25260. + fi
  25261. +
  25262. + deplibs=
  25263. + newdependency_libs=
  25264. + newlib_search_path=
  25265. + need_relink=no # whether we're linking any uninstalled libtool libraries
  25266. + notinst_deplibs= # not-installed libtool libraries
  25267. + notinst_path= # paths that contain not-installed libtool libraries
  25268. +
  25269. + case $linkmode in
  25270. + lib)
  25271. + passes="conv dlpreopen link"
  25272. + for file in $dlfiles $dlprefiles; do
  25273. + case $file in
  25274. + *.la) ;;
  25275. + *)
  25276. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  25277. + ;;
  25278. + esac
  25279. + done
  25280. + ;;
  25281. + prog)
  25282. + compile_deplibs=
  25283. + finalize_deplibs=
  25284. + alldeplibs=no
  25285. + newdlfiles=
  25286. + newdlprefiles=
  25287. + passes="conv scan dlopen dlpreopen link"
  25288. + ;;
  25289. + *) passes="conv"
  25290. + ;;
  25291. + esac
  25292. +
  25293. + for pass in $passes; do
  25294. + # The preopen pass in lib mode reverses $deplibs; put it back here
  25295. + # so that -L comes before libs that need it for instance...
  25296. + if test "$linkmode,$pass" = "lib,link"; then
  25297. + ## FIXME: Find the place where the list is rebuilt in the wrong
  25298. + ## order, and fix it there properly
  25299. + tmp_deplibs=
  25300. + for deplib in $deplibs; do
  25301. + tmp_deplibs="$deplib $tmp_deplibs"
  25302. + done
  25303. + deplibs="$tmp_deplibs"
  25304. + fi
  25305. +
  25306. + if test "$linkmode,$pass" = "lib,link" ||
  25307. + test "$linkmode,$pass" = "prog,scan"; then
  25308. + libs="$deplibs"
  25309. + deplibs=
  25310. + fi
  25311. + if test "$linkmode" = prog; then
  25312. + case $pass in
  25313. + dlopen) libs="$dlfiles" ;;
  25314. + dlpreopen) libs="$dlprefiles" ;;
  25315. + link)
  25316. + libs="$deplibs %DEPLIBS%"
  25317. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  25318. + ;;
  25319. + esac
  25320. + fi
  25321. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  25322. + # Collect and forward deplibs of preopened libtool libs
  25323. + for lib in $dlprefiles; do
  25324. + # Ignore non-libtool-libs
  25325. + dependency_libs=
  25326. + case $lib in
  25327. + *.la) func_source "$lib" ;;
  25328. + esac
  25329. +
  25330. + # Collect preopened libtool deplibs, except any this library
  25331. + # has declared as weak libs
  25332. + for deplib in $dependency_libs; do
  25333. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  25334. + case " $weak_libs " in
  25335. + *" $deplib_base "*) ;;
  25336. + *) deplibs="$deplibs $deplib" ;;
  25337. + esac
  25338. + done
  25339. + done
  25340. + libs="$dlprefiles"
  25341. + fi
  25342. + if test "$pass" = dlopen; then
  25343. + # Collect dlpreopened libraries
  25344. + save_deplibs="$deplibs"
  25345. + deplibs=
  25346. + fi
  25347. +
  25348. + for deplib in $libs; do
  25349. + lib=
  25350. + found=no
  25351. + case $deplib in
  25352. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  25353. + if test "$linkmode,$pass" = "prog,link"; then
  25354. + compile_deplibs="$deplib $compile_deplibs"
  25355. + finalize_deplibs="$deplib $finalize_deplibs"
  25356. + else
  25357. + compiler_flags="$compiler_flags $deplib"
  25358. + if test "$linkmode" = lib ; then
  25359. + case "$new_inherited_linker_flags " in
  25360. + *" $deplib "*) ;;
  25361. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  25362. + esac
  25363. + fi
  25364. + fi
  25365. + continue
  25366. + ;;
  25367. + -l*)
  25368. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  25369. + func_warning "\`-l' is ignored for archives/objects"
  25370. + continue
  25371. + fi
  25372. + func_stripname '-l' '' "$deplib"
  25373. + name=$func_stripname_result
  25374. + if test "$linkmode" = lib; then
  25375. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  25376. + else
  25377. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  25378. + fi
  25379. + for searchdir in $searchdirs; do
  25380. + for search_ext in .la $std_shrext .so .a; do
  25381. + # Search the libtool library
  25382. + lib="$searchdir/lib${name}${search_ext}"
  25383. + if test -f "$lib"; then
  25384. + if test "$search_ext" = ".la"; then
  25385. + found=yes
  25386. + else
  25387. + found=no
  25388. + fi
  25389. + break 2
  25390. + fi
  25391. + done
  25392. + done
  25393. + if test "$found" != yes; then
  25394. + # deplib doesn't seem to be a libtool library
  25395. + if test "$linkmode,$pass" = "prog,link"; then
  25396. + compile_deplibs="$deplib $compile_deplibs"
  25397. + finalize_deplibs="$deplib $finalize_deplibs"
  25398. + else
  25399. + deplibs="$deplib $deplibs"
  25400. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  25401. + fi
  25402. + continue
  25403. + else # deplib is a libtool library
  25404. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  25405. + # We need to do some special things here, and not later.
  25406. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  25407. + case " $predeps $postdeps " in
  25408. + *" $deplib "*)
  25409. + if func_lalib_p "$lib"; then
  25410. + library_names=
  25411. + old_library=
  25412. + func_source "$lib"
  25413. + for l in $old_library $library_names; do
  25414. + ll="$l"
  25415. + done
  25416. + if test "X$ll" = "X$old_library" ; then # only static version available
  25417. + found=no
  25418. + func_dirname "$lib" "" "."
  25419. + ladir="$func_dirname_result"
  25420. + lib=$ladir/$old_library
  25421. + if test "$linkmode,$pass" = "prog,link"; then
  25422. + compile_deplibs="$deplib $compile_deplibs"
  25423. + finalize_deplibs="$deplib $finalize_deplibs"
  25424. + else
  25425. + deplibs="$deplib $deplibs"
  25426. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  25427. + fi
  25428. + continue
  25429. + fi
  25430. + fi
  25431. + ;;
  25432. + *) ;;
  25433. + esac
  25434. + fi
  25435. + fi
  25436. + ;; # -l
  25437. + *.ltframework)
  25438. + if test "$linkmode,$pass" = "prog,link"; then
  25439. + compile_deplibs="$deplib $compile_deplibs"
  25440. + finalize_deplibs="$deplib $finalize_deplibs"
  25441. + else
  25442. + deplibs="$deplib $deplibs"
  25443. + if test "$linkmode" = lib ; then
  25444. + case "$new_inherited_linker_flags " in
  25445. + *" $deplib "*) ;;
  25446. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  25447. + esac
  25448. + fi
  25449. + fi
  25450. + continue
  25451. + ;;
  25452. + -L*)
  25453. + case $linkmode in
  25454. + lib)
  25455. + deplibs="$deplib $deplibs"
  25456. + test "$pass" = conv && continue
  25457. + newdependency_libs="$deplib $newdependency_libs"
  25458. + func_stripname '-L' '' "$deplib"
  25459. + newlib_search_path="$newlib_search_path $func_stripname_result"
  25460. + ;;
  25461. + prog)
  25462. + if test "$pass" = conv; then
  25463. + deplibs="$deplib $deplibs"
  25464. + continue
  25465. + fi
  25466. + if test "$pass" = scan; then
  25467. + deplibs="$deplib $deplibs"
  25468. + else
  25469. + compile_deplibs="$deplib $compile_deplibs"
  25470. + finalize_deplibs="$deplib $finalize_deplibs"
  25471. + fi
  25472. + func_stripname '-L' '' "$deplib"
  25473. + newlib_search_path="$newlib_search_path $func_stripname_result"
  25474. + ;;
  25475. + *)
  25476. + func_warning "\`-L' is ignored for archives/objects"
  25477. + ;;
  25478. + esac # linkmode
  25479. + continue
  25480. + ;; # -L
  25481. + -R*)
  25482. + if test "$pass" = link; then
  25483. + func_stripname '-R' '' "$deplib"
  25484. + dir=$func_stripname_result
  25485. + # Make sure the xrpath contains only unique directories.
  25486. + case "$xrpath " in
  25487. + *" $dir "*) ;;
  25488. + *) xrpath="$xrpath $dir" ;;
  25489. + esac
  25490. + fi
  25491. + deplibs="$deplib $deplibs"
  25492. + continue
  25493. + ;;
  25494. + *.la) lib="$deplib" ;;
  25495. + *.$libext)
  25496. + if test "$pass" = conv; then
  25497. + deplibs="$deplib $deplibs"
  25498. + continue
  25499. + fi
  25500. + case $linkmode in
  25501. + lib)
  25502. + # Linking convenience modules into shared libraries is allowed,
  25503. + # but linking other static libraries is non-portable.
  25504. + case " $dlpreconveniencelibs " in
  25505. + *" $deplib "*) ;;
  25506. + *)
  25507. + valid_a_lib=no
  25508. + case $deplibs_check_method in
  25509. + match_pattern*)
  25510. + set dummy $deplibs_check_method; shift
  25511. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  25512. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  25513. + | $EGREP "$match_pattern_regex" > /dev/null; then
  25514. + valid_a_lib=yes
  25515. + fi
  25516. + ;;
  25517. + pass_all)
  25518. + valid_a_lib=yes
  25519. + ;;
  25520. + esac
  25521. + if test "$valid_a_lib" != yes; then
  25522. + $ECHO
  25523. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  25524. + $ECHO "*** I have the capability to make that library automatically link in when"
  25525. + $ECHO "*** you link to this library. But I can only do this if you have a"
  25526. + $ECHO "*** shared version of the library, which you do not appear to have"
  25527. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  25528. + $ECHO "*** that it is just a static archive that I should not use here."
  25529. + else
  25530. + $ECHO
  25531. + $ECHO "*** Warning: Linking the shared library $output against the"
  25532. + $ECHO "*** static library $deplib is not portable!"
  25533. + deplibs="$deplib $deplibs"
  25534. + fi
  25535. + ;;
  25536. + esac
  25537. + continue
  25538. + ;;
  25539. + prog)
  25540. + if test "$pass" != link; then
  25541. + deplibs="$deplib $deplibs"
  25542. + else
  25543. + compile_deplibs="$deplib $compile_deplibs"
  25544. + finalize_deplibs="$deplib $finalize_deplibs"
  25545. + fi
  25546. + continue
  25547. + ;;
  25548. + esac # linkmode
  25549. + ;; # *.$libext
  25550. + *.lo | *.$objext)
  25551. + if test "$pass" = conv; then
  25552. + deplibs="$deplib $deplibs"
  25553. + elif test "$linkmode" = prog; then
  25554. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  25555. + # If there is no dlopen support or we're linking statically,
  25556. + # we need to preload.
  25557. + newdlprefiles="$newdlprefiles $deplib"
  25558. + compile_deplibs="$deplib $compile_deplibs"
  25559. + finalize_deplibs="$deplib $finalize_deplibs"
  25560. + else
  25561. + newdlfiles="$newdlfiles $deplib"
  25562. + fi
  25563. + fi
  25564. + continue
  25565. + ;;
  25566. + %DEPLIBS%)
  25567. + alldeplibs=yes
  25568. + continue
  25569. + ;;
  25570. + esac # case $deplib
  25571. +
  25572. + if test "$found" = yes || test -f "$lib"; then :
  25573. + else
  25574. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  25575. + fi
  25576. +
  25577. + # Check to see that this really is a libtool archive.
  25578. + func_lalib_unsafe_p "$lib" \
  25579. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  25580. +
  25581. + func_dirname "$lib" "" "."
  25582. + ladir="$func_dirname_result"
  25583. +
  25584. + dlname=
  25585. + dlopen=
  25586. + dlpreopen=
  25587. + libdir=
  25588. + library_names=
  25589. + old_library=
  25590. + inherited_linker_flags=
  25591. + # If the library was installed with an old release of libtool,
  25592. + # it will not redefine variables installed, or shouldnotlink
  25593. + installed=yes
  25594. + shouldnotlink=no
  25595. + avoidtemprpath=
  25596. +
  25597. +
  25598. + # Read the .la file
  25599. + func_source "$lib"
  25600. +
  25601. + # Convert "-framework foo" to "foo.ltframework"
  25602. + if test -n "$inherited_linker_flags"; then
  25603. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  25604. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  25605. + case " $new_inherited_linker_flags " in
  25606. + *" $tmp_inherited_linker_flag "*) ;;
  25607. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  25608. + esac
  25609. + done
  25610. + fi
  25611. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  25612. + if test "$linkmode,$pass" = "lib,link" ||
  25613. + test "$linkmode,$pass" = "prog,scan" ||
  25614. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  25615. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  25616. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  25617. + fi
  25618. +
  25619. + if test "$pass" = conv; then
  25620. + # Only check for convenience libraries
  25621. + deplibs="$lib $deplibs"
  25622. + if test -z "$libdir"; then
  25623. + if test -z "$old_library"; then
  25624. + func_fatal_error "cannot find name of link library for \`$lib'"
  25625. + fi
  25626. + # It is a libtool convenience library, so add in its objects.
  25627. + convenience="$convenience $ladir/$objdir/$old_library"
  25628. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  25629. + tmp_libs=
  25630. + for deplib in $dependency_libs; do
  25631. + deplibs="$deplib $deplibs"
  25632. + if $opt_duplicate_deps ; then
  25633. + case "$tmp_libs " in
  25634. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  25635. + esac
  25636. + fi
  25637. + tmp_libs="$tmp_libs $deplib"
  25638. + done
  25639. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  25640. + func_fatal_error "\`$lib' is not a convenience library"
  25641. + fi
  25642. + continue
  25643. + fi # $pass = conv
  25644. +
  25645. +
  25646. + # Get the name of the library we link against.
  25647. + linklib=
  25648. + for l in $old_library $library_names; do
  25649. + linklib="$l"
  25650. + done
  25651. + if test -z "$linklib"; then
  25652. + func_fatal_error "cannot find name of link library for \`$lib'"
  25653. + fi
  25654. +
  25655. + # This library was specified with -dlopen.
  25656. + if test "$pass" = dlopen; then
  25657. + if test -z "$libdir"; then
  25658. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  25659. + fi
  25660. + if test -z "$dlname" ||
  25661. + test "$dlopen_support" != yes ||
  25662. + test "$build_libtool_libs" = no; then
  25663. + # If there is no dlname, no dlopen support or we're linking
  25664. + # statically, we need to preload. We also need to preload any
  25665. + # dependent libraries so libltdl's deplib preloader doesn't
  25666. + # bomb out in the load deplibs phase.
  25667. + dlprefiles="$dlprefiles $lib $dependency_libs"
  25668. + else
  25669. + newdlfiles="$newdlfiles $lib"
  25670. + fi
  25671. + continue
  25672. + fi # $pass = dlopen
  25673. +
  25674. + # We need an absolute path.
  25675. + case $ladir in
  25676. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  25677. + *)
  25678. + abs_ladir=`cd "$ladir" && pwd`
  25679. + if test -z "$abs_ladir"; then
  25680. + func_warning "cannot determine absolute directory name of \`$ladir'"
  25681. + func_warning "passing it literally to the linker, although it might fail"
  25682. + abs_ladir="$ladir"
  25683. + fi
  25684. + ;;
  25685. + esac
  25686. + func_basename "$lib"
  25687. + laname="$func_basename_result"
  25688. +
  25689. + # Find the relevant object directory and library name.
  25690. + if test "X$installed" = Xyes; then
  25691. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  25692. + func_warning "library \`$lib' was moved."
  25693. + dir="$ladir"
  25694. + absdir="$abs_ladir"
  25695. + libdir="$abs_ladir"
  25696. + else
  25697. + dir="$libdir"
  25698. + absdir="$libdir"
  25699. + fi
  25700. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  25701. + else
  25702. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  25703. + dir="$ladir"
  25704. + absdir="$abs_ladir"
  25705. + # Remove this search path later
  25706. + notinst_path="$notinst_path $abs_ladir"
  25707. + else
  25708. + dir="$ladir/$objdir"
  25709. + absdir="$abs_ladir/$objdir"
  25710. + # Remove this search path later
  25711. + notinst_path="$notinst_path $abs_ladir"
  25712. + fi
  25713. + fi # $installed = yes
  25714. + func_stripname 'lib' '.la' "$laname"
  25715. + name=$func_stripname_result
  25716. +
  25717. + # This library was specified with -dlpreopen.
  25718. + if test "$pass" = dlpreopen; then
  25719. + if test -z "$libdir" && test "$linkmode" = prog; then
  25720. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  25721. + fi
  25722. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  25723. + # are required to link).
  25724. + if test -n "$old_library"; then
  25725. + newdlprefiles="$newdlprefiles $dir/$old_library"
  25726. + # Keep a list of preopened convenience libraries to check
  25727. + # that they are being used correctly in the link pass.
  25728. + test -z "$libdir" && \
  25729. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  25730. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  25731. + elif test -n "$dlname"; then
  25732. + newdlprefiles="$newdlprefiles $dir/$dlname"
  25733. + else
  25734. + newdlprefiles="$newdlprefiles $dir/$linklib"
  25735. + fi
  25736. + fi # $pass = dlpreopen
  25737. +
  25738. + if test -z "$libdir"; then
  25739. + # Link the convenience library
  25740. + if test "$linkmode" = lib; then
  25741. + deplibs="$dir/$old_library $deplibs"
  25742. + elif test "$linkmode,$pass" = "prog,link"; then
  25743. + compile_deplibs="$dir/$old_library $compile_deplibs"
  25744. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  25745. + else
  25746. + deplibs="$lib $deplibs" # used for prog,scan pass
  25747. + fi
  25748. + continue
  25749. + fi
  25750. +
  25751. +
  25752. + if test "$linkmode" = prog && test "$pass" != link; then
  25753. + newlib_search_path="$newlib_search_path $ladir"
  25754. + deplibs="$lib $deplibs"
  25755. +
  25756. + linkalldeplibs=no
  25757. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  25758. + test "$build_libtool_libs" = no; then
  25759. + linkalldeplibs=yes
  25760. + fi
  25761. +
  25762. + tmp_libs=
  25763. + for deplib in $dependency_libs; do
  25764. + case $deplib in
  25765. + -L*) func_stripname '-L' '' "$deplib"
  25766. + newlib_search_path="$newlib_search_path $func_stripname_result"
  25767. + ;;
  25768. + esac
  25769. + # Need to link against all dependency_libs?
  25770. + if test "$linkalldeplibs" = yes; then
  25771. + deplibs="$deplib $deplibs"
  25772. + else
  25773. + # Need to hardcode shared library paths
  25774. + # or/and link against static libraries
  25775. + newdependency_libs="$deplib $newdependency_libs"
  25776. + fi
  25777. + if $opt_duplicate_deps ; then
  25778. + case "$tmp_libs " in
  25779. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  25780. + esac
  25781. + fi
  25782. + tmp_libs="$tmp_libs $deplib"
  25783. + done # for deplib
  25784. + continue
  25785. + fi # $linkmode = prog...
  25786. +
  25787. + if test "$linkmode,$pass" = "prog,link"; then
  25788. + if test -n "$library_names" &&
  25789. + { { test "$prefer_static_libs" = no ||
  25790. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  25791. + test -z "$old_library"; }; then
  25792. + # We need to hardcode the library path
  25793. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  25794. + # Make sure the rpath contains only unique directories.
  25795. + case "$temp_rpath:" in
  25796. + *"$absdir:"*) ;;
  25797. + *) temp_rpath="$temp_rpath$absdir:" ;;
  25798. + esac
  25799. + fi
  25800. +
  25801. + # Hardcode the library path.
  25802. + # Skip directories that are in the system default run-time
  25803. + # search path.
  25804. + case " $sys_lib_dlsearch_path " in
  25805. + *" $absdir "*) ;;
  25806. + *)
  25807. + case "$compile_rpath " in
  25808. + *" $absdir "*) ;;
  25809. + *) compile_rpath="$compile_rpath $absdir"
  25810. + esac
  25811. + ;;
  25812. + esac
  25813. + case " $sys_lib_dlsearch_path " in
  25814. + *" $libdir "*) ;;
  25815. + *)
  25816. + case "$finalize_rpath " in
  25817. + *" $libdir "*) ;;
  25818. + *) finalize_rpath="$finalize_rpath $libdir"
  25819. + esac
  25820. + ;;
  25821. + esac
  25822. + fi # $linkmode,$pass = prog,link...
  25823. +
  25824. + if test "$alldeplibs" = yes &&
  25825. + { test "$deplibs_check_method" = pass_all ||
  25826. + { test "$build_libtool_libs" = yes &&
  25827. + test -n "$library_names"; }; }; then
  25828. + # We only need to search for static libraries
  25829. + continue
  25830. + fi
  25831. + fi
  25832. +
  25833. + link_static=no # Whether the deplib will be linked statically
  25834. + use_static_libs=$prefer_static_libs
  25835. + if test "$use_static_libs" = built && test "$installed" = yes; then
  25836. + use_static_libs=no
  25837. + fi
  25838. + if test -n "$library_names" &&
  25839. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  25840. + case $host in
  25841. + *cygwin* | *mingw* | *cegcc*)
  25842. + # No point in relinking DLLs because paths are not encoded
  25843. + notinst_deplibs="$notinst_deplibs $lib"
  25844. + need_relink=no
  25845. + ;;
  25846. + *)
  25847. + if test "$installed" = no; then
  25848. + notinst_deplibs="$notinst_deplibs $lib"
  25849. + need_relink=yes
  25850. + fi
  25851. + ;;
  25852. + esac
  25853. + # This is a shared library
  25854. +
  25855. + # Warn about portability, can't link against -module's on some
  25856. + # systems (darwin). Don't bleat about dlopened modules though!
  25857. + dlopenmodule=""
  25858. + for dlpremoduletest in $dlprefiles; do
  25859. + if test "X$dlpremoduletest" = "X$lib"; then
  25860. + dlopenmodule="$dlpremoduletest"
  25861. + break
  25862. + fi
  25863. + done
  25864. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  25865. + $ECHO
  25866. + if test "$linkmode" = prog; then
  25867. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  25868. + else
  25869. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  25870. + fi
  25871. + $ECHO "*** $linklib is not portable!"
  25872. + fi
  25873. + if test "$linkmode" = lib &&
  25874. + test "$hardcode_into_libs" = yes; then
  25875. + # Hardcode the library path.
  25876. + # Skip directories that are in the system default run-time
  25877. + # search path.
  25878. + case " $sys_lib_dlsearch_path " in
  25879. + *" $absdir "*) ;;
  25880. + *)
  25881. + case "$compile_rpath " in
  25882. + *" $absdir "*) ;;
  25883. + *) compile_rpath="$compile_rpath $absdir"
  25884. + esac
  25885. + ;;
  25886. + esac
  25887. + case " $sys_lib_dlsearch_path " in
  25888. + *" $libdir "*) ;;
  25889. + *)
  25890. + case "$finalize_rpath " in
  25891. + *" $libdir "*) ;;
  25892. + *) finalize_rpath="$finalize_rpath $libdir"
  25893. + esac
  25894. + ;;
  25895. + esac
  25896. + fi
  25897. +
  25898. + if test -n "$old_archive_from_expsyms_cmds"; then
  25899. + # figure out the soname
  25900. + set dummy $library_names
  25901. + shift
  25902. + realname="$1"
  25903. + shift
  25904. + libname=`eval "\\$ECHO \"$libname_spec\""`
  25905. + # use dlname if we got it. it's perfectly good, no?
  25906. + if test -n "$dlname"; then
  25907. + soname="$dlname"
  25908. + elif test -n "$soname_spec"; then
  25909. + # bleh windows
  25910. + case $host in
  25911. + *cygwin* | mingw* | *cegcc*)
  25912. + func_arith $current - $age
  25913. + major=$func_arith_result
  25914. + versuffix="-$major"
  25915. + ;;
  25916. + esac
  25917. + eval soname=\"$soname_spec\"
  25918. + else
  25919. + soname="$realname"
  25920. + fi
  25921. +
  25922. + # Make a new name for the extract_expsyms_cmds to use
  25923. + soroot="$soname"
  25924. + func_basename "$soroot"
  25925. + soname="$func_basename_result"
  25926. + func_stripname 'lib' '.dll' "$soname"
  25927. + newlib=libimp-$func_stripname_result.a
  25928. +
  25929. + # If the library has no export list, then create one now
  25930. + if test -f "$output_objdir/$soname-def"; then :
  25931. + else
  25932. + func_verbose "extracting exported symbol list from \`$soname'"
  25933. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  25934. + fi
  25935. +
  25936. + # Create $newlib
  25937. + if test -f "$output_objdir/$newlib"; then :; else
  25938. + func_verbose "generating import library for \`$soname'"
  25939. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  25940. + fi
  25941. + # make sure the library variables are pointing to the new library
  25942. + dir=$output_objdir
  25943. + linklib=$newlib
  25944. + fi # test -n "$old_archive_from_expsyms_cmds"
  25945. +
  25946. + if test "$linkmode" = prog || test "$mode" != relink; then
  25947. + add_shlibpath=
  25948. + add_dir=
  25949. + add=
  25950. + lib_linked=yes
  25951. + case $hardcode_action in
  25952. + immediate | unsupported)
  25953. + if test "$hardcode_direct" = no; then
  25954. + add="$dir/$linklib"
  25955. + case $host in
  25956. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  25957. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  25958. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  25959. + *-*-unixware7*) add_dir="-L$dir" ;;
  25960. + *-*-darwin* )
  25961. + # if the lib is a (non-dlopened) module then we can not
  25962. + # link against it, someone is ignoring the earlier warnings
  25963. + if /usr/bin/file -L $add 2> /dev/null |
  25964. + $GREP ": [^:]* bundle" >/dev/null ; then
  25965. + if test "X$dlopenmodule" != "X$lib"; then
  25966. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  25967. + if test -z "$old_library" ; then
  25968. + $ECHO
  25969. + $ECHO "*** And there doesn't seem to be a static archive available"
  25970. + $ECHO "*** The link will probably fail, sorry"
  25971. + else
  25972. + add="$dir/$old_library"
  25973. + fi
  25974. + elif test -n "$old_library"; then
  25975. + add="$dir/$old_library"
  25976. + fi
  25977. + fi
  25978. + esac
  25979. + elif test "$hardcode_minus_L" = no; then
  25980. + case $host in
  25981. + *-*-sunos*) add_shlibpath="$dir" ;;
  25982. + esac
  25983. + add_dir="-L$dir"
  25984. + add="-l$name"
  25985. + elif test "$hardcode_shlibpath_var" = no; then
  25986. + add_shlibpath="$dir"
  25987. + add="-l$name"
  25988. + else
  25989. + lib_linked=no
  25990. + fi
  25991. + ;;
  25992. + relink)
  25993. + if test "$hardcode_direct" = yes &&
  25994. + test "$hardcode_direct_absolute" = no; then
  25995. + add="$dir/$linklib"
  25996. + elif test "$hardcode_minus_L" = yes; then
  25997. + add_dir="-L$dir"
  25998. + # Try looking first in the location we're being installed to.
  25999. + if test -n "$inst_prefix_dir"; then
  26000. + case $libdir in
  26001. + [\\/]*)
  26002. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  26003. + ;;
  26004. + esac
  26005. + fi
  26006. + add="-l$name"
  26007. + elif test "$hardcode_shlibpath_var" = yes; then
  26008. + add_shlibpath="$dir"
  26009. + add="-l$name"
  26010. + else
  26011. + lib_linked=no
  26012. + fi
  26013. + ;;
  26014. + *) lib_linked=no ;;
  26015. + esac
  26016. +
  26017. + if test "$lib_linked" != yes; then
  26018. + func_fatal_configuration "unsupported hardcode properties"
  26019. + fi
  26020. +
  26021. + if test -n "$add_shlibpath"; then
  26022. + case :$compile_shlibpath: in
  26023. + *":$add_shlibpath:"*) ;;
  26024. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  26025. + esac
  26026. + fi
  26027. + if test "$linkmode" = prog; then
  26028. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  26029. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  26030. + else
  26031. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  26032. + test -n "$add" && deplibs="$add $deplibs"
  26033. + if test "$hardcode_direct" != yes &&
  26034. + test "$hardcode_minus_L" != yes &&
  26035. + test "$hardcode_shlibpath_var" = yes; then
  26036. + case :$finalize_shlibpath: in
  26037. + *":$libdir:"*) ;;
  26038. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  26039. + esac
  26040. + fi
  26041. + fi
  26042. + fi
  26043. +
  26044. + if test "$linkmode" = prog || test "$mode" = relink; then
  26045. + add_shlibpath=
  26046. + add_dir=
  26047. + add=
  26048. + # Finalize command for both is simple: just hardcode it.
  26049. + if test "$hardcode_direct" = yes &&
  26050. + test "$hardcode_direct_absolute" = no; then
  26051. + add="$libdir/$linklib"
  26052. + elif test "$hardcode_minus_L" = yes; then
  26053. + add_dir="-L$libdir"
  26054. + add="-l$name"
  26055. + elif test "$hardcode_shlibpath_var" = yes; then
  26056. + case :$finalize_shlibpath: in
  26057. + *":$libdir:"*) ;;
  26058. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  26059. + esac
  26060. + add="-l$name"
  26061. + elif test "$hardcode_automatic" = yes; then
  26062. + if test -n "$inst_prefix_dir" &&
  26063. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  26064. + add="$inst_prefix_dir$libdir/$linklib"
  26065. + else
  26066. + add="$libdir/$linklib"
  26067. + fi
  26068. + else
  26069. + # We cannot seem to hardcode it, guess we'll fake it.
  26070. + add_dir="-L$libdir"
  26071. + # Try looking first in the location we're being installed to.
  26072. + if test -n "$inst_prefix_dir"; then
  26073. + case $libdir in
  26074. + [\\/]*)
  26075. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  26076. + ;;
  26077. + esac
  26078. + fi
  26079. + add="-l$name"
  26080. + fi
  26081. +
  26082. + if test "$linkmode" = prog; then
  26083. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  26084. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  26085. + else
  26086. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  26087. + test -n "$add" && deplibs="$add $deplibs"
  26088. + fi
  26089. + fi
  26090. + elif test "$linkmode" = prog; then
  26091. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  26092. + # is not unsupported. This is valid on all known static and
  26093. + # shared platforms.
  26094. + if test "$hardcode_direct" != unsupported; then
  26095. + test -n "$old_library" && linklib="$old_library"
  26096. + compile_deplibs="$dir/$linklib $compile_deplibs"
  26097. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  26098. + else
  26099. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  26100. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  26101. + fi
  26102. + elif test "$build_libtool_libs" = yes; then
  26103. + # Not a shared library
  26104. + if test "$deplibs_check_method" != pass_all; then
  26105. + # We're trying link a shared library against a static one
  26106. + # but the system doesn't support it.
  26107. +
  26108. + # Just print a warning and add the library to dependency_libs so
  26109. + # that the program can be linked against the static library.
  26110. + $ECHO
  26111. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  26112. + $ECHO "*** I have the capability to make that library automatically link in when"
  26113. + $ECHO "*** you link to this library. But I can only do this if you have a"
  26114. + $ECHO "*** shared version of the library, which you do not appear to have."
  26115. + if test "$module" = yes; then
  26116. + $ECHO "*** But as you try to build a module library, libtool will still create "
  26117. + $ECHO "*** a static module, that should work as long as the dlopening application"
  26118. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  26119. + if test -z "$global_symbol_pipe"; then
  26120. + $ECHO
  26121. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  26122. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  26123. + $ECHO "*** not find such a program. So, this module is probably useless."
  26124. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  26125. + fi
  26126. + if test "$build_old_libs" = no; then
  26127. + build_libtool_libs=module
  26128. + build_old_libs=yes
  26129. + else
  26130. + build_libtool_libs=no
  26131. + fi
  26132. + fi
  26133. + else
  26134. + deplibs="$dir/$old_library $deplibs"
  26135. + link_static=yes
  26136. + fi
  26137. + fi # link shared/static library?
  26138. +
  26139. + if test "$linkmode" = lib; then
  26140. + if test -n "$dependency_libs" &&
  26141. + { test "$hardcode_into_libs" != yes ||
  26142. + test "$build_old_libs" = yes ||
  26143. + test "$link_static" = yes; }; then
  26144. + # Extract -R from dependency_libs
  26145. + temp_deplibs=
  26146. + for libdir in $dependency_libs; do
  26147. + case $libdir in
  26148. + -R*) func_stripname '-R' '' "$libdir"
  26149. + temp_xrpath=$func_stripname_result
  26150. + case " $xrpath " in
  26151. + *" $temp_xrpath "*) ;;
  26152. + *) xrpath="$xrpath $temp_xrpath";;
  26153. + esac;;
  26154. + *) temp_deplibs="$temp_deplibs $libdir";;
  26155. + esac
  26156. + done
  26157. + dependency_libs="$temp_deplibs"
  26158. + fi
  26159. +
  26160. + newlib_search_path="$newlib_search_path $absdir"
  26161. + # Link against this library
  26162. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  26163. + # ... and its dependency_libs
  26164. + tmp_libs=
  26165. + for deplib in $dependency_libs; do
  26166. + newdependency_libs="$deplib $newdependency_libs"
  26167. + if $opt_duplicate_deps ; then
  26168. + case "$tmp_libs " in
  26169. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  26170. + esac
  26171. + fi
  26172. + tmp_libs="$tmp_libs $deplib"
  26173. + done
  26174. +
  26175. + if test "$link_all_deplibs" != no; then
  26176. + # Add the search paths of all dependency libraries
  26177. + for deplib in $dependency_libs; do
  26178. + path=
  26179. + case $deplib in
  26180. + -L*) path="$deplib" ;;
  26181. + *.la)
  26182. + func_dirname "$deplib" "" "."
  26183. + dir="$func_dirname_result"
  26184. + # We need an absolute path.
  26185. + case $dir in
  26186. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  26187. + *)
  26188. + absdir=`cd "$dir" && pwd`
  26189. + if test -z "$absdir"; then
  26190. + func_warning "cannot determine absolute directory name of \`$dir'"
  26191. + absdir="$dir"
  26192. + fi
  26193. + ;;
  26194. + esac
  26195. + if $GREP "^installed=no" $deplib > /dev/null; then
  26196. + case $host in
  26197. + *-*-darwin*)
  26198. + depdepl=
  26199. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  26200. + if test -n "$deplibrary_names" ; then
  26201. + for tmp in $deplibrary_names ; do
  26202. + depdepl=$tmp
  26203. + done
  26204. + if test -f "$absdir/$objdir/$depdepl" ; then
  26205. + depdepl="$absdir/$objdir/$depdepl"
  26206. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  26207. + if test -z "$darwin_install_name"; then
  26208. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  26209. + fi
  26210. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  26211. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  26212. + path=
  26213. + fi
  26214. + fi
  26215. + ;;
  26216. + *)
  26217. + path="-L$absdir/$objdir"
  26218. + ;;
  26219. + esac
  26220. + else
  26221. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  26222. + test -z "$libdir" && \
  26223. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  26224. + test "$absdir" != "$libdir" && \
  26225. + func_warning "\`$deplib' seems to be moved"
  26226. +
  26227. + path="-L$absdir"
  26228. + fi
  26229. + ;;
  26230. + esac
  26231. + case " $deplibs " in
  26232. + *" $path "*) ;;
  26233. + *) deplibs="$path $deplibs" ;;
  26234. + esac
  26235. + done
  26236. + fi # link_all_deplibs != no
  26237. + fi # linkmode = lib
  26238. + done # for deplib in $libs
  26239. + if test "$pass" = link; then
  26240. + if test "$linkmode" = "prog"; then
  26241. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  26242. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  26243. + else
  26244. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  26245. + fi
  26246. + fi
  26247. + dependency_libs="$newdependency_libs"
  26248. + if test "$pass" = dlpreopen; then
  26249. + # Link the dlpreopened libraries before other libraries
  26250. + for deplib in $save_deplibs; do
  26251. + deplibs="$deplib $deplibs"
  26252. + done
  26253. + fi
  26254. + if test "$pass" != dlopen; then
  26255. + if test "$pass" != conv; then
  26256. + # Make sure lib_search_path contains only unique directories.
  26257. + lib_search_path=
  26258. + for dir in $newlib_search_path; do
  26259. + case "$lib_search_path " in
  26260. + *" $dir "*) ;;
  26261. + *) lib_search_path="$lib_search_path $dir" ;;
  26262. + esac
  26263. + done
  26264. + newlib_search_path=
  26265. + fi
  26266. +
  26267. + if test "$linkmode,$pass" != "prog,link"; then
  26268. + vars="deplibs"
  26269. + else
  26270. + vars="compile_deplibs finalize_deplibs"
  26271. + fi
  26272. + for var in $vars dependency_libs; do
  26273. + # Add libraries to $var in reverse order
  26274. + eval tmp_libs=\"\$$var\"
  26275. + new_libs=
  26276. + for deplib in $tmp_libs; do
  26277. + # FIXME: Pedantically, this is the right thing to do, so
  26278. + # that some nasty dependency loop isn't accidentally
  26279. + # broken:
  26280. + #new_libs="$deplib $new_libs"
  26281. + # Pragmatically, this seems to cause very few problems in
  26282. + # practice:
  26283. + case $deplib in
  26284. + -L*) new_libs="$deplib $new_libs" ;;
  26285. + -R*) ;;
  26286. + *)
  26287. + # And here is the reason: when a library appears more
  26288. + # than once as an explicit dependence of a library, or
  26289. + # is implicitly linked in more than once by the
  26290. + # compiler, it is considered special, and multiple
  26291. + # occurrences thereof are not removed. Compare this
  26292. + # with having the same library being listed as a
  26293. + # dependency of multiple other libraries: in this case,
  26294. + # we know (pedantically, we assume) the library does not
  26295. + # need to be listed more than once, so we keep only the
  26296. + # last copy. This is not always right, but it is rare
  26297. + # enough that we require users that really mean to play
  26298. + # such unportable linking tricks to link the library
  26299. + # using -Wl,-lname, so that libtool does not consider it
  26300. + # for duplicate removal.
  26301. + case " $specialdeplibs " in
  26302. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  26303. + *)
  26304. + case " $new_libs " in
  26305. + *" $deplib "*) ;;
  26306. + *) new_libs="$deplib $new_libs" ;;
  26307. + esac
  26308. + ;;
  26309. + esac
  26310. + ;;
  26311. + esac
  26312. + done
  26313. + tmp_libs=
  26314. + for deplib in $new_libs; do
  26315. + case $deplib in
  26316. + -L*)
  26317. + case " $tmp_libs " in
  26318. + *" $deplib "*) ;;
  26319. + *) tmp_libs="$tmp_libs $deplib" ;;
  26320. + esac
  26321. + ;;
  26322. + *) tmp_libs="$tmp_libs $deplib" ;;
  26323. + esac
  26324. + done
  26325. + eval $var=\"$tmp_libs\"
  26326. + done # for var
  26327. + fi
  26328. + # Last step: remove runtime libs from dependency_libs
  26329. + # (they stay in deplibs)
  26330. + tmp_libs=
  26331. + for i in $dependency_libs ; do
  26332. + case " $predeps $postdeps $compiler_lib_search_path " in
  26333. + *" $i "*)
  26334. + i=""
  26335. + ;;
  26336. + esac
  26337. + if test -n "$i" ; then
  26338. + tmp_libs="$tmp_libs $i"
  26339. + fi
  26340. + done
  26341. + dependency_libs=$tmp_libs
  26342. + done # for pass
  26343. + if test "$linkmode" = prog; then
  26344. + dlfiles="$newdlfiles"
  26345. + fi
  26346. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  26347. + dlprefiles="$newdlprefiles"
  26348. + fi
  26349. +
  26350. + case $linkmode in
  26351. + oldlib)
  26352. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  26353. + func_warning "\`-dlopen' is ignored for archives"
  26354. + fi
  26355. +
  26356. + case " $deplibs" in
  26357. + *\ -l* | *\ -L*)
  26358. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  26359. + esac
  26360. +
  26361. + test -n "$rpath" && \
  26362. + func_warning "\`-rpath' is ignored for archives"
  26363. +
  26364. + test -n "$xrpath" && \
  26365. + func_warning "\`-R' is ignored for archives"
  26366. +
  26367. + test -n "$vinfo" && \
  26368. + func_warning "\`-version-info/-version-number' is ignored for archives"
  26369. +
  26370. + test -n "$release" && \
  26371. + func_warning "\`-release' is ignored for archives"
  26372. +
  26373. + test -n "$export_symbols$export_symbols_regex" && \
  26374. + func_warning "\`-export-symbols' is ignored for archives"
  26375. +
  26376. + # Now set the variables for building old libraries.
  26377. + build_libtool_libs=no
  26378. + oldlibs="$output"
  26379. + objs="$objs$old_deplibs"
  26380. + ;;
  26381. +
  26382. + lib)
  26383. + # Make sure we only generate libraries of the form `libNAME.la'.
  26384. + case $outputname in
  26385. + lib*)
  26386. + func_stripname 'lib' '.la' "$outputname"
  26387. + name=$func_stripname_result
  26388. + eval shared_ext=\"$shrext_cmds\"
  26389. + eval libname=\"$libname_spec\"
  26390. + ;;
  26391. + *)
  26392. + test "$module" = no && \
  26393. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  26394. +
  26395. + if test "$need_lib_prefix" != no; then
  26396. + # Add the "lib" prefix for modules if required
  26397. + func_stripname '' '.la' "$outputname"
  26398. + name=$func_stripname_result
  26399. + eval shared_ext=\"$shrext_cmds\"
  26400. + eval libname=\"$libname_spec\"
  26401. + else
  26402. + func_stripname '' '.la' "$outputname"
  26403. + libname=$func_stripname_result
  26404. + fi
  26405. + ;;
  26406. + esac
  26407. +
  26408. + if test -n "$objs"; then
  26409. + if test "$deplibs_check_method" != pass_all; then
  26410. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  26411. + else
  26412. + $ECHO
  26413. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  26414. + $ECHO "*** objects $objs is not portable!"
  26415. + libobjs="$libobjs $objs"
  26416. + fi
  26417. + fi
  26418. +
  26419. + test "$dlself" != no && \
  26420. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  26421. +
  26422. + set dummy $rpath
  26423. + shift
  26424. + test "$#" -gt 1 && \
  26425. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  26426. +
  26427. + install_libdir="$1"
  26428. +
  26429. + oldlibs=
  26430. + if test -z "$rpath"; then
  26431. + if test "$build_libtool_libs" = yes; then
  26432. + # Building a libtool convenience library.
  26433. + # Some compilers have problems with a `.al' extension so
  26434. + # convenience libraries should have the same extension an
  26435. + # archive normally would.
  26436. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  26437. + build_libtool_libs=convenience
  26438. + build_old_libs=yes
  26439. + fi
  26440. +
  26441. + test -n "$vinfo" && \
  26442. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  26443. +
  26444. + test -n "$release" && \
  26445. + func_warning "\`-release' is ignored for convenience libraries"
  26446. + else
  26447. +
  26448. + # Parse the version information argument.
  26449. + save_ifs="$IFS"; IFS=':'
  26450. + set dummy $vinfo 0 0 0
  26451. + shift
  26452. + IFS="$save_ifs"
  26453. +
  26454. + test -n "$7" && \
  26455. + func_fatal_help "too many parameters to \`-version-info'"
  26456. +
  26457. + # convert absolute version numbers to libtool ages
  26458. + # this retains compatibility with .la files and attempts
  26459. + # to make the code below a bit more comprehensible
  26460. +
  26461. + case $vinfo_number in
  26462. + yes)
  26463. + number_major="$1"
  26464. + number_minor="$2"
  26465. + number_revision="$3"
  26466. + #
  26467. + # There are really only two kinds -- those that
  26468. + # use the current revision as the major version
  26469. + # and those that subtract age and use age as
  26470. + # a minor version. But, then there is irix
  26471. + # which has an extra 1 added just for fun
  26472. + #
  26473. + case $version_type in
  26474. + darwin|linux|osf|windows|none)
  26475. + func_arith $number_major + $number_minor
  26476. + current=$func_arith_result
  26477. + age="$number_minor"
  26478. + revision="$number_revision"
  26479. + ;;
  26480. + freebsd-aout|freebsd-elf|sunos)
  26481. + current="$number_major"
  26482. + revision="$number_minor"
  26483. + age="0"
  26484. + ;;
  26485. + irix|nonstopux)
  26486. + func_arith $number_major + $number_minor
  26487. + current=$func_arith_result
  26488. + age="$number_minor"
  26489. + revision="$number_minor"
  26490. + lt_irix_increment=no
  26491. + ;;
  26492. + *)
  26493. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  26494. + ;;
  26495. + esac
  26496. + ;;
  26497. + no)
  26498. + current="$1"
  26499. + revision="$2"
  26500. + age="$3"
  26501. + ;;
  26502. + esac
  26503. +
  26504. + # Check that each of the things are valid numbers.
  26505. + case $current in
  26506. + 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]) ;;
  26507. + *)
  26508. + func_error "CURRENT \`$current' must be a nonnegative integer"
  26509. + func_fatal_error "\`$vinfo' is not valid version information"
  26510. + ;;
  26511. + esac
  26512. +
  26513. + case $revision in
  26514. + 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]) ;;
  26515. + *)
  26516. + func_error "REVISION \`$revision' must be a nonnegative integer"
  26517. + func_fatal_error "\`$vinfo' is not valid version information"
  26518. + ;;
  26519. + esac
  26520. +
  26521. + case $age in
  26522. + 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]) ;;
  26523. + *)
  26524. + func_error "AGE \`$age' must be a nonnegative integer"
  26525. + func_fatal_error "\`$vinfo' is not valid version information"
  26526. + ;;
  26527. + esac
  26528. +
  26529. + if test "$age" -gt "$current"; then
  26530. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  26531. + func_fatal_error "\`$vinfo' is not valid version information"
  26532. + fi
  26533. +
  26534. + # Calculate the version variables.
  26535. + major=
  26536. + versuffix=
  26537. + verstring=
  26538. + case $version_type in
  26539. + none) ;;
  26540. +
  26541. + darwin)
  26542. + # Like Linux, but with the current version available in
  26543. + # verstring for coding it into the library header
  26544. + func_arith $current - $age
  26545. + major=.$func_arith_result
  26546. + versuffix="$major.$age.$revision"
  26547. + # Darwin ld doesn't like 0 for these options...
  26548. + func_arith $current + 1
  26549. + minor_current=$func_arith_result
  26550. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  26551. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  26552. + ;;
  26553. +
  26554. + freebsd-aout)
  26555. + major=".$current"
  26556. + versuffix=".$current.$revision";
  26557. + ;;
  26558. +
  26559. + freebsd-elf)
  26560. + major=".$current"
  26561. + versuffix=".$current"
  26562. + ;;
  26563. +
  26564. + irix | nonstopux)
  26565. + if test "X$lt_irix_increment" = "Xno"; then
  26566. + func_arith $current - $age
  26567. + else
  26568. + func_arith $current - $age + 1
  26569. + fi
  26570. + major=$func_arith_result
  26571. +
  26572. + case $version_type in
  26573. + nonstopux) verstring_prefix=nonstopux ;;
  26574. + *) verstring_prefix=sgi ;;
  26575. + esac
  26576. + verstring="$verstring_prefix$major.$revision"
  26577. +
  26578. + # Add in all the interfaces that we are compatible with.
  26579. + loop=$revision
  26580. + while test "$loop" -ne 0; do
  26581. + func_arith $revision - $loop
  26582. + iface=$func_arith_result
  26583. + func_arith $loop - 1
  26584. + loop=$func_arith_result
  26585. + verstring="$verstring_prefix$major.$iface:$verstring"
  26586. + done
  26587. +
  26588. + # Before this point, $major must not contain `.'.
  26589. + major=.$major
  26590. + versuffix="$major.$revision"
  26591. + ;;
  26592. +
  26593. + linux)
  26594. + func_arith $current - $age
  26595. + major=.$func_arith_result
  26596. + versuffix="$major.$age.$revision"
  26597. + ;;
  26598. +
  26599. + osf)
  26600. + func_arith $current - $age
  26601. + major=.$func_arith_result
  26602. + versuffix=".$current.$age.$revision"
  26603. + verstring="$current.$age.$revision"
  26604. +
  26605. + # Add in all the interfaces that we are compatible with.
  26606. + loop=$age
  26607. + while test "$loop" -ne 0; do
  26608. + func_arith $current - $loop
  26609. + iface=$func_arith_result
  26610. + func_arith $loop - 1
  26611. + loop=$func_arith_result
  26612. + verstring="$verstring:${iface}.0"
  26613. + done
  26614. +
  26615. + # Make executables depend on our current version.
  26616. + verstring="$verstring:${current}.0"
  26617. + ;;
  26618. +
  26619. + qnx)
  26620. + major=".$current"
  26621. + versuffix=".$current"
  26622. + ;;
  26623. +
  26624. + sunos)
  26625. + major=".$current"
  26626. + versuffix=".$current.$revision"
  26627. + ;;
  26628. +
  26629. + windows)
  26630. + # Use '-' rather than '.', since we only want one
  26631. + # extension on DOS 8.3 filesystems.
  26632. + func_arith $current - $age
  26633. + major=$func_arith_result
  26634. + versuffix="-$major"
  26635. + ;;
  26636. +
  26637. + *)
  26638. + func_fatal_configuration "unknown library version type \`$version_type'"
  26639. + ;;
  26640. + esac
  26641. +
  26642. + # Clear the version info if we defaulted, and they specified a release.
  26643. + if test -z "$vinfo" && test -n "$release"; then
  26644. + major=
  26645. + case $version_type in
  26646. + darwin)
  26647. + # we can't check for "0.0" in archive_cmds due to quoting
  26648. + # problems, so we reset it completely
  26649. + verstring=
  26650. + ;;
  26651. + *)
  26652. + verstring="0.0"
  26653. + ;;
  26654. + esac
  26655. + if test "$need_version" = no; then
  26656. + versuffix=
  26657. + else
  26658. + versuffix=".0.0"
  26659. + fi
  26660. + fi
  26661. +
  26662. + # Remove version info from name if versioning should be avoided
  26663. + if test "$avoid_version" = yes && test "$need_version" = no; then
  26664. + major=
  26665. + versuffix=
  26666. + verstring=""
  26667. + fi
  26668. +
  26669. + # Check to see if the archive will have undefined symbols.
  26670. + if test "$allow_undefined" = yes; then
  26671. + if test "$allow_undefined_flag" = unsupported; then
  26672. + func_warning "undefined symbols not allowed in $host shared libraries"
  26673. + build_libtool_libs=no
  26674. + build_old_libs=yes
  26675. + fi
  26676. + else
  26677. + # Don't allow undefined symbols.
  26678. + allow_undefined_flag="$no_undefined_flag"
  26679. + fi
  26680. +
  26681. + fi
  26682. +
  26683. + func_generate_dlsyms "$libname" "$libname" "yes"
  26684. + libobjs="$libobjs $symfileobj"
  26685. + test "X$libobjs" = "X " && libobjs=
  26686. +
  26687. + if test "$mode" != relink; then
  26688. + # Remove our outputs, but don't remove object files since they
  26689. + # may have been created when compiling PIC objects.
  26690. + removelist=
  26691. + tempremovelist=`$ECHO "$output_objdir/*"`
  26692. + for p in $tempremovelist; do
  26693. + case $p in
  26694. + *.$objext | *.gcno)
  26695. + ;;
  26696. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  26697. + if test "X$precious_files_regex" != "X"; then
  26698. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  26699. + then
  26700. + continue
  26701. + fi
  26702. + fi
  26703. + removelist="$removelist $p"
  26704. + ;;
  26705. + *) ;;
  26706. + esac
  26707. + done
  26708. + test -n "$removelist" && \
  26709. + func_show_eval "${RM}r \$removelist"
  26710. + fi
  26711. +
  26712. + # Now set the variables for building old libraries.
  26713. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  26714. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  26715. +
  26716. + # Transform .lo files to .o files.
  26717. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  26718. + fi
  26719. +
  26720. + # Eliminate all temporary directories.
  26721. + #for path in $notinst_path; do
  26722. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  26723. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  26724. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  26725. + #done
  26726. +
  26727. + if test -n "$xrpath"; then
  26728. + # If the user specified any rpath flags, then add them.
  26729. + temp_xrpath=
  26730. + for libdir in $xrpath; do
  26731. + temp_xrpath="$temp_xrpath -R$libdir"
  26732. + case "$finalize_rpath " in
  26733. + *" $libdir "*) ;;
  26734. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  26735. + esac
  26736. + done
  26737. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  26738. + dependency_libs="$temp_xrpath $dependency_libs"
  26739. + fi
  26740. + fi
  26741. +
  26742. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  26743. + old_dlfiles="$dlfiles"
  26744. + dlfiles=
  26745. + for lib in $old_dlfiles; do
  26746. + case " $dlprefiles $dlfiles " in
  26747. + *" $lib "*) ;;
  26748. + *) dlfiles="$dlfiles $lib" ;;
  26749. + esac
  26750. + done
  26751. +
  26752. + # Make sure dlprefiles contains only unique files
  26753. + old_dlprefiles="$dlprefiles"
  26754. + dlprefiles=
  26755. + for lib in $old_dlprefiles; do
  26756. + case "$dlprefiles " in
  26757. + *" $lib "*) ;;
  26758. + *) dlprefiles="$dlprefiles $lib" ;;
  26759. + esac
  26760. + done
  26761. +
  26762. + if test "$build_libtool_libs" = yes; then
  26763. + if test -n "$rpath"; then
  26764. + case $host in
  26765. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  26766. + # these systems don't actually have a c library (as such)!
  26767. + ;;
  26768. + *-*-rhapsody* | *-*-darwin1.[012])
  26769. + # Rhapsody C library is in the System framework
  26770. + deplibs="$deplibs System.ltframework"
  26771. + ;;
  26772. + *-*-netbsd*)
  26773. + # Don't link with libc until the a.out ld.so is fixed.
  26774. + ;;
  26775. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  26776. + # Do not include libc due to us having libc/libc_r.
  26777. + ;;
  26778. + *-*-sco3.2v5* | *-*-sco5v6*)
  26779. + # Causes problems with __ctype
  26780. + ;;
  26781. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  26782. + # Compiler inserts libc in the correct place for threads to work
  26783. + ;;
  26784. + *)
  26785. + # Add libc to deplibs on all other systems if necessary.
  26786. + if test "$build_libtool_need_lc" = "yes"; then
  26787. + deplibs="$deplibs -lc"
  26788. + fi
  26789. + ;;
  26790. + esac
  26791. + fi
  26792. +
  26793. + # Transform deplibs into only deplibs that can be linked in shared.
  26794. + name_save=$name
  26795. + libname_save=$libname
  26796. + release_save=$release
  26797. + versuffix_save=$versuffix
  26798. + major_save=$major
  26799. + # I'm not sure if I'm treating the release correctly. I think
  26800. + # release should show up in the -l (ie -lgmp5) so we don't want to
  26801. + # add it in twice. Is that correct?
  26802. + release=""
  26803. + versuffix=""
  26804. + major=""
  26805. + newdeplibs=
  26806. + droppeddeps=no
  26807. + case $deplibs_check_method in
  26808. + pass_all)
  26809. + # Don't check for shared/static. Everything works.
  26810. + # This might be a little naive. We might want to check
  26811. + # whether the library exists or not. But this is on
  26812. + # osf3 & osf4 and I'm not really sure... Just
  26813. + # implementing what was already the behavior.
  26814. + newdeplibs=$deplibs
  26815. + ;;
  26816. + test_compile)
  26817. + # This code stresses the "libraries are programs" paradigm to its
  26818. + # limits. Maybe even breaks it. We compile a program, linking it
  26819. + # against the deplibs as a proxy for the library. Then we can check
  26820. + # whether they linked in statically or dynamically with ldd.
  26821. + $opt_dry_run || $RM conftest.c
  26822. + cat > conftest.c <<EOF
  26823. + int main() { return 0; }
  26824. +EOF
  26825. + $opt_dry_run || $RM conftest
  26826. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  26827. + ldd_output=`ldd conftest`
  26828. + for i in $deplibs; do
  26829. + case $i in
  26830. + -l*)
  26831. + func_stripname -l '' "$i"
  26832. + name=$func_stripname_result
  26833. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  26834. + case " $predeps $postdeps " in
  26835. + *" $i "*)
  26836. + newdeplibs="$newdeplibs $i"
  26837. + i=""
  26838. + ;;
  26839. + esac
  26840. + fi
  26841. + if test -n "$i" ; then
  26842. + libname=`eval "\\$ECHO \"$libname_spec\""`
  26843. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  26844. + set dummy $deplib_matches; shift
  26845. + deplib_match=$1
  26846. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  26847. + newdeplibs="$newdeplibs $i"
  26848. + else
  26849. + droppeddeps=yes
  26850. + $ECHO
  26851. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  26852. + $ECHO "*** I have the capability to make that library automatically link in when"
  26853. + $ECHO "*** you link to this library. But I can only do this if you have a"
  26854. + $ECHO "*** shared version of the library, which I believe you do not have"
  26855. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  26856. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  26857. + fi
  26858. + fi
  26859. + ;;
  26860. + *)
  26861. + newdeplibs="$newdeplibs $i"
  26862. + ;;
  26863. + esac
  26864. + done
  26865. + else
  26866. + # Error occurred in the first compile. Let's try to salvage
  26867. + # the situation: Compile a separate program for each library.
  26868. + for i in $deplibs; do
  26869. + case $i in
  26870. + -l*)
  26871. + func_stripname -l '' "$i"
  26872. + name=$func_stripname_result
  26873. + $opt_dry_run || $RM conftest
  26874. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  26875. + ldd_output=`ldd conftest`
  26876. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  26877. + case " $predeps $postdeps " in
  26878. + *" $i "*)
  26879. + newdeplibs="$newdeplibs $i"
  26880. + i=""
  26881. + ;;
  26882. + esac
  26883. + fi
  26884. + if test -n "$i" ; then
  26885. + libname=`eval "\\$ECHO \"$libname_spec\""`
  26886. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  26887. + set dummy $deplib_matches; shift
  26888. + deplib_match=$1
  26889. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  26890. + newdeplibs="$newdeplibs $i"
  26891. + else
  26892. + droppeddeps=yes
  26893. + $ECHO
  26894. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  26895. + $ECHO "*** I have the capability to make that library automatically link in when"
  26896. + $ECHO "*** you link to this library. But I can only do this if you have a"
  26897. + $ECHO "*** shared version of the library, which you do not appear to have"
  26898. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  26899. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  26900. + fi
  26901. + fi
  26902. + else
  26903. + droppeddeps=yes
  26904. + $ECHO
  26905. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  26906. + $ECHO "*** make it link in! You will probably need to install it or some"
  26907. + $ECHO "*** library that it depends on before this library will be fully"
  26908. + $ECHO "*** functional. Installing it before continuing would be even better."
  26909. + fi
  26910. + ;;
  26911. + *)
  26912. + newdeplibs="$newdeplibs $i"
  26913. + ;;
  26914. + esac
  26915. + done
  26916. + fi
  26917. + ;;
  26918. + file_magic*)
  26919. + set dummy $deplibs_check_method; shift
  26920. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  26921. + for a_deplib in $deplibs; do
  26922. + case $a_deplib in
  26923. + -l*)
  26924. + func_stripname -l '' "$a_deplib"
  26925. + name=$func_stripname_result
  26926. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  26927. + case " $predeps $postdeps " in
  26928. + *" $a_deplib "*)
  26929. + newdeplibs="$newdeplibs $a_deplib"
  26930. + a_deplib=""
  26931. + ;;
  26932. + esac
  26933. + fi
  26934. + if test -n "$a_deplib" ; then
  26935. + libname=`eval "\\$ECHO \"$libname_spec\""`
  26936. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  26937. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  26938. + for potent_lib in $potential_libs; do
  26939. + # Follow soft links.
  26940. + if ls -lLd "$potent_lib" 2>/dev/null |
  26941. + $GREP " -> " >/dev/null; then
  26942. + continue
  26943. + fi
  26944. + # The statement above tries to avoid entering an
  26945. + # endless loop below, in case of cyclic links.
  26946. + # We might still enter an endless loop, since a link
  26947. + # loop can be closed while we follow links,
  26948. + # but so what?
  26949. + potlib="$potent_lib"
  26950. + while test -h "$potlib" 2>/dev/null; do
  26951. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  26952. + case $potliblink in
  26953. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  26954. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  26955. + esac
  26956. + done
  26957. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  26958. + $SED -e 10q |
  26959. + $EGREP "$file_magic_regex" > /dev/null; then
  26960. + newdeplibs="$newdeplibs $a_deplib"
  26961. + a_deplib=""
  26962. + break 2
  26963. + fi
  26964. + done
  26965. + done
  26966. + fi
  26967. + if test -n "$a_deplib" ; then
  26968. + droppeddeps=yes
  26969. + $ECHO
  26970. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  26971. + $ECHO "*** I have the capability to make that library automatically link in when"
  26972. + $ECHO "*** you link to this library. But I can only do this if you have a"
  26973. + $ECHO "*** shared version of the library, which you do not appear to have"
  26974. + $ECHO "*** because I did check the linker path looking for a file starting"
  26975. + if test -z "$potlib" ; then
  26976. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  26977. + else
  26978. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  26979. + $ECHO "*** using a file magic. Last file checked: $potlib"
  26980. + fi
  26981. + fi
  26982. + ;;
  26983. + *)
  26984. + # Add a -L argument.
  26985. + newdeplibs="$newdeplibs $a_deplib"
  26986. + ;;
  26987. + esac
  26988. + done # Gone through all deplibs.
  26989. + ;;
  26990. + match_pattern*)
  26991. + set dummy $deplibs_check_method; shift
  26992. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  26993. + for a_deplib in $deplibs; do
  26994. + case $a_deplib in
  26995. + -l*)
  26996. + func_stripname -l '' "$a_deplib"
  26997. + name=$func_stripname_result
  26998. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  26999. + case " $predeps $postdeps " in
  27000. + *" $a_deplib "*)
  27001. + newdeplibs="$newdeplibs $a_deplib"
  27002. + a_deplib=""
  27003. + ;;
  27004. + esac
  27005. + fi
  27006. + if test -n "$a_deplib" ; then
  27007. + libname=`eval "\\$ECHO \"$libname_spec\""`
  27008. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  27009. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  27010. + for potent_lib in $potential_libs; do
  27011. + potlib="$potent_lib" # see symlink-check above in file_magic test
  27012. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  27013. + $EGREP "$match_pattern_regex" > /dev/null; then
  27014. + newdeplibs="$newdeplibs $a_deplib"
  27015. + a_deplib=""
  27016. + break 2
  27017. + fi
  27018. + done
  27019. + done
  27020. + fi
  27021. + if test -n "$a_deplib" ; then
  27022. + droppeddeps=yes
  27023. + $ECHO
  27024. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  27025. + $ECHO "*** I have the capability to make that library automatically link in when"
  27026. + $ECHO "*** you link to this library. But I can only do this if you have a"
  27027. + $ECHO "*** shared version of the library, which you do not appear to have"
  27028. + $ECHO "*** because I did check the linker path looking for a file starting"
  27029. + if test -z "$potlib" ; then
  27030. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  27031. + else
  27032. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  27033. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  27034. + fi
  27035. + fi
  27036. + ;;
  27037. + *)
  27038. + # Add a -L argument.
  27039. + newdeplibs="$newdeplibs $a_deplib"
  27040. + ;;
  27041. + esac
  27042. + done # Gone through all deplibs.
  27043. + ;;
  27044. + none | unknown | *)
  27045. + newdeplibs=""
  27046. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  27047. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  27048. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  27049. + for i in $predeps $postdeps ; do
  27050. + # can't use Xsed below, because $i might contain '/'
  27051. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  27052. + done
  27053. + fi
  27054. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  27055. + $GREP . >/dev/null; then
  27056. + $ECHO
  27057. + if test "X$deplibs_check_method" = "Xnone"; then
  27058. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  27059. + else
  27060. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  27061. + fi
  27062. + $ECHO "*** All declared inter-library dependencies are being dropped."
  27063. + droppeddeps=yes
  27064. + fi
  27065. + ;;
  27066. + esac
  27067. + versuffix=$versuffix_save
  27068. + major=$major_save
  27069. + release=$release_save
  27070. + libname=$libname_save
  27071. + name=$name_save
  27072. +
  27073. + case $host in
  27074. + *-*-rhapsody* | *-*-darwin1.[012])
  27075. + # On Rhapsody replace the C library with the System framework
  27076. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  27077. ;;
  27078. esac
  27079. - $rm $output
  27080. - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  27081. - $echo > $output "\
  27082. -#! $SHELL
  27083. -
  27084. -# $output - temporary wrapper script for $objdir/$outputname
  27085. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  27086. -#
  27087. -# The $output program cannot be directly executed until all the libtool
  27088. -# libraries that it depends on are installed.
  27089. -#
  27090. -# This wrapper script should never be moved out of the build directory.
  27091. -# If it is, it will not operate correctly.
  27092. -
  27093. -# Sed substitution that helps us do robust quoting. It backslashifies
  27094. -# metacharacters that are still active within double-quoted strings.
  27095. -Xsed='${SED} -e 1s/^X//'
  27096. -sed_quote_subst='$sed_quote_subst'
  27097. -
  27098. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  27099. -# if CDPATH is set.
  27100. -if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
  27101. -
  27102. -relink_command=\"$relink_command\"
  27103. -
  27104. -# This environment variable determines our operation mode.
  27105. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  27106. - # install mode needs the following variable:
  27107. - notinst_deplibs='$notinst_deplibs'
  27108. -else
  27109. - # When we are sourced in execute mode, \$file and \$echo are already set.
  27110. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  27111. - echo=\"$qecho\"
  27112. - file=\"\$0\"
  27113. - # Make sure echo works.
  27114. - if test \"X\$1\" = X--no-reexec; then
  27115. - # Discard the --no-reexec flag, and continue.
  27116. - shift
  27117. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  27118. - # Yippee, \$echo works!
  27119. - :
  27120. - else
  27121. - # Restart under the correct shell, and then maybe \$echo will work.
  27122. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  27123. - fi
  27124. - fi\
  27125. -"
  27126. - $echo >> $output "\
  27127. -
  27128. - # Find the directory that this script lives in.
  27129. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  27130. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  27131. -
  27132. - # Follow symbolic links until we get to the real thisdir.
  27133. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  27134. - while test -n \"\$file\"; do
  27135. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  27136. + if test "$droppeddeps" = yes; then
  27137. + if test "$module" = yes; then
  27138. + $ECHO
  27139. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  27140. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  27141. + $ECHO "*** a static module, that should work as long as the dlopening"
  27142. + $ECHO "*** application is linked with the -dlopen flag."
  27143. + if test -z "$global_symbol_pipe"; then
  27144. + $ECHO
  27145. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  27146. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  27147. + $ECHO "*** not find such a program. So, this module is probably useless."
  27148. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  27149. + fi
  27150. + if test "$build_old_libs" = no; then
  27151. + oldlibs="$output_objdir/$libname.$libext"
  27152. + build_libtool_libs=module
  27153. + build_old_libs=yes
  27154. + else
  27155. + build_libtool_libs=no
  27156. + fi
  27157. + else
  27158. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  27159. + $ECHO "*** automatically added whenever a program is linked with this library"
  27160. + $ECHO "*** or is declared to -dlopen it."
  27161. - # If there was a directory component, then change thisdir.
  27162. - if test \"x\$destdir\" != \"x\$file\"; then
  27163. - case \"\$destdir\" in
  27164. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  27165. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  27166. + if test "$allow_undefined" = no; then
  27167. + $ECHO
  27168. + $ECHO "*** Since this library must not contain undefined symbols,"
  27169. + $ECHO "*** because either the platform does not support them or"
  27170. + $ECHO "*** it was explicitly requested with -no-undefined,"
  27171. + $ECHO "*** libtool will only create a static version of it."
  27172. + if test "$build_old_libs" = no; then
  27173. + oldlibs="$output_objdir/$libname.$libext"
  27174. + build_libtool_libs=module
  27175. + build_old_libs=yes
  27176. + else
  27177. + build_libtool_libs=no
  27178. + fi
  27179. + fi
  27180. + fi
  27181. + fi
  27182. + # Done checking deplibs!
  27183. + deplibs=$newdeplibs
  27184. + fi
  27185. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  27186. + case $host in
  27187. + *-*-darwin*)
  27188. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  27189. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  27190. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  27191. + ;;
  27192. esac
  27193. - fi
  27194. -
  27195. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  27196. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  27197. - done
  27198. - # Try to get the absolute directory name.
  27199. - absdir=\`cd \"\$thisdir\" && pwd\`
  27200. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  27201. -"
  27202. -
  27203. - if test "$fast_install" = yes; then
  27204. - $echo >> $output "\
  27205. - program=lt-'$outputname'$exeext
  27206. - progdir=\"\$thisdir/$objdir\"
  27207. -
  27208. - if test ! -f \"\$progdir/\$program\" || \\
  27209. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  27210. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  27211. + # move library search paths that coincide with paths to not yet
  27212. + # installed libraries to the beginning of the library search list
  27213. + new_libs=
  27214. + for path in $notinst_path; do
  27215. + case " $new_libs " in
  27216. + *" -L$path/$objdir "*) ;;
  27217. + *)
  27218. + case " $deplibs " in
  27219. + *" -L$path/$objdir "*)
  27220. + new_libs="$new_libs -L$path/$objdir" ;;
  27221. + esac
  27222. + ;;
  27223. + esac
  27224. + done
  27225. + for deplib in $deplibs; do
  27226. + case $deplib in
  27227. + -L*)
  27228. + case " $new_libs " in
  27229. + *" $deplib "*) ;;
  27230. + *) new_libs="$new_libs $deplib" ;;
  27231. + esac
  27232. + ;;
  27233. + *) new_libs="$new_libs $deplib" ;;
  27234. + esac
  27235. + done
  27236. + deplibs="$new_libs"
  27237. - file=\"\$\$-\$program\"
  27238. + # All the library-specific variables (install_libdir is set above).
  27239. + library_names=
  27240. + old_library=
  27241. + dlname=
  27242. - if test ! -d \"\$progdir\"; then
  27243. - $mkdir \"\$progdir\"
  27244. - else
  27245. - $rm \"\$progdir/\$file\"
  27246. - fi"
  27247. + # Test again, we may have decided not to build it any more
  27248. + if test "$build_libtool_libs" = yes; then
  27249. + if test "$hardcode_into_libs" = yes; then
  27250. + # Hardcode the library paths
  27251. + hardcode_libdirs=
  27252. + dep_rpath=
  27253. + rpath="$finalize_rpath"
  27254. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  27255. + for libdir in $rpath; do
  27256. + if test -n "$hardcode_libdir_flag_spec"; then
  27257. + if test -n "$hardcode_libdir_separator"; then
  27258. + if test -z "$hardcode_libdirs"; then
  27259. + hardcode_libdirs="$libdir"
  27260. + else
  27261. + # Just accumulate the unique libdirs.
  27262. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  27263. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  27264. + ;;
  27265. + *)
  27266. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  27267. + ;;
  27268. + esac
  27269. + fi
  27270. + else
  27271. + eval flag=\"$hardcode_libdir_flag_spec\"
  27272. + dep_rpath="$dep_rpath $flag"
  27273. + fi
  27274. + elif test -n "$runpath_var"; then
  27275. + case "$perm_rpath " in
  27276. + *" $libdir "*) ;;
  27277. + *) perm_rpath="$perm_rpath $libdir" ;;
  27278. + esac
  27279. + fi
  27280. + done
  27281. + # Substitute the hardcoded libdirs into the rpath.
  27282. + if test -n "$hardcode_libdir_separator" &&
  27283. + test -n "$hardcode_libdirs"; then
  27284. + libdir="$hardcode_libdirs"
  27285. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  27286. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  27287. + else
  27288. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  27289. + fi
  27290. + fi
  27291. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  27292. + # We should set the runpath_var.
  27293. + rpath=
  27294. + for dir in $perm_rpath; do
  27295. + rpath="$rpath$dir:"
  27296. + done
  27297. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  27298. + fi
  27299. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  27300. + fi
  27301. - $echo >> $output "\
  27302. + shlibpath="$finalize_shlibpath"
  27303. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  27304. + if test -n "$shlibpath"; then
  27305. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  27306. + fi
  27307. - # relink executable if necessary
  27308. - if test -n \"\$relink_command\"; then
  27309. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  27310. - else
  27311. - $echo \"\$relink_command_output\" >&2
  27312. - $rm \"\$progdir/\$file\"
  27313. - exit $EXIT_FAILURE
  27314. - fi
  27315. - fi
  27316. + # Get the real and link names of the library.
  27317. + eval shared_ext=\"$shrext_cmds\"
  27318. + eval library_names=\"$library_names_spec\"
  27319. + set dummy $library_names
  27320. + shift
  27321. + realname="$1"
  27322. + shift
  27323. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  27324. - { $rm \"\$progdir/\$program\";
  27325. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  27326. - $rm \"\$progdir/\$file\"
  27327. - fi"
  27328. + if test -n "$soname_spec"; then
  27329. + eval soname=\"$soname_spec\"
  27330. else
  27331. - $echo >> $output "\
  27332. - program='$outputname'
  27333. - progdir=\"\$thisdir/$objdir\"
  27334. -"
  27335. + soname="$realname"
  27336. fi
  27337. -
  27338. - $echo >> $output "\
  27339. -
  27340. - if test -f \"\$progdir/\$program\"; then"
  27341. -
  27342. - # Export our shlibpath_var if we have one.
  27343. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  27344. - $echo >> $output "\
  27345. - # Add our own library path to $shlibpath_var
  27346. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  27347. -
  27348. - # Some systems cannot cope with colon-terminated $shlibpath_var
  27349. - # The second colon is a workaround for a bug in BeOS R4 sed
  27350. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  27351. -
  27352. - export $shlibpath_var
  27353. -"
  27354. + if test -z "$dlname"; then
  27355. + dlname=$soname
  27356. fi
  27357. - # fixup the dll searchpath if we need to.
  27358. - if test -n "$dllsearchpath"; then
  27359. - $echo >> $output "\
  27360. - # Add the dll search path components to the executable PATH
  27361. - PATH=$dllsearchpath:\$PATH
  27362. -"
  27363. - fi
  27364. + lib="$output_objdir/$realname"
  27365. + linknames=
  27366. + for link
  27367. + do
  27368. + linknames="$linknames $link"
  27369. + done
  27370. - $echo >> $output "\
  27371. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  27372. - # Run the actual program with our arguments.
  27373. -"
  27374. - case $host in
  27375. - # Backslashes separate directories on plain windows
  27376. - *-*-mingw | *-*-os2*)
  27377. - $echo >> $output "\
  27378. - exec \$progdir\\\\\$program \${1+\"\$@\"}
  27379. -"
  27380. - ;;
  27381. + # Use standard objects if they are pic
  27382. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  27383. + test "X$libobjs" = "X " && libobjs=
  27384. - *)
  27385. - $echo >> $output "\
  27386. - exec \$progdir/\$program \${1+\"\$@\"}
  27387. -"
  27388. + delfiles=
  27389. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  27390. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  27391. + export_symbols="$output_objdir/$libname.uexp"
  27392. + delfiles="$delfiles $export_symbols"
  27393. + fi
  27394. +
  27395. + orig_export_symbols=
  27396. + case $host_os in
  27397. + cygwin* | mingw* | cegcc*)
  27398. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  27399. + # exporting using user supplied symfile
  27400. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  27401. + # and it's NOT already a .def file. Must figure out
  27402. + # which of the given symbols are data symbols and tag
  27403. + # them as such. So, trigger use of export_symbols_cmds.
  27404. + # export_symbols gets reassigned inside the "prepare
  27405. + # the list of exported symbols" if statement, so the
  27406. + # include_expsyms logic still works.
  27407. + orig_export_symbols="$export_symbols"
  27408. + export_symbols=
  27409. + always_export_symbols=yes
  27410. + fi
  27411. + fi
  27412. ;;
  27413. esac
  27414. - $echo >> $output "\
  27415. - \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
  27416. - exit $EXIT_FAILURE
  27417. - fi
  27418. - else
  27419. - # The program doesn't exist.
  27420. - \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
  27421. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  27422. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  27423. - exit $EXIT_FAILURE
  27424. - fi
  27425. -fi\
  27426. -"
  27427. - chmod +x $output
  27428. - fi
  27429. - exit $EXIT_SUCCESS
  27430. - ;;
  27431. - esac
  27432. -
  27433. - # See if we need to build an old-fashioned archive.
  27434. - for oldlib in $oldlibs; do
  27435. - if test "$build_libtool_libs" = convenience; then
  27436. - oldobjs="$libobjs_save"
  27437. - addlibs="$convenience"
  27438. - build_libtool_libs=no
  27439. - else
  27440. - if test "$build_libtool_libs" = module; then
  27441. - oldobjs="$libobjs_save"
  27442. - build_libtool_libs=no
  27443. - else
  27444. - oldobjs="$old_deplibs $non_pic_objects"
  27445. + # Prepare the list of exported symbols
  27446. + if test -z "$export_symbols"; then
  27447. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  27448. + func_verbose "generating symbol list for \`$libname.la'"
  27449. + export_symbols="$output_objdir/$libname.exp"
  27450. + $opt_dry_run || $RM $export_symbols
  27451. + cmds=$export_symbols_cmds
  27452. + save_ifs="$IFS"; IFS='~'
  27453. + for cmd in $cmds; do
  27454. + IFS="$save_ifs"
  27455. + eval cmd=\"$cmd\"
  27456. + func_len " $cmd"
  27457. + len=$func_len_result
  27458. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  27459. + func_show_eval "$cmd" 'exit $?'
  27460. + skipped_export=false
  27461. + else
  27462. + # The command line is too long to execute in one step.
  27463. + func_verbose "using reloadable object file for export list..."
  27464. + skipped_export=:
  27465. + # Break out early, otherwise skipped_export may be
  27466. + # set to false by a later but shorter cmd.
  27467. + break
  27468. + fi
  27469. + done
  27470. + IFS="$save_ifs"
  27471. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  27472. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  27473. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  27474. + fi
  27475. + fi
  27476. fi
  27477. - addlibs="$old_convenience"
  27478. - fi
  27479. - if test -n "$addlibs"; then
  27480. - gentop="$output_objdir/${outputname}x"
  27481. - $show "${rm}r $gentop"
  27482. - $run ${rm}r "$gentop"
  27483. - $show "$mkdir $gentop"
  27484. - $run $mkdir "$gentop"
  27485. - status=$?
  27486. - if test "$status" -ne 0 && test ! -d "$gentop"; then
  27487. - exit $status
  27488. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  27489. + tmp_export_symbols="$export_symbols"
  27490. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  27491. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  27492. + fi
  27493. +
  27494. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  27495. + # The given exports_symbols file has to be filtered, so filter it.
  27496. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  27497. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  27498. + # 's' commands which not all seds can handle. GNU sed should be fine
  27499. + # though. Also, the filter scales superlinearly with the number of
  27500. + # global variables. join(1) would be nice here, but unfortunately
  27501. + # isn't a blessed tool.
  27502. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  27503. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  27504. + export_symbols=$output_objdir/$libname.def
  27505. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  27506. fi
  27507. - generated="$generated $gentop"
  27508. - # Add in members from convenience archives.
  27509. - for xlib in $addlibs; do
  27510. - # Extract the objects.
  27511. - case $xlib in
  27512. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  27513. - *) xabs=`pwd`"/$xlib" ;;
  27514. + tmp_deplibs=
  27515. + for test_deplib in $deplibs; do
  27516. + case " $convenience " in
  27517. + *" $test_deplib "*) ;;
  27518. + *)
  27519. + tmp_deplibs="$tmp_deplibs $test_deplib"
  27520. + ;;
  27521. esac
  27522. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  27523. - xdir="$gentop/$xlib"
  27524. + done
  27525. + deplibs="$tmp_deplibs"
  27526. - $show "${rm}r $xdir"
  27527. - $run ${rm}r "$xdir"
  27528. - $show "$mkdir $xdir"
  27529. - $run $mkdir "$xdir"
  27530. - status=$?
  27531. - if test "$status" -ne 0 && test ! -d "$xdir"; then
  27532. - exit $status
  27533. - fi
  27534. - # We will extract separately just the conflicting names and we will no
  27535. - # longer touch any unique names. It is faster to leave these extract
  27536. - # automatically by $AR in one run.
  27537. - $show "(cd $xdir && $AR x $xabs)"
  27538. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  27539. - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
  27540. - :
  27541. + if test -n "$convenience"; then
  27542. + if test -n "$whole_archive_flag_spec" &&
  27543. + test "$compiler_needs_object" = yes &&
  27544. + test -z "$libobjs"; then
  27545. + # extract the archives, so we have objects to list.
  27546. + # TODO: could optimize this to just extract one archive.
  27547. + whole_archive_flag_spec=
  27548. + fi
  27549. + if test -n "$whole_archive_flag_spec"; then
  27550. + save_libobjs=$libobjs
  27551. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  27552. + test "X$libobjs" = "X " && libobjs=
  27553. else
  27554. - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
  27555. - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
  27556. - $AR t "$xabs" | sort | uniq -cd | while read -r count name
  27557. - do
  27558. - i=1
  27559. - while test "$i" -le "$count"
  27560. - do
  27561. - # Put our $i before any first dot (extension)
  27562. - # Never overwrite any file
  27563. - name_to="$name"
  27564. - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
  27565. - do
  27566. - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
  27567. - done
  27568. - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
  27569. - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
  27570. - i=`expr $i + 1`
  27571. - done
  27572. - done
  27573. + gentop="$output_objdir/${outputname}x"
  27574. + generated="$generated $gentop"
  27575. +
  27576. + func_extract_archives $gentop $convenience
  27577. + libobjs="$libobjs $func_extract_archives_result"
  27578. + test "X$libobjs" = "X " && libobjs=
  27579. fi
  27580. + fi
  27581. - oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
  27582. - done
  27583. - fi
  27584. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  27585. + eval flag=\"$thread_safe_flag_spec\"
  27586. + linker_flags="$linker_flags $flag"
  27587. + fi
  27588. - # Do each command in the archive commands.
  27589. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  27590. - cmds=$old_archive_from_new_cmds
  27591. - else
  27592. - eval cmds=\"$old_archive_cmds\"
  27593. + # Make a backup of the uninstalled library when relinking
  27594. + if test "$mode" = relink; then
  27595. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  27596. + fi
  27597. - if len=`expr "X$cmds" : ".*"` &&
  27598. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  27599. - cmds=$old_archive_cmds
  27600. - else
  27601. - # the command line is too long to link in one step, link in parts
  27602. - $echo "using piecewise archive linking..."
  27603. - save_RANLIB=$RANLIB
  27604. - RANLIB=:
  27605. - objlist=
  27606. - concat_cmds=
  27607. - save_oldobjs=$oldobjs
  27608. - # GNU ar 2.10+ was changed to match POSIX; thus no paths are
  27609. - # encoded into archives. This makes 'ar r' malfunction in
  27610. - # this piecewise linking case whenever conflicting object
  27611. - # names appear in distinct ar calls; check, warn and compensate.
  27612. - if (for obj in $save_oldobjs
  27613. - do
  27614. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  27615. - done | sort | sort -uc >/dev/null 2>&1); then
  27616. - :
  27617. + # Do each of the archive commands.
  27618. + if test "$module" = yes && test -n "$module_cmds" ; then
  27619. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  27620. + eval test_cmds=\"$module_expsym_cmds\"
  27621. + cmds=$module_expsym_cmds
  27622. else
  27623. - $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
  27624. - $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
  27625. - AR_FLAGS=cq
  27626. + eval test_cmds=\"$module_cmds\"
  27627. + cmds=$module_cmds
  27628. fi
  27629. - # Is there a better way of finding the last object in the list?
  27630. - for obj in $save_oldobjs
  27631. - do
  27632. - last_oldobj=$obj
  27633. - done
  27634. - for obj in $save_oldobjs
  27635. - do
  27636. - oldobjs="$objlist $obj"
  27637. - objlist="$objlist $obj"
  27638. - eval test_cmds=\"$old_archive_cmds\"
  27639. - if len=`expr "X$test_cmds" : ".*"` &&
  27640. - test "$len" -le "$max_cmd_len"; then
  27641. - :
  27642. - else
  27643. - # the above command should be used before it gets too long
  27644. - oldobjs=$objlist
  27645. - if test "$obj" = "$last_oldobj" ; then
  27646. - RANLIB=$save_RANLIB
  27647. - fi
  27648. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  27649. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  27650. - objlist=
  27651. - fi
  27652. - done
  27653. - RANLIB=$save_RANLIB
  27654. - oldobjs=$objlist
  27655. - if test "X$oldobjs" = "X" ; then
  27656. - eval cmds=\"\$concat_cmds\"
  27657. + else
  27658. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  27659. + eval test_cmds=\"$archive_expsym_cmds\"
  27660. + cmds=$archive_expsym_cmds
  27661. else
  27662. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  27663. + eval test_cmds=\"$archive_cmds\"
  27664. + cmds=$archive_cmds
  27665. fi
  27666. fi
  27667. - fi
  27668. - save_ifs="$IFS"; IFS='~'
  27669. - for cmd in $cmds; do
  27670. - eval cmd=\"$cmd\"
  27671. - IFS="$save_ifs"
  27672. - $show "$cmd"
  27673. - $run eval "$cmd" || exit $?
  27674. - done
  27675. - IFS="$save_ifs"
  27676. - done
  27677. -
  27678. - if test -n "$generated"; then
  27679. - $show "${rm}r$generated"
  27680. - $run ${rm}r$generated
  27681. - fi
  27682. -
  27683. - # Now create the libtool archive.
  27684. - case $output in
  27685. - *.la)
  27686. - old_library=
  27687. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  27688. - $show "creating $output"
  27689. - # Preserve any variables that may affect compiler behavior
  27690. - for var in $variables_saved_for_relink; do
  27691. - if eval test -z \"\${$var+set}\"; then
  27692. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  27693. - elif eval var_value=\$$var; test -z "$var_value"; then
  27694. - relink_command="$var=; export $var; $relink_command"
  27695. + if test "X$skipped_export" != "X:" &&
  27696. + func_len " $test_cmds" &&
  27697. + len=$func_len_result &&
  27698. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  27699. + :
  27700. else
  27701. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  27702. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  27703. - fi
  27704. - done
  27705. - # Quote the link command for shipping.
  27706. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  27707. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  27708. - if test "$hardcode_automatic" = yes ; then
  27709. - relink_command=
  27710. - fi
  27711. + # The command line is too long to link in one step, link piecewise
  27712. + # or, if using GNU ld and skipped_export is not :, use a linker
  27713. + # script.
  27714. +
  27715. + # Save the value of $output and $libobjs because we want to
  27716. + # use them later. If we have whole_archive_flag_spec, we
  27717. + # want to use save_libobjs as it was before
  27718. + # whole_archive_flag_spec was expanded, because we can't
  27719. + # assume the linker understands whole_archive_flag_spec.
  27720. + # This may have to be revisited, in case too many
  27721. + # convenience libraries get linked in and end up exceeding
  27722. + # the spec.
  27723. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  27724. + save_libobjs=$libobjs
  27725. + fi
  27726. + save_output=$output
  27727. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  27728. + # Clear the reloadable object creation command queue and
  27729. + # initialize k to one.
  27730. + test_cmds=
  27731. + concat_cmds=
  27732. + objlist=
  27733. + last_robj=
  27734. + k=1
  27735. - # Only create the output if not a dry run.
  27736. - if test -z "$run"; then
  27737. - for installed in no yes; do
  27738. - if test "$installed" = yes; then
  27739. - if test -z "$install_libdir"; then
  27740. - break
  27741. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  27742. + output=${output_objdir}/${output_la}.lnkscript
  27743. + func_verbose "creating GNU ld script: $output"
  27744. + $ECHO 'INPUT (' > $output
  27745. + for obj in $save_libobjs
  27746. + do
  27747. + $ECHO "$obj" >> $output
  27748. + done
  27749. + $ECHO ')' >> $output
  27750. + delfiles="$delfiles $output"
  27751. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  27752. + output=${output_objdir}/${output_la}.lnk
  27753. + func_verbose "creating linker input file list: $output"
  27754. + : > $output
  27755. + set x $save_libobjs
  27756. + shift
  27757. + firstobj=
  27758. + if test "$compiler_needs_object" = yes; then
  27759. + firstobj="$1 "
  27760. + shift
  27761. fi
  27762. - output="$output_objdir/$outputname"i
  27763. - # Replace all uninstalled libtool libraries with the installed ones
  27764. - newdependency_libs=
  27765. - for deplib in $dependency_libs; do
  27766. - case $deplib in
  27767. - *.la)
  27768. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  27769. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  27770. - if test -z "$libdir"; then
  27771. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  27772. - exit $EXIT_FAILURE
  27773. - fi
  27774. - newdependency_libs="$newdependency_libs $libdir/$name"
  27775. - ;;
  27776. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  27777. - esac
  27778. + for obj
  27779. + do
  27780. + $ECHO "$obj" >> $output
  27781. done
  27782. - dependency_libs="$newdependency_libs"
  27783. - newdlfiles=
  27784. - for lib in $dlfiles; do
  27785. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  27786. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  27787. - if test -z "$libdir"; then
  27788. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  27789. - exit $EXIT_FAILURE
  27790. + delfiles="$delfiles $output"
  27791. + output=$firstobj\"$file_list_spec$output\"
  27792. + else
  27793. + if test -n "$save_libobjs"; then
  27794. + func_verbose "creating reloadable object files..."
  27795. + output=$output_objdir/$output_la-${k}.$objext
  27796. + eval test_cmds=\"$reload_cmds\"
  27797. + func_len " $test_cmds"
  27798. + len0=$func_len_result
  27799. + len=$len0
  27800. +
  27801. + # Loop over the list of objects to be linked.
  27802. + for obj in $save_libobjs
  27803. + do
  27804. + func_len " $obj"
  27805. + func_arith $len + $func_len_result
  27806. + len=$func_arith_result
  27807. + if test "X$objlist" = X ||
  27808. + test "$len" -lt "$max_cmd_len"; then
  27809. + func_append objlist " $obj"
  27810. + else
  27811. + # The command $test_cmds is almost too long, add a
  27812. + # command to the queue.
  27813. + if test "$k" -eq 1 ; then
  27814. + # The first file doesn't have a previous command to add.
  27815. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  27816. + else
  27817. + # All subsequent reloadable object files will link in
  27818. + # the last one created.
  27819. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  27820. + fi
  27821. + last_robj=$output_objdir/$output_la-${k}.$objext
  27822. + func_arith $k + 1
  27823. + k=$func_arith_result
  27824. + output=$output_objdir/$output_la-${k}.$objext
  27825. + objlist=$obj
  27826. + func_len " $last_robj"
  27827. + func_arith $len0 + $func_len_result
  27828. + len=$func_arith_result
  27829. + fi
  27830. + done
  27831. + # Handle the remaining objects by creating one last
  27832. + # reloadable object file. All subsequent reloadable object
  27833. + # files will link in the last one created.
  27834. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  27835. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  27836. + if test -n "$last_robj"; then
  27837. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  27838. fi
  27839. - newdlfiles="$newdlfiles $libdir/$name"
  27840. - done
  27841. - dlfiles="$newdlfiles"
  27842. - newdlprefiles=
  27843. - for lib in $dlprefiles; do
  27844. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  27845. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  27846. - if test -z "$libdir"; then
  27847. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  27848. - exit $EXIT_FAILURE
  27849. + delfiles="$delfiles $output"
  27850. +
  27851. + else
  27852. + output=
  27853. + fi
  27854. +
  27855. + if ${skipped_export-false}; then
  27856. + func_verbose "generating symbol list for \`$libname.la'"
  27857. + export_symbols="$output_objdir/$libname.exp"
  27858. + $opt_dry_run || $RM $export_symbols
  27859. + libobjs=$output
  27860. + # Append the command to create the export file.
  27861. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  27862. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  27863. + if test -n "$last_robj"; then
  27864. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  27865. fi
  27866. - newdlprefiles="$newdlprefiles $libdir/$name"
  27867. + fi
  27868. +
  27869. + test -n "$save_libobjs" &&
  27870. + func_verbose "creating a temporary reloadable object file: $output"
  27871. +
  27872. + # Loop through the commands generated above and execute them.
  27873. + save_ifs="$IFS"; IFS='~'
  27874. + for cmd in $concat_cmds; do
  27875. + IFS="$save_ifs"
  27876. + $opt_silent || {
  27877. + func_quote_for_expand "$cmd"
  27878. + eval "func_echo $func_quote_for_expand_result"
  27879. + }
  27880. + $opt_dry_run || eval "$cmd" || {
  27881. + lt_exit=$?
  27882. +
  27883. + # Restore the uninstalled library and exit
  27884. + if test "$mode" = relink; then
  27885. + ( cd "$output_objdir" && \
  27886. + $RM "${realname}T" && \
  27887. + $MV "${realname}U" "$realname" )
  27888. + fi
  27889. +
  27890. + exit $lt_exit
  27891. + }
  27892. done
  27893. - dlprefiles="$newdlprefiles"
  27894. + IFS="$save_ifs"
  27895. +
  27896. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  27897. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  27898. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  27899. + fi
  27900. + fi
  27901. +
  27902. + if ${skipped_export-false}; then
  27903. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  27904. + tmp_export_symbols="$export_symbols"
  27905. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  27906. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  27907. + fi
  27908. +
  27909. + if test -n "$orig_export_symbols"; then
  27910. + # The given exports_symbols file has to be filtered, so filter it.
  27911. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  27912. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  27913. + # 's' commands which not all seds can handle. GNU sed should be fine
  27914. + # though. Also, the filter scales superlinearly with the number of
  27915. + # global variables. join(1) would be nice here, but unfortunately
  27916. + # isn't a blessed tool.
  27917. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  27918. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  27919. + export_symbols=$output_objdir/$libname.def
  27920. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  27921. + fi
  27922. + fi
  27923. +
  27924. + libobjs=$output
  27925. + # Restore the value of output.
  27926. + output=$save_output
  27927. +
  27928. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  27929. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  27930. + test "X$libobjs" = "X " && libobjs=
  27931. + fi
  27932. + # Expand the library linking commands again to reset the
  27933. + # value of $libobjs for piecewise linking.
  27934. +
  27935. + # Do each of the archive commands.
  27936. + if test "$module" = yes && test -n "$module_cmds" ; then
  27937. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  27938. + cmds=$module_expsym_cmds
  27939. + else
  27940. + cmds=$module_cmds
  27941. + fi
  27942. else
  27943. - newdlfiles=
  27944. - for lib in $dlfiles; do
  27945. - case $lib in
  27946. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  27947. - *) abs=`pwd`"/$lib" ;;
  27948. - esac
  27949. - newdlfiles="$newdlfiles $abs"
  27950. - done
  27951. - dlfiles="$newdlfiles"
  27952. - newdlprefiles=
  27953. - for lib in $dlprefiles; do
  27954. - case $lib in
  27955. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  27956. - *) abs=`pwd`"/$lib" ;;
  27957. - esac
  27958. - newdlprefiles="$newdlprefiles $abs"
  27959. - done
  27960. - dlprefiles="$newdlprefiles"
  27961. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  27962. + cmds=$archive_expsym_cmds
  27963. + else
  27964. + cmds=$archive_cmds
  27965. + fi
  27966. fi
  27967. - $rm $output
  27968. - # place dlname in correct position for cygwin
  27969. - tdlname=$dlname
  27970. - case $host,$output,$installed,$module,$dlname in
  27971. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  27972. - esac
  27973. - $echo > $output "\
  27974. -# $outputname - a libtool library file
  27975. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  27976. -#
  27977. -# Please DO NOT delete this file!
  27978. -# It is necessary for linking the library.
  27979. + fi
  27980. -# The name that we can dlopen(3).
  27981. -dlname='$tdlname'
  27982. + if test -n "$delfiles"; then
  27983. + # Append the command to remove temporary files to $cmds.
  27984. + eval cmds=\"\$cmds~\$RM $delfiles\"
  27985. + fi
  27986. -# Names of this library.
  27987. -library_names='$library_names'
  27988. + # Add any objects from preloaded convenience libraries
  27989. + if test -n "$dlprefiles"; then
  27990. + gentop="$output_objdir/${outputname}x"
  27991. + generated="$generated $gentop"
  27992. -# The name of the static archive.
  27993. -old_library='$old_library'
  27994. + func_extract_archives $gentop $dlprefiles
  27995. + libobjs="$libobjs $func_extract_archives_result"
  27996. + test "X$libobjs" = "X " && libobjs=
  27997. + fi
  27998. -# Libraries that this one depends upon.
  27999. -dependency_libs='$dependency_libs'
  28000. + save_ifs="$IFS"; IFS='~'
  28001. + for cmd in $cmds; do
  28002. + IFS="$save_ifs"
  28003. + eval cmd=\"$cmd\"
  28004. + $opt_silent || {
  28005. + func_quote_for_expand "$cmd"
  28006. + eval "func_echo $func_quote_for_expand_result"
  28007. + }
  28008. + $opt_dry_run || eval "$cmd" || {
  28009. + lt_exit=$?
  28010. +
  28011. + # Restore the uninstalled library and exit
  28012. + if test "$mode" = relink; then
  28013. + ( cd "$output_objdir" && \
  28014. + $RM "${realname}T" && \
  28015. + $MV "${realname}U" "$realname" )
  28016. + fi
  28017. -# Version information for $libname.
  28018. -current=$current
  28019. -age=$age
  28020. -revision=$revision
  28021. + exit $lt_exit
  28022. + }
  28023. + done
  28024. + IFS="$save_ifs"
  28025. -# Is this an already installed library?
  28026. -installed=$installed
  28027. + # Restore the uninstalled library and exit
  28028. + if test "$mode" = relink; then
  28029. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  28030. -# Should we warn about portability when linking against -modules?
  28031. -shouldnotlink=$module
  28032. + if test -n "$convenience"; then
  28033. + if test -z "$whole_archive_flag_spec"; then
  28034. + func_show_eval '${RM}r "$gentop"'
  28035. + fi
  28036. + fi
  28037. -# Files to dlopen/dlpreopen
  28038. -dlopen='$dlfiles'
  28039. -dlpreopen='$dlprefiles'
  28040. + exit $EXIT_SUCCESS
  28041. + fi
  28042. -# Directory that this library needs to be installed in:
  28043. -libdir='$install_libdir'"
  28044. - if test "$installed" = no && test "$need_relink" = yes; then
  28045. - $echo >> $output "\
  28046. -relink_command=\"$relink_command\""
  28047. + # Create links to the real library.
  28048. + for linkname in $linknames; do
  28049. + if test "$realname" != "$linkname"; then
  28050. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  28051. fi
  28052. done
  28053. - fi
  28054. - # Do a symbolic link so that the libtool archive can be found in
  28055. - # LD_LIBRARY_PATH before the program is installed.
  28056. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  28057. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  28058. + # If -module or -export-dynamic was specified, set the dlname.
  28059. + if test "$module" = yes || test "$export_dynamic" = yes; then
  28060. + # On all known operating systems, these are identical.
  28061. + dlname="$soname"
  28062. + fi
  28063. + fi
  28064. ;;
  28065. - esac
  28066. - exit $EXIT_SUCCESS
  28067. - ;;
  28068. - # libtool install mode
  28069. - install)
  28070. - modename="$modename: install"
  28071. + obj)
  28072. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  28073. + func_warning "\`-dlopen' is ignored for objects"
  28074. + fi
  28075. - # There may be an optional sh(1) argument at the beginning of
  28076. - # install_prog (especially on Windows NT).
  28077. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  28078. - # Allow the use of GNU shtool's install command.
  28079. - $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
  28080. - # Aesthetically quote it.
  28081. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  28082. - case $arg in
  28083. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  28084. - arg="\"$arg\""
  28085. - ;;
  28086. + case " $deplibs" in
  28087. + *\ -l* | *\ -L*)
  28088. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  28089. esac
  28090. - install_prog="$arg "
  28091. - arg="$1"
  28092. - shift
  28093. - else
  28094. - install_prog=
  28095. - arg="$nonopt"
  28096. - fi
  28097. - # The real first argument should be the name of the installation program.
  28098. - # Aesthetically quote it.
  28099. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  28100. - case $arg in
  28101. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  28102. - arg="\"$arg\""
  28103. - ;;
  28104. - esac
  28105. - install_prog="$install_prog$arg"
  28106. + test -n "$rpath" && \
  28107. + func_warning "\`-rpath' is ignored for objects"
  28108. - # We need to accept at least all the BSD install flags.
  28109. - dest=
  28110. - files=
  28111. - opts=
  28112. - prev=
  28113. - install_type=
  28114. - isdir=no
  28115. - stripme=
  28116. - for arg
  28117. - do
  28118. - if test -n "$dest"; then
  28119. - files="$files $dest"
  28120. - dest="$arg"
  28121. - continue
  28122. - fi
  28123. + test -n "$xrpath" && \
  28124. + func_warning "\`-R' is ignored for objects"
  28125. - case $arg in
  28126. - -d) isdir=yes ;;
  28127. - -f) prev="-f" ;;
  28128. - -g) prev="-g" ;;
  28129. - -m) prev="-m" ;;
  28130. - -o) prev="-o" ;;
  28131. - -s)
  28132. - stripme=" -s"
  28133. - continue
  28134. - ;;
  28135. - -*) ;;
  28136. + test -n "$vinfo" && \
  28137. + func_warning "\`-version-info' is ignored for objects"
  28138. + test -n "$release" && \
  28139. + func_warning "\`-release' is ignored for objects"
  28140. +
  28141. + case $output in
  28142. + *.lo)
  28143. + test -n "$objs$old_deplibs" && \
  28144. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  28145. +
  28146. + libobj=$output
  28147. + func_lo2o "$libobj"
  28148. + obj=$func_lo2o_result
  28149. + ;;
  28150. *)
  28151. - # If the previous option needed an argument, then skip it.
  28152. - if test -n "$prev"; then
  28153. - prev=
  28154. - else
  28155. - dest="$arg"
  28156. - continue
  28157. - fi
  28158. + libobj=
  28159. + obj="$output"
  28160. ;;
  28161. esac
  28162. - # Aesthetically quote the argument.
  28163. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  28164. - case $arg in
  28165. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  28166. - arg="\"$arg\""
  28167. - ;;
  28168. - esac
  28169. - install_prog="$install_prog $arg"
  28170. - done
  28171. + # Delete the old objects.
  28172. + $opt_dry_run || $RM $obj $libobj
  28173. - if test -z "$install_prog"; then
  28174. - $echo "$modename: you must specify an install program" 1>&2
  28175. - $echo "$help" 1>&2
  28176. - exit $EXIT_FAILURE
  28177. - fi
  28178. + # Objects from convenience libraries. This assumes
  28179. + # single-version convenience libraries. Whenever we create
  28180. + # different ones for PIC/non-PIC, this we'll have to duplicate
  28181. + # the extraction.
  28182. + reload_conv_objs=
  28183. + gentop=
  28184. + # reload_cmds runs $LD directly, so let us get rid of
  28185. + # -Wl from whole_archive_flag_spec and hope we can get by with
  28186. + # turning comma into space..
  28187. + wl=
  28188. - if test -n "$prev"; then
  28189. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  28190. - $echo "$help" 1>&2
  28191. - exit $EXIT_FAILURE
  28192. - fi
  28193. + if test -n "$convenience"; then
  28194. + if test -n "$whole_archive_flag_spec"; then
  28195. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  28196. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  28197. + else
  28198. + gentop="$output_objdir/${obj}x"
  28199. + generated="$generated $gentop"
  28200. - if test -z "$files"; then
  28201. - if test -z "$dest"; then
  28202. - $echo "$modename: no file or destination specified" 1>&2
  28203. - else
  28204. - $echo "$modename: you must specify a destination" 1>&2
  28205. + func_extract_archives $gentop $convenience
  28206. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  28207. + fi
  28208. fi
  28209. - $echo "$help" 1>&2
  28210. - exit $EXIT_FAILURE
  28211. - fi
  28212. - # Strip any trailing slash from the destination.
  28213. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  28214. + # Create the old-style object.
  28215. + 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
  28216. - # Check to see that the destination is a directory.
  28217. - test -d "$dest" && isdir=yes
  28218. - if test "$isdir" = yes; then
  28219. - destdir="$dest"
  28220. - destname=
  28221. - else
  28222. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  28223. - test "X$destdir" = "X$dest" && destdir=.
  28224. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  28225. + output="$obj"
  28226. + func_execute_cmds "$reload_cmds" 'exit $?'
  28227. - # Not a directory, so check to see that there is only one file specified.
  28228. - set dummy $files
  28229. - if test "$#" -gt 2; then
  28230. - $echo "$modename: \`$dest' is not a directory" 1>&2
  28231. - $echo "$help" 1>&2
  28232. - exit $EXIT_FAILURE
  28233. + # Exit if we aren't doing a library object file.
  28234. + if test -z "$libobj"; then
  28235. + if test -n "$gentop"; then
  28236. + func_show_eval '${RM}r "$gentop"'
  28237. + fi
  28238. +
  28239. + exit $EXIT_SUCCESS
  28240. fi
  28241. - fi
  28242. - case $destdir in
  28243. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  28244. - *)
  28245. - for file in $files; do
  28246. - case $file in
  28247. - *.lo) ;;
  28248. - *)
  28249. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  28250. - $echo "$help" 1>&2
  28251. - exit $EXIT_FAILURE
  28252. - ;;
  28253. - esac
  28254. - done
  28255. +
  28256. + if test "$build_libtool_libs" != yes; then
  28257. + if test -n "$gentop"; then
  28258. + func_show_eval '${RM}r "$gentop"'
  28259. + fi
  28260. +
  28261. + # Create an invalid libtool object if no PIC, so that we don't
  28262. + # accidentally link it into a program.
  28263. + # $show "echo timestamp > $libobj"
  28264. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  28265. + exit $EXIT_SUCCESS
  28266. + fi
  28267. +
  28268. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  28269. + # Only do commands if we really have different PIC objects.
  28270. + reload_objs="$libobjs $reload_conv_objs"
  28271. + output="$libobj"
  28272. + func_execute_cmds "$reload_cmds" 'exit $?'
  28273. + fi
  28274. +
  28275. + if test -n "$gentop"; then
  28276. + func_show_eval '${RM}r "$gentop"'
  28277. + fi
  28278. +
  28279. + exit $EXIT_SUCCESS
  28280. ;;
  28281. - esac
  28282. - # This variable tells wrapper scripts just to set variables rather
  28283. - # than running their programs.
  28284. - libtool_install_magic="$magic"
  28285. + prog)
  28286. + case $host in
  28287. + *cygwin*) func_stripname '' '.exe' "$output"
  28288. + output=$func_stripname_result.exe;;
  28289. + esac
  28290. + test -n "$vinfo" && \
  28291. + func_warning "\`-version-info' is ignored for programs"
  28292. - staticlibs=
  28293. - future_libdirs=
  28294. - current_libdirs=
  28295. - for file in $files; do
  28296. + test -n "$release" && \
  28297. + func_warning "\`-release' is ignored for programs"
  28298. - # Do each installation.
  28299. - case $file in
  28300. - *.$libext)
  28301. - # Do the static libraries later.
  28302. - staticlibs="$staticlibs $file"
  28303. + test "$preload" = yes \
  28304. + && test "$dlopen_support" = unknown \
  28305. + && test "$dlopen_self" = unknown \
  28306. + && test "$dlopen_self_static" = unknown && \
  28307. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  28308. +
  28309. + case $host in
  28310. + *-*-rhapsody* | *-*-darwin1.[012])
  28311. + # On Rhapsody replace the C library is the System framework
  28312. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  28313. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  28314. ;;
  28315. + esac
  28316. - *.la)
  28317. - # Check to see that this really is a libtool archive.
  28318. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  28319. - else
  28320. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  28321. - $echo "$help" 1>&2
  28322. - exit $EXIT_FAILURE
  28323. + case $host in
  28324. + *-*-darwin*)
  28325. + # Don't allow lazy linking, it breaks C++ global constructors
  28326. + # But is supposedly fixed on 10.4 or later (yay!).
  28327. + if test "$tagname" = CXX ; then
  28328. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  28329. + 10.[0123])
  28330. + compile_command="$compile_command ${wl}-bind_at_load"
  28331. + finalize_command="$finalize_command ${wl}-bind_at_load"
  28332. + ;;
  28333. + esac
  28334. fi
  28335. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  28336. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  28337. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  28338. + ;;
  28339. + esac
  28340. - library_names=
  28341. - old_library=
  28342. - relink_command=
  28343. - # If there is no directory component, then add one.
  28344. - case $file in
  28345. - */* | *\\*) . $file ;;
  28346. - *) . ./$file ;;
  28347. +
  28348. + # move library search paths that coincide with paths to not yet
  28349. + # installed libraries to the beginning of the library search list
  28350. + new_libs=
  28351. + for path in $notinst_path; do
  28352. + case " $new_libs " in
  28353. + *" -L$path/$objdir "*) ;;
  28354. + *)
  28355. + case " $compile_deplibs " in
  28356. + *" -L$path/$objdir "*)
  28357. + new_libs="$new_libs -L$path/$objdir" ;;
  28358. + esac
  28359. + ;;
  28360. + esac
  28361. + done
  28362. + for deplib in $compile_deplibs; do
  28363. + case $deplib in
  28364. + -L*)
  28365. + case " $new_libs " in
  28366. + *" $deplib "*) ;;
  28367. + *) new_libs="$new_libs $deplib" ;;
  28368. + esac
  28369. + ;;
  28370. + *) new_libs="$new_libs $deplib" ;;
  28371. esac
  28372. + done
  28373. + compile_deplibs="$new_libs"
  28374. - # Add the libdir to current_libdirs if it is the destination.
  28375. - if test "X$destdir" = "X$libdir"; then
  28376. - case "$current_libdirs " in
  28377. +
  28378. + compile_command="$compile_command $compile_deplibs"
  28379. + finalize_command="$finalize_command $finalize_deplibs"
  28380. +
  28381. + if test -n "$rpath$xrpath"; then
  28382. + # If the user specified any rpath flags, then add them.
  28383. + for libdir in $rpath $xrpath; do
  28384. + # This is the magic to use -rpath.
  28385. + case "$finalize_rpath " in
  28386. *" $libdir "*) ;;
  28387. - *) current_libdirs="$current_libdirs $libdir" ;;
  28388. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  28389. esac
  28390. - else
  28391. - # Note the libdir as a future libdir.
  28392. - case "$future_libdirs " in
  28393. + done
  28394. + fi
  28395. +
  28396. + # Now hardcode the library paths
  28397. + rpath=
  28398. + hardcode_libdirs=
  28399. + for libdir in $compile_rpath $finalize_rpath; do
  28400. + if test -n "$hardcode_libdir_flag_spec"; then
  28401. + if test -n "$hardcode_libdir_separator"; then
  28402. + if test -z "$hardcode_libdirs"; then
  28403. + hardcode_libdirs="$libdir"
  28404. + else
  28405. + # Just accumulate the unique libdirs.
  28406. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  28407. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  28408. + ;;
  28409. + *)
  28410. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  28411. + ;;
  28412. + esac
  28413. + fi
  28414. + else
  28415. + eval flag=\"$hardcode_libdir_flag_spec\"
  28416. + rpath="$rpath $flag"
  28417. + fi
  28418. + elif test -n "$runpath_var"; then
  28419. + case "$perm_rpath " in
  28420. *" $libdir "*) ;;
  28421. - *) future_libdirs="$future_libdirs $libdir" ;;
  28422. + *) perm_rpath="$perm_rpath $libdir" ;;
  28423. esac
  28424. fi
  28425. + case $host in
  28426. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  28427. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  28428. + case :$dllsearchpath: in
  28429. + *":$libdir:"*) ;;
  28430. + ::) dllsearchpath=$libdir;;
  28431. + *) dllsearchpath="$dllsearchpath:$libdir";;
  28432. + esac
  28433. + case :$dllsearchpath: in
  28434. + *":$testbindir:"*) ;;
  28435. + ::) dllsearchpath=$testbindir;;
  28436. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  28437. + esac
  28438. + ;;
  28439. + esac
  28440. + done
  28441. + # Substitute the hardcoded libdirs into the rpath.
  28442. + if test -n "$hardcode_libdir_separator" &&
  28443. + test -n "$hardcode_libdirs"; then
  28444. + libdir="$hardcode_libdirs"
  28445. + eval rpath=\" $hardcode_libdir_flag_spec\"
  28446. + fi
  28447. + compile_rpath="$rpath"
  28448. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  28449. - test "X$dir" = "X$file/" && dir=
  28450. - dir="$dir$objdir"
  28451. -
  28452. - if test -n "$relink_command"; then
  28453. - # Determine the prefix the user has applied to our future dir.
  28454. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  28455. -
  28456. - # Don't allow the user to place us outside of our expected
  28457. - # location b/c this prevents finding dependent libraries that
  28458. - # are installed to the same prefix.
  28459. - # At present, this check doesn't affect windows .dll's that
  28460. - # are installed into $libdir/../bin (currently, that works fine)
  28461. - # but it's something to keep an eye on.
  28462. - if test "$inst_prefix_dir" = "$destdir"; then
  28463. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  28464. - exit $EXIT_FAILURE
  28465. - fi
  28466. -
  28467. - if test -n "$inst_prefix_dir"; then
  28468. - # Stick the inst_prefix_dir data into the link command.
  28469. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  28470. - else
  28471. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
  28472. - fi
  28473. -
  28474. - $echo "$modename: warning: relinking \`$file'" 1>&2
  28475. - $show "$relink_command"
  28476. - if $run eval "$relink_command"; then :
  28477. + rpath=
  28478. + hardcode_libdirs=
  28479. + for libdir in $finalize_rpath; do
  28480. + if test -n "$hardcode_libdir_flag_spec"; then
  28481. + if test -n "$hardcode_libdir_separator"; then
  28482. + if test -z "$hardcode_libdirs"; then
  28483. + hardcode_libdirs="$libdir"
  28484. + else
  28485. + # Just accumulate the unique libdirs.
  28486. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  28487. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  28488. + ;;
  28489. + *)
  28490. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  28491. + ;;
  28492. + esac
  28493. + fi
  28494. else
  28495. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  28496. - exit $EXIT_FAILURE
  28497. + eval flag=\"$hardcode_libdir_flag_spec\"
  28498. + rpath="$rpath $flag"
  28499. fi
  28500. + elif test -n "$runpath_var"; then
  28501. + case "$finalize_perm_rpath " in
  28502. + *" $libdir "*) ;;
  28503. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  28504. + esac
  28505. fi
  28506. + done
  28507. + # Substitute the hardcoded libdirs into the rpath.
  28508. + if test -n "$hardcode_libdir_separator" &&
  28509. + test -n "$hardcode_libdirs"; then
  28510. + libdir="$hardcode_libdirs"
  28511. + eval rpath=\" $hardcode_libdir_flag_spec\"
  28512. + fi
  28513. + finalize_rpath="$rpath"
  28514. - # See the names of the shared library.
  28515. - set dummy $library_names
  28516. - if test -n "$2"; then
  28517. - realname="$2"
  28518. - shift
  28519. - shift
  28520. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  28521. + # Transform all the library objects into standard objects.
  28522. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  28523. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  28524. + fi
  28525. - srcname="$realname"
  28526. - test -n "$relink_command" && srcname="$realname"T
  28527. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  28528. - # Install the shared library and build the symlinks.
  28529. - $show "$install_prog $dir/$srcname $destdir/$realname"
  28530. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  28531. - if test -n "$stripme" && test -n "$striplib"; then
  28532. - $show "$striplib $destdir/$realname"
  28533. - $run eval "$striplib $destdir/$realname" || exit $?
  28534. - fi
  28535. + # template prelinking step
  28536. + if test -n "$prelink_cmds"; then
  28537. + func_execute_cmds "$prelink_cmds" 'exit $?'
  28538. + fi
  28539. - if test "$#" -gt 0; then
  28540. - # Delete the old symlinks, and create new ones.
  28541. - for linkname
  28542. - do
  28543. - if test "$linkname" != "$realname"; then
  28544. - $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
  28545. - $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
  28546. - fi
  28547. - done
  28548. - fi
  28549. + wrappers_required=yes
  28550. + case $host in
  28551. + *cygwin* | *mingw* )
  28552. + if test "$build_libtool_libs" != yes; then
  28553. + wrappers_required=no
  28554. + fi
  28555. + ;;
  28556. + *cegcc)
  28557. + # Disable wrappers for cegcc, we are cross compiling anyway.
  28558. + wrappers_required=no
  28559. + ;;
  28560. + *)
  28561. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  28562. + wrappers_required=no
  28563. + fi
  28564. + ;;
  28565. + esac
  28566. + if test "$wrappers_required" = no; then
  28567. + # Replace the output file specification.
  28568. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  28569. + link_command="$compile_command$compile_rpath"
  28570. - # Do each command in the postinstall commands.
  28571. - lib="$destdir/$realname"
  28572. - cmds=$postinstall_cmds
  28573. - save_ifs="$IFS"; IFS='~'
  28574. - for cmd in $cmds; do
  28575. - IFS="$save_ifs"
  28576. - eval cmd=\"$cmd\"
  28577. - $show "$cmd"
  28578. - $run eval "$cmd" || exit $?
  28579. - done
  28580. - IFS="$save_ifs"
  28581. - fi
  28582. + # We have no uninstalled library dependencies, so finalize right now.
  28583. + exit_status=0
  28584. + func_show_eval "$link_command" 'exit_status=$?'
  28585. - # Install the pseudo-library for information purposes.
  28586. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  28587. - instname="$dir/$name"i
  28588. - $show "$install_prog $instname $destdir/$name"
  28589. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  28590. + # Delete the generated files.
  28591. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  28592. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  28593. + fi
  28594. - # Maybe install the static library, too.
  28595. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  28596. - ;;
  28597. + exit $exit_status
  28598. + fi
  28599. - *.lo)
  28600. - # Install (i.e. copy) a libtool object.
  28601. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  28602. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  28603. + fi
  28604. + if test -n "$finalize_shlibpath"; then
  28605. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  28606. + fi
  28607. - # Figure out destination file name, if it wasn't already specified.
  28608. - if test -n "$destname"; then
  28609. - destfile="$destdir/$destname"
  28610. - else
  28611. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  28612. - destfile="$destdir/$destfile"
  28613. + compile_var=
  28614. + finalize_var=
  28615. + if test -n "$runpath_var"; then
  28616. + if test -n "$perm_rpath"; then
  28617. + # We should set the runpath_var.
  28618. + rpath=
  28619. + for dir in $perm_rpath; do
  28620. + rpath="$rpath$dir:"
  28621. + done
  28622. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  28623. fi
  28624. -
  28625. - # Deduce the name of the destination old-style object file.
  28626. - case $destfile in
  28627. - *.lo)
  28628. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  28629. - ;;
  28630. - *.$objext)
  28631. - staticdest="$destfile"
  28632. - destfile=
  28633. - ;;
  28634. - *)
  28635. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  28636. - $echo "$help" 1>&2
  28637. - exit $EXIT_FAILURE
  28638. - ;;
  28639. - esac
  28640. -
  28641. - # Install the libtool object if requested.
  28642. - if test -n "$destfile"; then
  28643. - $show "$install_prog $file $destfile"
  28644. - $run eval "$install_prog $file $destfile" || exit $?
  28645. + if test -n "$finalize_perm_rpath"; then
  28646. + # We should set the runpath_var.
  28647. + rpath=
  28648. + for dir in $finalize_perm_rpath; do
  28649. + rpath="$rpath$dir:"
  28650. + done
  28651. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  28652. fi
  28653. + fi
  28654. - # Install the old object if enabled.
  28655. - if test "$build_old_libs" = yes; then
  28656. - # Deduce the name of the old-style object file.
  28657. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  28658. -
  28659. - $show "$install_prog $staticobj $staticdest"
  28660. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  28661. - fi
  28662. + if test "$no_install" = yes; then
  28663. + # We don't need to create a wrapper script.
  28664. + link_command="$compile_var$compile_command$compile_rpath"
  28665. + # Replace the output file specification.
  28666. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  28667. + # Delete the old output file.
  28668. + $opt_dry_run || $RM $output
  28669. + # Link the executable and exit
  28670. + func_show_eval "$link_command" 'exit $?'
  28671. exit $EXIT_SUCCESS
  28672. - ;;
  28673. + fi
  28674. - *)
  28675. - # Figure out destination file name, if it wasn't already specified.
  28676. - if test -n "$destname"; then
  28677. - destfile="$destdir/$destname"
  28678. + if test "$hardcode_action" = relink; then
  28679. + # Fast installation is not supported
  28680. + link_command="$compile_var$compile_command$compile_rpath"
  28681. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  28682. +
  28683. + func_warning "this platform does not like uninstalled shared libraries"
  28684. + func_warning "\`$output' will be relinked during installation"
  28685. + else
  28686. + if test "$fast_install" != no; then
  28687. + link_command="$finalize_var$compile_command$finalize_rpath"
  28688. + if test "$fast_install" = yes; then
  28689. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  28690. + else
  28691. + # fast_install is set to needless
  28692. + relink_command=
  28693. + fi
  28694. else
  28695. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  28696. - destfile="$destdir/$destfile"
  28697. + link_command="$compile_var$compile_command$compile_rpath"
  28698. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  28699. fi
  28700. + fi
  28701. - # If the file is missing, and there is a .exe on the end, strip it
  28702. - # because it is most likely a libtool script we actually want to
  28703. - # install
  28704. - stripped_ext=""
  28705. - case $file in
  28706. - *.exe)
  28707. - if test ! -f "$file"; then
  28708. - file=`$echo $file|${SED} 's,.exe$,,'`
  28709. - stripped_ext=".exe"
  28710. - fi
  28711. - ;;
  28712. - esac
  28713. -
  28714. - # Do a test to see if this is really a libtool program.
  28715. - case $host in
  28716. - *cygwin*|*mingw*)
  28717. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  28718. - ;;
  28719. - *)
  28720. - wrapper=$file
  28721. - ;;
  28722. - esac
  28723. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  28724. - notinst_deplibs=
  28725. - relink_command=
  28726. -
  28727. - # To insure that "foo" is sourced, and not "foo.exe",
  28728. - # finese the cygwin/MSYS system by explicitly sourcing "foo."
  28729. - # which disallows the automatic-append-.exe behavior.
  28730. - case $build in
  28731. - *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
  28732. - *) wrapperdot=${wrapper} ;;
  28733. - esac
  28734. - # If there is no directory component, then add one.
  28735. - case $file in
  28736. - */* | *\\*) . ${wrapperdot} ;;
  28737. - *) . ./${wrapperdot} ;;
  28738. - esac
  28739. -
  28740. - # Check the variables that should have been set.
  28741. - if test -z "$notinst_deplibs"; then
  28742. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  28743. - exit $EXIT_FAILURE
  28744. - fi
  28745. + # Replace the output file specification.
  28746. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  28747. - finalize=yes
  28748. - for lib in $notinst_deplibs; do
  28749. - # Check to see that each library is installed.
  28750. - libdir=
  28751. - if test -f "$lib"; then
  28752. - # If there is no directory component, then add one.
  28753. - case $lib in
  28754. - */* | *\\*) . $lib ;;
  28755. - *) . ./$lib ;;
  28756. - esac
  28757. - fi
  28758. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  28759. - if test -n "$libdir" && test ! -f "$libfile"; then
  28760. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  28761. - finalize=no
  28762. - fi
  28763. - done
  28764. + # Delete the old output files.
  28765. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  28766. - relink_command=
  28767. - # To insure that "foo" is sourced, and not "foo.exe",
  28768. - # finese the cygwin/MSYS system by explicitly sourcing "foo."
  28769. - # which disallows the automatic-append-.exe behavior.
  28770. - case $build in
  28771. - *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
  28772. - *) wrapperdot=${wrapper} ;;
  28773. - esac
  28774. - # If there is no directory component, then add one.
  28775. - case $file in
  28776. - */* | *\\*) . ${wrapperdot} ;;
  28777. - *) . ./${wrapperdot} ;;
  28778. - esac
  28779. + func_show_eval "$link_command" 'exit $?'
  28780. - outputname=
  28781. - if test "$fast_install" = no && test -n "$relink_command"; then
  28782. - if test "$finalize" = yes && test -z "$run"; then
  28783. - tmpdir="/tmp"
  28784. - test -n "$TMPDIR" && tmpdir="$TMPDIR"
  28785. - tmpdir="$tmpdir/libtool-$$"
  28786. - save_umask=`umask`
  28787. - umask 0077
  28788. - if $mkdir "$tmpdir"; then
  28789. - umask $save_umask
  28790. - else
  28791. - umask $save_umask
  28792. - $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
  28793. - continue
  28794. - fi
  28795. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  28796. - outputname="$tmpdir/$file"
  28797. - # Replace the output file specification.
  28798. - relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  28799. + # Now create the wrapper script.
  28800. + func_verbose "creating $output"
  28801. - $show "$relink_command"
  28802. - if $run eval "$relink_command"; then :
  28803. - else
  28804. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  28805. - ${rm}r "$tmpdir"
  28806. - continue
  28807. - fi
  28808. - file="$outputname"
  28809. - else
  28810. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  28811. - fi
  28812. + # Quote the relink command for shipping.
  28813. + if test -n "$relink_command"; then
  28814. + # Preserve any variables that may affect compiler behavior
  28815. + for var in $variables_saved_for_relink; do
  28816. + if eval test -z \"\${$var+set}\"; then
  28817. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  28818. + elif eval var_value=\$$var; test -z "$var_value"; then
  28819. + relink_command="$var=; export $var; $relink_command"
  28820. else
  28821. - # Install the binary that we compiled earlier.
  28822. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  28823. + func_quote_for_eval "$var_value"
  28824. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  28825. fi
  28826. - fi
  28827. + done
  28828. + relink_command="(cd `pwd`; $relink_command)"
  28829. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  28830. + fi
  28831. - # remove .exe since cygwin /usr/bin/install will append another
  28832. - # one anyways
  28833. - case $install_prog,$host in
  28834. - */usr/bin/install*,*cygwin*)
  28835. - case $file:$destfile in
  28836. - *.exe:*.exe)
  28837. - # this is ok
  28838. - ;;
  28839. - *.exe:*)
  28840. - destfile=$destfile.exe
  28841. - ;;
  28842. - *:*.exe)
  28843. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  28844. - ;;
  28845. - esac
  28846. - ;;
  28847. + # Quote $ECHO for shipping.
  28848. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  28849. + case $progpath in
  28850. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  28851. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  28852. esac
  28853. - $show "$install_prog$stripme $file $destfile"
  28854. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  28855. - test -n "$outputname" && ${rm}r "$tmpdir"
  28856. - ;;
  28857. - esac
  28858. - done
  28859. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  28860. + else
  28861. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  28862. + fi
  28863. - for file in $staticlibs; do
  28864. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  28865. + # Only actually do things if not in dry run mode.
  28866. + $opt_dry_run || {
  28867. + # win32 will think the script is a binary if it has
  28868. + # a .exe suffix, so we strip it off here.
  28869. + case $output in
  28870. + *.exe) func_stripname '' '.exe' "$output"
  28871. + output=$func_stripname_result ;;
  28872. + esac
  28873. + # test for cygwin because mv fails w/o .exe extensions
  28874. + case $host in
  28875. + *cygwin*)
  28876. + exeext=.exe
  28877. + func_stripname '' '.exe' "$outputname"
  28878. + outputname=$func_stripname_result ;;
  28879. + *) exeext= ;;
  28880. + esac
  28881. + case $host in
  28882. + *cygwin* | *mingw* )
  28883. + func_dirname_and_basename "$output" "" "."
  28884. + output_name=$func_basename_result
  28885. + output_path=$func_dirname_result
  28886. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  28887. + cwrapper="$output_path/$output_name.exe"
  28888. + $RM $cwrappersource $cwrapper
  28889. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  28890. +
  28891. + func_emit_cwrapperexe_src > $cwrappersource
  28892. +
  28893. + # The wrapper executable is built using the $host compiler,
  28894. + # because it contains $host paths and files. If cross-
  28895. + # compiling, it, like the target executable, must be
  28896. + # executed on the $host or under an emulation environment.
  28897. + $opt_dry_run || {
  28898. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  28899. + $STRIP $cwrapper
  28900. + }
  28901. +
  28902. + # Now, create the wrapper script for func_source use:
  28903. + func_ltwrapper_scriptname $cwrapper
  28904. + $RM $func_ltwrapper_scriptname_result
  28905. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  28906. + $opt_dry_run || {
  28907. + # note: this script will not be executed, so do not chmod.
  28908. + if test "x$build" = "x$host" ; then
  28909. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  28910. + else
  28911. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  28912. + fi
  28913. + }
  28914. + ;;
  28915. + * )
  28916. + $RM $output
  28917. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  28918. - # Set up the ranlib parameters.
  28919. - oldlib="$destdir/$name"
  28920. + func_emit_wrapper no > $output
  28921. + chmod +x $output
  28922. + ;;
  28923. + esac
  28924. + }
  28925. + exit $EXIT_SUCCESS
  28926. + ;;
  28927. + esac
  28928. - $show "$install_prog $file $oldlib"
  28929. - $run eval "$install_prog \$file \$oldlib" || exit $?
  28930. + # See if we need to build an old-fashioned archive.
  28931. + for oldlib in $oldlibs; do
  28932. - if test -n "$stripme" && test -n "$old_striplib"; then
  28933. - $show "$old_striplib $oldlib"
  28934. - $run eval "$old_striplib $oldlib" || exit $?
  28935. + if test "$build_libtool_libs" = convenience; then
  28936. + oldobjs="$libobjs_save $symfileobj"
  28937. + addlibs="$convenience"
  28938. + build_libtool_libs=no
  28939. + else
  28940. + if test "$build_libtool_libs" = module; then
  28941. + oldobjs="$libobjs_save"
  28942. + build_libtool_libs=no
  28943. + else
  28944. + oldobjs="$old_deplibs $non_pic_objects"
  28945. + if test "$preload" = yes && test -f "$symfileobj"; then
  28946. + oldobjs="$oldobjs $symfileobj"
  28947. + fi
  28948. + fi
  28949. + addlibs="$old_convenience"
  28950. fi
  28951. - # Do each command in the postinstall commands.
  28952. - cmds=$old_postinstall_cmds
  28953. - save_ifs="$IFS"; IFS='~'
  28954. - for cmd in $cmds; do
  28955. - IFS="$save_ifs"
  28956. - eval cmd=\"$cmd\"
  28957. - $show "$cmd"
  28958. - $run eval "$cmd" || exit $?
  28959. - done
  28960. - IFS="$save_ifs"
  28961. - done
  28962. + if test -n "$addlibs"; then
  28963. + gentop="$output_objdir/${outputname}x"
  28964. + generated="$generated $gentop"
  28965. - if test -n "$future_libdirs"; then
  28966. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  28967. - fi
  28968. + func_extract_archives $gentop $addlibs
  28969. + oldobjs="$oldobjs $func_extract_archives_result"
  28970. + fi
  28971. - if test -n "$current_libdirs"; then
  28972. - # Maybe just do a dry run.
  28973. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  28974. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  28975. - else
  28976. - exit $EXIT_SUCCESS
  28977. - fi
  28978. - ;;
  28979. + # Do each command in the archive commands.
  28980. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  28981. + cmds=$old_archive_from_new_cmds
  28982. + else
  28983. - # libtool finish mode
  28984. - finish)
  28985. - modename="$modename: finish"
  28986. - libdirs="$nonopt"
  28987. - admincmds=
  28988. + # Add any objects from preloaded convenience libraries
  28989. + if test -n "$dlprefiles"; then
  28990. + gentop="$output_objdir/${outputname}x"
  28991. + generated="$generated $gentop"
  28992. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  28993. - for dir
  28994. - do
  28995. - libdirs="$libdirs $dir"
  28996. - done
  28997. + func_extract_archives $gentop $dlprefiles
  28998. + oldobjs="$oldobjs $func_extract_archives_result"
  28999. + fi
  29000. - for libdir in $libdirs; do
  29001. - if test -n "$finish_cmds"; then
  29002. - # Do each command in the finish commands.
  29003. - cmds=$finish_cmds
  29004. - save_ifs="$IFS"; IFS='~'
  29005. - for cmd in $cmds; do
  29006. - IFS="$save_ifs"
  29007. - eval cmd=\"$cmd\"
  29008. - $show "$cmd"
  29009. - $run eval "$cmd" || admincmds="$admincmds
  29010. - $cmd"
  29011. + # POSIX demands no paths to be encoded in archives. We have
  29012. + # to avoid creating archives with duplicate basenames if we
  29013. + # might have to extract them afterwards, e.g., when creating a
  29014. + # static archive out of a convenience library, or when linking
  29015. + # the entirety of a libtool archive into another (currently
  29016. + # not supported by libtool).
  29017. + if (for obj in $oldobjs
  29018. + do
  29019. + func_basename "$obj"
  29020. + $ECHO "$func_basename_result"
  29021. + done | sort | sort -uc >/dev/null 2>&1); then
  29022. + :
  29023. + else
  29024. + $ECHO "copying selected object files to avoid basename conflicts..."
  29025. + gentop="$output_objdir/${outputname}x"
  29026. + generated="$generated $gentop"
  29027. + func_mkdir_p "$gentop"
  29028. + save_oldobjs=$oldobjs
  29029. + oldobjs=
  29030. + counter=1
  29031. + for obj in $save_oldobjs
  29032. + do
  29033. + func_basename "$obj"
  29034. + objbase="$func_basename_result"
  29035. + case " $oldobjs " in
  29036. + " ") oldobjs=$obj ;;
  29037. + *[\ /]"$objbase "*)
  29038. + while :; do
  29039. + # Make sure we don't pick an alternate name that also
  29040. + # overlaps.
  29041. + newobj=lt$counter-$objbase
  29042. + func_arith $counter + 1
  29043. + counter=$func_arith_result
  29044. + case " $oldobjs " in
  29045. + *[\ /]"$newobj "*) ;;
  29046. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  29047. + esac
  29048. + done
  29049. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  29050. + oldobjs="$oldobjs $gentop/$newobj"
  29051. + ;;
  29052. + *) oldobjs="$oldobjs $obj" ;;
  29053. + esac
  29054. done
  29055. - IFS="$save_ifs"
  29056. - fi
  29057. - if test -n "$finish_eval"; then
  29058. - # Do the single finish_eval.
  29059. - eval cmds=\"$finish_eval\"
  29060. - $run eval "$cmds" || admincmds="$admincmds
  29061. - $cmds"
  29062. fi
  29063. - done
  29064. - fi
  29065. -
  29066. - # Exit here if they wanted silent mode.
  29067. - test "$show" = : && exit $EXIT_SUCCESS
  29068. + eval cmds=\"$old_archive_cmds\"
  29069. - $echo "----------------------------------------------------------------------"
  29070. - $echo "Libraries have been installed in:"
  29071. - for libdir in $libdirs; do
  29072. - $echo " $libdir"
  29073. + func_len " $cmds"
  29074. + len=$func_len_result
  29075. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  29076. + cmds=$old_archive_cmds
  29077. + else
  29078. + # the command line is too long to link in one step, link in parts
  29079. + func_verbose "using piecewise archive linking..."
  29080. + save_RANLIB=$RANLIB
  29081. + RANLIB=:
  29082. + objlist=
  29083. + concat_cmds=
  29084. + save_oldobjs=$oldobjs
  29085. + oldobjs=
  29086. + # Is there a better way of finding the last object in the list?
  29087. + for obj in $save_oldobjs
  29088. + do
  29089. + last_oldobj=$obj
  29090. + done
  29091. + eval test_cmds=\"$old_archive_cmds\"
  29092. + func_len " $test_cmds"
  29093. + len0=$func_len_result
  29094. + len=$len0
  29095. + for obj in $save_oldobjs
  29096. + do
  29097. + func_len " $obj"
  29098. + func_arith $len + $func_len_result
  29099. + len=$func_arith_result
  29100. + func_append objlist " $obj"
  29101. + if test "$len" -lt "$max_cmd_len"; then
  29102. + :
  29103. + else
  29104. + # the above command should be used before it gets too long
  29105. + oldobjs=$objlist
  29106. + if test "$obj" = "$last_oldobj" ; then
  29107. + RANLIB=$save_RANLIB
  29108. + fi
  29109. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  29110. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  29111. + objlist=
  29112. + len=$len0
  29113. + fi
  29114. + done
  29115. + RANLIB=$save_RANLIB
  29116. + oldobjs=$objlist
  29117. + if test "X$oldobjs" = "X" ; then
  29118. + eval cmds=\"\$concat_cmds\"
  29119. + else
  29120. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  29121. + fi
  29122. + fi
  29123. + fi
  29124. + func_execute_cmds "$cmds" 'exit $?'
  29125. done
  29126. - $echo
  29127. - $echo "If you ever happen to want to link against installed libraries"
  29128. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  29129. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  29130. - $echo "flag during linking and do at least one of the following:"
  29131. - if test -n "$shlibpath_var"; then
  29132. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  29133. - $echo " during execution"
  29134. - fi
  29135. - if test -n "$runpath_var"; then
  29136. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  29137. - $echo " during linking"
  29138. - fi
  29139. - if test -n "$hardcode_libdir_flag_spec"; then
  29140. - libdir=LIBDIR
  29141. - eval flag=\"$hardcode_libdir_flag_spec\"
  29142. -
  29143. - $echo " - use the \`$flag' linker flag"
  29144. - fi
  29145. - if test -n "$admincmds"; then
  29146. - $echo " - have your system administrator run these commands:$admincmds"
  29147. - fi
  29148. - if test -f /etc/ld.so.conf; then
  29149. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  29150. - fi
  29151. - $echo
  29152. - $echo "See any operating system documentation about shared libraries for"
  29153. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  29154. - $echo "----------------------------------------------------------------------"
  29155. - exit $EXIT_SUCCESS
  29156. - ;;
  29157. - # libtool execute mode
  29158. - execute)
  29159. - modename="$modename: execute"
  29160. -
  29161. - # The first argument is the command name.
  29162. - cmd="$nonopt"
  29163. - if test -z "$cmd"; then
  29164. - $echo "$modename: you must specify a COMMAND" 1>&2
  29165. - $echo "$help"
  29166. - exit $EXIT_FAILURE
  29167. - fi
  29168. + test -n "$generated" && \
  29169. + func_show_eval "${RM}r$generated"
  29170. - # Handle -dlopen flags immediately.
  29171. - for file in $execute_dlfiles; do
  29172. - if test ! -f "$file"; then
  29173. - $echo "$modename: \`$file' is not a file" 1>&2
  29174. - $echo "$help" 1>&2
  29175. - exit $EXIT_FAILURE
  29176. - fi
  29177. + # Now create the libtool archive.
  29178. + case $output in
  29179. + *.la)
  29180. + old_library=
  29181. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  29182. + func_verbose "creating $output"
  29183. - dir=
  29184. - case $file in
  29185. - *.la)
  29186. - # Check to see that this really is a libtool archive.
  29187. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  29188. + # Preserve any variables that may affect compiler behavior
  29189. + for var in $variables_saved_for_relink; do
  29190. + if eval test -z \"\${$var+set}\"; then
  29191. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  29192. + elif eval var_value=\$$var; test -z "$var_value"; then
  29193. + relink_command="$var=; export $var; $relink_command"
  29194. else
  29195. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  29196. - $echo "$help" 1>&2
  29197. - exit $EXIT_FAILURE
  29198. + func_quote_for_eval "$var_value"
  29199. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  29200. fi
  29201. + done
  29202. + # Quote the link command for shipping.
  29203. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  29204. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  29205. + if test "$hardcode_automatic" = yes ; then
  29206. + relink_command=
  29207. + fi
  29208. - # Read the libtool library.
  29209. - dlname=
  29210. - library_names=
  29211. + # Only create the output if not a dry run.
  29212. + $opt_dry_run || {
  29213. + for installed in no yes; do
  29214. + if test "$installed" = yes; then
  29215. + if test -z "$install_libdir"; then
  29216. + break
  29217. + fi
  29218. + output="$output_objdir/$outputname"i
  29219. + # Replace all uninstalled libtool libraries with the installed ones
  29220. + newdependency_libs=
  29221. + for deplib in $dependency_libs; do
  29222. + case $deplib in
  29223. + *.la)
  29224. + func_basename "$deplib"
  29225. + name="$func_basename_result"
  29226. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  29227. + test -z "$libdir" && \
  29228. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  29229. + newdependency_libs="$newdependency_libs $libdir/$name"
  29230. + ;;
  29231. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  29232. + esac
  29233. + done
  29234. + dependency_libs="$newdependency_libs"
  29235. + newdlfiles=
  29236. +
  29237. + for lib in $dlfiles; do
  29238. + case $lib in
  29239. + *.la)
  29240. + func_basename "$lib"
  29241. + name="$func_basename_result"
  29242. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  29243. + test -z "$libdir" && \
  29244. + func_fatal_error "\`$lib' is not a valid libtool archive"
  29245. + newdlfiles="$newdlfiles $libdir/$name"
  29246. + ;;
  29247. + *) newdlfiles="$newdlfiles $lib" ;;
  29248. + esac
  29249. + done
  29250. + dlfiles="$newdlfiles"
  29251. + newdlprefiles=
  29252. + for lib in $dlprefiles; do
  29253. + case $lib in
  29254. + *.la)
  29255. + # Only pass preopened files to the pseudo-archive (for
  29256. + # eventual linking with the app. that links it) if we
  29257. + # didn't already link the preopened objects directly into
  29258. + # the library:
  29259. + func_basename "$lib"
  29260. + name="$func_basename_result"
  29261. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  29262. + test -z "$libdir" && \
  29263. + func_fatal_error "\`$lib' is not a valid libtool archive"
  29264. + newdlprefiles="$newdlprefiles $libdir/$name"
  29265. + ;;
  29266. + esac
  29267. + done
  29268. + dlprefiles="$newdlprefiles"
  29269. + else
  29270. + newdlfiles=
  29271. + for lib in $dlfiles; do
  29272. + case $lib in
  29273. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  29274. + *) abs=`pwd`"/$lib" ;;
  29275. + esac
  29276. + newdlfiles="$newdlfiles $abs"
  29277. + done
  29278. + dlfiles="$newdlfiles"
  29279. + newdlprefiles=
  29280. + for lib in $dlprefiles; do
  29281. + case $lib in
  29282. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  29283. + *) abs=`pwd`"/$lib" ;;
  29284. + esac
  29285. + newdlprefiles="$newdlprefiles $abs"
  29286. + done
  29287. + dlprefiles="$newdlprefiles"
  29288. + fi
  29289. + $RM $output
  29290. + # place dlname in correct position for cygwin
  29291. + tdlname=$dlname
  29292. + case $host,$output,$installed,$module,$dlname in
  29293. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  29294. + esac
  29295. + $ECHO > $output "\
  29296. +# $outputname - a libtool library file
  29297. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  29298. +#
  29299. +# Please DO NOT delete this file!
  29300. +# It is necessary for linking the library.
  29301. - # If there is no directory component, then add one.
  29302. - case $file in
  29303. - */* | *\\*) . $file ;;
  29304. - *) . ./$file ;;
  29305. - esac
  29306. +# The name that we can dlopen(3).
  29307. +dlname='$tdlname'
  29308. - # Skip this library if it cannot be dlopened.
  29309. - if test -z "$dlname"; then
  29310. - # Warn if it was a shared library.
  29311. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  29312. - continue
  29313. - fi
  29314. +# Names of this library.
  29315. +library_names='$library_names'
  29316. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  29317. - test "X$dir" = "X$file" && dir=.
  29318. +# The name of the static archive.
  29319. +old_library='$old_library'
  29320. - if test -f "$dir/$objdir/$dlname"; then
  29321. - dir="$dir/$objdir"
  29322. - else
  29323. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  29324. - exit $EXIT_FAILURE
  29325. - fi
  29326. - ;;
  29327. +# Linker flags that can not go in dependency_libs.
  29328. +inherited_linker_flags='$new_inherited_linker_flags'
  29329. - *.lo)
  29330. - # Just add the directory containing the .lo file.
  29331. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  29332. - test "X$dir" = "X$file" && dir=.
  29333. - ;;
  29334. +# Libraries that this one depends upon.
  29335. +dependency_libs='$dependency_libs'
  29336. - *)
  29337. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  29338. - continue
  29339. - ;;
  29340. - esac
  29341. +# Names of additional weak libraries provided by this library
  29342. +weak_library_names='$weak_libs'
  29343. - # Get the absolute pathname.
  29344. - absdir=`cd "$dir" && pwd`
  29345. - test -n "$absdir" && dir="$absdir"
  29346. +# Version information for $libname.
  29347. +current=$current
  29348. +age=$age
  29349. +revision=$revision
  29350. - # Now add the directory to shlibpath_var.
  29351. - if eval "test -z \"\$$shlibpath_var\""; then
  29352. - eval "$shlibpath_var=\"\$dir\""
  29353. - else
  29354. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  29355. - fi
  29356. - done
  29357. +# Is this an already installed library?
  29358. +installed=$installed
  29359. - # This variable tells wrapper scripts just to set shlibpath_var
  29360. - # rather than running their programs.
  29361. - libtool_execute_magic="$magic"
  29362. +# Should we warn about portability when linking against -modules?
  29363. +shouldnotlink=$module
  29364. - # Check if any of the arguments is a wrapper script.
  29365. - args=
  29366. - for file
  29367. - do
  29368. - case $file in
  29369. - -*) ;;
  29370. - *)
  29371. - # Do a test to see if this is really a libtool program.
  29372. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  29373. - # If there is no directory component, then add one.
  29374. - case $file in
  29375. - */* | *\\*) . $file ;;
  29376. - *) . ./$file ;;
  29377. - esac
  29378. +# Files to dlopen/dlpreopen
  29379. +dlopen='$dlfiles'
  29380. +dlpreopen='$dlprefiles'
  29381. - # Transform arg to wrapped name.
  29382. - file="$progdir/$program"
  29383. - fi
  29384. - ;;
  29385. - esac
  29386. - # Quote arguments (to preserve shell metacharacters).
  29387. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  29388. - args="$args \"$file\""
  29389. - done
  29390. +# Directory that this library needs to be installed in:
  29391. +libdir='$install_libdir'"
  29392. + if test "$installed" = no && test "$need_relink" = yes; then
  29393. + $ECHO >> $output "\
  29394. +relink_command=\"$relink_command\""
  29395. + fi
  29396. + done
  29397. + }
  29398. - if test -z "$run"; then
  29399. - if test -n "$shlibpath_var"; then
  29400. - # Export the shlibpath_var.
  29401. - eval "export $shlibpath_var"
  29402. - fi
  29403. + # Do a symbolic link so that the libtool archive can be found in
  29404. + # LD_LIBRARY_PATH before the program is installed.
  29405. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  29406. + ;;
  29407. + esac
  29408. + exit $EXIT_SUCCESS
  29409. +}
  29410. - # Restore saved environment variables
  29411. - if test "${save_LC_ALL+set}" = set; then
  29412. - LC_ALL="$save_LC_ALL"; export LC_ALL
  29413. - fi
  29414. - if test "${save_LANG+set}" = set; then
  29415. - LANG="$save_LANG"; export LANG
  29416. - fi
  29417. +{ test "$mode" = link || test "$mode" = relink; } &&
  29418. + func_mode_link ${1+"$@"}
  29419. - # Now prepare to actually exec the command.
  29420. - exec_cmd="\$cmd$args"
  29421. - else
  29422. - # Display what would be done.
  29423. - if test -n "$shlibpath_var"; then
  29424. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  29425. - $echo "export $shlibpath_var"
  29426. - fi
  29427. - $echo "$cmd$args"
  29428. - exit $EXIT_SUCCESS
  29429. - fi
  29430. - ;;
  29431. - # libtool clean and uninstall mode
  29432. - clean | uninstall)
  29433. - modename="$modename: $mode"
  29434. - rm="$nonopt"
  29435. +# func_mode_uninstall arg...
  29436. +func_mode_uninstall ()
  29437. +{
  29438. + $opt_debug
  29439. + RM="$nonopt"
  29440. files=
  29441. rmforce=
  29442. exit_status=0
  29443. @@ -6015,30 +8209,28 @@
  29444. for arg
  29445. do
  29446. case $arg in
  29447. - -f) rm="$rm $arg"; rmforce=yes ;;
  29448. - -*) rm="$rm $arg" ;;
  29449. + -f) RM="$RM $arg"; rmforce=yes ;;
  29450. + -*) RM="$RM $arg" ;;
  29451. *) files="$files $arg" ;;
  29452. esac
  29453. done
  29454. - if test -z "$rm"; then
  29455. - $echo "$modename: you must specify an RM program" 1>&2
  29456. - $echo "$help" 1>&2
  29457. - exit $EXIT_FAILURE
  29458. - fi
  29459. + test -z "$RM" && \
  29460. + func_fatal_help "you must specify an RM program"
  29461. rmdirs=
  29462. origobjdir="$objdir"
  29463. for file in $files; do
  29464. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  29465. - if test "X$dir" = "X$file"; then
  29466. - dir=.
  29467. + func_dirname "$file" "" "."
  29468. + dir="$func_dirname_result"
  29469. + if test "X$dir" = X.; then
  29470. objdir="$origobjdir"
  29471. else
  29472. objdir="$dir/$origobjdir"
  29473. fi
  29474. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  29475. + func_basename "$file"
  29476. + name="$func_basename_result"
  29477. test "$mode" = uninstall && objdir="$dir"
  29478. # Remember objdir for removal later, being careful to avoid duplicates
  29479. @@ -6050,9 +8242,9 @@
  29480. fi
  29481. # Don't error if the file doesn't exist and rm -f was used.
  29482. - if (test -L "$file") >/dev/null 2>&1 \
  29483. - || (test -h "$file") >/dev/null 2>&1 \
  29484. - || test -f "$file"; then
  29485. + if { test -L "$file"; } >/dev/null 2>&1 ||
  29486. + { test -h "$file"; } >/dev/null 2>&1 ||
  29487. + test -f "$file"; then
  29488. :
  29489. elif test -d "$file"; then
  29490. exit_status=1
  29491. @@ -6066,69 +8258,56 @@
  29492. case $name in
  29493. *.la)
  29494. # Possibly a libtool archive, so verify it.
  29495. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  29496. - . $dir/$name
  29497. + if func_lalib_p "$file"; then
  29498. + func_source $dir/$name
  29499. # Delete the libtool libraries and symlinks.
  29500. for n in $library_names; do
  29501. rmfiles="$rmfiles $objdir/$n"
  29502. done
  29503. test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
  29504. - test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  29505. - if test "$mode" = uninstall; then
  29506. + case "$mode" in
  29507. + clean)
  29508. + case " $library_names " in
  29509. + # " " in the beginning catches empty $dlname
  29510. + *" $dlname "*) ;;
  29511. + *) rmfiles="$rmfiles $objdir/$dlname" ;;
  29512. + esac
  29513. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  29514. + ;;
  29515. + uninstall)
  29516. if test -n "$library_names"; then
  29517. # Do each command in the postuninstall commands.
  29518. - cmds=$postuninstall_cmds
  29519. - save_ifs="$IFS"; IFS='~'
  29520. - for cmd in $cmds; do
  29521. - IFS="$save_ifs"
  29522. - eval cmd=\"$cmd\"
  29523. - $show "$cmd"
  29524. - $run eval "$cmd"
  29525. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  29526. - exit_status=1
  29527. - fi
  29528. - done
  29529. - IFS="$save_ifs"
  29530. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  29531. fi
  29532. if test -n "$old_library"; then
  29533. # Do each command in the old_postuninstall commands.
  29534. - cmds=$old_postuninstall_cmds
  29535. - save_ifs="$IFS"; IFS='~'
  29536. - for cmd in $cmds; do
  29537. - IFS="$save_ifs"
  29538. - eval cmd=\"$cmd\"
  29539. - $show "$cmd"
  29540. - $run eval "$cmd"
  29541. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  29542. - exit_status=1
  29543. - fi
  29544. - done
  29545. - IFS="$save_ifs"
  29546. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  29547. fi
  29548. # FIXME: should reinstall the best remaining shared library.
  29549. - fi
  29550. + ;;
  29551. + esac
  29552. fi
  29553. ;;
  29554. *.lo)
  29555. # Possibly a libtool object, so verify it.
  29556. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  29557. + if func_lalib_p "$file"; then
  29558. # Read the .lo file
  29559. - . $dir/$name
  29560. + func_source $dir/$name
  29561. # Add PIC object to the list of files to remove.
  29562. - if test -n "$pic_object" \
  29563. - && test "$pic_object" != none; then
  29564. + if test -n "$pic_object" &&
  29565. + test "$pic_object" != none; then
  29566. rmfiles="$rmfiles $dir/$pic_object"
  29567. fi
  29568. # Add non-PIC object to the list of files to remove.
  29569. - if test -n "$non_pic_object" \
  29570. - && test "$non_pic_object" != none; then
  29571. + if test -n "$non_pic_object" &&
  29572. + test "$non_pic_object" != none; then
  29573. rmfiles="$rmfiles $dir/$non_pic_object"
  29574. fi
  29575. fi
  29576. @@ -6139,17 +8318,26 @@
  29577. noexename=$name
  29578. case $file in
  29579. *.exe)
  29580. - file=`$echo $file|${SED} 's,.exe$,,'`
  29581. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  29582. + func_stripname '' '.exe' "$file"
  29583. + file=$func_stripname_result
  29584. + func_stripname '' '.exe' "$name"
  29585. + noexename=$func_stripname_result
  29586. # $file with .exe has already been added to rmfiles,
  29587. # add $file without .exe
  29588. rmfiles="$rmfiles $file"
  29589. ;;
  29590. esac
  29591. # Do a test to see if this is a libtool program.
  29592. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  29593. - relink_command=
  29594. - . $dir/$noexename
  29595. + if func_ltwrapper_p "$file"; then
  29596. + if func_ltwrapper_executable_p "$file"; then
  29597. + func_ltwrapper_scriptname "$file"
  29598. + relink_command=
  29599. + func_source $func_ltwrapper_scriptname_result
  29600. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  29601. + else
  29602. + relink_command=
  29603. + func_source $dir/$noexename
  29604. + fi
  29605. # note $name still contains .exe if it was in $file originally
  29606. # as does the version of $file that was added into $rmfiles
  29607. @@ -6164,237 +8352,38 @@
  29608. fi
  29609. ;;
  29610. esac
  29611. - $show "$rm $rmfiles"
  29612. - $run $rm $rmfiles || exit_status=1
  29613. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  29614. done
  29615. objdir="$origobjdir"
  29616. # Try to remove the ${objdir}s in the directories where we deleted files
  29617. for dir in $rmdirs; do
  29618. if test -d "$dir"; then
  29619. - $show "rmdir $dir"
  29620. - $run rmdir $dir >/dev/null 2>&1
  29621. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  29622. fi
  29623. done
  29624. exit $exit_status
  29625. - ;;
  29626. +}
  29627. - "")
  29628. - $echo "$modename: you must specify a MODE" 1>&2
  29629. - $echo "$generic_help" 1>&2
  29630. - exit $EXIT_FAILURE
  29631. - ;;
  29632. - esac
  29633. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  29634. + func_mode_uninstall ${1+"$@"}
  29635. - if test -z "$exec_cmd"; then
  29636. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  29637. - $echo "$generic_help" 1>&2
  29638. - exit $EXIT_FAILURE
  29639. - fi
  29640. -fi # test -z "$show_help"
  29641. +test -z "$mode" && {
  29642. + help="$generic_help"
  29643. + func_fatal_help "you must specify a MODE"
  29644. +}
  29645. +
  29646. +test -z "$exec_cmd" && \
  29647. + func_fatal_help "invalid operation mode \`$mode'"
  29648. if test -n "$exec_cmd"; then
  29649. - eval exec $exec_cmd
  29650. + eval exec "$exec_cmd"
  29651. exit $EXIT_FAILURE
  29652. fi
  29653. -# We need to display help for each of the modes.
  29654. -case $mode in
  29655. -"") $echo \
  29656. -"Usage: $modename [OPTION]... [MODE-ARG]...
  29657. -
  29658. -Provide generalized library-building support services.
  29659. -
  29660. - --config show all configuration variables
  29661. - --debug enable verbose shell tracing
  29662. --n, --dry-run display commands without modifying any files
  29663. - --features display basic configuration information and exit
  29664. - --finish same as \`--mode=finish'
  29665. - --help display this help message and exit
  29666. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  29667. - --quiet same as \`--silent'
  29668. - --silent don't print informational messages
  29669. - --tag=TAG use configuration variables from tag TAG
  29670. - --version print version information
  29671. -
  29672. -MODE must be one of the following:
  29673. -
  29674. - clean remove files from the build directory
  29675. - compile compile a source file into a libtool object
  29676. - execute automatically set library path, then run a program
  29677. - finish complete the installation of libtool libraries
  29678. - install install libraries or executables
  29679. - link create a library or an executable
  29680. - uninstall remove libraries from an installed directory
  29681. -
  29682. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  29683. -a more detailed description of MODE.
  29684. -
  29685. -Report bugs to <bug-libtool@gnu.org>."
  29686. - exit $EXIT_SUCCESS
  29687. - ;;
  29688. -
  29689. -clean)
  29690. - $echo \
  29691. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  29692. -
  29693. -Remove files from the build directory.
  29694. -
  29695. -RM is the name of the program to use to delete files associated with each FILE
  29696. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  29697. -to RM.
  29698. -
  29699. -If FILE is a libtool library, object or program, all the files associated
  29700. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  29701. - ;;
  29702. -
  29703. -compile)
  29704. - $echo \
  29705. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  29706. -
  29707. -Compile a source file into a libtool library object.
  29708. -
  29709. -This mode accepts the following additional options:
  29710. -
  29711. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  29712. - -prefer-pic try to building PIC objects only
  29713. - -prefer-non-pic try to building non-PIC objects only
  29714. - -static always build a \`.o' file suitable for static linking
  29715. -
  29716. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  29717. -from the given SOURCEFILE.
  29718. -
  29719. -The output file name is determined by removing the directory component from
  29720. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  29721. -library object suffix, \`.lo'."
  29722. - ;;
  29723. -
  29724. -execute)
  29725. - $echo \
  29726. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  29727. -
  29728. -Automatically set library path, then run a program.
  29729. -
  29730. -This mode accepts the following additional options:
  29731. -
  29732. - -dlopen FILE add the directory containing FILE to the library path
  29733. -
  29734. -This mode sets the library path environment variable according to \`-dlopen'
  29735. -flags.
  29736. -
  29737. -If any of the ARGS are libtool executable wrappers, then they are translated
  29738. -into their corresponding uninstalled binary, and any of their required library
  29739. -directories are added to the library path.
  29740. -
  29741. -Then, COMMAND is executed, with ARGS as arguments."
  29742. - ;;
  29743. -
  29744. -finish)
  29745. - $echo \
  29746. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  29747. -
  29748. -Complete the installation of libtool libraries.
  29749. -
  29750. -Each LIBDIR is a directory that contains libtool libraries.
  29751. -
  29752. -The commands that this mode executes may require superuser privileges. Use
  29753. -the \`--dry-run' option if you just want to see what would be executed."
  29754. - ;;
  29755. -
  29756. -install)
  29757. - $echo \
  29758. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  29759. -
  29760. -Install executables or libraries.
  29761. -
  29762. -INSTALL-COMMAND is the installation command. The first component should be
  29763. -either the \`install' or \`cp' program.
  29764. -
  29765. -The rest of the components are interpreted as arguments to that command (only
  29766. -BSD-compatible install options are recognized)."
  29767. - ;;
  29768. -
  29769. -link)
  29770. - $echo \
  29771. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  29772. -
  29773. -Link object files or libraries together to form another library, or to
  29774. -create an executable program.
  29775. -
  29776. -LINK-COMMAND is a command using the C compiler that you would use to create
  29777. -a program from several object files.
  29778. -
  29779. -The following components of LINK-COMMAND are treated specially:
  29780. -
  29781. - -all-static do not do any dynamic linking at all
  29782. - -avoid-version do not add a version suffix if possible
  29783. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  29784. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  29785. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  29786. - -export-symbols SYMFILE
  29787. - try to export only the symbols listed in SYMFILE
  29788. - -export-symbols-regex REGEX
  29789. - try to export only the symbols matching REGEX
  29790. - -LLIBDIR search LIBDIR for required installed libraries
  29791. - -lNAME OUTPUT-FILE requires the installed library libNAME
  29792. - -module build a library that can dlopened
  29793. - -no-fast-install disable the fast-install mode
  29794. - -no-install link a not-installable executable
  29795. - -no-undefined declare that a library does not refer to external symbols
  29796. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  29797. - -objectlist FILE Use a list of object files found in FILE to specify objects
  29798. - -precious-files-regex REGEX
  29799. - don't remove output files matching REGEX
  29800. - -release RELEASE specify package release information
  29801. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  29802. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  29803. - -static do not do any dynamic linking of libtool libraries
  29804. - -version-info CURRENT[:REVISION[:AGE]]
  29805. - specify library version info [each variable defaults to 0]
  29806. -
  29807. -All other options (arguments beginning with \`-') are ignored.
  29808. -
  29809. -Every other argument is treated as a filename. Files ending in \`.la' are
  29810. -treated as uninstalled libtool libraries, other files are standard or library
  29811. -object files.
  29812. -
  29813. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  29814. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  29815. -required, except when creating a convenience library.
  29816. -
  29817. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  29818. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  29819. -
  29820. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  29821. -is created, otherwise an executable program is created."
  29822. - ;;
  29823. -
  29824. -uninstall)
  29825. - $echo \
  29826. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  29827. -
  29828. -Remove libraries from an installation directory.
  29829. -
  29830. -RM is the name of the program to use to delete files associated with each FILE
  29831. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  29832. -to RM.
  29833. +exit $exit_status
  29834. -If FILE is a libtool library, all the files associated with it are deleted.
  29835. -Otherwise, only FILE itself is deleted using RM."
  29836. - ;;
  29837. -
  29838. -*)
  29839. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  29840. - $echo "$help" 1>&2
  29841. - exit $EXIT_FAILURE
  29842. - ;;
  29843. -esac
  29844. -
  29845. -$echo
  29846. -$echo "Try \`$modename --help' for more information about other modes."
  29847. -
  29848. -exit $EXIT_SUCCESS
  29849. # The TAGs below are defined such that we never get into a situation
  29850. # in which we disable both kinds of libraries. Given conflicting
  29851. @@ -6413,10 +8402,12 @@
  29852. # ### END LIBTOOL TAG CONFIG: disable-shared
  29853. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  29854. -build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
  29855. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  29856. # ### END LIBTOOL TAG CONFIG: disable-static
  29857. # Local Variables:
  29858. # mode:shell-script
  29859. # sh-indentation:2
  29860. # End:
  29861. +# vi:sw=2
  29862. +
  29863. diff -Nur libdnet-1.11.orig/config/missing libdnet-1.11/config/missing
  29864. --- libdnet-1.11.orig/config/missing 2006-01-09 23:50:33.000000000 +0100
  29865. +++ libdnet-1.11/config/missing 2011-02-19 12:27:14.103551844 +0100
  29866. @@ -1,6 +1,10 @@
  29867. #! /bin/sh
  29868. # Common stub for a few missing GNU programs while installing.
  29869. -# Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
  29870. +
  29871. +scriptversion=2009-04-28.21; # UTC
  29872. +
  29873. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
  29874. +# 2008, 2009 Free Software Foundation, Inc.
  29875. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  29876. # This program is free software; you can redistribute it and/or modify
  29877. @@ -14,9 +18,7 @@
  29878. # GNU General Public License for more details.
  29879. # You should have received a copy of the GNU General Public License
  29880. -# along with this program; if not, write to the Free Software
  29881. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  29882. -# 02111-1307, USA.
  29883. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  29884. # As a special exception to the GNU General Public License, if you
  29885. # distribute this file as part of a program that contains a
  29886. @@ -29,6 +31,8 @@
  29887. fi
  29888. run=:
  29889. +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
  29890. +sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
  29891. # In the cases where this matters, `missing' is being run in the
  29892. # srcdir already.
  29893. @@ -38,18 +42,24 @@
  29894. configure_ac=configure.in
  29895. fi
  29896. -case "$1" in
  29897. +msg="missing on your system"
  29898. +
  29899. +case $1 in
  29900. --run)
  29901. # Try to run requested program, and just exit if it succeeds.
  29902. run=
  29903. shift
  29904. "$@" && exit 0
  29905. + # Exit code 63 means version mismatch. This often happens
  29906. + # when the user try to use an ancient version of a tool on
  29907. + # a file that requires a minimum version. In this case we
  29908. + # we should proceed has if the program had been absent, or
  29909. + # if --run hadn't been passed.
  29910. + if test $? = 63; then
  29911. + run=:
  29912. + msg="probably too old"
  29913. + fi
  29914. ;;
  29915. -esac
  29916. -
  29917. -# If it does not exist, or fails to run (possibly an outdated version),
  29918. -# try to emulate it.
  29919. -case "$1" in
  29920. -h|--h|--he|--hel|--help)
  29921. echo "\
  29922. @@ -67,6 +77,7 @@
  29923. aclocal touch file \`aclocal.m4'
  29924. autoconf touch file \`configure'
  29925. autoheader touch file \`config.h.in'
  29926. + autom4te touch the output file, or create a stub one
  29927. automake touch all \`Makefile.in' files
  29928. bison create \`y.tab.[ch]', if possible, from existing .[ch]
  29929. flex create \`lex.yy.c', if possible, from existing .c
  29930. @@ -74,11 +85,18 @@
  29931. lex create \`lex.yy.c', if possible, from existing .c
  29932. makeinfo touch the output file
  29933. tar try tar, gnutar, gtar, then tar without non-portable flags
  29934. - yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
  29935. + yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  29936. +
  29937. +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
  29938. +\`g' are ignored when checking the name.
  29939. +
  29940. +Send bug reports to <bug-automake@gnu.org>."
  29941. + exit $?
  29942. ;;
  29943. -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
  29944. - echo "missing 0.4 - GNU automake"
  29945. + echo "missing $scriptversion (GNU Automake)"
  29946. + exit $?
  29947. ;;
  29948. -*)
  29949. @@ -87,14 +105,51 @@
  29950. exit 1
  29951. ;;
  29952. - aclocal*)
  29953. +esac
  29954. +
  29955. +# normalize program name to check for.
  29956. +program=`echo "$1" | sed '
  29957. + s/^gnu-//; t
  29958. + s/^gnu//; t
  29959. + s/^g//; t'`
  29960. +
  29961. +# Now exit if we have it, but it failed. Also exit now if we
  29962. +# don't have it and --version was passed (most likely to detect
  29963. +# the program). This is about non-GNU programs, so use $1 not
  29964. +# $program.
  29965. +case $1 in
  29966. + lex*|yacc*)
  29967. + # Not GNU programs, they don't have --version.
  29968. + ;;
  29969. +
  29970. + tar*)
  29971. + if test -n "$run"; then
  29972. + echo 1>&2 "ERROR: \`tar' requires --run"
  29973. + exit 1
  29974. + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
  29975. + exit 1
  29976. + fi
  29977. + ;;
  29978. +
  29979. + *)
  29980. if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  29981. # We have it, but it failed.
  29982. exit 1
  29983. + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
  29984. + # Could not run --version or --help. This is probably someone
  29985. + # running `$TOOL --version' or `$TOOL --help' to check whether
  29986. + # $TOOL exists and not knowing $TOOL uses missing.
  29987. + exit 1
  29988. fi
  29989. + ;;
  29990. +esac
  29991. +# If it does not exist, or fails to run (possibly an outdated version),
  29992. +# try to emulate it.
  29993. +case $program in
  29994. + aclocal*)
  29995. echo 1>&2 "\
  29996. -WARNING: \`$1' is missing on your system. You should only need it if
  29997. +WARNING: \`$1' is $msg. You should only need it if
  29998. you modified \`acinclude.m4' or \`${configure_ac}'. You might want
  29999. to install the \`Automake' and \`Perl' packages. Grab them from
  30000. any GNU archive site."
  30001. @@ -102,13 +157,8 @@
  30002. ;;
  30003. autoconf*)
  30004. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  30005. - # We have it, but it failed.
  30006. - exit 1
  30007. - fi
  30008. -
  30009. echo 1>&2 "\
  30010. -WARNING: \`$1' is missing on your system. You should only need it if
  30011. +WARNING: \`$1' is $msg. You should only need it if
  30012. you modified \`${configure_ac}'. You might want to install the
  30013. \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
  30014. archive site."
  30015. @@ -116,13 +166,8 @@
  30016. ;;
  30017. autoheader*)
  30018. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  30019. - # We have it, but it failed.
  30020. - exit 1
  30021. - fi
  30022. -
  30023. echo 1>&2 "\
  30024. -WARNING: \`$1' is missing on your system. You should only need it if
  30025. +WARNING: \`$1' is $msg. You should only need it if
  30026. you modified \`acconfig.h' or \`${configure_ac}'. You might want
  30027. to install the \`Autoconf' and \`GNU m4' packages. Grab them
  30028. from any GNU archive site."
  30029. @@ -130,7 +175,7 @@
  30030. test -z "$files" && files="config.h"
  30031. touch_files=
  30032. for f in $files; do
  30033. - case "$f" in
  30034. + case $f in
  30035. *:*) touch_files="$touch_files "`echo "$f" |
  30036. sed -e 's/^[^:]*://' -e 's/:.*//'`;;
  30037. *) touch_files="$touch_files $f.in";;
  30038. @@ -140,13 +185,8 @@
  30039. ;;
  30040. automake*)
  30041. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  30042. - # We have it, but it failed.
  30043. - exit 1
  30044. - fi
  30045. -
  30046. echo 1>&2 "\
  30047. -WARNING: \`$1' is missing on your system. You should only need it if
  30048. +WARNING: \`$1' is $msg. You should only need it if
  30049. you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
  30050. You might want to install the \`Automake' and \`Perl' packages.
  30051. Grab them from any GNU archive site."
  30052. @@ -155,21 +195,16 @@
  30053. while read f; do touch "$f"; done
  30054. ;;
  30055. - autom4te)
  30056. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  30057. - # We have it, but it failed.
  30058. - exit 1
  30059. - fi
  30060. -
  30061. + autom4te*)
  30062. echo 1>&2 "\
  30063. -WARNING: \`$1' is needed, and you do not seem to have it handy on your
  30064. - system. You might have modified some files without having the
  30065. +WARNING: \`$1' is needed, but is $msg.
  30066. + You might have modified some files without having the
  30067. proper tools for further handling them.
  30068. - You can get \`$1Help2man' as part of \`Autoconf' from any GNU
  30069. + You can get \`$1' as part of \`Autoconf' from any GNU
  30070. archive site."
  30071. - file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
  30072. - test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
  30073. + file=`echo "$*" | sed -n "$sed_output"`
  30074. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  30075. if test -f "$file"; then
  30076. touch $file
  30077. else
  30078. @@ -183,111 +218,108 @@
  30079. fi
  30080. ;;
  30081. - bison|yacc)
  30082. + bison*|yacc*)
  30083. echo 1>&2 "\
  30084. -WARNING: \`$1' is missing on your system. You should only need it if
  30085. +WARNING: \`$1' $msg. You should only need it if
  30086. you modified a \`.y' file. You may need the \`Bison' package
  30087. in order for those modifications to take effect. You can get
  30088. \`Bison' from any GNU archive site."
  30089. rm -f y.tab.c y.tab.h
  30090. - if [ $# -ne 1 ]; then
  30091. + if test $# -ne 1; then
  30092. eval LASTARG="\${$#}"
  30093. - case "$LASTARG" in
  30094. + case $LASTARG in
  30095. *.y)
  30096. SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
  30097. - if [ -f "$SRCFILE" ]; then
  30098. + if test -f "$SRCFILE"; then
  30099. cp "$SRCFILE" y.tab.c
  30100. fi
  30101. SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
  30102. - if [ -f "$SRCFILE" ]; then
  30103. + if test -f "$SRCFILE"; then
  30104. cp "$SRCFILE" y.tab.h
  30105. fi
  30106. ;;
  30107. esac
  30108. fi
  30109. - if [ ! -f y.tab.h ]; then
  30110. + if test ! -f y.tab.h; then
  30111. echo >y.tab.h
  30112. fi
  30113. - if [ ! -f y.tab.c ]; then
  30114. + if test ! -f y.tab.c; then
  30115. echo 'main() { return 0; }' >y.tab.c
  30116. fi
  30117. ;;
  30118. - lex|flex)
  30119. + lex*|flex*)
  30120. echo 1>&2 "\
  30121. -WARNING: \`$1' is missing on your system. You should only need it if
  30122. +WARNING: \`$1' is $msg. You should only need it if
  30123. you modified a \`.l' file. You may need the \`Flex' package
  30124. in order for those modifications to take effect. You can get
  30125. \`Flex' from any GNU archive site."
  30126. rm -f lex.yy.c
  30127. - if [ $# -ne 1 ]; then
  30128. + if test $# -ne 1; then
  30129. eval LASTARG="\${$#}"
  30130. - case "$LASTARG" in
  30131. + case $LASTARG in
  30132. *.l)
  30133. SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
  30134. - if [ -f "$SRCFILE" ]; then
  30135. + if test -f "$SRCFILE"; then
  30136. cp "$SRCFILE" lex.yy.c
  30137. fi
  30138. ;;
  30139. esac
  30140. fi
  30141. - if [ ! -f lex.yy.c ]; then
  30142. + if test ! -f lex.yy.c; then
  30143. echo 'main() { return 0; }' >lex.yy.c
  30144. fi
  30145. ;;
  30146. - help2man)
  30147. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  30148. - # We have it, but it failed.
  30149. - exit 1
  30150. - fi
  30151. -
  30152. + help2man*)
  30153. echo 1>&2 "\
  30154. -WARNING: \`$1' is missing on your system. You should only need it if
  30155. +WARNING: \`$1' is $msg. You should only need it if
  30156. you modified a dependency of a manual page. You may need the
  30157. \`Help2man' package in order for those modifications to take
  30158. effect. You can get \`Help2man' from any GNU archive site."
  30159. - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  30160. - if test -z "$file"; then
  30161. - file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
  30162. - fi
  30163. - if [ -f "$file" ]; then
  30164. + file=`echo "$*" | sed -n "$sed_output"`
  30165. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  30166. + if test -f "$file"; then
  30167. touch $file
  30168. else
  30169. test -z "$file" || exec >$file
  30170. echo ".ab help2man is required to generate this page"
  30171. - exit 1
  30172. + exit $?
  30173. fi
  30174. ;;
  30175. - makeinfo)
  30176. - if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
  30177. - # We have makeinfo, but it failed.
  30178. - exit 1
  30179. - fi
  30180. -
  30181. + makeinfo*)
  30182. echo 1>&2 "\
  30183. -WARNING: \`$1' is missing on your system. You should only need it if
  30184. +WARNING: \`$1' is $msg. You should only need it if
  30185. you modified a \`.texi' or \`.texinfo' file, or any other file
  30186. indirectly affecting the aspect of the manual. The spurious
  30187. call might also be the consequence of using a buggy \`make' (AIX,
  30188. DU, IRIX). You might want to install the \`Texinfo' package or
  30189. the \`GNU make' package. Grab either from any GNU archive site."
  30190. - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  30191. + # The file to touch is that specified with -o ...
  30192. + file=`echo "$*" | sed -n "$sed_output"`
  30193. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  30194. if test -z "$file"; then
  30195. - file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  30196. - file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
  30197. - fi
  30198. + # ... or it is the one specified with @setfilename ...
  30199. + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  30200. + file=`sed -n '
  30201. + /^@setfilename/{
  30202. + s/.* \([^ ]*\) *$/\1/
  30203. + p
  30204. + q
  30205. + }' $infile`
  30206. + # ... or it is derived from the source name (dir/f.texi becomes f.info)
  30207. + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
  30208. + fi
  30209. + # If the file does not exist, the user really needs makeinfo;
  30210. + # let's fail without touching anything.
  30211. + test -f $file || exit 1
  30212. touch $file
  30213. ;;
  30214. - tar)
  30215. + tar*)
  30216. shift
  30217. - if test -n "$run"; then
  30218. - echo 1>&2 "ERROR: \`tar' requires --run"
  30219. - exit 1
  30220. - fi
  30221. # We have already tried tar in the generic part.
  30222. # Look for gnutar/gtar before invocation to avoid ugly error
  30223. @@ -300,13 +332,13 @@
  30224. fi
  30225. firstarg="$1"
  30226. if shift; then
  30227. - case "$firstarg" in
  30228. + case $firstarg in
  30229. *o*)
  30230. firstarg=`echo "$firstarg" | sed s/o//`
  30231. tar "$firstarg" "$@" && exit 0
  30232. ;;
  30233. esac
  30234. - case "$firstarg" in
  30235. + case $firstarg in
  30236. *h*)
  30237. firstarg=`echo "$firstarg" | sed s/h//`
  30238. tar "$firstarg" "$@" && exit 0
  30239. @@ -323,10 +355,10 @@
  30240. *)
  30241. echo 1>&2 "\
  30242. -WARNING: \`$1' is needed, and you do not seem to have it handy on your
  30243. - system. You might have modified some files without having the
  30244. +WARNING: \`$1' is needed, and is $msg.
  30245. + You might have modified some files without having the
  30246. proper tools for further handling them. Check the \`README' file,
  30247. - it often tells you about the needed prerequirements for installing
  30248. + it often tells you about the needed prerequisites for installing
  30249. this package. You may also peek at any GNU archive site, in case
  30250. some other package would contain this missing \`$1' program."
  30251. exit 1
  30252. @@ -334,3 +366,11 @@
  30253. esac
  30254. exit 0
  30255. +
  30256. +# Local variables:
  30257. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  30258. +# time-stamp-start: "scriptversion="
  30259. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  30260. +# time-stamp-time-zone: "UTC"
  30261. +# time-stamp-end: "; # UTC"
  30262. +# End:
  30263. diff -Nur libdnet-1.11.orig/config/mkinstalldirs libdnet-1.11/config/mkinstalldirs
  30264. --- libdnet-1.11.orig/config/mkinstalldirs 2006-01-09 23:46:45.000000000 +0100
  30265. +++ libdnet-1.11/config/mkinstalldirs 2011-02-19 12:27:14.503556477 +0100
  30266. @@ -1,29 +1,59 @@
  30267. #! /bin/sh
  30268. # mkinstalldirs --- make directory hierarchy
  30269. -# Author: Noah Friedman <friedman@prep.ai.mit.edu>
  30270. -# Created: 1993-05-16
  30271. -# Public domain
  30272. +scriptversion=2009-04-28.21; # UTC
  30273. +
  30274. +# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
  30275. +# Created: 1993-05-16
  30276. +# Public domain.
  30277. +#
  30278. +# This file is maintained in Automake, please report
  30279. +# bugs to <bug-automake@gnu.org> or send patches to
  30280. +# <automake-patches@gnu.org>.
  30281. +
  30282. +nl='
  30283. +'
  30284. +IFS=" "" $nl"
  30285. errstatus=0
  30286. -dirmode=""
  30287. +dirmode=
  30288. usage="\
  30289. -Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
  30290. +Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
  30291. +
  30292. +Create each directory DIR (with mode MODE, if specified), including all
  30293. +leading file name components.
  30294. +
  30295. +Report bugs to <bug-automake@gnu.org>."
  30296. # process command line arguments
  30297. while test $# -gt 0 ; do
  30298. - case "${1}" in
  30299. - -h | --help | --h* ) # -h for help
  30300. - echo "${usage}" 1>&2; exit 0 ;;
  30301. - -m ) # -m PERM arg
  30302. - shift
  30303. - test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; }
  30304. - dirmode="${1}"
  30305. - shift ;;
  30306. - -- ) shift; break ;; # stop option processing
  30307. - -* ) echo "${usage}" 1>&2; exit 1 ;; # unknown option
  30308. - * ) break ;; # first non-opt arg
  30309. - esac
  30310. + case $1 in
  30311. + -h | --help | --h*) # -h for help
  30312. + echo "$usage"
  30313. + exit $?
  30314. + ;;
  30315. + -m) # -m PERM arg
  30316. + shift
  30317. + test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
  30318. + dirmode=$1
  30319. + shift
  30320. + ;;
  30321. + --version)
  30322. + echo "$0 $scriptversion"
  30323. + exit $?
  30324. + ;;
  30325. + --) # stop option processing
  30326. + shift
  30327. + break
  30328. + ;;
  30329. + -*) # unknown option
  30330. + echo "$usage" 1>&2
  30331. + exit 1
  30332. + ;;
  30333. + *) # first non-opt arg
  30334. + break
  30335. + ;;
  30336. + esac
  30337. done
  30338. for file
  30339. @@ -36,64 +66,97 @@
  30340. done
  30341. case $# in
  30342. -0) exit 0 ;;
  30343. + 0) exit 0 ;;
  30344. esac
  30345. +# Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and
  30346. +# mkdir -p a/c at the same time, both will detect that a is missing,
  30347. +# one will create a, then the other will try to create a and die with
  30348. +# a "File exists" error. This is a problem when calling mkinstalldirs
  30349. +# from a parallel make. We use --version in the probe to restrict
  30350. +# ourselves to GNU mkdir, which is thread-safe.
  30351. case $dirmode in
  30352. -'')
  30353. - if mkdir -p -- . 2>/dev/null; then
  30354. - echo "mkdir -p -- $*"
  30355. - exec mkdir -p -- "$@"
  30356. - fi ;;
  30357. -*)
  30358. - if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
  30359. - echo "mkdir -m $dirmode -p -- $*"
  30360. - exec mkdir -m "$dirmode" -p -- "$@"
  30361. - fi ;;
  30362. + '')
  30363. + if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  30364. + echo "mkdir -p -- $*"
  30365. + exec mkdir -p -- "$@"
  30366. + else
  30367. + # On NextStep and OpenStep, the `mkdir' command does not
  30368. + # recognize any option. It will interpret all options as
  30369. + # directories to create, and then abort because `.' already
  30370. + # exists.
  30371. + test -d ./-p && rmdir ./-p
  30372. + test -d ./--version && rmdir ./--version
  30373. + fi
  30374. + ;;
  30375. + *)
  30376. + if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
  30377. + test ! -d ./--version; then
  30378. + echo "mkdir -m $dirmode -p -- $*"
  30379. + exec mkdir -m "$dirmode" -p -- "$@"
  30380. + else
  30381. + # Clean up after NextStep and OpenStep mkdir.
  30382. + for d in ./-m ./-p ./--version "./$dirmode";
  30383. + do
  30384. + test -d $d && rmdir $d
  30385. + done
  30386. + fi
  30387. + ;;
  30388. esac
  30389. for file
  30390. do
  30391. - set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
  30392. - shift
  30393. + case $file in
  30394. + /*) pathcomp=/ ;;
  30395. + *) pathcomp= ;;
  30396. + esac
  30397. + oIFS=$IFS
  30398. + IFS=/
  30399. + set fnord $file
  30400. + shift
  30401. + IFS=$oIFS
  30402. +
  30403. + for d
  30404. + do
  30405. + test "x$d" = x && continue
  30406. +
  30407. + pathcomp=$pathcomp$d
  30408. + case $pathcomp in
  30409. + -*) pathcomp=./$pathcomp ;;
  30410. + esac
  30411. +
  30412. + if test ! -d "$pathcomp"; then
  30413. + echo "mkdir $pathcomp"
  30414. +
  30415. + mkdir "$pathcomp" || lasterr=$?
  30416. +
  30417. + if test ! -d "$pathcomp"; then
  30418. + errstatus=$lasterr
  30419. + else
  30420. + if test ! -z "$dirmode"; then
  30421. + echo "chmod $dirmode $pathcomp"
  30422. + lasterr=
  30423. + chmod "$dirmode" "$pathcomp" || lasterr=$?
  30424. - pathcomp=
  30425. - for d
  30426. - do
  30427. - pathcomp="$pathcomp$d"
  30428. - case "$pathcomp" in
  30429. - -* ) pathcomp=./$pathcomp ;;
  30430. - esac
  30431. -
  30432. - if test ! -d "$pathcomp"; then
  30433. - echo "mkdir $pathcomp"
  30434. -
  30435. - mkdir "$pathcomp" || lasterr=$?
  30436. -
  30437. - if test ! -d "$pathcomp"; then
  30438. - errstatus=$lasterr
  30439. - else
  30440. - if test ! -z "$dirmode"; then
  30441. - echo "chmod $dirmode $pathcomp"
  30442. -
  30443. - lasterr=""
  30444. - chmod "$dirmode" "$pathcomp" || lasterr=$?
  30445. -
  30446. - if test ! -z "$lasterr"; then
  30447. - errstatus=$lasterr
  30448. - fi
  30449. + if test ! -z "$lasterr"; then
  30450. + errstatus=$lasterr
  30451. fi
  30452. fi
  30453. - fi
  30454. + fi
  30455. + fi
  30456. - pathcomp="$pathcomp/"
  30457. - done
  30458. + pathcomp=$pathcomp/
  30459. + done
  30460. done
  30461. exit $errstatus
  30462. # Local Variables:
  30463. # mode: shell-script
  30464. -# sh-indentation: 3
  30465. +# sh-indentation: 2
  30466. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  30467. +# time-stamp-start: "scriptversion="
  30468. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  30469. +# time-stamp-time-zone: "UTC"
  30470. +# time-stamp-end: "; # UTC"
  30471. # End:
  30472. -# mkinstalldirs ends here
  30473. diff -Nur libdnet-1.11.orig/configure libdnet-1.11/configure
  30474. --- libdnet-1.11.orig/configure 2006-01-19 17:40:16.000000000 +0100
  30475. +++ libdnet-1.11/configure 2011-02-19 12:27:12.703561944 +0100
  30476. @@ -1,81 +1,415 @@
  30477. #! /bin/sh
  30478. # Guess values for system-dependent variables and create Makefiles.
  30479. -# Generated by GNU Autoconf 2.59.
  30480. +# Generated by GNU Autoconf 2.65.
  30481. +#
  30482. +#
  30483. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  30484. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  30485. +# Inc.
  30486. +#
  30487. #
  30488. -# Copyright (C) 2003 Free Software Foundation, Inc.
  30489. # This configure script is free software; the Free Software Foundation
  30490. # gives unlimited permission to copy, distribute and modify it.
  30491. -## --------------------- ##
  30492. -## M4sh Initialization. ##
  30493. -## --------------------- ##
  30494. +## -------------------- ##
  30495. +## M4sh Initialization. ##
  30496. +## -------------------- ##
  30497. -# Be Bourne compatible
  30498. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  30499. +# Be more Bourne compatible
  30500. +DUALCASE=1; export DUALCASE # for MKS sh
  30501. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  30502. emulate sh
  30503. NULLCMD=:
  30504. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  30505. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  30506. # is contrary to our usage. Disable this feature.
  30507. alias -g '${1+"$@"}'='"$@"'
  30508. -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  30509. - set -o posix
  30510. + setopt NO_GLOB_SUBST
  30511. +else
  30512. + case `(set -o) 2>/dev/null` in #(
  30513. + *posix*) :
  30514. + set -o posix ;; #(
  30515. + *) :
  30516. + ;;
  30517. +esac
  30518. fi
  30519. -DUALCASE=1; export DUALCASE # for MKS sh
  30520. -# Support unset when possible.
  30521. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  30522. - as_unset=unset
  30523. -else
  30524. - as_unset=false
  30525. +
  30526. +as_nl='
  30527. +'
  30528. +export as_nl
  30529. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  30530. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  30531. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  30532. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  30533. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  30534. +# but without wasting forks for bash or zsh.
  30535. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  30536. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  30537. + as_echo='print -r --'
  30538. + as_echo_n='print -rn --'
  30539. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  30540. + as_echo='printf %s\n'
  30541. + as_echo_n='printf %s'
  30542. +else
  30543. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  30544. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  30545. + as_echo_n='/usr/ucb/echo -n'
  30546. + else
  30547. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  30548. + as_echo_n_body='eval
  30549. + arg=$1;
  30550. + case $arg in #(
  30551. + *"$as_nl"*)
  30552. + expr "X$arg" : "X\\(.*\\)$as_nl";
  30553. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  30554. + esac;
  30555. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  30556. + '
  30557. + export as_echo_n_body
  30558. + as_echo_n='sh -c $as_echo_n_body as_echo'
  30559. + fi
  30560. + export as_echo_body
  30561. + as_echo='sh -c $as_echo_body as_echo'
  30562. fi
  30563. +# The user is always right.
  30564. +if test "${PATH_SEPARATOR+set}" != set; then
  30565. + PATH_SEPARATOR=:
  30566. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  30567. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  30568. + PATH_SEPARATOR=';'
  30569. + }
  30570. +fi
  30571. +
  30572. +
  30573. +# IFS
  30574. +# We need space, tab and new line, in precisely that order. Quoting is
  30575. +# there to prevent editors from complaining about space-tab.
  30576. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  30577. +# splitting by setting IFS to empty value.)
  30578. +IFS=" "" $as_nl"
  30579. +
  30580. +# Find who we are. Look in the path if we contain no directory separator.
  30581. +case $0 in #((
  30582. + *[\\/]* ) as_myself=$0 ;;
  30583. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30584. +for as_dir in $PATH
  30585. +do
  30586. + IFS=$as_save_IFS
  30587. + test -z "$as_dir" && as_dir=.
  30588. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  30589. + done
  30590. +IFS=$as_save_IFS
  30591. -# Work around bugs in pre-3.0 UWIN ksh.
  30592. -$as_unset ENV MAIL MAILPATH
  30593. + ;;
  30594. +esac
  30595. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  30596. +# in which case we are not to be found in the path.
  30597. +if test "x$as_myself" = x; then
  30598. + as_myself=$0
  30599. +fi
  30600. +if test ! -f "$as_myself"; then
  30601. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  30602. + exit 1
  30603. +fi
  30604. +
  30605. +# Unset variables that we do not need and which cause bugs (e.g. in
  30606. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  30607. +# suppresses any "Segmentation fault" message there. '((' could
  30608. +# trigger a bug in pdksh 5.2.14.
  30609. +for as_var in BASH_ENV ENV MAIL MAILPATH
  30610. +do eval test x\${$as_var+set} = xset \
  30611. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  30612. +done
  30613. PS1='$ '
  30614. PS2='> '
  30615. PS4='+ '
  30616. # NLS nuisances.
  30617. -for as_var in \
  30618. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  30619. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  30620. - LC_TELEPHONE LC_TIME
  30621. +LC_ALL=C
  30622. +export LC_ALL
  30623. +LANGUAGE=C
  30624. +export LANGUAGE
  30625. +
  30626. +# CDPATH.
  30627. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  30628. +
  30629. +if test "x$CONFIG_SHELL" = x; then
  30630. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  30631. + emulate sh
  30632. + NULLCMD=:
  30633. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  30634. + # is contrary to our usage. Disable this feature.
  30635. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  30636. + setopt NO_GLOB_SUBST
  30637. +else
  30638. + case \`(set -o) 2>/dev/null\` in #(
  30639. + *posix*) :
  30640. + set -o posix ;; #(
  30641. + *) :
  30642. + ;;
  30643. +esac
  30644. +fi
  30645. +"
  30646. + as_required="as_fn_return () { (exit \$1); }
  30647. +as_fn_success () { as_fn_return 0; }
  30648. +as_fn_failure () { as_fn_return 1; }
  30649. +as_fn_ret_success () { return 0; }
  30650. +as_fn_ret_failure () { return 1; }
  30651. +
  30652. +exitcode=0
  30653. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  30654. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  30655. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  30656. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  30657. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  30658. +
  30659. +else
  30660. + exitcode=1; echo positional parameters were not saved.
  30661. +fi
  30662. +test x\$exitcode = x0 || exit 1"
  30663. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  30664. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  30665. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  30666. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  30667. +test \$(( 1 + 1 )) = 2 || exit 1"
  30668. + if (eval "$as_required") 2>/dev/null; then :
  30669. + as_have_required=yes
  30670. +else
  30671. + as_have_required=no
  30672. +fi
  30673. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  30674. +
  30675. +else
  30676. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30677. +as_found=false
  30678. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  30679. do
  30680. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  30681. - eval $as_var=C; export $as_var
  30682. - else
  30683. - $as_unset $as_var
  30684. - fi
  30685. + IFS=$as_save_IFS
  30686. + test -z "$as_dir" && as_dir=.
  30687. + as_found=:
  30688. + case $as_dir in #(
  30689. + /*)
  30690. + for as_base in sh bash ksh sh5; do
  30691. + # Try only shells that exist, to save several forks.
  30692. + as_shell=$as_dir/$as_base
  30693. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  30694. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  30695. + CONFIG_SHELL=$as_shell as_have_required=yes
  30696. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  30697. + break 2
  30698. +fi
  30699. +fi
  30700. + done;;
  30701. + esac
  30702. + as_found=false
  30703. done
  30704. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  30705. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  30706. + CONFIG_SHELL=$SHELL as_have_required=yes
  30707. +fi; }
  30708. +IFS=$as_save_IFS
  30709. +
  30710. +
  30711. + if test "x$CONFIG_SHELL" != x; then :
  30712. + # We cannot yet assume a decent shell, so we have to provide a
  30713. + # neutralization value for shells without unset; and this also
  30714. + # works around shells that cannot unset nonexistent variables.
  30715. + BASH_ENV=/dev/null
  30716. + ENV=/dev/null
  30717. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  30718. + export CONFIG_SHELL
  30719. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  30720. +fi
  30721. +
  30722. + if test x$as_have_required = xno; then :
  30723. + $as_echo "$0: This script requires a shell more modern than all"
  30724. + $as_echo "$0: the shells that I found on your system."
  30725. + if test x${ZSH_VERSION+set} = xset ; then
  30726. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  30727. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  30728. + else
  30729. + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  30730. +$0: including any error possibly output before this
  30731. +$0: message. Then install a modern shell, or manually run
  30732. +$0: the script under such a shell if you do have one."
  30733. + fi
  30734. + exit 1
  30735. +fi
  30736. +fi
  30737. +fi
  30738. +SHELL=${CONFIG_SHELL-/bin/sh}
  30739. +export SHELL
  30740. +# Unset more variables known to interfere with behavior of common tools.
  30741. +CLICOLOR_FORCE= GREP_OPTIONS=
  30742. +unset CLICOLOR_FORCE GREP_OPTIONS
  30743. +
  30744. +## --------------------- ##
  30745. +## M4sh Shell Functions. ##
  30746. +## --------------------- ##
  30747. +# as_fn_unset VAR
  30748. +# ---------------
  30749. +# Portably unset VAR.
  30750. +as_fn_unset ()
  30751. +{
  30752. + { eval $1=; unset $1;}
  30753. +}
  30754. +as_unset=as_fn_unset
  30755. +
  30756. +# as_fn_set_status STATUS
  30757. +# -----------------------
  30758. +# Set $? to STATUS, without forking.
  30759. +as_fn_set_status ()
  30760. +{
  30761. + return $1
  30762. +} # as_fn_set_status
  30763. +
  30764. +# as_fn_exit STATUS
  30765. +# -----------------
  30766. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  30767. +as_fn_exit ()
  30768. +{
  30769. + set +e
  30770. + as_fn_set_status $1
  30771. + exit $1
  30772. +} # as_fn_exit
  30773. +
  30774. +# as_fn_mkdir_p
  30775. +# -------------
  30776. +# Create "$as_dir" as a directory, including parents if necessary.
  30777. +as_fn_mkdir_p ()
  30778. +{
  30779. +
  30780. + case $as_dir in #(
  30781. + -*) as_dir=./$as_dir;;
  30782. + esac
  30783. + test -d "$as_dir" || eval $as_mkdir_p || {
  30784. + as_dirs=
  30785. + while :; do
  30786. + case $as_dir in #(
  30787. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  30788. + *) as_qdir=$as_dir;;
  30789. + esac
  30790. + as_dirs="'$as_qdir' $as_dirs"
  30791. + as_dir=`$as_dirname -- "$as_dir" ||
  30792. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  30793. + X"$as_dir" : 'X\(//\)[^/]' \| \
  30794. + X"$as_dir" : 'X\(//\)$' \| \
  30795. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  30796. +$as_echo X"$as_dir" |
  30797. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  30798. + s//\1/
  30799. + q
  30800. + }
  30801. + /^X\(\/\/\)[^/].*/{
  30802. + s//\1/
  30803. + q
  30804. + }
  30805. + /^X\(\/\/\)$/{
  30806. + s//\1/
  30807. + q
  30808. + }
  30809. + /^X\(\/\).*/{
  30810. + s//\1/
  30811. + q
  30812. + }
  30813. + s/.*/./; q'`
  30814. + test -d "$as_dir" && break
  30815. + done
  30816. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  30817. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  30818. +
  30819. +
  30820. +} # as_fn_mkdir_p
  30821. +# as_fn_append VAR VALUE
  30822. +# ----------------------
  30823. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  30824. +# advantage of any shell optimizations that allow amortized linear growth over
  30825. +# repeated appends, instead of the typical quadratic growth present in naive
  30826. +# implementations.
  30827. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  30828. + eval 'as_fn_append ()
  30829. + {
  30830. + eval $1+=\$2
  30831. + }'
  30832. +else
  30833. + as_fn_append ()
  30834. + {
  30835. + eval $1=\$$1\$2
  30836. + }
  30837. +fi # as_fn_append
  30838. -# Required to use basename.
  30839. -if expr a : '\(a\)' >/dev/null 2>&1; then
  30840. +# as_fn_arith ARG...
  30841. +# ------------------
  30842. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  30843. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  30844. +# must be portable across $(()) and expr.
  30845. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  30846. + eval 'as_fn_arith ()
  30847. + {
  30848. + as_val=$(( $* ))
  30849. + }'
  30850. +else
  30851. + as_fn_arith ()
  30852. + {
  30853. + as_val=`expr "$@" || test $? -eq 1`
  30854. + }
  30855. +fi # as_fn_arith
  30856. +
  30857. +
  30858. +# as_fn_error ERROR [LINENO LOG_FD]
  30859. +# ---------------------------------
  30860. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  30861. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  30862. +# script with status $?, using 1 if that was 0.
  30863. +as_fn_error ()
  30864. +{
  30865. + as_status=$?; test $as_status -eq 0 && as_status=1
  30866. + if test "$3"; then
  30867. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  30868. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  30869. + fi
  30870. + $as_echo "$as_me: error: $1" >&2
  30871. + as_fn_exit $as_status
  30872. +} # as_fn_error
  30873. +
  30874. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  30875. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  30876. as_expr=expr
  30877. else
  30878. as_expr=false
  30879. fi
  30880. -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  30881. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  30882. as_basename=basename
  30883. else
  30884. as_basename=false
  30885. fi
  30886. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  30887. + as_dirname=dirname
  30888. +else
  30889. + as_dirname=false
  30890. +fi
  30891. -# Name of the executable.
  30892. -as_me=`$as_basename "$0" ||
  30893. +as_me=`$as_basename -- "$0" ||
  30894. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  30895. X"$0" : 'X\(//\)$' \| \
  30896. - X"$0" : 'X\(/\)$' \| \
  30897. - . : '\(.\)' 2>/dev/null ||
  30898. -echo X/"$0" |
  30899. - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  30900. - /^X\/\(\/\/\)$/{ s//\1/; q; }
  30901. - /^X\/\(\/\).*/{ s//\1/; q; }
  30902. - s/.*/./; q'`
  30903. -
  30904. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  30905. +$as_echo X/"$0" |
  30906. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  30907. + s//\1/
  30908. + q
  30909. + }
  30910. + /^X\/\(\/\/\)$/{
  30911. + s//\1/
  30912. + q
  30913. + }
  30914. + /^X\/\(\/\).*/{
  30915. + s//\1/
  30916. + q
  30917. + }
  30918. + s/.*/./; q'`
  30919. -# PATH needs CR, and LINENO needs CR and PATH.
  30920. # Avoid depending upon Character Ranges.
  30921. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  30922. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30923. @@ -83,146 +417,107 @@
  30924. as_cr_digits='0123456789'
  30925. as_cr_alnum=$as_cr_Letters$as_cr_digits
  30926. -# The user is always right.
  30927. -if test "${PATH_SEPARATOR+set}" != set; then
  30928. - echo "#! /bin/sh" >conf$$.sh
  30929. - echo "exit 0" >>conf$$.sh
  30930. - chmod +x conf$$.sh
  30931. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  30932. - PATH_SEPARATOR=';'
  30933. - else
  30934. - PATH_SEPARATOR=:
  30935. - fi
  30936. - rm -f conf$$.sh
  30937. -fi
  30938. -
  30939. -
  30940. - as_lineno_1=$LINENO
  30941. - as_lineno_2=$LINENO
  30942. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  30943. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  30944. - test "x$as_lineno_3" = "x$as_lineno_2" || {
  30945. - # Find who we are. Look in the path if we contain no path at all
  30946. - # relative or not.
  30947. - case $0 in
  30948. - *[\\/]* ) as_myself=$0 ;;
  30949. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30950. -for as_dir in $PATH
  30951. -do
  30952. - IFS=$as_save_IFS
  30953. - test -z "$as_dir" && as_dir=.
  30954. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  30955. -done
  30956. -
  30957. - ;;
  30958. - esac
  30959. - # We did not find ourselves, most probably we were run as `sh COMMAND'
  30960. - # in which case we are not to be found in the path.
  30961. - if test "x$as_myself" = x; then
  30962. - as_myself=$0
  30963. - fi
  30964. - if test ! -f "$as_myself"; then
  30965. - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  30966. - { (exit 1); exit 1; }; }
  30967. - fi
  30968. - case $CONFIG_SHELL in
  30969. - '')
  30970. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30971. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  30972. -do
  30973. - IFS=$as_save_IFS
  30974. - test -z "$as_dir" && as_dir=.
  30975. - for as_base in sh bash ksh sh5; do
  30976. - case $as_dir in
  30977. - /*)
  30978. - if ("$as_dir/$as_base" -c '
  30979. - as_lineno_1=$LINENO
  30980. - as_lineno_2=$LINENO
  30981. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  30982. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  30983. - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  30984. - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  30985. - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  30986. - CONFIG_SHELL=$as_dir/$as_base
  30987. - export CONFIG_SHELL
  30988. - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  30989. - fi;;
  30990. - esac
  30991. - done
  30992. -done
  30993. -;;
  30994. - esac
  30995. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  30996. - # uniformly replaced by the line number. The first 'sed' inserts a
  30997. - # line-number line before each line; the second 'sed' does the real
  30998. - # work. The second script uses 'N' to pair each line-number line
  30999. - # with the numbered line, and appends trailing '-' during
  31000. - # substitution so that $LINENO is not a special case at line end.
  31001. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  31002. - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  31003. - sed '=' <$as_myself |
  31004. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  31005. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  31006. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  31007. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  31008. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  31009. + sed -n '
  31010. + p
  31011. + /[$]LINENO/=
  31012. + ' <$as_myself |
  31013. sed '
  31014. + s/[$]LINENO.*/&-/
  31015. + t lineno
  31016. + b
  31017. + :lineno
  31018. N
  31019. - s,$,-,
  31020. - : loop
  31021. - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  31022. + :loop
  31023. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  31024. t loop
  31025. - s,-$,,
  31026. - s,^['$as_cr_digits']*\n,,
  31027. + s/-\n.*//
  31028. ' >$as_me.lineno &&
  31029. - chmod +x $as_me.lineno ||
  31030. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  31031. - { (exit 1); exit 1; }; }
  31032. + chmod +x "$as_me.lineno" ||
  31033. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  31034. # Don't try to exec as it changes $[0], causing all sort of problems
  31035. # (the dirname of $[0] is not the place where we might find the
  31036. - # original and so on. Autoconf is especially sensible to this).
  31037. - . ./$as_me.lineno
  31038. + # original and so on. Autoconf is especially sensitive to this).
  31039. + . "./$as_me.lineno"
  31040. # Exit status is that of the last command.
  31041. exit
  31042. }
  31043. -
  31044. -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  31045. - *c*,-n*) ECHO_N= ECHO_C='
  31046. -' ECHO_T=' ' ;;
  31047. - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  31048. - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  31049. +ECHO_C= ECHO_N= ECHO_T=
  31050. +case `echo -n x` in #(((((
  31051. +-n*)
  31052. + case `echo 'xy\c'` in
  31053. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  31054. + xy) ECHO_C='\c';;
  31055. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  31056. + ECHO_T=' ';;
  31057. + esac;;
  31058. +*)
  31059. + ECHO_N='-n';;
  31060. esac
  31061. -if expr a : '\(a\)' >/dev/null 2>&1; then
  31062. - as_expr=expr
  31063. +rm -f conf$$ conf$$.exe conf$$.file
  31064. +if test -d conf$$.dir; then
  31065. + rm -f conf$$.dir/conf$$.file
  31066. else
  31067. - as_expr=false
  31068. + rm -f conf$$.dir
  31069. + mkdir conf$$.dir 2>/dev/null
  31070. fi
  31071. -
  31072. -rm -f conf$$ conf$$.exe conf$$.file
  31073. -echo >conf$$.file
  31074. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  31075. - # We could just check for DJGPP; but this test a) works b) is more generic
  31076. - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  31077. - if test -f conf$$.exe; then
  31078. - # Don't use ln at all; we don't have any links
  31079. - as_ln_s='cp -p'
  31080. - else
  31081. +if (echo >conf$$.file) 2>/dev/null; then
  31082. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  31083. as_ln_s='ln -s'
  31084. + # ... but there are two gotchas:
  31085. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  31086. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  31087. + # In both cases, we have to default to `cp -p'.
  31088. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  31089. + as_ln_s='cp -p'
  31090. + elif ln conf$$.file conf$$ 2>/dev/null; then
  31091. + as_ln_s=ln
  31092. + else
  31093. + as_ln_s='cp -p'
  31094. fi
  31095. -elif ln conf$$.file conf$$ 2>/dev/null; then
  31096. - as_ln_s=ln
  31097. else
  31098. as_ln_s='cp -p'
  31099. fi
  31100. -rm -f conf$$ conf$$.exe conf$$.file
  31101. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  31102. +rmdir conf$$.dir 2>/dev/null
  31103. if mkdir -p . 2>/dev/null; then
  31104. - as_mkdir_p=:
  31105. + as_mkdir_p='mkdir -p "$as_dir"'
  31106. else
  31107. test -d ./-p && rmdir ./-p
  31108. as_mkdir_p=false
  31109. fi
  31110. -as_executable_p="test -f"
  31111. +if test -x / >/dev/null 2>&1; then
  31112. + as_test_x='test -x'
  31113. +else
  31114. + if ls -dL / >/dev/null 2>&1; then
  31115. + as_ls_L_option=L
  31116. + else
  31117. + as_ls_L_option=
  31118. + fi
  31119. + as_test_x='
  31120. + eval sh -c '\''
  31121. + if test -d "$1"; then
  31122. + test -d "$1/.";
  31123. + else
  31124. + case $1 in #(
  31125. + -*)set "./$1";;
  31126. + esac;
  31127. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  31128. + ???[sx]*):;;*)false;;esac;fi
  31129. + '\'' sh
  31130. + '
  31131. +fi
  31132. +as_executable_p=$as_test_x
  31133. # Sed expression to map a string onto a valid CPP name.
  31134. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  31135. @@ -231,36 +526,26 @@
  31136. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  31137. -# IFS
  31138. -# We need space, tab and new line, in precisely that order.
  31139. -as_nl='
  31140. -'
  31141. -IFS=" $as_nl"
  31142. -
  31143. -# CDPATH.
  31144. -$as_unset CDPATH
  31145. -
  31146. -
  31147. # Check that we are running under the correct shell.
  31148. SHELL=${CONFIG_SHELL-/bin/sh}
  31149. -case X$ECHO in
  31150. +case X$lt_ECHO in
  31151. X*--fallback-echo)
  31152. # Remove one level of quotation (which was required for Make).
  31153. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  31154. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  31155. ;;
  31156. esac
  31157. -echo=${ECHO-echo}
  31158. +ECHO=${lt_ECHO-echo}
  31159. if test "X$1" = X--no-reexec; then
  31160. # Discard the --no-reexec flag, and continue.
  31161. shift
  31162. elif test "X$1" = X--fallback-echo; then
  31163. # Avoid inline document here, it may be left over
  31164. :
  31165. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  31166. - # Yippee, $echo works!
  31167. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  31168. + # Yippee, $ECHO works!
  31169. :
  31170. else
  31171. # Restart under the correct shell.
  31172. @@ -270,153 +555,145 @@
  31173. if test "X$1" = X--fallback-echo; then
  31174. # used as fallback echo
  31175. shift
  31176. - cat <<EOF
  31177. + cat <<_LT_EOF
  31178. $*
  31179. -EOF
  31180. +_LT_EOF
  31181. exit 0
  31182. fi
  31183. # The HP-UX ksh and POSIX shell print the target directory to stdout
  31184. # if CDPATH is set.
  31185. -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  31186. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  31187. -if test -z "$ECHO"; then
  31188. -if test "X${echo_test_string+set}" != Xset; then
  31189. -# find a string as large as possible, as long as the shell can cope with it
  31190. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  31191. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  31192. - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  31193. - echo_test_string="`eval $cmd`" &&
  31194. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  31195. - then
  31196. - break
  31197. - fi
  31198. - done
  31199. -fi
  31200. +if test -z "$lt_ECHO"; then
  31201. + if test "X${echo_test_string+set}" != Xset; then
  31202. + # find a string as large as possible, as long as the shell can cope with it
  31203. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  31204. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  31205. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  31206. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  31207. + then
  31208. + break
  31209. + fi
  31210. + done
  31211. + fi
  31212. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  31213. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  31214. - test "X$echo_testing_string" = "X$echo_test_string"; then
  31215. - :
  31216. -else
  31217. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  31218. - # backslashes. This makes it impossible to quote backslashes using
  31219. - # echo "$something" | sed 's/\\/\\\\/g'
  31220. - #
  31221. - # So, first we look for a working echo in the user's PATH.
  31222. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  31223. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  31224. + test "X$echo_testing_string" = "X$echo_test_string"; then
  31225. + :
  31226. + else
  31227. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  31228. + # backslashes. This makes it impossible to quote backslashes using
  31229. + # echo "$something" | sed 's/\\/\\\\/g'
  31230. + #
  31231. + # So, first we look for a working echo in the user's PATH.
  31232. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  31233. - for dir in $PATH /usr/ucb; do
  31234. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  31235. + for dir in $PATH /usr/ucb; do
  31236. + IFS="$lt_save_ifs"
  31237. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  31238. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  31239. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  31240. + test "X$echo_testing_string" = "X$echo_test_string"; then
  31241. + ECHO="$dir/echo"
  31242. + break
  31243. + fi
  31244. + done
  31245. IFS="$lt_save_ifs"
  31246. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  31247. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  31248. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  31249. - test "X$echo_testing_string" = "X$echo_test_string"; then
  31250. - echo="$dir/echo"
  31251. - break
  31252. - fi
  31253. - done
  31254. - IFS="$lt_save_ifs"
  31255. - if test "X$echo" = Xecho; then
  31256. - # We didn't find a better echo, so look for alternatives.
  31257. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  31258. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  31259. - test "X$echo_testing_string" = "X$echo_test_string"; then
  31260. - # This shell has a builtin print -r that does the trick.
  31261. - echo='print -r'
  31262. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  31263. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  31264. - # If we have ksh, try running configure again with it.
  31265. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  31266. - export ORIGINAL_CONFIG_SHELL
  31267. - CONFIG_SHELL=/bin/ksh
  31268. - export CONFIG_SHELL
  31269. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  31270. - else
  31271. - # Try using printf.
  31272. - echo='printf %s\n'
  31273. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  31274. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  31275. - test "X$echo_testing_string" = "X$echo_test_string"; then
  31276. - # Cool, printf works
  31277. - :
  31278. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  31279. - test "X$echo_testing_string" = 'X\t' &&
  31280. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  31281. - test "X$echo_testing_string" = "X$echo_test_string"; then
  31282. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  31283. - export CONFIG_SHELL
  31284. - SHELL="$CONFIG_SHELL"
  31285. - export SHELL
  31286. - echo="$CONFIG_SHELL $0 --fallback-echo"
  31287. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  31288. - test "X$echo_testing_string" = 'X\t' &&
  31289. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  31290. + if test "X$ECHO" = Xecho; then
  31291. + # We didn't find a better echo, so look for alternatives.
  31292. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  31293. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  31294. + test "X$echo_testing_string" = "X$echo_test_string"; then
  31295. + # This shell has a builtin print -r that does the trick.
  31296. + ECHO='print -r'
  31297. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  31298. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  31299. + # If we have ksh, try running configure again with it.
  31300. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  31301. + export ORIGINAL_CONFIG_SHELL
  31302. + CONFIG_SHELL=/bin/ksh
  31303. + export CONFIG_SHELL
  31304. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  31305. + else
  31306. + # Try using printf.
  31307. + ECHO='printf %s\n'
  31308. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  31309. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  31310. test "X$echo_testing_string" = "X$echo_test_string"; then
  31311. - echo="$CONFIG_SHELL $0 --fallback-echo"
  31312. - else
  31313. - # maybe with a smaller string...
  31314. - prev=:
  31315. + # Cool, printf works
  31316. + :
  31317. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  31318. + test "X$echo_testing_string" = 'X\t' &&
  31319. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  31320. + test "X$echo_testing_string" = "X$echo_test_string"; then
  31321. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  31322. + export CONFIG_SHELL
  31323. + SHELL="$CONFIG_SHELL"
  31324. + export SHELL
  31325. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  31326. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  31327. + test "X$echo_testing_string" = 'X\t' &&
  31328. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  31329. + test "X$echo_testing_string" = "X$echo_test_string"; then
  31330. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  31331. + else
  31332. + # maybe with a smaller string...
  31333. + prev=:
  31334. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  31335. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  31336. - then
  31337. - break
  31338. - fi
  31339. - prev="$cmd"
  31340. - done
  31341. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  31342. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  31343. + then
  31344. + break
  31345. + fi
  31346. + prev="$cmd"
  31347. + done
  31348. - if test "$prev" != 'sed 50q "$0"'; then
  31349. - echo_test_string=`eval $prev`
  31350. - export echo_test_string
  31351. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  31352. - else
  31353. - # Oops. We lost completely, so just stick with echo.
  31354. - echo=echo
  31355. - fi
  31356. + if test "$prev" != 'sed 50q "$0"'; then
  31357. + echo_test_string=`eval $prev`
  31358. + export echo_test_string
  31359. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  31360. + else
  31361. + # Oops. We lost completely, so just stick with echo.
  31362. + ECHO=echo
  31363. + fi
  31364. + fi
  31365. fi
  31366. fi
  31367. fi
  31368. fi
  31369. -fi
  31370. # Copy echo and quote the copy suitably for passing to libtool from
  31371. # the Makefile, instead of quoting the original, which is used later.
  31372. -ECHO=$echo
  31373. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  31374. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  31375. +lt_ECHO=$ECHO
  31376. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  31377. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  31378. fi
  31379. -tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
  31380. -
  31381. -tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
  31382. +test -n "$DJDIR" || exec 7<&0 </dev/null
  31383. +exec 6>&1
  31384. # Name of the host.
  31385. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  31386. # so uname gets run too.
  31387. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  31388. -exec 6>&1
  31389. -
  31390. #
  31391. # Initializations.
  31392. #
  31393. ac_default_prefix=/usr/local
  31394. +ac_clean_files=
  31395. ac_config_libobj_dir=.
  31396. +LIBOBJS=
  31397. cross_compiling=no
  31398. subdirs=
  31399. MFLAGS=
  31400. MAKEFLAGS=
  31401. -SHELL=${CONFIG_SHELL-/bin/sh}
  31402. -
  31403. -# Maximum number of lines to put in a shell here document.
  31404. -# This variable seems obsolete. It should probably be removed, and
  31405. -# only ac_max_sed_lines should be used.
  31406. -: ${ac_max_here_lines=38}
  31407. # Identity of this package.
  31408. PACKAGE_NAME=
  31409. @@ -424,51 +701,200 @@
  31410. PACKAGE_VERSION=
  31411. PACKAGE_STRING=
  31412. PACKAGE_BUGREPORT=
  31413. +PACKAGE_URL=
  31414. ac_unique_file="include/dnet.h"
  31415. # Factoring default headers for most tests.
  31416. ac_includes_default="\
  31417. #include <stdio.h>
  31418. -#if HAVE_SYS_TYPES_H
  31419. +#ifdef HAVE_SYS_TYPES_H
  31420. # include <sys/types.h>
  31421. #endif
  31422. -#if HAVE_SYS_STAT_H
  31423. +#ifdef HAVE_SYS_STAT_H
  31424. # include <sys/stat.h>
  31425. #endif
  31426. -#if STDC_HEADERS
  31427. +#ifdef STDC_HEADERS
  31428. # include <stdlib.h>
  31429. # include <stddef.h>
  31430. #else
  31431. -# if HAVE_STDLIB_H
  31432. +# ifdef HAVE_STDLIB_H
  31433. # include <stdlib.h>
  31434. # endif
  31435. #endif
  31436. -#if HAVE_STRING_H
  31437. -# if !STDC_HEADERS && HAVE_MEMORY_H
  31438. +#ifdef HAVE_STRING_H
  31439. +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  31440. # include <memory.h>
  31441. # endif
  31442. # include <string.h>
  31443. #endif
  31444. -#if HAVE_STRINGS_H
  31445. +#ifdef HAVE_STRINGS_H
  31446. # include <strings.h>
  31447. #endif
  31448. -#if HAVE_INTTYPES_H
  31449. +#ifdef HAVE_INTTYPES_H
  31450. # include <inttypes.h>
  31451. -#else
  31452. -# if HAVE_STDINT_H
  31453. -# include <stdint.h>
  31454. -# endif
  31455. #endif
  31456. -#if HAVE_UNISTD_H
  31457. +#ifdef HAVE_STDINT_H
  31458. +# include <stdint.h>
  31459. +#endif
  31460. +#ifdef HAVE_UNISTD_H
  31461. # include <unistd.h>
  31462. #endif"
  31463. -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ac_aux_dir INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PYTHON TCLINC TCLLIB PYTHON_TRUE PYTHON_FALSE TCL_TRUE TCL_FALSE CHECKINC CHECKLIB HAVE_CHECK_TRUE HAVE_CHECK_FALSE LIBOBJS LTLIBOBJS'
  31464. +ac_subst_vars='am__EXEEXT_FALSE
  31465. +am__EXEEXT_TRUE
  31466. +LTLIBOBJS
  31467. +LIBOBJS
  31468. +HAVE_CHECK_FALSE
  31469. +HAVE_CHECK_TRUE
  31470. +CHECKLIB
  31471. +CHECKINC
  31472. +TCL_FALSE
  31473. +TCL_TRUE
  31474. +PYTHON_FALSE
  31475. +PYTHON_TRUE
  31476. +TCLLIB
  31477. +TCLINC
  31478. +PYTHON
  31479. +CPP
  31480. +OTOOL64
  31481. +OTOOL
  31482. +LIPO
  31483. +NMEDIT
  31484. +DSYMUTIL
  31485. +lt_ECHO
  31486. +RANLIB
  31487. +AR
  31488. +OBJDUMP
  31489. +LN_S
  31490. +NM
  31491. +ac_ct_DUMPBIN
  31492. +DUMPBIN
  31493. +LD
  31494. +FGREP
  31495. +EGREP
  31496. +GREP
  31497. +SED
  31498. +LIBTOOL
  31499. +am__fastdepCC_FALSE
  31500. +am__fastdepCC_TRUE
  31501. +CCDEPMODE
  31502. +AMDEPBACKSLASH
  31503. +AMDEP_FALSE
  31504. +AMDEP_TRUE
  31505. +am__quote
  31506. +am__include
  31507. +DEPDIR
  31508. +OBJEXT
  31509. +EXEEXT
  31510. +ac_ct_CC
  31511. +CPPFLAGS
  31512. +LDFLAGS
  31513. +CFLAGS
  31514. +CC
  31515. +host_os
  31516. +host_vendor
  31517. +host_cpu
  31518. +host
  31519. +build_os
  31520. +build_vendor
  31521. +build_cpu
  31522. +build
  31523. +MAINT
  31524. +MAINTAINER_MODE_FALSE
  31525. +MAINTAINER_MODE_TRUE
  31526. +am__untar
  31527. +am__tar
  31528. +AMTAR
  31529. +am__leading_dot
  31530. +SET_MAKE
  31531. +AWK
  31532. +mkdir_p
  31533. +MKDIR_P
  31534. +INSTALL_STRIP_PROGRAM
  31535. +STRIP
  31536. +install_sh
  31537. +MAKEINFO
  31538. +AUTOHEADER
  31539. +AUTOMAKE
  31540. +AUTOCONF
  31541. +ACLOCAL
  31542. +VERSION
  31543. +PACKAGE
  31544. +CYGPATH_W
  31545. +am__isrc
  31546. +INSTALL_DATA
  31547. +INSTALL_SCRIPT
  31548. +INSTALL_PROGRAM
  31549. +ac_aux_dir
  31550. +target_alias
  31551. +host_alias
  31552. +build_alias
  31553. +LIBS
  31554. +ECHO_T
  31555. +ECHO_N
  31556. +ECHO_C
  31557. +DEFS
  31558. +mandir
  31559. +localedir
  31560. +libdir
  31561. +psdir
  31562. +pdfdir
  31563. +dvidir
  31564. +htmldir
  31565. +infodir
  31566. +docdir
  31567. +oldincludedir
  31568. +includedir
  31569. +localstatedir
  31570. +sharedstatedir
  31571. +sysconfdir
  31572. +datadir
  31573. +datarootdir
  31574. +libexecdir
  31575. +sbindir
  31576. +bindir
  31577. +program_transform_name
  31578. +prefix
  31579. +exec_prefix
  31580. +PACKAGE_URL
  31581. +PACKAGE_BUGREPORT
  31582. +PACKAGE_STRING
  31583. +PACKAGE_VERSION
  31584. +PACKAGE_TARNAME
  31585. +PACKAGE_NAME
  31586. +PATH_SEPARATOR
  31587. +SHELL'
  31588. ac_subst_files=''
  31589. +ac_user_opts='
  31590. +enable_option_checking
  31591. +enable_maintainer_mode
  31592. +enable_dependency_tracking
  31593. +enable_shared
  31594. +enable_static
  31595. +with_pic
  31596. +enable_fast_install
  31597. +with_gnu_ld
  31598. +enable_libtool_lock
  31599. +with_python
  31600. +with_wpdpack
  31601. +with_check
  31602. +'
  31603. + ac_precious_vars='build_alias
  31604. +host_alias
  31605. +target_alias
  31606. +CC
  31607. +CFLAGS
  31608. +LDFLAGS
  31609. +LIBS
  31610. +CPPFLAGS
  31611. +CPP'
  31612. +
  31613. # Initialize some variables set by options.
  31614. ac_init_help=
  31615. ac_init_version=false
  31616. +ac_unrecognized_opts=
  31617. +ac_unrecognized_sep=
  31618. # The variables have the same names as the options, with
  31619. # dashes changed to underlines.
  31620. cache_file=/dev/null
  31621. @@ -491,34 +917,48 @@
  31622. # and all the variables that are supposed to be based on exec_prefix
  31623. # by default will actually change.
  31624. # Use braces instead of parens because sh, perl, etc. also accept them.
  31625. +# (The list follows the same order as the GNU Coding Standards.)
  31626. bindir='${exec_prefix}/bin'
  31627. sbindir='${exec_prefix}/sbin'
  31628. libexecdir='${exec_prefix}/libexec'
  31629. -datadir='${prefix}/share'
  31630. +datarootdir='${prefix}/share'
  31631. +datadir='${datarootdir}'
  31632. sysconfdir='${prefix}/etc'
  31633. sharedstatedir='${prefix}/com'
  31634. localstatedir='${prefix}/var'
  31635. -libdir='${exec_prefix}/lib'
  31636. includedir='${prefix}/include'
  31637. oldincludedir='/usr/include'
  31638. -infodir='${prefix}/info'
  31639. -mandir='${prefix}/man'
  31640. +docdir='${datarootdir}/doc/${PACKAGE}'
  31641. +infodir='${datarootdir}/info'
  31642. +htmldir='${docdir}'
  31643. +dvidir='${docdir}'
  31644. +pdfdir='${docdir}'
  31645. +psdir='${docdir}'
  31646. +libdir='${exec_prefix}/lib'
  31647. +localedir='${datarootdir}/locale'
  31648. +mandir='${datarootdir}/man'
  31649. ac_prev=
  31650. +ac_dashdash=
  31651. for ac_option
  31652. do
  31653. # If the previous option needs an argument, assign it.
  31654. if test -n "$ac_prev"; then
  31655. - eval "$ac_prev=\$ac_option"
  31656. + eval $ac_prev=\$ac_option
  31657. ac_prev=
  31658. continue
  31659. fi
  31660. - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  31661. + case $ac_option in
  31662. + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  31663. + *) ac_optarg=yes ;;
  31664. + esac
  31665. # Accept the important Cygnus configure options, so we can diagnose typos.
  31666. - case $ac_option in
  31667. + case $ac_dashdash$ac_option in
  31668. + --)
  31669. + ac_dashdash=yes ;;
  31670. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  31671. ac_prev=bindir ;;
  31672. @@ -540,33 +980,59 @@
  31673. --config-cache | -C)
  31674. cache_file=config.cache ;;
  31675. - -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  31676. + -datadir | --datadir | --datadi | --datad)
  31677. ac_prev=datadir ;;
  31678. - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  31679. - | --da=*)
  31680. + -datadir=* | --datadir=* | --datadi=* | --datad=*)
  31681. datadir=$ac_optarg ;;
  31682. + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  31683. + | --dataroo | --dataro | --datar)
  31684. + ac_prev=datarootdir ;;
  31685. + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  31686. + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  31687. + datarootdir=$ac_optarg ;;
  31688. +
  31689. -disable-* | --disable-*)
  31690. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  31691. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  31692. # Reject names that are not valid shell variable names.
  31693. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  31694. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  31695. - { (exit 1); exit 1; }; }
  31696. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  31697. - eval "enable_$ac_feature=no" ;;
  31698. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  31699. + as_fn_error "invalid feature name: $ac_useropt"
  31700. + ac_useropt_orig=$ac_useropt
  31701. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  31702. + case $ac_user_opts in
  31703. + *"
  31704. +"enable_$ac_useropt"
  31705. +"*) ;;
  31706. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  31707. + ac_unrecognized_sep=', ';;
  31708. + esac
  31709. + eval enable_$ac_useropt=no ;;
  31710. +
  31711. + -docdir | --docdir | --docdi | --doc | --do)
  31712. + ac_prev=docdir ;;
  31713. + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  31714. + docdir=$ac_optarg ;;
  31715. +
  31716. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  31717. + ac_prev=dvidir ;;
  31718. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  31719. + dvidir=$ac_optarg ;;
  31720. -enable-* | --enable-*)
  31721. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  31722. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  31723. # Reject names that are not valid shell variable names.
  31724. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  31725. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  31726. - { (exit 1); exit 1; }; }
  31727. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  31728. - case $ac_option in
  31729. - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  31730. - *) ac_optarg=yes ;;
  31731. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  31732. + as_fn_error "invalid feature name: $ac_useropt"
  31733. + ac_useropt_orig=$ac_useropt
  31734. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  31735. + case $ac_user_opts in
  31736. + *"
  31737. +"enable_$ac_useropt"
  31738. +"*) ;;
  31739. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  31740. + ac_unrecognized_sep=', ';;
  31741. esac
  31742. - eval "enable_$ac_feature='$ac_optarg'" ;;
  31743. + eval enable_$ac_useropt=\$ac_optarg ;;
  31744. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  31745. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  31746. @@ -593,6 +1059,12 @@
  31747. -host=* | --host=* | --hos=* | --ho=*)
  31748. host_alias=$ac_optarg ;;
  31749. + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  31750. + ac_prev=htmldir ;;
  31751. + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  31752. + | --ht=*)
  31753. + htmldir=$ac_optarg ;;
  31754. +
  31755. -includedir | --includedir | --includedi | --included | --include \
  31756. | --includ | --inclu | --incl | --inc)
  31757. ac_prev=includedir ;;
  31758. @@ -617,13 +1089,16 @@
  31759. | --libexe=* | --libex=* | --libe=*)
  31760. libexecdir=$ac_optarg ;;
  31761. + -localedir | --localedir | --localedi | --localed | --locale)
  31762. + ac_prev=localedir ;;
  31763. + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  31764. + localedir=$ac_optarg ;;
  31765. +
  31766. -localstatedir | --localstatedir | --localstatedi | --localstated \
  31767. - | --localstate | --localstat | --localsta | --localst \
  31768. - | --locals | --local | --loca | --loc | --lo)
  31769. + | --localstate | --localstat | --localsta | --localst | --locals)
  31770. ac_prev=localstatedir ;;
  31771. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  31772. - | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  31773. - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  31774. + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  31775. localstatedir=$ac_optarg ;;
  31776. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  31777. @@ -688,6 +1163,16 @@
  31778. | --progr-tra=* | --program-tr=* | --program-t=*)
  31779. program_transform_name=$ac_optarg ;;
  31780. + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  31781. + ac_prev=pdfdir ;;
  31782. + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  31783. + pdfdir=$ac_optarg ;;
  31784. +
  31785. + -psdir | --psdir | --psdi | --psd | --ps)
  31786. + ac_prev=psdir ;;
  31787. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  31788. + psdir=$ac_optarg ;;
  31789. +
  31790. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  31791. | -silent | --silent | --silen | --sile | --sil)
  31792. silent=yes ;;
  31793. @@ -738,26 +1223,36 @@
  31794. ac_init_version=: ;;
  31795. -with-* | --with-*)
  31796. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  31797. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  31798. # Reject names that are not valid shell variable names.
  31799. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  31800. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  31801. - { (exit 1); exit 1; }; }
  31802. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  31803. - case $ac_option in
  31804. - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  31805. - *) ac_optarg=yes ;;
  31806. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  31807. + as_fn_error "invalid package name: $ac_useropt"
  31808. + ac_useropt_orig=$ac_useropt
  31809. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  31810. + case $ac_user_opts in
  31811. + *"
  31812. +"with_$ac_useropt"
  31813. +"*) ;;
  31814. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  31815. + ac_unrecognized_sep=', ';;
  31816. esac
  31817. - eval "with_$ac_package='$ac_optarg'" ;;
  31818. + eval with_$ac_useropt=\$ac_optarg ;;
  31819. -without-* | --without-*)
  31820. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  31821. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  31822. # Reject names that are not valid shell variable names.
  31823. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  31824. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  31825. - { (exit 1); exit 1; }; }
  31826. - ac_package=`echo $ac_package | sed 's/-/_/g'`
  31827. - eval "with_$ac_package=no" ;;
  31828. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  31829. + as_fn_error "invalid package name: $ac_useropt"
  31830. + ac_useropt_orig=$ac_useropt
  31831. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  31832. + case $ac_user_opts in
  31833. + *"
  31834. +"with_$ac_useropt"
  31835. +"*) ;;
  31836. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  31837. + ac_unrecognized_sep=', ';;
  31838. + esac
  31839. + eval with_$ac_useropt=no ;;
  31840. --x)
  31841. # Obsolete; use --with-x.
  31842. @@ -777,26 +1272,25 @@
  31843. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  31844. x_libraries=$ac_optarg ;;
  31845. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  31846. -Try \`$0 --help' for more information." >&2
  31847. - { (exit 1); exit 1; }; }
  31848. + -*) as_fn_error "unrecognized option: \`$ac_option'
  31849. +Try \`$0 --help' for more information."
  31850. ;;
  31851. *=*)
  31852. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  31853. # Reject names that are not valid shell variable names.
  31854. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  31855. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  31856. - { (exit 1); exit 1; }; }
  31857. - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  31858. - eval "$ac_envvar='$ac_optarg'"
  31859. + case $ac_envvar in #(
  31860. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  31861. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  31862. + esac
  31863. + eval $ac_envvar=\$ac_optarg
  31864. export $ac_envvar ;;
  31865. *)
  31866. # FIXME: should be removed in autoconf 3.0.
  31867. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  31868. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  31869. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  31870. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  31871. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  31872. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  31873. ;;
  31874. @@ -805,31 +1299,36 @@
  31875. if test -n "$ac_prev"; then
  31876. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  31877. - { echo "$as_me: error: missing argument to $ac_option" >&2
  31878. - { (exit 1); exit 1; }; }
  31879. + as_fn_error "missing argument to $ac_option"
  31880. fi
  31881. -# Be sure to have absolute paths.
  31882. -for ac_var in exec_prefix prefix
  31883. -do
  31884. - eval ac_val=$`echo $ac_var`
  31885. - case $ac_val in
  31886. - [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  31887. - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  31888. - { (exit 1); exit 1; }; };;
  31889. +if test -n "$ac_unrecognized_opts"; then
  31890. + case $enable_option_checking in
  31891. + no) ;;
  31892. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  31893. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  31894. esac
  31895. -done
  31896. +fi
  31897. -# Be sure to have absolute paths.
  31898. -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  31899. - localstatedir libdir includedir oldincludedir infodir mandir
  31900. +# Check all directory arguments for consistency.
  31901. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  31902. + datadir sysconfdir sharedstatedir localstatedir includedir \
  31903. + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  31904. + libdir localedir mandir
  31905. do
  31906. - eval ac_val=$`echo $ac_var`
  31907. + eval ac_val=\$$ac_var
  31908. + # Remove trailing slashes.
  31909. case $ac_val in
  31910. - [\\/$]* | ?:[\\/]* ) ;;
  31911. - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  31912. - { (exit 1); exit 1; }; };;
  31913. + */ )
  31914. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  31915. + eval $ac_var=\$ac_val;;
  31916. esac
  31917. + # Be sure to have absolute directory names.
  31918. + case $ac_val in
  31919. + [\\/$]* | ?:[\\/]* ) continue;;
  31920. + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  31921. + esac
  31922. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  31923. done
  31924. # There might be people who depend on the old broken behavior: `$host'
  31925. @@ -843,7 +1342,7 @@
  31926. if test "x$host_alias" != x; then
  31927. if test "x$build_alias" = x; then
  31928. cross_compiling=maybe
  31929. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  31930. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  31931. If a cross compiler is detected then cross compile mode will be used." >&2
  31932. elif test "x$build_alias" != "x$host_alias"; then
  31933. cross_compiling=yes
  31934. @@ -856,94 +1355,72 @@
  31935. test "$silent" = yes && exec 6>/dev/null
  31936. +ac_pwd=`pwd` && test -n "$ac_pwd" &&
  31937. +ac_ls_di=`ls -di .` &&
  31938. +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  31939. + as_fn_error "working directory cannot be determined"
  31940. +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  31941. + as_fn_error "pwd does not report name of working directory"
  31942. +
  31943. +
  31944. # Find the source files, if location was not specified.
  31945. if test -z "$srcdir"; then
  31946. ac_srcdir_defaulted=yes
  31947. - # Try the directory containing this script, then its parent.
  31948. - ac_confdir=`(dirname "$0") 2>/dev/null ||
  31949. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  31950. - X"$0" : 'X\(//\)[^/]' \| \
  31951. - X"$0" : 'X\(//\)$' \| \
  31952. - X"$0" : 'X\(/\)' \| \
  31953. - . : '\(.\)' 2>/dev/null ||
  31954. -echo X"$0" |
  31955. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  31956. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  31957. - /^X\(\/\/\)$/{ s//\1/; q; }
  31958. - /^X\(\/\).*/{ s//\1/; q; }
  31959. - s/.*/./; q'`
  31960. + # Try the directory containing this script, then the parent directory.
  31961. + ac_confdir=`$as_dirname -- "$as_myself" ||
  31962. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  31963. + X"$as_myself" : 'X\(//\)[^/]' \| \
  31964. + X"$as_myself" : 'X\(//\)$' \| \
  31965. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  31966. +$as_echo X"$as_myself" |
  31967. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  31968. + s//\1/
  31969. + q
  31970. + }
  31971. + /^X\(\/\/\)[^/].*/{
  31972. + s//\1/
  31973. + q
  31974. + }
  31975. + /^X\(\/\/\)$/{
  31976. + s//\1/
  31977. + q
  31978. + }
  31979. + /^X\(\/\).*/{
  31980. + s//\1/
  31981. + q
  31982. + }
  31983. + s/.*/./; q'`
  31984. srcdir=$ac_confdir
  31985. - if test ! -r $srcdir/$ac_unique_file; then
  31986. + if test ! -r "$srcdir/$ac_unique_file"; then
  31987. srcdir=..
  31988. fi
  31989. else
  31990. ac_srcdir_defaulted=no
  31991. fi
  31992. -if test ! -r $srcdir/$ac_unique_file; then
  31993. - if test "$ac_srcdir_defaulted" = yes; then
  31994. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  31995. - { (exit 1); exit 1; }; }
  31996. - else
  31997. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  31998. - { (exit 1); exit 1; }; }
  31999. - fi
  32000. -fi
  32001. -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  32002. - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  32003. - { (exit 1); exit 1; }; }
  32004. -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  32005. -ac_env_build_alias_set=${build_alias+set}
  32006. -ac_env_build_alias_value=$build_alias
  32007. -ac_cv_env_build_alias_set=${build_alias+set}
  32008. -ac_cv_env_build_alias_value=$build_alias
  32009. -ac_env_host_alias_set=${host_alias+set}
  32010. -ac_env_host_alias_value=$host_alias
  32011. -ac_cv_env_host_alias_set=${host_alias+set}
  32012. -ac_cv_env_host_alias_value=$host_alias
  32013. -ac_env_target_alias_set=${target_alias+set}
  32014. -ac_env_target_alias_value=$target_alias
  32015. -ac_cv_env_target_alias_set=${target_alias+set}
  32016. -ac_cv_env_target_alias_value=$target_alias
  32017. -ac_env_CC_set=${CC+set}
  32018. -ac_env_CC_value=$CC
  32019. -ac_cv_env_CC_set=${CC+set}
  32020. -ac_cv_env_CC_value=$CC
  32021. -ac_env_CFLAGS_set=${CFLAGS+set}
  32022. -ac_env_CFLAGS_value=$CFLAGS
  32023. -ac_cv_env_CFLAGS_set=${CFLAGS+set}
  32024. -ac_cv_env_CFLAGS_value=$CFLAGS
  32025. -ac_env_LDFLAGS_set=${LDFLAGS+set}
  32026. -ac_env_LDFLAGS_value=$LDFLAGS
  32027. -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  32028. -ac_cv_env_LDFLAGS_value=$LDFLAGS
  32029. -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  32030. -ac_env_CPPFLAGS_value=$CPPFLAGS
  32031. -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  32032. -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  32033. -ac_env_CPP_set=${CPP+set}
  32034. -ac_env_CPP_value=$CPP
  32035. -ac_cv_env_CPP_set=${CPP+set}
  32036. -ac_cv_env_CPP_value=$CPP
  32037. -ac_env_CXX_set=${CXX+set}
  32038. -ac_env_CXX_value=$CXX
  32039. -ac_cv_env_CXX_set=${CXX+set}
  32040. -ac_cv_env_CXX_value=$CXX
  32041. -ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  32042. -ac_env_CXXFLAGS_value=$CXXFLAGS
  32043. -ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  32044. -ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  32045. -ac_env_CXXCPP_set=${CXXCPP+set}
  32046. -ac_env_CXXCPP_value=$CXXCPP
  32047. -ac_cv_env_CXXCPP_set=${CXXCPP+set}
  32048. -ac_cv_env_CXXCPP_value=$CXXCPP
  32049. -ac_env_F77_set=${F77+set}
  32050. -ac_env_F77_value=$F77
  32051. -ac_cv_env_F77_set=${F77+set}
  32052. -ac_cv_env_F77_value=$F77
  32053. -ac_env_FFLAGS_set=${FFLAGS+set}
  32054. -ac_env_FFLAGS_value=$FFLAGS
  32055. -ac_cv_env_FFLAGS_set=${FFLAGS+set}
  32056. -ac_cv_env_FFLAGS_value=$FFLAGS
  32057. +if test ! -r "$srcdir/$ac_unique_file"; then
  32058. + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  32059. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  32060. +fi
  32061. +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  32062. +ac_abs_confdir=`(
  32063. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  32064. + pwd)`
  32065. +# When building in place, set srcdir=.
  32066. +if test "$ac_abs_confdir" = "$ac_pwd"; then
  32067. + srcdir=.
  32068. +fi
  32069. +# Remove unnecessary trailing slashes from srcdir.
  32070. +# Double slashes in file names in object file debugging info
  32071. +# mess up M-x gdb in Emacs.
  32072. +case $srcdir in
  32073. +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  32074. +esac
  32075. +for ac_var in $ac_precious_vars; do
  32076. + eval ac_env_${ac_var}_set=\${${ac_var}+set}
  32077. + eval ac_env_${ac_var}_value=\$${ac_var}
  32078. + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  32079. + eval ac_cv_env_${ac_var}_value=\$${ac_var}
  32080. +done
  32081. #
  32082. # Report the --help message.
  32083. @@ -972,14 +1449,11 @@
  32084. -n, --no-create do not create output files
  32085. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  32086. -_ACEOF
  32087. -
  32088. - cat <<_ACEOF
  32089. Installation directories:
  32090. --prefix=PREFIX install architecture-independent files in PREFIX
  32091. - [$ac_default_prefix]
  32092. + [$ac_default_prefix]
  32093. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  32094. - [PREFIX]
  32095. + [PREFIX]
  32096. By default, \`make install' will install all the files in
  32097. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  32098. @@ -989,18 +1463,25 @@
  32099. For better control, use the options below.
  32100. Fine tuning of the installation directories:
  32101. - --bindir=DIR user executables [EPREFIX/bin]
  32102. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  32103. - --libexecdir=DIR program executables [EPREFIX/libexec]
  32104. - --datadir=DIR read-only architecture-independent data [PREFIX/share]
  32105. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  32106. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  32107. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  32108. - --libdir=DIR object code libraries [EPREFIX/lib]
  32109. - --includedir=DIR C header files [PREFIX/include]
  32110. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  32111. - --infodir=DIR info documentation [PREFIX/info]
  32112. - --mandir=DIR man documentation [PREFIX/man]
  32113. + --bindir=DIR user executables [EPREFIX/bin]
  32114. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  32115. + --libexecdir=DIR program executables [EPREFIX/libexec]
  32116. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  32117. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  32118. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  32119. + --libdir=DIR object code libraries [EPREFIX/lib]
  32120. + --includedir=DIR C header files [PREFIX/include]
  32121. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  32122. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  32123. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  32124. + --infodir=DIR info documentation [DATAROOTDIR/info]
  32125. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  32126. + --mandir=DIR man documentation [DATAROOTDIR/man]
  32127. + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  32128. + --htmldir=DIR html documentation [DOCDIR]
  32129. + --dvidir=DIR dvi documentation [DOCDIR]
  32130. + --pdfdir=DIR pdf documentation [DOCDIR]
  32131. + --psdir=DIR ps documentation [DOCDIR]
  32132. _ACEOF
  32133. cat <<\_ACEOF
  32134. @@ -1021,16 +1502,15 @@
  32135. cat <<\_ACEOF
  32136. Optional Features:
  32137. + --disable-option-checking ignore unrecognized --enable/--with options
  32138. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  32139. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  32140. - --enable-maintainer-mode enable make rules and dependencies not useful
  32141. - (and sometimes confusing) to the casual installer
  32142. - --disable-dependency-tracking Speeds up one-time builds
  32143. - --enable-dependency-tracking Do not reject slow dependency extractors
  32144. - --enable-shared[=PKGS]
  32145. - build shared libraries [default=yes]
  32146. - --enable-static[=PKGS]
  32147. - build static libraries [default=yes]
  32148. + --enable-maintainer-mode enable make rules and dependencies not useful
  32149. + (and sometimes confusing) to the casual installer
  32150. + --disable-dependency-tracking speeds up one-time build
  32151. + --enable-dependency-tracking do not reject slow dependency extractors
  32152. + --enable-shared[=PKGS] build shared libraries [default=yes]
  32153. + --enable-static[=PKGS] build static libraries [default=yes]
  32154. --enable-fast-install[=PKGS]
  32155. optimize for fast installation [default=yes]
  32156. --disable-libtool-lock avoid locking (might break parallel builds)
  32157. @@ -1038,11 +1518,9 @@
  32158. Optional Packages:
  32159. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  32160. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  32161. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  32162. --with-pic try to use only PIC/non-PIC objects [default=use
  32163. both]
  32164. - --with-tags[=TAGS]
  32165. - include additional configurations [automatic]
  32166. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  32167. --with-python=DIR build Python module (using python in DIR)
  32168. --with-wpdpack=DIR use WinPcap developer's pack in DIR
  32169. --with-check=DIR use Check (http://check.sf.net) in DIR
  32170. @@ -1052,131 +1530,503 @@
  32171. CFLAGS C compiler flags
  32172. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  32173. nonstandard directory <lib dir>
  32174. - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  32175. - headers in a nonstandard directory <include dir>
  32176. + LIBS libraries to pass to the linker, e.g. -l<library>
  32177. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  32178. + you have headers in a nonstandard directory <include dir>
  32179. CPP C preprocessor
  32180. - CXX C++ compiler command
  32181. - CXXFLAGS C++ compiler flags
  32182. - CXXCPP C++ preprocessor
  32183. - F77 Fortran 77 compiler command
  32184. - FFLAGS Fortran 77 compiler flags
  32185. Use these variables to override the choices made by `configure' or to help
  32186. it to find libraries and programs with nonstandard names/locations.
  32187. +Report bugs to the package provider.
  32188. _ACEOF
  32189. +ac_status=$?
  32190. fi
  32191. if test "$ac_init_help" = "recursive"; then
  32192. # If there are subdirs, report their specific --help.
  32193. - ac_popdir=`pwd`
  32194. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  32195. - test -d $ac_dir || continue
  32196. + test -d "$ac_dir" ||
  32197. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  32198. + continue
  32199. ac_builddir=.
  32200. -if test "$ac_dir" != .; then
  32201. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  32202. - # A "../" for each directory in $ac_dir_suffix.
  32203. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  32204. -else
  32205. - ac_dir_suffix= ac_top_builddir=
  32206. -fi
  32207. +case "$ac_dir" in
  32208. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  32209. +*)
  32210. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  32211. + # A ".." for each directory in $ac_dir_suffix.
  32212. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  32213. + case $ac_top_builddir_sub in
  32214. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  32215. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  32216. + esac ;;
  32217. +esac
  32218. +ac_abs_top_builddir=$ac_pwd
  32219. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  32220. +# for backward compatibility:
  32221. +ac_top_builddir=$ac_top_build_prefix
  32222. case $srcdir in
  32223. - .) # No --srcdir option. We are building in place.
  32224. + .) # We are building in place.
  32225. ac_srcdir=.
  32226. - if test -z "$ac_top_builddir"; then
  32227. - ac_top_srcdir=.
  32228. - else
  32229. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  32230. - fi ;;
  32231. - [\\/]* | ?:[\\/]* ) # Absolute path.
  32232. + ac_top_srcdir=$ac_top_builddir_sub
  32233. + ac_abs_top_srcdir=$ac_pwd ;;
  32234. + [\\/]* | ?:[\\/]* ) # Absolute name.
  32235. ac_srcdir=$srcdir$ac_dir_suffix;
  32236. - ac_top_srcdir=$srcdir ;;
  32237. - *) # Relative path.
  32238. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  32239. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  32240. -esac
  32241. -
  32242. -# Do not use `cd foo && pwd` to compute absolute paths, because
  32243. -# the directories may not exist.
  32244. -case `pwd` in
  32245. -.) ac_abs_builddir="$ac_dir";;
  32246. -*)
  32247. - case "$ac_dir" in
  32248. - .) ac_abs_builddir=`pwd`;;
  32249. - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  32250. - *) ac_abs_builddir=`pwd`/"$ac_dir";;
  32251. - esac;;
  32252. -esac
  32253. -case $ac_abs_builddir in
  32254. -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  32255. -*)
  32256. - case ${ac_top_builddir}. in
  32257. - .) ac_abs_top_builddir=$ac_abs_builddir;;
  32258. - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  32259. - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  32260. - esac;;
  32261. -esac
  32262. -case $ac_abs_builddir in
  32263. -.) ac_abs_srcdir=$ac_srcdir;;
  32264. -*)
  32265. - case $ac_srcdir in
  32266. - .) ac_abs_srcdir=$ac_abs_builddir;;
  32267. - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  32268. - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  32269. - esac;;
  32270. -esac
  32271. -case $ac_abs_builddir in
  32272. -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  32273. -*)
  32274. - case $ac_top_srcdir in
  32275. - .) ac_abs_top_srcdir=$ac_abs_builddir;;
  32276. - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  32277. - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  32278. - esac;;
  32279. -esac
  32280. -
  32281. - cd $ac_dir
  32282. - # Check for guested configure; otherwise get Cygnus style configure.
  32283. - if test -f $ac_srcdir/configure.gnu; then
  32284. - echo
  32285. - $SHELL $ac_srcdir/configure.gnu --help=recursive
  32286. - elif test -f $ac_srcdir/configure; then
  32287. - echo
  32288. - $SHELL $ac_srcdir/configure --help=recursive
  32289. - elif test -f $ac_srcdir/configure.ac ||
  32290. - test -f $ac_srcdir/configure.in; then
  32291. - echo
  32292. - $ac_configure --help
  32293. + ac_top_srcdir=$srcdir
  32294. + ac_abs_top_srcdir=$srcdir ;;
  32295. + *) # Relative name.
  32296. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  32297. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  32298. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  32299. +esac
  32300. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  32301. +
  32302. + cd "$ac_dir" || { ac_status=$?; continue; }
  32303. + # Check for guested configure.
  32304. + if test -f "$ac_srcdir/configure.gnu"; then
  32305. + echo &&
  32306. + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  32307. + elif test -f "$ac_srcdir/configure"; then
  32308. + echo &&
  32309. + $SHELL "$ac_srcdir/configure" --help=recursive
  32310. else
  32311. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  32312. - fi
  32313. - cd $ac_popdir
  32314. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  32315. + fi || ac_status=$?
  32316. + cd "$ac_pwd" || { ac_status=$?; break; }
  32317. done
  32318. fi
  32319. -test -n "$ac_init_help" && exit 0
  32320. +test -n "$ac_init_help" && exit $ac_status
  32321. if $ac_init_version; then
  32322. cat <<\_ACEOF
  32323. +configure
  32324. +generated by GNU Autoconf 2.65
  32325. -Copyright (C) 2003 Free Software Foundation, Inc.
  32326. +Copyright (C) 2009 Free Software Foundation, Inc.
  32327. This configure script is free software; the Free Software Foundation
  32328. gives unlimited permission to copy, distribute and modify it.
  32329. _ACEOF
  32330. - exit 0
  32331. + exit
  32332. fi
  32333. -exec 5>config.log
  32334. -cat >&5 <<_ACEOF
  32335. -This file contains any messages produced by compilers while
  32336. -running configure, to aid debugging if configure makes a mistake.
  32337. -
  32338. -It was created by $as_me, which was
  32339. -generated by GNU Autoconf 2.59. Invocation command line was
  32340. - $ $0 $@
  32341. +## ------------------------ ##
  32342. +## Autoconf initialization. ##
  32343. +## ------------------------ ##
  32344. +
  32345. +# ac_fn_c_try_compile LINENO
  32346. +# --------------------------
  32347. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  32348. +ac_fn_c_try_compile ()
  32349. +{
  32350. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  32351. + rm -f conftest.$ac_objext
  32352. + if { { ac_try="$ac_compile"
  32353. +case "(($ac_try" in
  32354. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32355. + *) ac_try_echo=$ac_try;;
  32356. +esac
  32357. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  32358. +$as_echo "$ac_try_echo"; } >&5
  32359. + (eval "$ac_compile") 2>conftest.err
  32360. + ac_status=$?
  32361. + if test -s conftest.err; then
  32362. + grep -v '^ *+' conftest.err >conftest.er1
  32363. + cat conftest.er1 >&5
  32364. + mv -f conftest.er1 conftest.err
  32365. + fi
  32366. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  32367. + test $ac_status = 0; } && {
  32368. + test -z "$ac_c_werror_flag" ||
  32369. + test ! -s conftest.err
  32370. + } && test -s conftest.$ac_objext; then :
  32371. + ac_retval=0
  32372. +else
  32373. + $as_echo "$as_me: failed program was:" >&5
  32374. +sed 's/^/| /' conftest.$ac_ext >&5
  32375. +
  32376. + ac_retval=1
  32377. +fi
  32378. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  32379. + as_fn_set_status $ac_retval
  32380. +
  32381. +} # ac_fn_c_try_compile
  32382. +
  32383. +# ac_fn_c_try_link LINENO
  32384. +# -----------------------
  32385. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  32386. +ac_fn_c_try_link ()
  32387. +{
  32388. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  32389. + rm -f conftest.$ac_objext conftest$ac_exeext
  32390. + if { { ac_try="$ac_link"
  32391. +case "(($ac_try" in
  32392. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32393. + *) ac_try_echo=$ac_try;;
  32394. +esac
  32395. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  32396. +$as_echo "$ac_try_echo"; } >&5
  32397. + (eval "$ac_link") 2>conftest.err
  32398. + ac_status=$?
  32399. + if test -s conftest.err; then
  32400. + grep -v '^ *+' conftest.err >conftest.er1
  32401. + cat conftest.er1 >&5
  32402. + mv -f conftest.er1 conftest.err
  32403. + fi
  32404. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  32405. + test $ac_status = 0; } && {
  32406. + test -z "$ac_c_werror_flag" ||
  32407. + test ! -s conftest.err
  32408. + } && test -s conftest$ac_exeext && {
  32409. + test "$cross_compiling" = yes ||
  32410. + $as_test_x conftest$ac_exeext
  32411. + }; then :
  32412. + ac_retval=0
  32413. +else
  32414. + $as_echo "$as_me: failed program was:" >&5
  32415. +sed 's/^/| /' conftest.$ac_ext >&5
  32416. +
  32417. + ac_retval=1
  32418. +fi
  32419. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  32420. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  32421. + # interfere with the next link command; also delete a directory that is
  32422. + # left behind by Apple's compiler. We do this before executing the actions.
  32423. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  32424. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  32425. + as_fn_set_status $ac_retval
  32426. +
  32427. +} # ac_fn_c_try_link
  32428. +
  32429. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  32430. +# -------------------------------------------------------
  32431. +# Tests whether HEADER exists and can be compiled using the include files in
  32432. +# INCLUDES, setting the cache variable VAR accordingly.
  32433. +ac_fn_c_check_header_compile ()
  32434. +{
  32435. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  32436. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  32437. +$as_echo_n "checking for $2... " >&6; }
  32438. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  32439. + $as_echo_n "(cached) " >&6
  32440. +else
  32441. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32442. +/* end confdefs.h. */
  32443. +$4
  32444. +#include <$2>
  32445. +_ACEOF
  32446. +if ac_fn_c_try_compile "$LINENO"; then :
  32447. + eval "$3=yes"
  32448. +else
  32449. + eval "$3=no"
  32450. +fi
  32451. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32452. +fi
  32453. +eval ac_res=\$$3
  32454. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  32455. +$as_echo "$ac_res" >&6; }
  32456. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  32457. +
  32458. +} # ac_fn_c_check_header_compile
  32459. +
  32460. +# ac_fn_c_try_cpp LINENO
  32461. +# ----------------------
  32462. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  32463. +ac_fn_c_try_cpp ()
  32464. +{
  32465. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  32466. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  32467. +case "(($ac_try" in
  32468. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32469. + *) ac_try_echo=$ac_try;;
  32470. +esac
  32471. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  32472. +$as_echo "$ac_try_echo"; } >&5
  32473. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  32474. + ac_status=$?
  32475. + if test -s conftest.err; then
  32476. + grep -v '^ *+' conftest.err >conftest.er1
  32477. + cat conftest.er1 >&5
  32478. + mv -f conftest.er1 conftest.err
  32479. + fi
  32480. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  32481. + test $ac_status = 0; } >/dev/null && {
  32482. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  32483. + test ! -s conftest.err
  32484. + }; then :
  32485. + ac_retval=0
  32486. +else
  32487. + $as_echo "$as_me: failed program was:" >&5
  32488. +sed 's/^/| /' conftest.$ac_ext >&5
  32489. +
  32490. + ac_retval=1
  32491. +fi
  32492. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  32493. + as_fn_set_status $ac_retval
  32494. +
  32495. +} # ac_fn_c_try_cpp
  32496. +
  32497. +# ac_fn_c_try_run LINENO
  32498. +# ----------------------
  32499. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  32500. +# that executables *can* be run.
  32501. +ac_fn_c_try_run ()
  32502. +{
  32503. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  32504. + if { { ac_try="$ac_link"
  32505. +case "(($ac_try" in
  32506. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32507. + *) ac_try_echo=$ac_try;;
  32508. +esac
  32509. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  32510. +$as_echo "$ac_try_echo"; } >&5
  32511. + (eval "$ac_link") 2>&5
  32512. + ac_status=$?
  32513. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  32514. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  32515. + { { case "(($ac_try" in
  32516. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32517. + *) ac_try_echo=$ac_try;;
  32518. +esac
  32519. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  32520. +$as_echo "$ac_try_echo"; } >&5
  32521. + (eval "$ac_try") 2>&5
  32522. + ac_status=$?
  32523. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  32524. + test $ac_status = 0; }; }; then :
  32525. + ac_retval=0
  32526. +else
  32527. + $as_echo "$as_me: program exited with status $ac_status" >&5
  32528. + $as_echo "$as_me: failed program was:" >&5
  32529. +sed 's/^/| /' conftest.$ac_ext >&5
  32530. +
  32531. + ac_retval=$ac_status
  32532. +fi
  32533. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  32534. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  32535. + as_fn_set_status $ac_retval
  32536. +
  32537. +} # ac_fn_c_try_run
  32538. +
  32539. +# ac_fn_c_check_func LINENO FUNC VAR
  32540. +# ----------------------------------
  32541. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  32542. +ac_fn_c_check_func ()
  32543. +{
  32544. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  32545. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  32546. +$as_echo_n "checking for $2... " >&6; }
  32547. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  32548. + $as_echo_n "(cached) " >&6
  32549. +else
  32550. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32551. +/* end confdefs.h. */
  32552. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  32553. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  32554. +#define $2 innocuous_$2
  32555. +
  32556. +/* System header to define __stub macros and hopefully few prototypes,
  32557. + which can conflict with char $2 (); below.
  32558. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  32559. + <limits.h> exists even on freestanding compilers. */
  32560. +
  32561. +#ifdef __STDC__
  32562. +# include <limits.h>
  32563. +#else
  32564. +# include <assert.h>
  32565. +#endif
  32566. +
  32567. +#undef $2
  32568. +
  32569. +/* Override any GCC internal prototype to avoid an error.
  32570. + Use char because int might match the return type of a GCC
  32571. + builtin and then its argument prototype would still apply. */
  32572. +#ifdef __cplusplus
  32573. +extern "C"
  32574. +#endif
  32575. +char $2 ();
  32576. +/* The GNU C library defines this for functions which it implements
  32577. + to always fail with ENOSYS. Some functions are actually named
  32578. + something starting with __ and the normal name is an alias. */
  32579. +#if defined __stub_$2 || defined __stub___$2
  32580. +choke me
  32581. +#endif
  32582. +
  32583. +int
  32584. +main ()
  32585. +{
  32586. +return $2 ();
  32587. + ;
  32588. + return 0;
  32589. +}
  32590. +_ACEOF
  32591. +if ac_fn_c_try_link "$LINENO"; then :
  32592. + eval "$3=yes"
  32593. +else
  32594. + eval "$3=no"
  32595. +fi
  32596. +rm -f core conftest.err conftest.$ac_objext \
  32597. + conftest$ac_exeext conftest.$ac_ext
  32598. +fi
  32599. +eval ac_res=\$$3
  32600. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  32601. +$as_echo "$ac_res" >&6; }
  32602. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  32603. +
  32604. +} # ac_fn_c_check_func
  32605. +
  32606. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  32607. +# -------------------------------------------------------
  32608. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  32609. +# the include files in INCLUDES and setting the cache variable VAR
  32610. +# accordingly.
  32611. +ac_fn_c_check_header_mongrel ()
  32612. +{
  32613. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  32614. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  32615. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  32616. +$as_echo_n "checking for $2... " >&6; }
  32617. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  32618. + $as_echo_n "(cached) " >&6
  32619. +fi
  32620. +eval ac_res=\$$3
  32621. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  32622. +$as_echo "$ac_res" >&6; }
  32623. +else
  32624. + # Is the header compilable?
  32625. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  32626. +$as_echo_n "checking $2 usability... " >&6; }
  32627. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32628. +/* end confdefs.h. */
  32629. +$4
  32630. +#include <$2>
  32631. +_ACEOF
  32632. +if ac_fn_c_try_compile "$LINENO"; then :
  32633. + ac_header_compiler=yes
  32634. +else
  32635. + ac_header_compiler=no
  32636. +fi
  32637. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32638. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  32639. +$as_echo "$ac_header_compiler" >&6; }
  32640. +
  32641. +# Is the header present?
  32642. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  32643. +$as_echo_n "checking $2 presence... " >&6; }
  32644. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32645. +/* end confdefs.h. */
  32646. +#include <$2>
  32647. +_ACEOF
  32648. +if ac_fn_c_try_cpp "$LINENO"; then :
  32649. + ac_header_preproc=yes
  32650. +else
  32651. + ac_header_preproc=no
  32652. +fi
  32653. +rm -f conftest.err conftest.$ac_ext
  32654. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  32655. +$as_echo "$ac_header_preproc" >&6; }
  32656. +
  32657. +# So? What about this header?
  32658. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  32659. + yes:no: )
  32660. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  32661. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  32662. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  32663. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  32664. + ;;
  32665. + no:yes:* )
  32666. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  32667. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  32668. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  32669. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  32670. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  32671. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  32672. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  32673. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  32674. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  32675. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  32676. + ;;
  32677. +esac
  32678. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  32679. +$as_echo_n "checking for $2... " >&6; }
  32680. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  32681. + $as_echo_n "(cached) " >&6
  32682. +else
  32683. + eval "$3=\$ac_header_compiler"
  32684. +fi
  32685. +eval ac_res=\$$3
  32686. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  32687. +$as_echo "$ac_res" >&6; }
  32688. +fi
  32689. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  32690. +
  32691. +} # ac_fn_c_check_header_mongrel
  32692. +
  32693. +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  32694. +# -------------------------------------------
  32695. +# Tests whether TYPE exists after having included INCLUDES, setting cache
  32696. +# variable VAR accordingly.
  32697. +ac_fn_c_check_type ()
  32698. +{
  32699. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  32700. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  32701. +$as_echo_n "checking for $2... " >&6; }
  32702. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  32703. + $as_echo_n "(cached) " >&6
  32704. +else
  32705. + eval "$3=no"
  32706. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32707. +/* end confdefs.h. */
  32708. +$4
  32709. +int
  32710. +main ()
  32711. +{
  32712. +if (sizeof ($2))
  32713. + return 0;
  32714. + ;
  32715. + return 0;
  32716. +}
  32717. +_ACEOF
  32718. +if ac_fn_c_try_compile "$LINENO"; then :
  32719. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32720. +/* end confdefs.h. */
  32721. +$4
  32722. +int
  32723. +main ()
  32724. +{
  32725. +if (sizeof (($2)))
  32726. + return 0;
  32727. + ;
  32728. + return 0;
  32729. +}
  32730. +_ACEOF
  32731. +if ac_fn_c_try_compile "$LINENO"; then :
  32732. +
  32733. +else
  32734. + eval "$3=yes"
  32735. +fi
  32736. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32737. +fi
  32738. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32739. +fi
  32740. +eval ac_res=\$$3
  32741. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  32742. +$as_echo "$ac_res" >&6; }
  32743. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  32744. +
  32745. +} # ac_fn_c_check_type
  32746. +cat >config.log <<_ACEOF
  32747. +This file contains any messages produced by compilers while
  32748. +running configure, to aid debugging if configure makes a mistake.
  32749. +
  32750. +It was created by $as_me, which was
  32751. +generated by GNU Autoconf 2.65. Invocation command line was
  32752. +
  32753. + $ $0 $@
  32754. _ACEOF
  32755. +exec 5>>config.log
  32756. {
  32757. cat <<_ASUNAME
  32758. ## --------- ##
  32759. @@ -1195,7 +2045,7 @@
  32760. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  32761. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  32762. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  32763. -hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  32764. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  32765. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  32766. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  32767. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  32768. @@ -1207,8 +2057,9 @@
  32769. do
  32770. IFS=$as_save_IFS
  32771. test -z "$as_dir" && as_dir=.
  32772. - echo "PATH: $as_dir"
  32773. -done
  32774. + $as_echo "PATH: $as_dir"
  32775. + done
  32776. +IFS=$as_save_IFS
  32777. } >&5
  32778. @@ -1230,7 +2081,6 @@
  32779. ac_configure_args=
  32780. ac_configure_args0=
  32781. ac_configure_args1=
  32782. -ac_sep=
  32783. ac_must_keep_next=false
  32784. for ac_pass in 1 2
  32785. do
  32786. @@ -1241,13 +2091,13 @@
  32787. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  32788. | -silent | --silent | --silen | --sile | --sil)
  32789. continue ;;
  32790. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  32791. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  32792. + *\'*)
  32793. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  32794. esac
  32795. case $ac_pass in
  32796. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  32797. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  32798. 2)
  32799. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  32800. + as_fn_append ac_configure_args1 " '$ac_arg'"
  32801. if test $ac_must_keep_next = true; then
  32802. ac_must_keep_next=false # Got value, back to normal.
  32803. else
  32804. @@ -1263,21 +2113,19 @@
  32805. -* ) ac_must_keep_next=true ;;
  32806. esac
  32807. fi
  32808. - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  32809. - # Get rid of the leading space.
  32810. - ac_sep=" "
  32811. + as_fn_append ac_configure_args " '$ac_arg'"
  32812. ;;
  32813. esac
  32814. done
  32815. done
  32816. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  32817. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  32818. +{ ac_configure_args0=; unset ac_configure_args0;}
  32819. +{ ac_configure_args1=; unset ac_configure_args1;}
  32820. # When interrupted or exit'd, cleanup temporary files, and complete
  32821. # config.log. We remove comments because anyway the quotes in there
  32822. # would cause problems or look ugly.
  32823. -# WARNING: Be sure not to use single quotes in there, as some shells,
  32824. -# such as our DU 5.0 friend, will then `close' the trap.
  32825. +# WARNING: Use '\'' to represent an apostrophe within the trap.
  32826. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  32827. trap 'exit_status=$?
  32828. # Save into config.log some information that might help in debugging.
  32829. {
  32830. @@ -1290,20 +2138,35 @@
  32831. _ASBOX
  32832. echo
  32833. # The following way of writing the cache mishandles newlines in values,
  32834. -{
  32835. +(
  32836. + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  32837. + eval ac_val=\$$ac_var
  32838. + case $ac_val in #(
  32839. + *${as_nl}*)
  32840. + case $ac_var in #(
  32841. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  32842. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  32843. + esac
  32844. + case $ac_var in #(
  32845. + _ | IFS | as_nl) ;; #(
  32846. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  32847. + *) { eval $ac_var=; unset $ac_var;} ;;
  32848. + esac ;;
  32849. + esac
  32850. + done
  32851. (set) 2>&1 |
  32852. - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  32853. - *ac_space=\ *)
  32854. + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  32855. + *${as_nl}ac_space=\ *)
  32856. sed -n \
  32857. - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  32858. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  32859. - ;;
  32860. + "s/'\''/'\''\\\\'\'''\''/g;
  32861. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  32862. + ;; #(
  32863. *)
  32864. - sed -n \
  32865. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  32866. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  32867. ;;
  32868. - esac;
  32869. -}
  32870. + esac |
  32871. + sort
  32872. +)
  32873. echo
  32874. cat <<\_ASBOX
  32875. @@ -1314,22 +2177,28 @@
  32876. echo
  32877. for ac_var in $ac_subst_vars
  32878. do
  32879. - eval ac_val=$`echo $ac_var`
  32880. - echo "$ac_var='"'"'$ac_val'"'"'"
  32881. + eval ac_val=\$$ac_var
  32882. + case $ac_val in
  32883. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  32884. + esac
  32885. + $as_echo "$ac_var='\''$ac_val'\''"
  32886. done | sort
  32887. echo
  32888. if test -n "$ac_subst_files"; then
  32889. cat <<\_ASBOX
  32890. -## ------------- ##
  32891. -## Output files. ##
  32892. -## ------------- ##
  32893. +## ------------------- ##
  32894. +## File substitutions. ##
  32895. +## ------------------- ##
  32896. _ASBOX
  32897. echo
  32898. for ac_var in $ac_subst_files
  32899. do
  32900. - eval ac_val=$`echo $ac_var`
  32901. - echo "$ac_var='"'"'$ac_val'"'"'"
  32902. + eval ac_val=\$$ac_var
  32903. + case $ac_val in
  32904. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  32905. + esac
  32906. + $as_echo "$ac_var='\''$ac_val'\''"
  32907. done | sort
  32908. echo
  32909. fi
  32910. @@ -1341,26 +2210,26 @@
  32911. ## ----------- ##
  32912. _ASBOX
  32913. echo
  32914. - sed "/^$/d" confdefs.h | sort
  32915. + cat confdefs.h
  32916. echo
  32917. fi
  32918. test "$ac_signal" != 0 &&
  32919. - echo "$as_me: caught signal $ac_signal"
  32920. - echo "$as_me: exit $exit_status"
  32921. + $as_echo "$as_me: caught signal $ac_signal"
  32922. + $as_echo "$as_me: exit $exit_status"
  32923. } >&5
  32924. - rm -f core *.core &&
  32925. - rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  32926. + rm -f core *.core core.conftest.* &&
  32927. + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  32928. exit $exit_status
  32929. - ' 0
  32930. +' 0
  32931. for ac_signal in 1 2 13 15; do
  32932. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  32933. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  32934. done
  32935. ac_signal=0
  32936. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  32937. -rm -rf conftest* confdefs.h
  32938. -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  32939. -echo >confdefs.h
  32940. +rm -f -r conftest* confdefs.h
  32941. +
  32942. +$as_echo "/* confdefs.h */" > confdefs.h
  32943. # Predefined preprocessor variables.
  32944. @@ -1368,112 +2237,128 @@
  32945. #define PACKAGE_NAME "$PACKAGE_NAME"
  32946. _ACEOF
  32947. -
  32948. cat >>confdefs.h <<_ACEOF
  32949. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  32950. _ACEOF
  32951. -
  32952. cat >>confdefs.h <<_ACEOF
  32953. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  32954. _ACEOF
  32955. -
  32956. cat >>confdefs.h <<_ACEOF
  32957. #define PACKAGE_STRING "$PACKAGE_STRING"
  32958. _ACEOF
  32959. -
  32960. cat >>confdefs.h <<_ACEOF
  32961. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  32962. _ACEOF
  32963. +cat >>confdefs.h <<_ACEOF
  32964. +#define PACKAGE_URL "$PACKAGE_URL"
  32965. +_ACEOF
  32966. +
  32967. # Let the site file select an alternate cache file if it wants to.
  32968. -# Prefer explicitly selected file to automatically selected ones.
  32969. -if test -z "$CONFIG_SITE"; then
  32970. - if test "x$prefix" != xNONE; then
  32971. - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  32972. - else
  32973. - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  32974. - fi
  32975. -fi
  32976. -for ac_site_file in $CONFIG_SITE; do
  32977. - if test -r "$ac_site_file"; then
  32978. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  32979. -echo "$as_me: loading site script $ac_site_file" >&6;}
  32980. +# Prefer an explicitly selected file to automatically selected ones.
  32981. +ac_site_file1=NONE
  32982. +ac_site_file2=NONE
  32983. +if test -n "$CONFIG_SITE"; then
  32984. + ac_site_file1=$CONFIG_SITE
  32985. +elif test "x$prefix" != xNONE; then
  32986. + ac_site_file1=$prefix/share/config.site
  32987. + ac_site_file2=$prefix/etc/config.site
  32988. +else
  32989. + ac_site_file1=$ac_default_prefix/share/config.site
  32990. + ac_site_file2=$ac_default_prefix/etc/config.site
  32991. +fi
  32992. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  32993. +do
  32994. + test "x$ac_site_file" = xNONE && continue
  32995. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  32996. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  32997. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  32998. sed 's/^/| /' "$ac_site_file" >&5
  32999. . "$ac_site_file"
  33000. fi
  33001. done
  33002. if test -r "$cache_file"; then
  33003. - # Some versions of bash will fail to source /dev/null (special
  33004. - # files actually), so we avoid doing that.
  33005. - if test -f "$cache_file"; then
  33006. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  33007. -echo "$as_me: loading cache $cache_file" >&6;}
  33008. + # Some versions of bash will fail to source /dev/null (special files
  33009. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  33010. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  33011. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  33012. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  33013. case $cache_file in
  33014. - [\\/]* | ?:[\\/]* ) . $cache_file;;
  33015. - *) . ./$cache_file;;
  33016. + [\\/]* | ?:[\\/]* ) . "$cache_file";;
  33017. + *) . "./$cache_file";;
  33018. esac
  33019. fi
  33020. else
  33021. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  33022. -echo "$as_me: creating cache $cache_file" >&6;}
  33023. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  33024. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  33025. >$cache_file
  33026. fi
  33027. # Check that the precious variables saved in the cache have kept the same
  33028. # value.
  33029. ac_cache_corrupted=false
  33030. -for ac_var in `(set) 2>&1 |
  33031. - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  33032. +for ac_var in $ac_precious_vars; do
  33033. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  33034. eval ac_new_set=\$ac_env_${ac_var}_set
  33035. - eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  33036. - eval ac_new_val="\$ac_env_${ac_var}_value"
  33037. + eval ac_old_val=\$ac_cv_env_${ac_var}_value
  33038. + eval ac_new_val=\$ac_env_${ac_var}_value
  33039. case $ac_old_set,$ac_new_set in
  33040. set,)
  33041. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  33042. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  33043. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  33044. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  33045. ac_cache_corrupted=: ;;
  33046. ,set)
  33047. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  33048. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  33049. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  33050. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  33051. ac_cache_corrupted=: ;;
  33052. ,);;
  33053. *)
  33054. if test "x$ac_old_val" != "x$ac_new_val"; then
  33055. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  33056. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  33057. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  33058. -echo "$as_me: former value: $ac_old_val" >&2;}
  33059. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  33060. -echo "$as_me: current value: $ac_new_val" >&2;}
  33061. - ac_cache_corrupted=:
  33062. + # differences in whitespace do not lead to failure.
  33063. + ac_old_val_w=`echo x $ac_old_val`
  33064. + ac_new_val_w=`echo x $ac_new_val`
  33065. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  33066. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  33067. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  33068. + ac_cache_corrupted=:
  33069. + else
  33070. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  33071. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  33072. + eval $ac_var=\$ac_old_val
  33073. + fi
  33074. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  33075. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  33076. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  33077. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  33078. fi;;
  33079. esac
  33080. # Pass precious variables to config.status.
  33081. if test "$ac_new_set" = set; then
  33082. case $ac_new_val in
  33083. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  33084. - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  33085. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  33086. *) ac_arg=$ac_var=$ac_new_val ;;
  33087. esac
  33088. case " $ac_configure_args " in
  33089. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  33090. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  33091. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  33092. esac
  33093. fi
  33094. done
  33095. if $ac_cache_corrupted; then
  33096. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  33097. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  33098. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  33099. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  33100. - { (exit 1); exit 1; }; }
  33101. -fi
  33102. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  33103. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  33104. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  33105. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  33106. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  33107. +fi
  33108. +## -------------------- ##
  33109. +## Main body of script. ##
  33110. +## -------------------- ##
  33111. ac_ext=c
  33112. ac_cpp='$CPP $CPPFLAGS'
  33113. @@ -1482,51 +2367,33 @@
  33114. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33115. -
  33116. -
  33117. -
  33118. -
  33119. -
  33120. -
  33121. -
  33122. -
  33123. -
  33124. -
  33125. -
  33126. -
  33127. -
  33128. -
  33129. -
  33130. -
  33131. -
  33132. ac_aux_dir=
  33133. -for ac_dir in config $srcdir/config; do
  33134. - if test -f $ac_dir/install-sh; then
  33135. - ac_aux_dir=$ac_dir
  33136. - ac_install_sh="$ac_aux_dir/install-sh -c"
  33137. - break
  33138. - elif test -f $ac_dir/install.sh; then
  33139. - ac_aux_dir=$ac_dir
  33140. - ac_install_sh="$ac_aux_dir/install.sh -c"
  33141. - break
  33142. - elif test -f $ac_dir/shtool; then
  33143. - ac_aux_dir=$ac_dir
  33144. - ac_install_sh="$ac_aux_dir/shtool install -c"
  33145. - break
  33146. - fi
  33147. +for ac_dir in config "$srcdir"/config; do
  33148. + for ac_t in install-sh install.sh shtool; do
  33149. + if test -f "$ac_dir/$ac_t"; then
  33150. + ac_aux_dir=$ac_dir
  33151. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  33152. + break 2
  33153. + fi
  33154. + done
  33155. done
  33156. if test -z "$ac_aux_dir"; then
  33157. - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
  33158. -echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
  33159. - { (exit 1); exit 1; }; }
  33160. + as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
  33161. fi
  33162. -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  33163. -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  33164. -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  33165. +
  33166. +# These three variables are undocumented and unsupported,
  33167. +# and are intended to be withdrawn in a future Autoconf release.
  33168. +# They can cause serious problems if a builder's source tree is in a directory
  33169. +# whose full name contains unusual characters.
  33170. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  33171. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  33172. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  33173. +
  33174. +
  33175. +am__api_version='1.11'
  33176. -am__api_version="1.6"
  33177. # Find a good install program. We prefer a C program (faster),
  33178. # so one script is as good as another. But avoid the broken or
  33179. # incompatible versions:
  33180. @@ -1540,22 +2407,23 @@
  33181. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  33182. # OS/2's system install, which has a completely different semantic
  33183. # ./install, which can be erroneously created by make from ./install.sh.
  33184. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  33185. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  33186. +# Reject install programs that cannot install multiple files.
  33187. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  33188. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  33189. if test -z "$INSTALL"; then
  33190. -if test "${ac_cv_path_install+set}" = set; then
  33191. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33192. +if test "${ac_cv_path_install+set}" = set; then :
  33193. + $as_echo_n "(cached) " >&6
  33194. else
  33195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  33196. for as_dir in $PATH
  33197. do
  33198. IFS=$as_save_IFS
  33199. test -z "$as_dir" && as_dir=.
  33200. - # Account for people who put trailing slashes in PATH elements.
  33201. -case $as_dir/ in
  33202. - ./ | .// | /cC/* | \
  33203. + # Account for people who put trailing slashes in PATH elements.
  33204. +case $as_dir/ in #((
  33205. + ./ | .// | /[cC]/* | \
  33206. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  33207. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  33208. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  33209. /usr/ucb/* ) ;;
  33210. *)
  33211. # OSF1 and SCO ODT 3.0 have their own names for install.
  33212. @@ -1563,7 +2431,7 @@
  33213. # by default.
  33214. for ac_prog in ginstall scoinst install; do
  33215. for ac_exec_ext in '' $ac_executable_extensions; do
  33216. - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  33217. + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  33218. if test $ac_prog = install &&
  33219. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  33220. # AIX install. It has an incompatible calling convention.
  33221. @@ -1573,30 +2441,43 @@
  33222. # program-specific install script used by HP pwplus--don't use.
  33223. :
  33224. else
  33225. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  33226. - break 3
  33227. + rm -rf conftest.one conftest.two conftest.dir
  33228. + echo one > conftest.one
  33229. + echo two > conftest.two
  33230. + mkdir conftest.dir
  33231. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  33232. + test -s conftest.one && test -s conftest.two &&
  33233. + test -s conftest.dir/conftest.one &&
  33234. + test -s conftest.dir/conftest.two
  33235. + then
  33236. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  33237. + break 3
  33238. + fi
  33239. fi
  33240. fi
  33241. done
  33242. done
  33243. ;;
  33244. esac
  33245. -done
  33246. + done
  33247. +IFS=$as_save_IFS
  33248. +
  33249. +rm -rf conftest.one conftest.two conftest.dir
  33250. fi
  33251. if test "${ac_cv_path_install+set}" = set; then
  33252. INSTALL=$ac_cv_path_install
  33253. else
  33254. - # As a last resort, use the slow shell script. We don't cache a
  33255. - # path for INSTALL within a source directory, because that will
  33256. + # As a last resort, use the slow shell script. Don't cache a
  33257. + # value for INSTALL within a source directory, because that will
  33258. # break other packages using the cache if that directory is
  33259. - # removed, or if the path is relative.
  33260. + # removed, or if the value is a relative name.
  33261. INSTALL=$ac_install_sh
  33262. fi
  33263. fi
  33264. -echo "$as_me:$LINENO: result: $INSTALL" >&5
  33265. -echo "${ECHO_T}$INSTALL" >&6
  33266. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  33267. +$as_echo "$INSTALL" >&6; }
  33268. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  33269. # It thinks the first close brace ends the variable substitution.
  33270. @@ -1606,21 +2487,34 @@
  33271. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  33272. -echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  33273. -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  33274. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  33275. +$as_echo_n "checking whether build environment is sane... " >&6; }
  33276. # Just in case
  33277. sleep 1
  33278. echo timestamp > conftest.file
  33279. +# Reject unsafe characters in $srcdir or the absolute working directory
  33280. +# name. Accept space and tab only in the latter.
  33281. +am_lf='
  33282. +'
  33283. +case `pwd` in
  33284. + *[\\\"\#\$\&\'\`$am_lf]*)
  33285. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  33286. +esac
  33287. +case $srcdir in
  33288. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  33289. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  33290. +esac
  33291. +
  33292. # Do `set' in a subshell so we don't clobber the current shell's
  33293. # arguments. Must try -L first in case configure is actually a
  33294. # symlink; some systems play weird games with the mod time of symlinks
  33295. # (eg FreeBSD returns the mod time of the symlink's containing
  33296. # directory).
  33297. if (
  33298. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  33299. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  33300. if test "$*" = "X"; then
  33301. # -L didn't work.
  33302. - set X `ls -t $srcdir/configure conftest.file`
  33303. + set X `ls -t "$srcdir/configure" conftest.file`
  33304. fi
  33305. rm -f conftest.file
  33306. if test "$*" != "X $srcdir/configure conftest.file" \
  33307. @@ -1630,11 +2524,8 @@
  33308. # if, for instance, CONFIG_SHELL is bash and it inherits a
  33309. # broken ls alias from the environment. This has actually
  33310. # happened. Such a system could not be considered "sane".
  33311. - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  33312. -alias in your environment" >&5
  33313. -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  33314. -alias in your environment" >&2;}
  33315. - { (exit 1); exit 1; }; }
  33316. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  33317. +alias in your environment" "$LINENO" 5
  33318. fi
  33319. test "$2" = conftest.file
  33320. @@ -1643,267 +2534,358 @@
  33321. # Ok.
  33322. :
  33323. else
  33324. - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  33325. -Check your system clock" >&5
  33326. -echo "$as_me: error: newly created file is older than distributed files!
  33327. -Check your system clock" >&2;}
  33328. - { (exit 1); exit 1; }; }
  33329. + as_fn_error "newly created file is older than distributed files!
  33330. +Check your system clock" "$LINENO" 5
  33331. fi
  33332. -echo "$as_me:$LINENO: result: yes" >&5
  33333. -echo "${ECHO_T}yes" >&6
  33334. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33335. +$as_echo "yes" >&6; }
  33336. test "$program_prefix" != NONE &&
  33337. - program_transform_name="s,^,$program_prefix,;$program_transform_name"
  33338. + program_transform_name="s&^&$program_prefix&;$program_transform_name"
  33339. # Use a double $ so make ignores it.
  33340. test "$program_suffix" != NONE &&
  33341. - program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  33342. -# Double any \ or $. echo might interpret backslashes.
  33343. + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  33344. +# Double any \ or $.
  33345. # By default was `s,x,x', remove it if useless.
  33346. -cat <<\_ACEOF >conftest.sed
  33347. -s/[\\$]/&&/g;s/;s,x,x,$//
  33348. -_ACEOF
  33349. -program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  33350. -rm conftest.sed
  33351. -
  33352. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  33353. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  33354. # expand $ac_aux_dir to an absolute path
  33355. am_aux_dir=`cd $ac_aux_dir && pwd`
  33356. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  33357. +if test x"${MISSING+set}" != xset; then
  33358. + case $am_aux_dir in
  33359. + *\ * | *\ *)
  33360. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  33361. + *)
  33362. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  33363. + esac
  33364. +fi
  33365. # Use eval to expand $SHELL
  33366. if eval "$MISSING --run true"; then
  33367. am_missing_run="$MISSING --run "
  33368. else
  33369. am_missing_run=
  33370. - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  33371. -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  33372. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  33373. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  33374. fi
  33375. -for ac_prog in gawk mawk nawk awk
  33376. -do
  33377. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  33378. -set dummy $ac_prog; ac_word=$2
  33379. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  33380. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  33381. -if test "${ac_cv_prog_AWK+set}" = set; then
  33382. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33383. +if test x"${install_sh}" != xset; then
  33384. + case $am_aux_dir in
  33385. + *\ * | *\ *)
  33386. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  33387. + *)
  33388. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  33389. + esac
  33390. +fi
  33391. +
  33392. +# Installed binaries are usually stripped using `strip' when the user
  33393. +# run `make install-strip'. However `strip' might not be the right
  33394. +# tool to use in cross-compilation environments, therefore Automake
  33395. +# will honor the `STRIP' environment variable to overrule this program.
  33396. +if test "$cross_compiling" != no; then
  33397. + if test -n "$ac_tool_prefix"; then
  33398. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  33399. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  33400. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  33401. +$as_echo_n "checking for $ac_word... " >&6; }
  33402. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  33403. + $as_echo_n "(cached) " >&6
  33404. else
  33405. - if test -n "$AWK"; then
  33406. - ac_cv_prog_AWK="$AWK" # Let the user override the test.
  33407. + if test -n "$STRIP"; then
  33408. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  33409. else
  33410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  33411. for as_dir in $PATH
  33412. do
  33413. IFS=$as_save_IFS
  33414. test -z "$as_dir" && as_dir=.
  33415. - for ac_exec_ext in '' $ac_executable_extensions; do
  33416. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  33417. - ac_cv_prog_AWK="$ac_prog"
  33418. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  33419. + for ac_exec_ext in '' $ac_executable_extensions; do
  33420. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  33421. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  33422. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  33423. break 2
  33424. fi
  33425. done
  33426. -done
  33427. + done
  33428. +IFS=$as_save_IFS
  33429. fi
  33430. fi
  33431. -AWK=$ac_cv_prog_AWK
  33432. -if test -n "$AWK"; then
  33433. - echo "$as_me:$LINENO: result: $AWK" >&5
  33434. -echo "${ECHO_T}$AWK" >&6
  33435. +STRIP=$ac_cv_prog_STRIP
  33436. +if test -n "$STRIP"; then
  33437. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  33438. +$as_echo "$STRIP" >&6; }
  33439. else
  33440. - echo "$as_me:$LINENO: result: no" >&5
  33441. -echo "${ECHO_T}no" >&6
  33442. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33443. +$as_echo "no" >&6; }
  33444. fi
  33445. - test -n "$AWK" && break
  33446. -done
  33447. -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  33448. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  33449. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  33450. -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  33451. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33452. +fi
  33453. +if test -z "$ac_cv_prog_STRIP"; then
  33454. + ac_ct_STRIP=$STRIP
  33455. + # Extract the first word of "strip", so it can be a program name with args.
  33456. +set dummy strip; ac_word=$2
  33457. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  33458. +$as_echo_n "checking for $ac_word... " >&6; }
  33459. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  33460. + $as_echo_n "(cached) " >&6
  33461. else
  33462. - cat >conftest.make <<\_ACEOF
  33463. -all:
  33464. - @echo 'ac_maketemp="$(MAKE)"'
  33465. -_ACEOF
  33466. -# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  33467. -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  33468. -if test -n "$ac_maketemp"; then
  33469. - eval ac_cv_prog_make_${ac_make}_set=yes
  33470. + if test -n "$ac_ct_STRIP"; then
  33471. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  33472. else
  33473. - eval ac_cv_prog_make_${ac_make}_set=no
  33474. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  33475. +for as_dir in $PATH
  33476. +do
  33477. + IFS=$as_save_IFS
  33478. + test -z "$as_dir" && as_dir=.
  33479. + for ac_exec_ext in '' $ac_executable_extensions; do
  33480. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  33481. + ac_cv_prog_ac_ct_STRIP="strip"
  33482. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  33483. + break 2
  33484. + fi
  33485. +done
  33486. + done
  33487. +IFS=$as_save_IFS
  33488. +
  33489. fi
  33490. -rm -f conftest.make
  33491. fi
  33492. -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  33493. - echo "$as_me:$LINENO: result: yes" >&5
  33494. -echo "${ECHO_T}yes" >&6
  33495. - SET_MAKE=
  33496. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  33497. +if test -n "$ac_ct_STRIP"; then
  33498. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  33499. +$as_echo "$ac_ct_STRIP" >&6; }
  33500. else
  33501. - echo "$as_me:$LINENO: result: no" >&5
  33502. -echo "${ECHO_T}no" >&6
  33503. - SET_MAKE="MAKE=${MAKE-make}"
  33504. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33505. +$as_echo "no" >&6; }
  33506. fi
  33507. - # test to see if srcdir already configured
  33508. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  33509. - test -f $srcdir/config.status; then
  33510. - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  33511. -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  33512. - { (exit 1); exit 1; }; }
  33513. + if test "x$ac_ct_STRIP" = x; then
  33514. + STRIP=":"
  33515. + else
  33516. + case $cross_compiling:$ac_tool_warned in
  33517. +yes:)
  33518. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  33519. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  33520. +ac_tool_warned=yes ;;
  33521. +esac
  33522. + STRIP=$ac_ct_STRIP
  33523. + fi
  33524. +else
  33525. + STRIP="$ac_cv_prog_STRIP"
  33526. fi
  33527. -# Define the identity of the package.
  33528. - PACKAGE=libdnet
  33529. - VERSION=1.11
  33530. -
  33531. -
  33532. -cat >>confdefs.h <<_ACEOF
  33533. -#define PACKAGE "$PACKAGE"
  33534. -_ACEOF
  33535. -
  33536. -
  33537. -cat >>confdefs.h <<_ACEOF
  33538. -#define VERSION "$VERSION"
  33539. -_ACEOF
  33540. -
  33541. -# Some tools Automake needs.
  33542. -
  33543. -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  33544. -
  33545. -
  33546. -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  33547. -
  33548. -
  33549. -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  33550. -
  33551. -
  33552. -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  33553. -
  33554. +fi
  33555. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  33556. -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  33557. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  33558. +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  33559. +if test -z "$MKDIR_P"; then
  33560. + if test "${ac_cv_path_mkdir+set}" = set; then :
  33561. + $as_echo_n "(cached) " >&6
  33562. +else
  33563. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  33564. +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  33565. +do
  33566. + IFS=$as_save_IFS
  33567. + test -z "$as_dir" && as_dir=.
  33568. + for ac_prog in mkdir gmkdir; do
  33569. + for ac_exec_ext in '' $ac_executable_extensions; do
  33570. + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  33571. + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  33572. + 'mkdir (GNU coreutils) '* | \
  33573. + 'mkdir (coreutils) '* | \
  33574. + 'mkdir (fileutils) '4.1*)
  33575. + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  33576. + break 3;;
  33577. + esac
  33578. + done
  33579. + done
  33580. + done
  33581. +IFS=$as_save_IFS
  33582. +fi
  33583. -AMTAR=${AMTAR-"${am_missing_run}tar"}
  33584. + test -d ./--version && rmdir ./--version
  33585. + if test "${ac_cv_path_mkdir+set}" = set; then
  33586. + MKDIR_P="$ac_cv_path_mkdir -p"
  33587. + else
  33588. + # As a last resort, use the slow shell script. Don't cache a
  33589. + # value for MKDIR_P within a source directory, because that will
  33590. + # break other packages using the cache if that directory is
  33591. + # removed, or if the value is a relative name.
  33592. + MKDIR_P="$ac_install_sh -d"
  33593. + fi
  33594. +fi
  33595. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  33596. +$as_echo "$MKDIR_P" >&6; }
  33597. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  33598. +mkdir_p="$MKDIR_P"
  33599. +case $mkdir_p in
  33600. + [\\/$]* | ?:[\\/]*) ;;
  33601. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  33602. +esac
  33603. -# Installed binaries are usually stripped using `strip' when the user
  33604. -# run `make install-strip'. However `strip' might not be the right
  33605. -# tool to use in cross-compilation environments, therefore Automake
  33606. -# will honor the `STRIP' environment variable to overrule this program.
  33607. -if test "$cross_compiling" != no; then
  33608. - if test -n "$ac_tool_prefix"; then
  33609. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  33610. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  33611. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  33612. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  33613. -if test "${ac_cv_prog_STRIP+set}" = set; then
  33614. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33615. +for ac_prog in gawk mawk nawk awk
  33616. +do
  33617. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  33618. +set dummy $ac_prog; ac_word=$2
  33619. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  33620. +$as_echo_n "checking for $ac_word... " >&6; }
  33621. +if test "${ac_cv_prog_AWK+set}" = set; then :
  33622. + $as_echo_n "(cached) " >&6
  33623. else
  33624. - if test -n "$STRIP"; then
  33625. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  33626. + if test -n "$AWK"; then
  33627. + ac_cv_prog_AWK="$AWK" # Let the user override the test.
  33628. else
  33629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  33630. for as_dir in $PATH
  33631. do
  33632. IFS=$as_save_IFS
  33633. test -z "$as_dir" && as_dir=.
  33634. - for ac_exec_ext in '' $ac_executable_extensions; do
  33635. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  33636. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  33637. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  33638. + for ac_exec_ext in '' $ac_executable_extensions; do
  33639. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  33640. + ac_cv_prog_AWK="$ac_prog"
  33641. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  33642. break 2
  33643. fi
  33644. done
  33645. -done
  33646. + done
  33647. +IFS=$as_save_IFS
  33648. fi
  33649. fi
  33650. -STRIP=$ac_cv_prog_STRIP
  33651. -if test -n "$STRIP"; then
  33652. - echo "$as_me:$LINENO: result: $STRIP" >&5
  33653. -echo "${ECHO_T}$STRIP" >&6
  33654. +AWK=$ac_cv_prog_AWK
  33655. +if test -n "$AWK"; then
  33656. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  33657. +$as_echo "$AWK" >&6; }
  33658. else
  33659. - echo "$as_me:$LINENO: result: no" >&5
  33660. -echo "${ECHO_T}no" >&6
  33661. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33662. +$as_echo "no" >&6; }
  33663. fi
  33664. -fi
  33665. -if test -z "$ac_cv_prog_STRIP"; then
  33666. - ac_ct_STRIP=$STRIP
  33667. - # Extract the first word of "strip", so it can be a program name with args.
  33668. -set dummy strip; ac_word=$2
  33669. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  33670. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  33671. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  33672. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33673. -else
  33674. - if test -n "$ac_ct_STRIP"; then
  33675. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  33676. -else
  33677. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  33678. -for as_dir in $PATH
  33679. -do
  33680. - IFS=$as_save_IFS
  33681. - test -z "$as_dir" && as_dir=.
  33682. - for ac_exec_ext in '' $ac_executable_extensions; do
  33683. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  33684. - ac_cv_prog_ac_ct_STRIP="strip"
  33685. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  33686. - break 2
  33687. - fi
  33688. -done
  33689. +
  33690. + test -n "$AWK" && break
  33691. done
  33692. - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  33693. -fi
  33694. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  33695. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  33696. +set x ${MAKE-make}
  33697. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  33698. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  33699. + $as_echo_n "(cached) " >&6
  33700. +else
  33701. + cat >conftest.make <<\_ACEOF
  33702. +SHELL = /bin/sh
  33703. +all:
  33704. + @echo '@@@%%%=$(MAKE)=@@@%%%'
  33705. +_ACEOF
  33706. +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  33707. +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  33708. + *@@@%%%=?*=@@@%%%*)
  33709. + eval ac_cv_prog_make_${ac_make}_set=yes;;
  33710. + *)
  33711. + eval ac_cv_prog_make_${ac_make}_set=no;;
  33712. +esac
  33713. +rm -f conftest.make
  33714. fi
  33715. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  33716. -if test -n "$ac_ct_STRIP"; then
  33717. - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  33718. -echo "${ECHO_T}$ac_ct_STRIP" >&6
  33719. +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  33720. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33721. +$as_echo "yes" >&6; }
  33722. + SET_MAKE=
  33723. else
  33724. - echo "$as_me:$LINENO: result: no" >&5
  33725. -echo "${ECHO_T}no" >&6
  33726. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33727. +$as_echo "no" >&6; }
  33728. + SET_MAKE="MAKE=${MAKE-make}"
  33729. fi
  33730. - STRIP=$ac_ct_STRIP
  33731. +rm -rf .tst 2>/dev/null
  33732. +mkdir .tst 2>/dev/null
  33733. +if test -d .tst; then
  33734. + am__leading_dot=.
  33735. else
  33736. - STRIP="$ac_cv_prog_STRIP"
  33737. + am__leading_dot=_
  33738. +fi
  33739. +rmdir .tst 2>/dev/null
  33740. +
  33741. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  33742. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  33743. + # is not polluted with repeated "-I."
  33744. + am__isrc=' -I$(srcdir)'
  33745. + # test to see if srcdir already configured
  33746. + if test -f $srcdir/config.status; then
  33747. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  33748. + fi
  33749. fi
  33750. +# test whether we have cygpath
  33751. +if test -z "$CYGPATH_W"; then
  33752. + if (cygpath --version) >/dev/null 2>/dev/null; then
  33753. + CYGPATH_W='cygpath -w'
  33754. + else
  33755. + CYGPATH_W=echo
  33756. + fi
  33757. fi
  33758. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  33759. +
  33760. +
  33761. +# Define the identity of the package.
  33762. + PACKAGE=libdnet
  33763. + VERSION=1.11
  33764. +
  33765. +
  33766. +cat >>confdefs.h <<_ACEOF
  33767. +#define PACKAGE "$PACKAGE"
  33768. +_ACEOF
  33769. +
  33770. +
  33771. +cat >>confdefs.h <<_ACEOF
  33772. +#define VERSION "$VERSION"
  33773. +_ACEOF
  33774. +
  33775. +# Some tools Automake needs.
  33776. +
  33777. +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  33778. +
  33779. +
  33780. +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  33781. +
  33782. +
  33783. +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  33784. +
  33785. +
  33786. +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  33787. +
  33788. +
  33789. +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  33790. # We need awk for the "check" target. The system "awk" is bad on
  33791. # some platforms.
  33792. +# Always define AMTAR for backward compatibility.
  33793. +
  33794. +AMTAR=${AMTAR-"${am_missing_run}tar"}
  33795. +
  33796. +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  33797. -# Add the stamp file to the list of files AC keeps track of,
  33798. -# along with our hook.
  33799. - ac_config_headers="$ac_config_headers include/config.h"
  33800. +ac_config_headers="$ac_config_headers include/config.h"
  33801. -echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  33802. -echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  33803. - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  33804. -if test "${enable_maintainer_mode+set}" = set; then
  33805. - enableval="$enable_maintainer_mode"
  33806. - USE_MAINTAINER_MODE=$enableval
  33807. +
  33808. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  33809. +$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  33810. + # Check whether --enable-maintainer-mode was given.
  33811. +if test "${enable_maintainer_mode+set}" = set; then :
  33812. + enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  33813. else
  33814. USE_MAINTAINER_MODE=no
  33815. -fi;
  33816. - echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  33817. -echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  33818. -
  33819. +fi
  33820. -if test $USE_MAINTAINER_MODE = yes; then
  33821. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  33822. +$as_echo "$USE_MAINTAINER_MODE" >&6; }
  33823. + if test $USE_MAINTAINER_MODE = yes; then
  33824. MAINTAINER_MODE_TRUE=
  33825. MAINTAINER_MODE_FALSE='#'
  33826. else
  33827. @@ -1916,57 +2898,74 @@
  33828. # Make sure we can run config.sub.
  33829. -$ac_config_sub sun4 >/dev/null 2>&1 ||
  33830. - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  33831. -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  33832. - { (exit 1); exit 1; }; }
  33833. -
  33834. -echo "$as_me:$LINENO: checking build system type" >&5
  33835. -echo $ECHO_N "checking build system type... $ECHO_C" >&6
  33836. -if test "${ac_cv_build+set}" = set; then
  33837. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33838. -else
  33839. - ac_cv_build_alias=$build_alias
  33840. -test -z "$ac_cv_build_alias" &&
  33841. - ac_cv_build_alias=`$ac_config_guess`
  33842. -test -z "$ac_cv_build_alias" &&
  33843. - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  33844. -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  33845. - { (exit 1); exit 1; }; }
  33846. -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  33847. - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  33848. -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  33849. - { (exit 1); exit 1; }; }
  33850. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  33851. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  33852. -fi
  33853. -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  33854. -echo "${ECHO_T}$ac_cv_build" >&6
  33855. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  33856. +$as_echo_n "checking build system type... " >&6; }
  33857. +if test "${ac_cv_build+set}" = set; then :
  33858. + $as_echo_n "(cached) " >&6
  33859. +else
  33860. + ac_build_alias=$build_alias
  33861. +test "x$ac_build_alias" = x &&
  33862. + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  33863. +test "x$ac_build_alias" = x &&
  33864. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  33865. +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  33866. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  33867. +
  33868. +fi
  33869. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  33870. +$as_echo "$ac_cv_build" >&6; }
  33871. +case $ac_cv_build in
  33872. +*-*-*) ;;
  33873. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  33874. +esac
  33875. build=$ac_cv_build
  33876. -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  33877. -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  33878. -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  33879. -
  33880. -
  33881. -echo "$as_me:$LINENO: checking host system type" >&5
  33882. -echo $ECHO_N "checking host system type... $ECHO_C" >&6
  33883. -if test "${ac_cv_host+set}" = set; then
  33884. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33885. -else
  33886. - ac_cv_host_alias=$host_alias
  33887. -test -z "$ac_cv_host_alias" &&
  33888. - ac_cv_host_alias=$ac_cv_build_alias
  33889. -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  33890. - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  33891. -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  33892. - { (exit 1); exit 1; }; }
  33893. +ac_save_IFS=$IFS; IFS='-'
  33894. +set x $ac_cv_build
  33895. +shift
  33896. +build_cpu=$1
  33897. +build_vendor=$2
  33898. +shift; shift
  33899. +# Remember, the first character of IFS is used to create $*,
  33900. +# except with old shells:
  33901. +build_os=$*
  33902. +IFS=$ac_save_IFS
  33903. +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  33904. +
  33905. +
  33906. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  33907. +$as_echo_n "checking host system type... " >&6; }
  33908. +if test "${ac_cv_host+set}" = set; then :
  33909. + $as_echo_n "(cached) " >&6
  33910. +else
  33911. + if test "x$host_alias" = x; then
  33912. + ac_cv_host=$ac_cv_build
  33913. +else
  33914. + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  33915. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  33916. +fi
  33917. fi
  33918. -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  33919. -echo "${ECHO_T}$ac_cv_host" >&6
  33920. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  33921. +$as_echo "$ac_cv_host" >&6; }
  33922. +case $ac_cv_host in
  33923. +*-*-*) ;;
  33924. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  33925. +esac
  33926. host=$ac_cv_host
  33927. -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  33928. -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  33929. -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  33930. +ac_save_IFS=$IFS; IFS='-'
  33931. +set x $ac_cv_host
  33932. +shift
  33933. +host_cpu=$1
  33934. +host_vendor=$2
  33935. +shift; shift
  33936. +# Remember, the first character of IFS is used to create $*,
  33937. +# except with old shells:
  33938. +host_os=$*
  33939. +IFS=$ac_save_IFS
  33940. +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  33941. case "$host_os" in
  33942. @@ -1986,10 +2985,10 @@
  33943. if test -n "$ac_tool_prefix"; then
  33944. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  33945. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  33946. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  33947. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  33948. -if test "${ac_cv_prog_CC+set}" = set; then
  33949. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33950. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  33951. +$as_echo_n "checking for $ac_word... " >&6; }
  33952. +if test "${ac_cv_prog_CC+set}" = set; then :
  33953. + $as_echo_n "(cached) " >&6
  33954. else
  33955. if test -n "$CC"; then
  33956. ac_cv_prog_CC="$CC" # Let the user override the test.
  33957. @@ -1999,35 +2998,37 @@
  33958. do
  33959. IFS=$as_save_IFS
  33960. test -z "$as_dir" && as_dir=.
  33961. - for ac_exec_ext in '' $ac_executable_extensions; do
  33962. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  33963. + for ac_exec_ext in '' $ac_executable_extensions; do
  33964. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  33965. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  33966. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  33967. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  33968. break 2
  33969. fi
  33970. done
  33971. -done
  33972. + done
  33973. +IFS=$as_save_IFS
  33974. fi
  33975. fi
  33976. CC=$ac_cv_prog_CC
  33977. if test -n "$CC"; then
  33978. - echo "$as_me:$LINENO: result: $CC" >&5
  33979. -echo "${ECHO_T}$CC" >&6
  33980. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  33981. +$as_echo "$CC" >&6; }
  33982. else
  33983. - echo "$as_me:$LINENO: result: no" >&5
  33984. -echo "${ECHO_T}no" >&6
  33985. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33986. +$as_echo "no" >&6; }
  33987. fi
  33988. +
  33989. fi
  33990. if test -z "$ac_cv_prog_CC"; then
  33991. ac_ct_CC=$CC
  33992. # Extract the first word of "gcc", so it can be a program name with args.
  33993. set dummy gcc; ac_word=$2
  33994. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  33995. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  33996. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  33997. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33998. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  33999. +$as_echo_n "checking for $ac_word... " >&6; }
  34000. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  34001. + $as_echo_n "(cached) " >&6
  34002. else
  34003. if test -n "$ac_ct_CC"; then
  34004. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  34005. @@ -2037,39 +3038,50 @@
  34006. do
  34007. IFS=$as_save_IFS
  34008. test -z "$as_dir" && as_dir=.
  34009. - for ac_exec_ext in '' $ac_executable_extensions; do
  34010. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  34011. + for ac_exec_ext in '' $ac_executable_extensions; do
  34012. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  34013. ac_cv_prog_ac_ct_CC="gcc"
  34014. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  34015. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  34016. break 2
  34017. fi
  34018. done
  34019. -done
  34020. + done
  34021. +IFS=$as_save_IFS
  34022. fi
  34023. fi
  34024. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  34025. if test -n "$ac_ct_CC"; then
  34026. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  34027. -echo "${ECHO_T}$ac_ct_CC" >&6
  34028. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  34029. +$as_echo "$ac_ct_CC" >&6; }
  34030. else
  34031. - echo "$as_me:$LINENO: result: no" >&5
  34032. -echo "${ECHO_T}no" >&6
  34033. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34034. +$as_echo "no" >&6; }
  34035. fi
  34036. - CC=$ac_ct_CC
  34037. + if test "x$ac_ct_CC" = x; then
  34038. + CC=""
  34039. + else
  34040. + case $cross_compiling:$ac_tool_warned in
  34041. +yes:)
  34042. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  34043. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  34044. +ac_tool_warned=yes ;;
  34045. +esac
  34046. + CC=$ac_ct_CC
  34047. + fi
  34048. else
  34049. CC="$ac_cv_prog_CC"
  34050. fi
  34051. if test -z "$CC"; then
  34052. - if test -n "$ac_tool_prefix"; then
  34053. - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  34054. + if test -n "$ac_tool_prefix"; then
  34055. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  34056. set dummy ${ac_tool_prefix}cc; ac_word=$2
  34057. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  34058. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  34059. -if test "${ac_cv_prog_CC+set}" = set; then
  34060. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34061. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  34062. +$as_echo_n "checking for $ac_word... " >&6; }
  34063. +if test "${ac_cv_prog_CC+set}" = set; then :
  34064. + $as_echo_n "(cached) " >&6
  34065. else
  34066. if test -n "$CC"; then
  34067. ac_cv_prog_CC="$CC" # Let the user override the test.
  34068. @@ -2079,77 +3091,37 @@
  34069. do
  34070. IFS=$as_save_IFS
  34071. test -z "$as_dir" && as_dir=.
  34072. - for ac_exec_ext in '' $ac_executable_extensions; do
  34073. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  34074. + for ac_exec_ext in '' $ac_executable_extensions; do
  34075. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  34076. ac_cv_prog_CC="${ac_tool_prefix}cc"
  34077. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  34078. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  34079. break 2
  34080. fi
  34081. done
  34082. -done
  34083. + done
  34084. +IFS=$as_save_IFS
  34085. fi
  34086. fi
  34087. CC=$ac_cv_prog_CC
  34088. if test -n "$CC"; then
  34089. - echo "$as_me:$LINENO: result: $CC" >&5
  34090. -echo "${ECHO_T}$CC" >&6
  34091. -else
  34092. - echo "$as_me:$LINENO: result: no" >&5
  34093. -echo "${ECHO_T}no" >&6
  34094. -fi
  34095. -
  34096. -fi
  34097. -if test -z "$ac_cv_prog_CC"; then
  34098. - ac_ct_CC=$CC
  34099. - # Extract the first word of "cc", so it can be a program name with args.
  34100. -set dummy cc; ac_word=$2
  34101. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  34102. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  34103. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  34104. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34105. -else
  34106. - if test -n "$ac_ct_CC"; then
  34107. - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  34108. -else
  34109. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  34110. -for as_dir in $PATH
  34111. -do
  34112. - IFS=$as_save_IFS
  34113. - test -z "$as_dir" && as_dir=.
  34114. - for ac_exec_ext in '' $ac_executable_extensions; do
  34115. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  34116. - ac_cv_prog_ac_ct_CC="cc"
  34117. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  34118. - break 2
  34119. - fi
  34120. -done
  34121. -done
  34122. -
  34123. -fi
  34124. -fi
  34125. -ac_ct_CC=$ac_cv_prog_ac_ct_CC
  34126. -if test -n "$ac_ct_CC"; then
  34127. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  34128. -echo "${ECHO_T}$ac_ct_CC" >&6
  34129. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  34130. +$as_echo "$CC" >&6; }
  34131. else
  34132. - echo "$as_me:$LINENO: result: no" >&5
  34133. -echo "${ECHO_T}no" >&6
  34134. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34135. +$as_echo "no" >&6; }
  34136. fi
  34137. - CC=$ac_ct_CC
  34138. -else
  34139. - CC="$ac_cv_prog_CC"
  34140. -fi
  34141. + fi
  34142. fi
  34143. if test -z "$CC"; then
  34144. # Extract the first word of "cc", so it can be a program name with args.
  34145. set dummy cc; ac_word=$2
  34146. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  34147. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  34148. -if test "${ac_cv_prog_CC+set}" = set; then
  34149. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34150. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  34151. +$as_echo_n "checking for $ac_word... " >&6; }
  34152. +if test "${ac_cv_prog_CC+set}" = set; then :
  34153. + $as_echo_n "(cached) " >&6
  34154. else
  34155. if test -n "$CC"; then
  34156. ac_cv_prog_CC="$CC" # Let the user override the test.
  34157. @@ -2160,18 +3132,19 @@
  34158. do
  34159. IFS=$as_save_IFS
  34160. test -z "$as_dir" && as_dir=.
  34161. - for ac_exec_ext in '' $ac_executable_extensions; do
  34162. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  34163. + for ac_exec_ext in '' $ac_executable_extensions; do
  34164. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  34165. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  34166. ac_prog_rejected=yes
  34167. continue
  34168. fi
  34169. ac_cv_prog_CC="cc"
  34170. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  34171. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  34172. break 2
  34173. fi
  34174. done
  34175. -done
  34176. + done
  34177. +IFS=$as_save_IFS
  34178. if test $ac_prog_rejected = yes; then
  34179. # We found a bogon in the path, so make sure we never use it.
  34180. @@ -2189,24 +3162,25 @@
  34181. fi
  34182. CC=$ac_cv_prog_CC
  34183. if test -n "$CC"; then
  34184. - echo "$as_me:$LINENO: result: $CC" >&5
  34185. -echo "${ECHO_T}$CC" >&6
  34186. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  34187. +$as_echo "$CC" >&6; }
  34188. else
  34189. - echo "$as_me:$LINENO: result: no" >&5
  34190. -echo "${ECHO_T}no" >&6
  34191. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34192. +$as_echo "no" >&6; }
  34193. fi
  34194. +
  34195. fi
  34196. if test -z "$CC"; then
  34197. if test -n "$ac_tool_prefix"; then
  34198. - for ac_prog in cl
  34199. + for ac_prog in cl.exe
  34200. do
  34201. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  34202. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  34203. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  34204. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  34205. -if test "${ac_cv_prog_CC+set}" = set; then
  34206. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34207. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  34208. +$as_echo_n "checking for $ac_word... " >&6; }
  34209. +if test "${ac_cv_prog_CC+set}" = set; then :
  34210. + $as_echo_n "(cached) " >&6
  34211. else
  34212. if test -n "$CC"; then
  34213. ac_cv_prog_CC="$CC" # Let the user override the test.
  34214. @@ -2216,39 +3190,41 @@
  34215. do
  34216. IFS=$as_save_IFS
  34217. test -z "$as_dir" && as_dir=.
  34218. - for ac_exec_ext in '' $ac_executable_extensions; do
  34219. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  34220. + for ac_exec_ext in '' $ac_executable_extensions; do
  34221. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  34222. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  34223. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  34224. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  34225. break 2
  34226. fi
  34227. done
  34228. -done
  34229. + done
  34230. +IFS=$as_save_IFS
  34231. fi
  34232. fi
  34233. CC=$ac_cv_prog_CC
  34234. if test -n "$CC"; then
  34235. - echo "$as_me:$LINENO: result: $CC" >&5
  34236. -echo "${ECHO_T}$CC" >&6
  34237. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  34238. +$as_echo "$CC" >&6; }
  34239. else
  34240. - echo "$as_me:$LINENO: result: no" >&5
  34241. -echo "${ECHO_T}no" >&6
  34242. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34243. +$as_echo "no" >&6; }
  34244. fi
  34245. +
  34246. test -n "$CC" && break
  34247. done
  34248. fi
  34249. if test -z "$CC"; then
  34250. ac_ct_CC=$CC
  34251. - for ac_prog in cl
  34252. + for ac_prog in cl.exe
  34253. do
  34254. # Extract the first word of "$ac_prog", so it can be a program name with args.
  34255. set dummy $ac_prog; ac_word=$2
  34256. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  34257. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  34258. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  34259. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34260. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  34261. +$as_echo_n "checking for $ac_word... " >&6; }
  34262. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  34263. + $as_echo_n "(cached) " >&6
  34264. else
  34265. if test -n "$ac_ct_CC"; then
  34266. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  34267. @@ -2258,66 +3234,78 @@
  34268. do
  34269. IFS=$as_save_IFS
  34270. test -z "$as_dir" && as_dir=.
  34271. - for ac_exec_ext in '' $ac_executable_extensions; do
  34272. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  34273. + for ac_exec_ext in '' $ac_executable_extensions; do
  34274. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  34275. ac_cv_prog_ac_ct_CC="$ac_prog"
  34276. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  34277. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  34278. break 2
  34279. fi
  34280. done
  34281. -done
  34282. + done
  34283. +IFS=$as_save_IFS
  34284. fi
  34285. fi
  34286. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  34287. if test -n "$ac_ct_CC"; then
  34288. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  34289. -echo "${ECHO_T}$ac_ct_CC" >&6
  34290. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  34291. +$as_echo "$ac_ct_CC" >&6; }
  34292. else
  34293. - echo "$as_me:$LINENO: result: no" >&5
  34294. -echo "${ECHO_T}no" >&6
  34295. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34296. +$as_echo "no" >&6; }
  34297. fi
  34298. +
  34299. test -n "$ac_ct_CC" && break
  34300. done
  34301. - CC=$ac_ct_CC
  34302. + if test "x$ac_ct_CC" = x; then
  34303. + CC=""
  34304. + else
  34305. + case $cross_compiling:$ac_tool_warned in
  34306. +yes:)
  34307. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  34308. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  34309. +ac_tool_warned=yes ;;
  34310. +esac
  34311. + CC=$ac_ct_CC
  34312. + fi
  34313. fi
  34314. fi
  34315. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  34316. -See \`config.log' for more details." >&5
  34317. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  34318. -See \`config.log' for more details." >&2;}
  34319. - { (exit 1); exit 1; }; }
  34320. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  34321. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  34322. +as_fn_error "no acceptable C compiler found in \$PATH
  34323. +See \`config.log' for more details." "$LINENO" 5; }
  34324. # Provide some information about the compiler.
  34325. -echo "$as_me:$LINENO:" \
  34326. - "checking for C compiler version" >&5
  34327. -ac_compiler=`set X $ac_compile; echo $2`
  34328. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  34329. - (eval $ac_compiler --version </dev/null >&5) 2>&5
  34330. - ac_status=$?
  34331. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34332. - (exit $ac_status); }
  34333. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  34334. - (eval $ac_compiler -v </dev/null >&5) 2>&5
  34335. - ac_status=$?
  34336. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34337. - (exit $ac_status); }
  34338. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  34339. - (eval $ac_compiler -V </dev/null >&5) 2>&5
  34340. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  34341. +set X $ac_compile
  34342. +ac_compiler=$2
  34343. +for ac_option in --version -v -V -qversion; do
  34344. + { { ac_try="$ac_compiler $ac_option >&5"
  34345. +case "(($ac_try" in
  34346. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34347. + *) ac_try_echo=$ac_try;;
  34348. +esac
  34349. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  34350. +$as_echo "$ac_try_echo"; } >&5
  34351. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  34352. ac_status=$?
  34353. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34354. - (exit $ac_status); }
  34355. + if test -s conftest.err; then
  34356. + sed '10a\
  34357. +... rest of stderr output deleted ...
  34358. + 10q' conftest.err >conftest.er1
  34359. + cat conftest.er1 >&5
  34360. + fi
  34361. + rm -f conftest.er1 conftest.err
  34362. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34363. + test $ac_status = 0; }
  34364. +done
  34365. -cat >conftest.$ac_ext <<_ACEOF
  34366. -/* confdefs.h. */
  34367. -_ACEOF
  34368. -cat confdefs.h >>conftest.$ac_ext
  34369. -cat >>conftest.$ac_ext <<_ACEOF
  34370. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34371. /* end confdefs.h. */
  34372. int
  34373. @@ -2329,112 +3317,109 @@
  34374. }
  34375. _ACEOF
  34376. ac_clean_files_save=$ac_clean_files
  34377. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  34378. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  34379. # Try to create an executable without -o first, disregard a.out.
  34380. # It will help us diagnose broken compilers, and finding out an intuition
  34381. # of exeext.
  34382. -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  34383. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  34384. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  34385. -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  34386. - (eval $ac_link_default) 2>&5
  34387. - ac_status=$?
  34388. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34389. - (exit $ac_status); }; then
  34390. - # Find the output, starting from the most likely. This scheme is
  34391. -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
  34392. -# resort.
  34393. -
  34394. -# Be careful to initialize this variable, since it used to be cached.
  34395. -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  34396. -ac_cv_exeext=
  34397. -# b.out is created by i960 compilers.
  34398. -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  34399. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  34400. +$as_echo_n "checking whether the C compiler works... " >&6; }
  34401. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  34402. +
  34403. +# The possible output files:
  34404. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  34405. +
  34406. +ac_rmfiles=
  34407. +for ac_file in $ac_files
  34408. +do
  34409. + case $ac_file in
  34410. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  34411. + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  34412. + esac
  34413. +done
  34414. +rm -f $ac_rmfiles
  34415. +
  34416. +if { { ac_try="$ac_link_default"
  34417. +case "(($ac_try" in
  34418. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34419. + *) ac_try_echo=$ac_try;;
  34420. +esac
  34421. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  34422. +$as_echo "$ac_try_echo"; } >&5
  34423. + (eval "$ac_link_default") 2>&5
  34424. + ac_status=$?
  34425. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34426. + test $ac_status = 0; }; then :
  34427. + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  34428. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  34429. +# in a Makefile. We should not override ac_cv_exeext if it was cached,
  34430. +# so that the user can short-circuit this test for compilers unknown to
  34431. +# Autoconf.
  34432. +for ac_file in $ac_files ''
  34433. do
  34434. test -f "$ac_file" || continue
  34435. case $ac_file in
  34436. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  34437. - ;;
  34438. - conftest.$ac_ext )
  34439. - # This is the source file.
  34440. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  34441. ;;
  34442. [ab].out )
  34443. # We found the default executable, but exeext='' is most
  34444. # certainly right.
  34445. break;;
  34446. *.* )
  34447. - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  34448. - # FIXME: I believe we export ac_cv_exeext for Libtool,
  34449. - # but it would be cool to find out if it's true. Does anybody
  34450. - # maintain Libtool? --akim.
  34451. - export ac_cv_exeext
  34452. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  34453. + then :; else
  34454. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  34455. + fi
  34456. + # We set ac_cv_exeext here because the later test for it is not
  34457. + # safe: cross compilers may not add the suffix if given an `-o'
  34458. + # argument, so we may need to know it at that point already.
  34459. + # Even if this section looks crufty: it has the advantage of
  34460. + # actually working.
  34461. break;;
  34462. * )
  34463. break;;
  34464. esac
  34465. done
  34466. +test "$ac_cv_exeext" = no && ac_cv_exeext=
  34467. +
  34468. else
  34469. - echo "$as_me: failed program was:" >&5
  34470. + ac_file=''
  34471. +fi
  34472. +if test -z "$ac_file"; then :
  34473. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34474. +$as_echo "no" >&6; }
  34475. +$as_echo "$as_me: failed program was:" >&5
  34476. sed 's/^/| /' conftest.$ac_ext >&5
  34477. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  34478. -See \`config.log' for more details." >&5
  34479. -echo "$as_me: error: C compiler cannot create executables
  34480. -See \`config.log' for more details." >&2;}
  34481. - { (exit 77); exit 77; }; }
  34482. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  34483. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  34484. +{ as_fn_set_status 77
  34485. +as_fn_error "C compiler cannot create executables
  34486. +See \`config.log' for more details." "$LINENO" 5; }; }
  34487. +else
  34488. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34489. +$as_echo "yes" >&6; }
  34490. fi
  34491. -
  34492. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  34493. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  34494. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  34495. +$as_echo "$ac_file" >&6; }
  34496. ac_exeext=$ac_cv_exeext
  34497. -echo "$as_me:$LINENO: result: $ac_file" >&5
  34498. -echo "${ECHO_T}$ac_file" >&6
  34499. -
  34500. -# Check the compiler produces executables we can run. If not, either
  34501. -# the compiler is broken, or we cross compile.
  34502. -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  34503. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  34504. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  34505. -# If not cross compiling, check that we can run a simple program.
  34506. -if test "$cross_compiling" != yes; then
  34507. - if { ac_try='./$ac_file'
  34508. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34509. - (eval $ac_try) 2>&5
  34510. - ac_status=$?
  34511. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34512. - (exit $ac_status); }; }; then
  34513. - cross_compiling=no
  34514. - else
  34515. - if test "$cross_compiling" = maybe; then
  34516. - cross_compiling=yes
  34517. - else
  34518. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  34519. -If you meant to cross compile, use \`--host'.
  34520. -See \`config.log' for more details." >&5
  34521. -echo "$as_me: error: cannot run C compiled programs.
  34522. -If you meant to cross compile, use \`--host'.
  34523. -See \`config.log' for more details." >&2;}
  34524. - { (exit 1); exit 1; }; }
  34525. - fi
  34526. - fi
  34527. -fi
  34528. -echo "$as_me:$LINENO: result: yes" >&5
  34529. -echo "${ECHO_T}yes" >&6
  34530. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  34531. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  34532. ac_clean_files=$ac_clean_files_save
  34533. -# Check the compiler produces executables we can run. If not, either
  34534. -# the compiler is broken, or we cross compile.
  34535. -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  34536. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  34537. -echo "$as_me:$LINENO: result: $cross_compiling" >&5
  34538. -echo "${ECHO_T}$cross_compiling" >&6
  34539. -
  34540. -echo "$as_me:$LINENO: checking for suffix of executables" >&5
  34541. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  34542. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34543. - (eval $ac_link) 2>&5
  34544. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  34545. +$as_echo_n "checking for suffix of executables... " >&6; }
  34546. +if { { ac_try="$ac_link"
  34547. +case "(($ac_try" in
  34548. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34549. + *) ac_try_echo=$ac_try;;
  34550. +esac
  34551. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  34552. +$as_echo "$ac_try_echo"; } >&5
  34553. + (eval "$ac_link") 2>&5
  34554. ac_status=$?
  34555. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34556. - (exit $ac_status); }; then
  34557. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34558. + test $ac_status = 0; }; then :
  34559. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  34560. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  34561. # work properly (i.e., refer to `conftest.exe'), while it won't with
  34562. @@ -2442,88 +3427,141 @@
  34563. for ac_file in conftest.exe conftest conftest.*; do
  34564. test -f "$ac_file" || continue
  34565. case $ac_file in
  34566. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  34567. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  34568. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  34569. - export ac_cv_exeext
  34570. break;;
  34571. * ) break;;
  34572. esac
  34573. done
  34574. else
  34575. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  34576. -See \`config.log' for more details." >&5
  34577. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  34578. -See \`config.log' for more details." >&2;}
  34579. - { (exit 1); exit 1; }; }
  34580. -fi
  34581. -
  34582. -rm -f conftest$ac_cv_exeext
  34583. -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  34584. -echo "${ECHO_T}$ac_cv_exeext" >&6
  34585. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  34586. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  34587. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  34588. +See \`config.log' for more details." "$LINENO" 5; }
  34589. +fi
  34590. +rm -f conftest conftest$ac_cv_exeext
  34591. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  34592. +$as_echo "$ac_cv_exeext" >&6; }
  34593. rm -f conftest.$ac_ext
  34594. EXEEXT=$ac_cv_exeext
  34595. ac_exeext=$EXEEXT
  34596. -echo "$as_me:$LINENO: checking for suffix of object files" >&5
  34597. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  34598. -if test "${ac_cv_objext+set}" = set; then
  34599. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34600. -else
  34601. - cat >conftest.$ac_ext <<_ACEOF
  34602. -/* confdefs.h. */
  34603. -_ACEOF
  34604. -cat confdefs.h >>conftest.$ac_ext
  34605. -cat >>conftest.$ac_ext <<_ACEOF
  34606. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34607. /* end confdefs.h. */
  34608. -
  34609. +#include <stdio.h>
  34610. int
  34611. main ()
  34612. {
  34613. +FILE *f = fopen ("conftest.out", "w");
  34614. + return ferror (f) || fclose (f) != 0;
  34615. ;
  34616. return 0;
  34617. }
  34618. _ACEOF
  34619. -rm -f conftest.o conftest.obj
  34620. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  34621. - (eval $ac_compile) 2>&5
  34622. +ac_clean_files="$ac_clean_files conftest.out"
  34623. +# Check that the compiler produces executables we can run. If not, either
  34624. +# the compiler is broken, or we cross compile.
  34625. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  34626. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  34627. +if test "$cross_compiling" != yes; then
  34628. + { { ac_try="$ac_link"
  34629. +case "(($ac_try" in
  34630. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34631. + *) ac_try_echo=$ac_try;;
  34632. +esac
  34633. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  34634. +$as_echo "$ac_try_echo"; } >&5
  34635. + (eval "$ac_link") 2>&5
  34636. + ac_status=$?
  34637. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34638. + test $ac_status = 0; }
  34639. + if { ac_try='./conftest$ac_cv_exeext'
  34640. + { { case "(($ac_try" in
  34641. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34642. + *) ac_try_echo=$ac_try;;
  34643. +esac
  34644. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  34645. +$as_echo "$ac_try_echo"; } >&5
  34646. + (eval "$ac_try") 2>&5
  34647. ac_status=$?
  34648. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34649. - (exit $ac_status); }; then
  34650. - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  34651. - case $ac_file in
  34652. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  34653. - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  34654. - break;;
  34655. - esac
  34656. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34657. + test $ac_status = 0; }; }; then
  34658. + cross_compiling=no
  34659. + else
  34660. + if test "$cross_compiling" = maybe; then
  34661. + cross_compiling=yes
  34662. + else
  34663. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  34664. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  34665. +as_fn_error "cannot run C compiled programs.
  34666. +If you meant to cross compile, use \`--host'.
  34667. +See \`config.log' for more details." "$LINENO" 5; }
  34668. + fi
  34669. + fi
  34670. +fi
  34671. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  34672. +$as_echo "$cross_compiling" >&6; }
  34673. +
  34674. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  34675. +ac_clean_files=$ac_clean_files_save
  34676. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  34677. +$as_echo_n "checking for suffix of object files... " >&6; }
  34678. +if test "${ac_cv_objext+set}" = set; then :
  34679. + $as_echo_n "(cached) " >&6
  34680. +else
  34681. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34682. +/* end confdefs.h. */
  34683. +
  34684. +int
  34685. +main ()
  34686. +{
  34687. +
  34688. + ;
  34689. + return 0;
  34690. +}
  34691. +_ACEOF
  34692. +rm -f conftest.o conftest.obj
  34693. +if { { ac_try="$ac_compile"
  34694. +case "(($ac_try" in
  34695. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34696. + *) ac_try_echo=$ac_try;;
  34697. +esac
  34698. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  34699. +$as_echo "$ac_try_echo"; } >&5
  34700. + (eval "$ac_compile") 2>&5
  34701. + ac_status=$?
  34702. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34703. + test $ac_status = 0; }; then :
  34704. + for ac_file in conftest.o conftest.obj conftest.*; do
  34705. + test -f "$ac_file" || continue;
  34706. + case $ac_file in
  34707. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  34708. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  34709. + break;;
  34710. + esac
  34711. done
  34712. else
  34713. - echo "$as_me: failed program was:" >&5
  34714. + $as_echo "$as_me: failed program was:" >&5
  34715. sed 's/^/| /' conftest.$ac_ext >&5
  34716. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  34717. -See \`config.log' for more details." >&5
  34718. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  34719. -See \`config.log' for more details." >&2;}
  34720. - { (exit 1); exit 1; }; }
  34721. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  34722. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  34723. +as_fn_error "cannot compute suffix of object files: cannot compile
  34724. +See \`config.log' for more details." "$LINENO" 5; }
  34725. fi
  34726. -
  34727. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  34728. fi
  34729. -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  34730. -echo "${ECHO_T}$ac_cv_objext" >&6
  34731. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  34732. +$as_echo "$ac_cv_objext" >&6; }
  34733. OBJEXT=$ac_cv_objext
  34734. ac_objext=$OBJEXT
  34735. -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  34736. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  34737. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  34738. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34739. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  34740. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  34741. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  34742. + $as_echo_n "(cached) " >&6
  34743. else
  34744. - cat >conftest.$ac_ext <<_ACEOF
  34745. -/* confdefs.h. */
  34746. -_ACEOF
  34747. -cat confdefs.h >>conftest.$ac_ext
  34748. -cat >>conftest.$ac_ext <<_ACEOF
  34749. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34750. /* end confdefs.h. */
  34751. int
  34752. @@ -2537,55 +3575,34 @@
  34753. return 0;
  34754. }
  34755. _ACEOF
  34756. -rm -f conftest.$ac_objext
  34757. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  34758. - (eval $ac_compile) 2>conftest.er1
  34759. - ac_status=$?
  34760. - grep -v '^ *+' conftest.er1 >conftest.err
  34761. - rm -f conftest.er1
  34762. - cat conftest.err >&5
  34763. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34764. - (exit $ac_status); } &&
  34765. - { ac_try='test -z "$ac_c_werror_flag"
  34766. - || test ! -s conftest.err'
  34767. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34768. - (eval $ac_try) 2>&5
  34769. - ac_status=$?
  34770. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34771. - (exit $ac_status); }; } &&
  34772. - { ac_try='test -s conftest.$ac_objext'
  34773. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34774. - (eval $ac_try) 2>&5
  34775. - ac_status=$?
  34776. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34777. - (exit $ac_status); }; }; then
  34778. +if ac_fn_c_try_compile "$LINENO"; then :
  34779. ac_compiler_gnu=yes
  34780. else
  34781. - echo "$as_me: failed program was:" >&5
  34782. -sed 's/^/| /' conftest.$ac_ext >&5
  34783. -
  34784. -ac_compiler_gnu=no
  34785. + ac_compiler_gnu=no
  34786. fi
  34787. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  34788. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34789. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  34790. fi
  34791. -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  34792. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  34793. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  34794. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  34795. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  34796. +if test $ac_compiler_gnu = yes; then
  34797. + GCC=yes
  34798. +else
  34799. + GCC=
  34800. +fi
  34801. ac_test_CFLAGS=${CFLAGS+set}
  34802. ac_save_CFLAGS=$CFLAGS
  34803. -CFLAGS="-g"
  34804. -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  34805. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  34806. -if test "${ac_cv_prog_cc_g+set}" = set; then
  34807. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34808. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  34809. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  34810. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  34811. + $as_echo_n "(cached) " >&6
  34812. else
  34813. - cat >conftest.$ac_ext <<_ACEOF
  34814. -/* confdefs.h. */
  34815. -_ACEOF
  34816. -cat confdefs.h >>conftest.$ac_ext
  34817. -cat >>conftest.$ac_ext <<_ACEOF
  34818. + ac_save_c_werror_flag=$ac_c_werror_flag
  34819. + ac_c_werror_flag=yes
  34820. + ac_cv_prog_cc_g=no
  34821. + CFLAGS="-g"
  34822. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34823. /* end confdefs.h. */
  34824. int
  34825. @@ -2596,39 +3613,49 @@
  34826. return 0;
  34827. }
  34828. _ACEOF
  34829. -rm -f conftest.$ac_objext
  34830. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  34831. - (eval $ac_compile) 2>conftest.er1
  34832. - ac_status=$?
  34833. - grep -v '^ *+' conftest.er1 >conftest.err
  34834. - rm -f conftest.er1
  34835. - cat conftest.err >&5
  34836. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34837. - (exit $ac_status); } &&
  34838. - { ac_try='test -z "$ac_c_werror_flag"
  34839. - || test ! -s conftest.err'
  34840. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34841. - (eval $ac_try) 2>&5
  34842. - ac_status=$?
  34843. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34844. - (exit $ac_status); }; } &&
  34845. - { ac_try='test -s conftest.$ac_objext'
  34846. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34847. - (eval $ac_try) 2>&5
  34848. - ac_status=$?
  34849. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34850. - (exit $ac_status); }; }; then
  34851. +if ac_fn_c_try_compile "$LINENO"; then :
  34852. ac_cv_prog_cc_g=yes
  34853. else
  34854. - echo "$as_me: failed program was:" >&5
  34855. -sed 's/^/| /' conftest.$ac_ext >&5
  34856. + CFLAGS=""
  34857. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34858. +/* end confdefs.h. */
  34859. +
  34860. +int
  34861. +main ()
  34862. +{
  34863. -ac_cv_prog_cc_g=no
  34864. + ;
  34865. + return 0;
  34866. +}
  34867. +_ACEOF
  34868. +if ac_fn_c_try_compile "$LINENO"; then :
  34869. +
  34870. +else
  34871. + ac_c_werror_flag=$ac_save_c_werror_flag
  34872. + CFLAGS="-g"
  34873. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34874. +/* end confdefs.h. */
  34875. +
  34876. +int
  34877. +main ()
  34878. +{
  34879. +
  34880. + ;
  34881. + return 0;
  34882. +}
  34883. +_ACEOF
  34884. +if ac_fn_c_try_compile "$LINENO"; then :
  34885. + ac_cv_prog_cc_g=yes
  34886. +fi
  34887. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34888. fi
  34889. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  34890. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34891. fi
  34892. -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  34893. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  34894. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34895. + ac_c_werror_flag=$ac_save_c_werror_flag
  34896. +fi
  34897. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  34898. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  34899. if test "$ac_test_CFLAGS" = set; then
  34900. CFLAGS=$ac_save_CFLAGS
  34901. elif test $ac_cv_prog_cc_g = yes; then
  34902. @@ -2644,18 +3671,14 @@
  34903. CFLAGS=
  34904. fi
  34905. fi
  34906. -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  34907. -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  34908. -if test "${ac_cv_prog_cc_stdc+set}" = set; then
  34909. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34910. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  34911. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  34912. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  34913. + $as_echo_n "(cached) " >&6
  34914. else
  34915. - ac_cv_prog_cc_stdc=no
  34916. + ac_cv_prog_cc_c89=no
  34917. ac_save_CC=$CC
  34918. -cat >conftest.$ac_ext <<_ACEOF
  34919. -/* confdefs.h. */
  34920. -_ACEOF
  34921. -cat confdefs.h >>conftest.$ac_ext
  34922. -cat >>conftest.$ac_ext <<_ACEOF
  34923. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34924. /* end confdefs.h. */
  34925. #include <stdarg.h>
  34926. #include <stdio.h>
  34927. @@ -2683,12 +3706,17 @@
  34928. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  34929. function prototypes and stuff, but not '\xHH' hex character constants.
  34930. These don't provoke an error unfortunately, instead are silently treated
  34931. - as 'x'. The following induces an error, until -std1 is added to get
  34932. + as 'x'. The following induces an error, until -std is added to get
  34933. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  34934. array size at least. It's necessary to write '\x00'==0 to get something
  34935. - that's true only with -std1. */
  34936. + that's true only with -std. */
  34937. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  34938. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  34939. + inside strings and character constants. */
  34940. +#define FOO(x) 'x'
  34941. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  34942. +
  34943. int test (int i, double x);
  34944. struct s1 {int (*f) (int a);};
  34945. struct s2 {int (*f) (double a);};
  34946. @@ -2703,274 +3731,96 @@
  34947. return 0;
  34948. }
  34949. _ACEOF
  34950. -# Don't try gcc -ansi; that turns off useful extensions and
  34951. -# breaks some systems' header files.
  34952. -# AIX -qlanglvl=ansi
  34953. -# Ultrix and OSF/1 -std1
  34954. -# HP-UX 10.20 and later -Ae
  34955. -# HP-UX older versions -Aa -D_HPUX_SOURCE
  34956. -# SVR4 -Xc -D__EXTENSIONS__
  34957. -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  34958. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  34959. + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  34960. do
  34961. CC="$ac_save_CC $ac_arg"
  34962. - rm -f conftest.$ac_objext
  34963. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  34964. - (eval $ac_compile) 2>conftest.er1
  34965. - ac_status=$?
  34966. - grep -v '^ *+' conftest.er1 >conftest.err
  34967. - rm -f conftest.er1
  34968. - cat conftest.err >&5
  34969. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34970. - (exit $ac_status); } &&
  34971. - { ac_try='test -z "$ac_c_werror_flag"
  34972. - || test ! -s conftest.err'
  34973. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34974. - (eval $ac_try) 2>&5
  34975. - ac_status=$?
  34976. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34977. - (exit $ac_status); }; } &&
  34978. - { ac_try='test -s conftest.$ac_objext'
  34979. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34980. - (eval $ac_try) 2>&5
  34981. - ac_status=$?
  34982. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34983. - (exit $ac_status); }; }; then
  34984. - ac_cv_prog_cc_stdc=$ac_arg
  34985. -break
  34986. -else
  34987. - echo "$as_me: failed program was:" >&5
  34988. -sed 's/^/| /' conftest.$ac_ext >&5
  34989. -
  34990. + if ac_fn_c_try_compile "$LINENO"; then :
  34991. + ac_cv_prog_cc_c89=$ac_arg
  34992. fi
  34993. -rm -f conftest.err conftest.$ac_objext
  34994. +rm -f core conftest.err conftest.$ac_objext
  34995. + test "x$ac_cv_prog_cc_c89" != "xno" && break
  34996. done
  34997. -rm -f conftest.$ac_ext conftest.$ac_objext
  34998. +rm -f conftest.$ac_ext
  34999. CC=$ac_save_CC
  35000. fi
  35001. -
  35002. -case "x$ac_cv_prog_cc_stdc" in
  35003. - x|xno)
  35004. - echo "$as_me:$LINENO: result: none needed" >&5
  35005. -echo "${ECHO_T}none needed" >&6 ;;
  35006. +# AC_CACHE_VAL
  35007. +case "x$ac_cv_prog_cc_c89" in
  35008. + x)
  35009. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  35010. +$as_echo "none needed" >&6; } ;;
  35011. + xno)
  35012. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  35013. +$as_echo "unsupported" >&6; } ;;
  35014. *)
  35015. - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  35016. -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  35017. - CC="$CC $ac_cv_prog_cc_stdc" ;;
  35018. + CC="$CC $ac_cv_prog_cc_c89"
  35019. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  35020. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  35021. esac
  35022. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  35023. -# Some people use a C++ compiler to compile C. Since we use `exit',
  35024. -# in C++ we need to declare it. In case someone uses the same compiler
  35025. -# for both compiling C and C++ we need to have the C++ compiler decide
  35026. -# the declaration of exit, since it's the most demanding environment.
  35027. -cat >conftest.$ac_ext <<_ACEOF
  35028. -#ifndef __cplusplus
  35029. - choke me
  35030. -#endif
  35031. -_ACEOF
  35032. -rm -f conftest.$ac_objext
  35033. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  35034. - (eval $ac_compile) 2>conftest.er1
  35035. - ac_status=$?
  35036. - grep -v '^ *+' conftest.er1 >conftest.err
  35037. - rm -f conftest.er1
  35038. - cat conftest.err >&5
  35039. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35040. - (exit $ac_status); } &&
  35041. - { ac_try='test -z "$ac_c_werror_flag"
  35042. - || test ! -s conftest.err'
  35043. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35044. - (eval $ac_try) 2>&5
  35045. - ac_status=$?
  35046. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35047. - (exit $ac_status); }; } &&
  35048. - { ac_try='test -s conftest.$ac_objext'
  35049. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35050. - (eval $ac_try) 2>&5
  35051. - ac_status=$?
  35052. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35053. - (exit $ac_status); }; }; then
  35054. - for ac_declaration in \
  35055. - '' \
  35056. - 'extern "C" void std::exit (int) throw (); using std::exit;' \
  35057. - 'extern "C" void std::exit (int); using std::exit;' \
  35058. - 'extern "C" void exit (int) throw ();' \
  35059. - 'extern "C" void exit (int);' \
  35060. - 'void exit (int);'
  35061. -do
  35062. - cat >conftest.$ac_ext <<_ACEOF
  35063. -/* confdefs.h. */
  35064. -_ACEOF
  35065. -cat confdefs.h >>conftest.$ac_ext
  35066. -cat >>conftest.$ac_ext <<_ACEOF
  35067. -/* end confdefs.h. */
  35068. -$ac_declaration
  35069. -#include <stdlib.h>
  35070. -int
  35071. -main ()
  35072. -{
  35073. -exit (42);
  35074. - ;
  35075. - return 0;
  35076. -}
  35077. -_ACEOF
  35078. -rm -f conftest.$ac_objext
  35079. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  35080. - (eval $ac_compile) 2>conftest.er1
  35081. - ac_status=$?
  35082. - grep -v '^ *+' conftest.er1 >conftest.err
  35083. - rm -f conftest.er1
  35084. - cat conftest.err >&5
  35085. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35086. - (exit $ac_status); } &&
  35087. - { ac_try='test -z "$ac_c_werror_flag"
  35088. - || test ! -s conftest.err'
  35089. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35090. - (eval $ac_try) 2>&5
  35091. - ac_status=$?
  35092. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35093. - (exit $ac_status); }; } &&
  35094. - { ac_try='test -s conftest.$ac_objext'
  35095. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35096. - (eval $ac_try) 2>&5
  35097. - ac_status=$?
  35098. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35099. - (exit $ac_status); }; }; then
  35100. - :
  35101. -else
  35102. - echo "$as_me: failed program was:" >&5
  35103. -sed 's/^/| /' conftest.$ac_ext >&5
  35104. -
  35105. -continue
  35106. -fi
  35107. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  35108. - cat >conftest.$ac_ext <<_ACEOF
  35109. -/* confdefs.h. */
  35110. -_ACEOF
  35111. -cat confdefs.h >>conftest.$ac_ext
  35112. -cat >>conftest.$ac_ext <<_ACEOF
  35113. -/* end confdefs.h. */
  35114. -$ac_declaration
  35115. -int
  35116. -main ()
  35117. -{
  35118. -exit (42);
  35119. - ;
  35120. - return 0;
  35121. -}
  35122. -_ACEOF
  35123. -rm -f conftest.$ac_objext
  35124. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  35125. - (eval $ac_compile) 2>conftest.er1
  35126. - ac_status=$?
  35127. - grep -v '^ *+' conftest.er1 >conftest.err
  35128. - rm -f conftest.er1
  35129. - cat conftest.err >&5
  35130. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35131. - (exit $ac_status); } &&
  35132. - { ac_try='test -z "$ac_c_werror_flag"
  35133. - || test ! -s conftest.err'
  35134. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35135. - (eval $ac_try) 2>&5
  35136. - ac_status=$?
  35137. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35138. - (exit $ac_status); }; } &&
  35139. - { ac_try='test -s conftest.$ac_objext'
  35140. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35141. - (eval $ac_try) 2>&5
  35142. - ac_status=$?
  35143. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35144. - (exit $ac_status); }; }; then
  35145. - break
  35146. -else
  35147. - echo "$as_me: failed program was:" >&5
  35148. -sed 's/^/| /' conftest.$ac_ext >&5
  35149. -
  35150. -fi
  35151. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  35152. -done
  35153. -rm -f conftest*
  35154. -if test -n "$ac_declaration"; then
  35155. - echo '#ifdef __cplusplus' >>confdefs.h
  35156. - echo $ac_declaration >>confdefs.h
  35157. - echo '#endif' >>confdefs.h
  35158. fi
  35159. -else
  35160. - echo "$as_me: failed program was:" >&5
  35161. -sed 's/^/| /' conftest.$ac_ext >&5
  35162. -
  35163. -fi
  35164. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  35165. ac_ext=c
  35166. ac_cpp='$CPP $CPPFLAGS'
  35167. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35168. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35169. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35170. -rm -f .deps 2>/dev/null
  35171. -mkdir .deps 2>/dev/null
  35172. -if test -d .deps; then
  35173. - DEPDIR=.deps
  35174. -else
  35175. - # MS-DOS does not allow filenames that begin with a dot.
  35176. - DEPDIR=_deps
  35177. -fi
  35178. -rmdir .deps 2>/dev/null
  35179. -
  35180. +DEPDIR="${am__leading_dot}deps"
  35181. - ac_config_commands="$ac_config_commands depfiles"
  35182. +ac_config_commands="$ac_config_commands depfiles"
  35183. am_make=${MAKE-make}
  35184. cat > confinc << 'END'
  35185. -doit:
  35186. - @echo done
  35187. +am__doit:
  35188. + @echo this is the am__doit target
  35189. +.PHONY: am__doit
  35190. END
  35191. # If we don't find an include directive, just comment out the code.
  35192. -echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  35193. -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  35194. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  35195. +$as_echo_n "checking for style of include used by $am_make... " >&6; }
  35196. am__include="#"
  35197. am__quote=
  35198. _am_result=none
  35199. # First try GNU make style include.
  35200. echo "include confinc" > confmf
  35201. -# We grep out `Entering directory' and `Leaving directory'
  35202. -# messages which can occur if `w' ends up in MAKEFLAGS.
  35203. -# In particular we don't look at `^make:' because GNU make might
  35204. -# be invoked under some other name (usually "gmake"), in which
  35205. -# case it prints its new name instead of `make'.
  35206. -if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
  35207. - am__include=include
  35208. - am__quote=
  35209. - _am_result=GNU
  35210. -fi
  35211. +# Ignore all kinds of additional output from `make'.
  35212. +case `$am_make -s -f confmf 2> /dev/null` in #(
  35213. +*the\ am__doit\ target*)
  35214. + am__include=include
  35215. + am__quote=
  35216. + _am_result=GNU
  35217. + ;;
  35218. +esac
  35219. # Now try BSD make style include.
  35220. if test "$am__include" = "#"; then
  35221. echo '.include "confinc"' > confmf
  35222. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  35223. - am__include=.include
  35224. - am__quote="\""
  35225. - _am_result=BSD
  35226. - fi
  35227. + case `$am_make -s -f confmf 2> /dev/null` in #(
  35228. + *the\ am__doit\ target*)
  35229. + am__include=.include
  35230. + am__quote="\""
  35231. + _am_result=BSD
  35232. + ;;
  35233. + esac
  35234. fi
  35235. -echo "$as_me:$LINENO: result: $_am_result" >&5
  35236. -echo "${ECHO_T}$_am_result" >&6
  35237. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  35238. +$as_echo "$_am_result" >&6; }
  35239. rm -f confinc confmf
  35240. -# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  35241. -if test "${enable_dependency_tracking+set}" = set; then
  35242. - enableval="$enable_dependency_tracking"
  35243. +# Check whether --enable-dependency-tracking was given.
  35244. +if test "${enable_dependency_tracking+set}" = set; then :
  35245. + enableval=$enable_dependency_tracking;
  35246. +fi
  35247. -fi;
  35248. if test "x$enable_dependency_tracking" != xno; then
  35249. am_depcomp="$ac_aux_dir/depcomp"
  35250. AMDEPBACKSLASH='\'
  35251. fi
  35252. -
  35253. -
  35254. -if test "x$enable_dependency_tracking" != xno; then
  35255. + if test "x$enable_dependency_tracking" != xno; then
  35256. AMDEP_TRUE=
  35257. AMDEP_FALSE='#'
  35258. else
  35259. @@ -2980,13 +3830,12 @@
  35260. -
  35261. depcc="$CC" am_compiler_list=
  35262. -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  35263. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  35264. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  35265. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35266. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  35267. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  35268. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  35269. + $as_echo_n "(cached) " >&6
  35270. else
  35271. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  35272. # We make a subdir and do the tests there. Otherwise we can end up
  35273. @@ -2999,20 +3848,51 @@
  35274. # using a relative directory.
  35275. cp "$am_depcomp" conftest.dir
  35276. cd conftest.dir
  35277. + # We will build objects and dependencies in a subdirectory because
  35278. + # it helps to detect inapplicable dependency modes. For instance
  35279. + # both Tru64's cc and ICC support -MD to output dependencies as a
  35280. + # side effect of compilation, but ICC will put the dependencies in
  35281. + # the current directory while Tru64 will put them in the object
  35282. + # directory.
  35283. + mkdir sub
  35284. am_cv_CC_dependencies_compiler_type=none
  35285. if test "$am_compiler_list" = ""; then
  35286. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  35287. fi
  35288. + am__universal=false
  35289. + case " $depcc " in #(
  35290. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  35291. + esac
  35292. +
  35293. for depmode in $am_compiler_list; do
  35294. + # Setup a source with many dependencies, because some compilers
  35295. + # like to wrap large dependency lists on column 80 (with \), and
  35296. + # we should not choose a depcomp mode which is confused by this.
  35297. + #
  35298. # We need to recreate these files for each test, as the compiler may
  35299. # overwrite some of them when testing with obscure command lines.
  35300. # This happens at least with the AIX C compiler.
  35301. - echo '#include "conftest.h"' > conftest.c
  35302. - echo 'int i;' > conftest.h
  35303. - echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
  35304. + : > sub/conftest.c
  35305. + for i in 1 2 3 4 5 6; do
  35306. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  35307. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  35308. + # Solaris 8's {/usr,}/bin/sh.
  35309. + touch sub/conftst$i.h
  35310. + done
  35311. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  35312. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  35313. + # mode. It turns out that the SunPro C++ compiler does not properly
  35314. + # handle `-M -o', and we need to detect this. Also, some Intel
  35315. + # versions had trouble with output in subdirs
  35316. + am__obj=sub/conftest.${OBJEXT-o}
  35317. + am__minus_obj="-o $am__obj"
  35318. case $depmode in
  35319. + gcc)
  35320. + # This depmode causes a compiler race in universal mode.
  35321. + test "$am__universal" = false || continue
  35322. + ;;
  35323. nosideeffect)
  35324. # after this tag, mechanisms are not by side-effect, so they'll
  35325. # only be used when explicitly requested
  35326. @@ -3022,19 +3902,36 @@
  35327. break
  35328. fi
  35329. ;;
  35330. + msvisualcpp | msvcmsys)
  35331. + # This compiler won't grok `-c -o', but also, the minuso test has
  35332. + # not run yet. These depmodes are late enough in the game, and
  35333. + # so weak that their functioning should not be impacted.
  35334. + am__obj=conftest.${OBJEXT-o}
  35335. + am__minus_obj=
  35336. + ;;
  35337. none) break ;;
  35338. esac
  35339. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  35340. - # mode. It turns out that the SunPro C++ compiler does not properly
  35341. - # handle `-M -o', and we need to detect this.
  35342. if depmode=$depmode \
  35343. - source=conftest.c object=conftest.o \
  35344. - depfile=conftest.Po tmpdepfile=conftest.TPo \
  35345. - $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
  35346. - grep conftest.h conftest.Po > /dev/null 2>&1 &&
  35347. + source=sub/conftest.c object=$am__obj \
  35348. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  35349. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  35350. + >/dev/null 2>conftest.err &&
  35351. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  35352. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  35353. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  35354. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  35355. - am_cv_CC_dependencies_compiler_type=$depmode
  35356. - break
  35357. + # icc doesn't choke on unknown options, it will just issue warnings
  35358. + # or remarks (even with -Werror). So we grep stderr for any message
  35359. + # that says an option was ignored or not supported.
  35360. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  35361. + # icc: Command line warning: ignoring option '-M'; no argument required
  35362. + # The diagnosis changed in icc 8.0:
  35363. + # icc: Command line remark: option '-MP' not supported
  35364. + if (grep 'ignoring option' conftest.err ||
  35365. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  35366. + am_cv_CC_dependencies_compiler_type=$depmode
  35367. + break
  35368. + fi
  35369. fi
  35370. done
  35371. @@ -3045,249 +3942,362 @@
  35372. fi
  35373. fi
  35374. -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  35375. -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  35376. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  35377. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  35378. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  35379. -
  35380. -# Find a good install program. We prefer a C program (faster),
  35381. -# so one script is as good as another. But avoid the broken or
  35382. -# incompatible versions:
  35383. -# SysV /etc/install, /usr/sbin/install
  35384. -# SunOS /usr/etc/install
  35385. -# IRIX /sbin/install
  35386. -# AIX /bin/install
  35387. -# AmigaOS /C/install, which installs bootblocks on floppy discs
  35388. -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  35389. -# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  35390. -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  35391. -# OS/2's system install, which has a completely different semantic
  35392. -# ./install, which can be erroneously created by make from ./install.sh.
  35393. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  35394. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  35395. -if test -z "$INSTALL"; then
  35396. -if test "${ac_cv_path_install+set}" = set; then
  35397. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35398. + if
  35399. + test "x$enable_dependency_tracking" != xno \
  35400. + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  35401. + am__fastdepCC_TRUE=
  35402. + am__fastdepCC_FALSE='#'
  35403. else
  35404. + am__fastdepCC_TRUE='#'
  35405. + am__fastdepCC_FALSE=
  35406. +fi
  35407. +
  35408. +
  35409. +
  35410. +enable_dlopen=yes
  35411. +
  35412. +
  35413. +
  35414. +case `pwd` in
  35415. + *\ * | *\ *)
  35416. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  35417. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  35418. +esac
  35419. +
  35420. +
  35421. +
  35422. +macro_version='2.2.6b'
  35423. +macro_revision='1.3017'
  35424. +
  35425. +
  35426. +
  35427. +
  35428. +
  35429. +
  35430. +
  35431. +
  35432. +
  35433. +
  35434. +
  35435. +
  35436. +
  35437. +ltmain="$ac_aux_dir/ltmain.sh"
  35438. +
  35439. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  35440. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  35441. +if test "${ac_cv_path_SED+set}" = set; then :
  35442. + $as_echo_n "(cached) " >&6
  35443. +else
  35444. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  35445. + for ac_i in 1 2 3 4 5 6 7; do
  35446. + ac_script="$ac_script$as_nl$ac_script"
  35447. + done
  35448. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  35449. + { ac_script=; unset ac_script;}
  35450. + if test -z "$SED"; then
  35451. + ac_path_SED_found=false
  35452. + # Loop through the user's path and test for each of PROGNAME-LIST
  35453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  35454. for as_dir in $PATH
  35455. do
  35456. IFS=$as_save_IFS
  35457. test -z "$as_dir" && as_dir=.
  35458. - # Account for people who put trailing slashes in PATH elements.
  35459. -case $as_dir/ in
  35460. - ./ | .// | /cC/* | \
  35461. - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  35462. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  35463. - /usr/ucb/* ) ;;
  35464. - *)
  35465. - # OSF1 and SCO ODT 3.0 have their own names for install.
  35466. - # Don't use installbsd from OSF since it installs stuff as root
  35467. - # by default.
  35468. - for ac_prog in ginstall scoinst install; do
  35469. - for ac_exec_ext in '' $ac_executable_extensions; do
  35470. - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  35471. - if test $ac_prog = install &&
  35472. - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  35473. - # AIX install. It has an incompatible calling convention.
  35474. - :
  35475. - elif test $ac_prog = install &&
  35476. - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  35477. - # program-specific install script used by HP pwplus--don't use.
  35478. - :
  35479. - else
  35480. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  35481. - break 3
  35482. - fi
  35483. - fi
  35484. - done
  35485. - done
  35486. - ;;
  35487. + for ac_prog in sed gsed; do
  35488. + for ac_exec_ext in '' $ac_executable_extensions; do
  35489. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  35490. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  35491. +# Check for GNU ac_path_SED and select it if it is found.
  35492. + # Check for GNU $ac_path_SED
  35493. +case `"$ac_path_SED" --version 2>&1` in
  35494. +*GNU*)
  35495. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  35496. +*)
  35497. + ac_count=0
  35498. + $as_echo_n 0123456789 >"conftest.in"
  35499. + while :
  35500. + do
  35501. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  35502. + mv "conftest.tmp" "conftest.in"
  35503. + cp "conftest.in" "conftest.nl"
  35504. + $as_echo '' >> "conftest.nl"
  35505. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  35506. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  35507. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  35508. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  35509. + # Best one so far, save it but keep looking for a better one
  35510. + ac_cv_path_SED="$ac_path_SED"
  35511. + ac_path_SED_max=$ac_count
  35512. + fi
  35513. + # 10*(2^10) chars as input seems more than enough
  35514. + test $ac_count -gt 10 && break
  35515. + done
  35516. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  35517. esac
  35518. -done
  35519. -
  35520. -fi
  35521. - if test "${ac_cv_path_install+set}" = set; then
  35522. - INSTALL=$ac_cv_path_install
  35523. - else
  35524. - # As a last resort, use the slow shell script. We don't cache a
  35525. - # path for INSTALL within a source directory, because that will
  35526. - # break other packages using the cache if that directory is
  35527. - # removed, or if the path is relative.
  35528. - INSTALL=$ac_install_sh
  35529. + $ac_path_SED_found && break 3
  35530. + done
  35531. + done
  35532. + done
  35533. +IFS=$as_save_IFS
  35534. + if test -z "$ac_cv_path_SED"; then
  35535. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  35536. fi
  35537. +else
  35538. + ac_cv_path_SED=$SED
  35539. fi
  35540. -echo "$as_me:$LINENO: result: $INSTALL" >&5
  35541. -echo "${ECHO_T}$INSTALL" >&6
  35542. -# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  35543. -# It thinks the first close brace ends the variable substitution.
  35544. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  35545. +fi
  35546. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  35547. +$as_echo "$ac_cv_path_SED" >&6; }
  35548. + SED="$ac_cv_path_SED"
  35549. + rm -f conftest.sed
  35550. +
  35551. +test -z "$SED" && SED=sed
  35552. +Xsed="$SED -e 1s/^X//"
  35553. +
  35554. +
  35555. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  35556. -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  35557. -# Check whether --enable-shared or --disable-shared was given.
  35558. -if test "${enable_shared+set}" = set; then
  35559. - enableval="$enable_shared"
  35560. - p=${PACKAGE-default}
  35561. - case $enableval in
  35562. - yes) enable_shared=yes ;;
  35563. - no) enable_shared=no ;;
  35564. - *)
  35565. - enable_shared=no
  35566. - # Look at the argument we got. We use all the common list separators.
  35567. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  35568. - for pkg in $enableval; do
  35569. - IFS="$lt_save_ifs"
  35570. - if test "X$pkg" = "X$p"; then
  35571. - enable_shared=yes
  35572. - fi
  35573. - done
  35574. - IFS="$lt_save_ifs"
  35575. - ;;
  35576. - esac
  35577. -else
  35578. - enable_shared=yes
  35579. -fi;
  35580. -# Check whether --enable-static or --disable-static was given.
  35581. -if test "${enable_static+set}" = set; then
  35582. - enableval="$enable_static"
  35583. - p=${PACKAGE-default}
  35584. - case $enableval in
  35585. - yes) enable_static=yes ;;
  35586. - no) enable_static=no ;;
  35587. - *)
  35588. - enable_static=no
  35589. - # Look at the argument we got. We use all the common list separators.
  35590. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  35591. - for pkg in $enableval; do
  35592. - IFS="$lt_save_ifs"
  35593. - if test "X$pkg" = "X$p"; then
  35594. - enable_static=yes
  35595. - fi
  35596. - done
  35597. - IFS="$lt_save_ifs"
  35598. - ;;
  35599. - esac
  35600. -else
  35601. - enable_static=yes
  35602. -fi;
  35603. -# Check whether --enable-fast-install or --disable-fast-install was given.
  35604. -if test "${enable_fast_install+set}" = set; then
  35605. - enableval="$enable_fast_install"
  35606. - p=${PACKAGE-default}
  35607. - case $enableval in
  35608. - yes) enable_fast_install=yes ;;
  35609. - no) enable_fast_install=no ;;
  35610. - *)
  35611. - enable_fast_install=no
  35612. - # Look at the argument we got. We use all the common list separators.
  35613. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  35614. - for pkg in $enableval; do
  35615. - IFS="$lt_save_ifs"
  35616. - if test "X$pkg" = "X$p"; then
  35617. - enable_fast_install=yes
  35618. - fi
  35619. - done
  35620. - IFS="$lt_save_ifs"
  35621. - ;;
  35622. - esac
  35623. -else
  35624. - enable_fast_install=yes
  35625. -fi;
  35626. -echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  35627. -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  35628. -if test "${lt_cv_path_SED+set}" = set; then
  35629. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35630. +
  35631. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  35632. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  35633. +if test "${ac_cv_path_GREP+set}" = set; then :
  35634. + $as_echo_n "(cached) " >&6
  35635. else
  35636. - # Loop through the user's path and test for sed and gsed.
  35637. -# Then use that list of sed's as ones to test for truncation.
  35638. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  35639. -for as_dir in $PATH
  35640. + if test -z "$GREP"; then
  35641. + ac_path_GREP_found=false
  35642. + # Loop through the user's path and test for each of PROGNAME-LIST
  35643. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  35644. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  35645. do
  35646. IFS=$as_save_IFS
  35647. test -z "$as_dir" && as_dir=.
  35648. - for lt_ac_prog in sed gsed; do
  35649. + for ac_prog in grep ggrep; do
  35650. for ac_exec_ext in '' $ac_executable_extensions; do
  35651. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  35652. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  35653. - fi
  35654. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  35655. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  35656. +# Check for GNU ac_path_GREP and select it if it is found.
  35657. + # Check for GNU $ac_path_GREP
  35658. +case `"$ac_path_GREP" --version 2>&1` in
  35659. +*GNU*)
  35660. + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  35661. +*)
  35662. + ac_count=0
  35663. + $as_echo_n 0123456789 >"conftest.in"
  35664. + while :
  35665. + do
  35666. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  35667. + mv "conftest.tmp" "conftest.in"
  35668. + cp "conftest.in" "conftest.nl"
  35669. + $as_echo 'GREP' >> "conftest.nl"
  35670. + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  35671. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  35672. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  35673. + if test $ac_count -gt ${ac_path_GREP_max-0}; then
  35674. + # Best one so far, save it but keep looking for a better one
  35675. + ac_cv_path_GREP="$ac_path_GREP"
  35676. + ac_path_GREP_max=$ac_count
  35677. + fi
  35678. + # 10*(2^10) chars as input seems more than enough
  35679. + test $ac_count -gt 10 && break
  35680. + done
  35681. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  35682. +esac
  35683. +
  35684. + $ac_path_GREP_found && break 3
  35685. done
  35686. done
  35687. -done
  35688. -lt_ac_max=0
  35689. -lt_ac_count=0
  35690. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  35691. -# along with /bin/sed that truncates output.
  35692. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  35693. - test ! -f $lt_ac_sed && break
  35694. - cat /dev/null > conftest.in
  35695. - lt_ac_count=0
  35696. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  35697. - # Check for GNU sed and select it if it is found.
  35698. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  35699. - lt_cv_path_SED=$lt_ac_sed
  35700. - break
  35701. + done
  35702. +IFS=$as_save_IFS
  35703. + if test -z "$ac_cv_path_GREP"; then
  35704. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  35705. fi
  35706. - while true; do
  35707. - cat conftest.in conftest.in >conftest.tmp
  35708. - mv conftest.tmp conftest.in
  35709. - cp conftest.in conftest.nl
  35710. - echo >>conftest.nl
  35711. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  35712. - cmp -s conftest.out conftest.nl || break
  35713. - # 10000 chars as input seems more than enough
  35714. - test $lt_ac_count -gt 10 && break
  35715. - lt_ac_count=`expr $lt_ac_count + 1`
  35716. - if test $lt_ac_count -gt $lt_ac_max; then
  35717. - lt_ac_max=$lt_ac_count
  35718. - lt_cv_path_SED=$lt_ac_sed
  35719. +else
  35720. + ac_cv_path_GREP=$GREP
  35721. +fi
  35722. +
  35723. +fi
  35724. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  35725. +$as_echo "$ac_cv_path_GREP" >&6; }
  35726. + GREP="$ac_cv_path_GREP"
  35727. +
  35728. +
  35729. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  35730. +$as_echo_n "checking for egrep... " >&6; }
  35731. +if test "${ac_cv_path_EGREP+set}" = set; then :
  35732. + $as_echo_n "(cached) " >&6
  35733. +else
  35734. + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  35735. + then ac_cv_path_EGREP="$GREP -E"
  35736. + else
  35737. + if test -z "$EGREP"; then
  35738. + ac_path_EGREP_found=false
  35739. + # Loop through the user's path and test for each of PROGNAME-LIST
  35740. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  35741. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  35742. +do
  35743. + IFS=$as_save_IFS
  35744. + test -z "$as_dir" && as_dir=.
  35745. + for ac_prog in egrep; do
  35746. + for ac_exec_ext in '' $ac_executable_extensions; do
  35747. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  35748. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  35749. +# Check for GNU ac_path_EGREP and select it if it is found.
  35750. + # Check for GNU $ac_path_EGREP
  35751. +case `"$ac_path_EGREP" --version 2>&1` in
  35752. +*GNU*)
  35753. + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  35754. +*)
  35755. + ac_count=0
  35756. + $as_echo_n 0123456789 >"conftest.in"
  35757. + while :
  35758. + do
  35759. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  35760. + mv "conftest.tmp" "conftest.in"
  35761. + cp "conftest.in" "conftest.nl"
  35762. + $as_echo 'EGREP' >> "conftest.nl"
  35763. + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  35764. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  35765. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  35766. + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  35767. + # Best one so far, save it but keep looking for a better one
  35768. + ac_cv_path_EGREP="$ac_path_EGREP"
  35769. + ac_path_EGREP_max=$ac_count
  35770. fi
  35771. + # 10*(2^10) chars as input seems more than enough
  35772. + test $ac_count -gt 10 && break
  35773. done
  35774. -done
  35775. -SED=$lt_cv_path_SED
  35776. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  35777. +esac
  35778. +
  35779. + $ac_path_EGREP_found && break 3
  35780. + done
  35781. + done
  35782. + done
  35783. +IFS=$as_save_IFS
  35784. + if test -z "$ac_cv_path_EGREP"; then
  35785. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  35786. + fi
  35787. +else
  35788. + ac_cv_path_EGREP=$EGREP
  35789. +fi
  35790. + fi
  35791. fi
  35792. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  35793. +$as_echo "$ac_cv_path_EGREP" >&6; }
  35794. + EGREP="$ac_cv_path_EGREP"
  35795. -echo "$as_me:$LINENO: result: $SED" >&5
  35796. -echo "${ECHO_T}$SED" >&6
  35797. -echo "$as_me:$LINENO: checking for egrep" >&5
  35798. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  35799. -if test "${ac_cv_prog_egrep+set}" = set; then
  35800. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35801. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  35802. +$as_echo_n "checking for fgrep... " >&6; }
  35803. +if test "${ac_cv_path_FGREP+set}" = set; then :
  35804. + $as_echo_n "(cached) " >&6
  35805. else
  35806. - if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  35807. - then ac_cv_prog_egrep='grep -E'
  35808. - else ac_cv_prog_egrep='egrep'
  35809. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  35810. + then ac_cv_path_FGREP="$GREP -F"
  35811. + else
  35812. + if test -z "$FGREP"; then
  35813. + ac_path_FGREP_found=false
  35814. + # Loop through the user's path and test for each of PROGNAME-LIST
  35815. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  35816. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  35817. +do
  35818. + IFS=$as_save_IFS
  35819. + test -z "$as_dir" && as_dir=.
  35820. + for ac_prog in fgrep; do
  35821. + for ac_exec_ext in '' $ac_executable_extensions; do
  35822. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  35823. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  35824. +# Check for GNU ac_path_FGREP and select it if it is found.
  35825. + # Check for GNU $ac_path_FGREP
  35826. +case `"$ac_path_FGREP" --version 2>&1` in
  35827. +*GNU*)
  35828. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  35829. +*)
  35830. + ac_count=0
  35831. + $as_echo_n 0123456789 >"conftest.in"
  35832. + while :
  35833. + do
  35834. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  35835. + mv "conftest.tmp" "conftest.in"
  35836. + cp "conftest.in" "conftest.nl"
  35837. + $as_echo 'FGREP' >> "conftest.nl"
  35838. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  35839. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  35840. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  35841. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  35842. + # Best one so far, save it but keep looking for a better one
  35843. + ac_cv_path_FGREP="$ac_path_FGREP"
  35844. + ac_path_FGREP_max=$ac_count
  35845. fi
  35846. + # 10*(2^10) chars as input seems more than enough
  35847. + test $ac_count -gt 10 && break
  35848. + done
  35849. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  35850. +esac
  35851. +
  35852. + $ac_path_FGREP_found && break 3
  35853. + done
  35854. + done
  35855. + done
  35856. +IFS=$as_save_IFS
  35857. + if test -z "$ac_cv_path_FGREP"; then
  35858. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  35859. + fi
  35860. +else
  35861. + ac_cv_path_FGREP=$FGREP
  35862. +fi
  35863. +
  35864. + fi
  35865. fi
  35866. -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  35867. -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  35868. - EGREP=$ac_cv_prog_egrep
  35869. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  35870. +$as_echo "$ac_cv_path_FGREP" >&6; }
  35871. + FGREP="$ac_cv_path_FGREP"
  35872. +
  35873. +
  35874. +test -z "$GREP" && GREP=grep
  35875. +
  35876. +
  35877. +
  35878. +
  35879. -# Check whether --with-gnu-ld or --without-gnu-ld was given.
  35880. -if test "${with_gnu_ld+set}" = set; then
  35881. - withval="$with_gnu_ld"
  35882. - test "$withval" = no || with_gnu_ld=yes
  35883. +
  35884. +
  35885. +
  35886. +
  35887. +
  35888. +
  35889. +
  35890. +
  35891. +
  35892. +
  35893. +
  35894. +
  35895. +# Check whether --with-gnu-ld was given.
  35896. +if test "${with_gnu_ld+set}" = set; then :
  35897. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  35898. else
  35899. with_gnu_ld=no
  35900. -fi;
  35901. +fi
  35902. +
  35903. ac_prog=ld
  35904. if test "$GCC" = yes; then
  35905. # Check if gcc -print-prog-name=ld gives a path.
  35906. - echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  35907. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  35908. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  35909. +$as_echo_n "checking for ld used by $CC... " >&6; }
  35910. case $host in
  35911. *-*-mingw*)
  35912. # gcc leaves a trailing carriage return which upsets mingw
  35913. @@ -3299,10 +4309,10 @@
  35914. # Accept absolute paths.
  35915. [\\/]* | ?:[\\/]*)
  35916. re_direlt='/[^/][^/]*/\.\./'
  35917. - # Canonicalize the path of ld
  35918. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  35919. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  35920. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  35921. + # Canonicalize the pathname of ld
  35922. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  35923. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  35924. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  35925. done
  35926. test -z "$LD" && LD="$ac_prog"
  35927. ;;
  35928. @@ -3316,14 +4326,14 @@
  35929. ;;
  35930. esac
  35931. elif test "$with_gnu_ld" = yes; then
  35932. - echo "$as_me:$LINENO: checking for GNU ld" >&5
  35933. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  35934. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  35935. +$as_echo_n "checking for GNU ld... " >&6; }
  35936. else
  35937. - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  35938. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  35939. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  35940. +$as_echo_n "checking for non-GNU ld... " >&6; }
  35941. fi
  35942. -if test "${lt_cv_path_LD+set}" = set; then
  35943. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35944. +if test "${lt_cv_path_LD+set}" = set; then :
  35945. + $as_echo_n "(cached) " >&6
  35946. else
  35947. if test -z "$LD"; then
  35948. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  35949. @@ -3333,7 +4343,7 @@
  35950. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  35951. lt_cv_path_LD="$ac_dir/$ac_prog"
  35952. # Check to see if the program is GNU ld. I'd rather use --version,
  35953. - # but apparently some GNU ld's only accept -v.
  35954. + # but apparently some variants of GNU ld only accept -v.
  35955. # Break only if it was the GNU/non-GNU ld that we prefer.
  35956. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  35957. *GNU* | *'with BFD'*)
  35958. @@ -3353,22 +4363,20 @@
  35959. LD="$lt_cv_path_LD"
  35960. if test -n "$LD"; then
  35961. - echo "$as_me:$LINENO: result: $LD" >&5
  35962. -echo "${ECHO_T}$LD" >&6
  35963. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  35964. +$as_echo "$LD" >&6; }
  35965. else
  35966. - echo "$as_me:$LINENO: result: no" >&5
  35967. -echo "${ECHO_T}no" >&6
  35968. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35969. +$as_echo "no" >&6; }
  35970. fi
  35971. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  35972. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  35973. - { (exit 1); exit 1; }; }
  35974. -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  35975. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  35976. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  35977. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35978. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  35979. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  35980. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  35981. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  35982. + $as_echo_n "(cached) " >&6
  35983. else
  35984. - # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  35985. -case `"$LD" -v 2>&1 </dev/null` in
  35986. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  35987. +case `$LD -v 2>&1 </dev/null` in
  35988. *GNU* | *'with BFD'*)
  35989. lt_cv_prog_gnu_ld=yes
  35990. ;;
  35991. @@ -3377,163 +4385,634 @@
  35992. ;;
  35993. esac
  35994. fi
  35995. -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  35996. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  35997. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  35998. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  35999. with_gnu_ld=$lt_cv_prog_gnu_ld
  36000. -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  36001. -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  36002. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  36003. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36004. -else
  36005. - lt_cv_ld_reload_flag='-r'
  36006. -fi
  36007. -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  36008. -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  36009. -reload_flag=$lt_cv_ld_reload_flag
  36010. -case $reload_flag in
  36011. -"" | " "*) ;;
  36012. -*) reload_flag=" $reload_flag" ;;
  36013. -esac
  36014. -reload_cmds='$CC -nostdlib -Xlinker$reload_flag $archargs -o $output$reload_objs'
  36015. -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  36016. -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  36017. -if test "${lt_cv_path_NM+set}" = set; then
  36018. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36019. +
  36020. +
  36021. +
  36022. +
  36023. +
  36024. +
  36025. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  36026. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  36027. +if test "${lt_cv_path_NM+set}" = set; then :
  36028. + $as_echo_n "(cached) " >&6
  36029. else
  36030. if test -n "$NM"; then
  36031. # Let the user override the test.
  36032. lt_cv_path_NM="$NM"
  36033. else
  36034. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  36035. - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  36036. - IFS="$lt_save_ifs"
  36037. - test -z "$ac_dir" && ac_dir=.
  36038. - tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  36039. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  36040. - # Check to see if the nm accepts a BSD-compat flag.
  36041. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  36042. - # nm: unknown option "B" ignored
  36043. - # Tru64's nm complains that /dev/null is an invalid object file
  36044. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  36045. - */dev/null* | *'Invalid file or object type'*)
  36046. - lt_cv_path_NM="$tmp_nm -B"
  36047. - break
  36048. - ;;
  36049. - *)
  36050. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  36051. - */dev/null*)
  36052. - lt_cv_path_NM="$tmp_nm -p"
  36053. + lt_nm_to_check="${ac_tool_prefix}nm"
  36054. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  36055. + lt_nm_to_check="$lt_nm_to_check nm"
  36056. + fi
  36057. + for lt_tmp_nm in $lt_nm_to_check; do
  36058. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  36059. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  36060. + IFS="$lt_save_ifs"
  36061. + test -z "$ac_dir" && ac_dir=.
  36062. + tmp_nm="$ac_dir/$lt_tmp_nm"
  36063. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  36064. + # Check to see if the nm accepts a BSD-compat flag.
  36065. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  36066. + # nm: unknown option "B" ignored
  36067. + # Tru64's nm complains that /dev/null is an invalid object file
  36068. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  36069. + */dev/null* | *'Invalid file or object type'*)
  36070. + lt_cv_path_NM="$tmp_nm -B"
  36071. break
  36072. ;;
  36073. *)
  36074. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  36075. - continue # so that we can try to find one that supports BSD flags
  36076. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  36077. + */dev/null*)
  36078. + lt_cv_path_NM="$tmp_nm -p"
  36079. + break
  36080. + ;;
  36081. + *)
  36082. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  36083. + continue # so that we can try to find one that supports BSD flags
  36084. + ;;
  36085. + esac
  36086. ;;
  36087. esac
  36088. - esac
  36089. - fi
  36090. + fi
  36091. + done
  36092. + IFS="$lt_save_ifs"
  36093. done
  36094. - IFS="$lt_save_ifs"
  36095. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  36096. + : ${lt_cv_path_NM=no}
  36097. fi
  36098. fi
  36099. -echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  36100. -echo "${ECHO_T}$lt_cv_path_NM" >&6
  36101. -NM="$lt_cv_path_NM"
  36102. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  36103. +$as_echo "$lt_cv_path_NM" >&6; }
  36104. +if test "$lt_cv_path_NM" != "no"; then
  36105. + NM="$lt_cv_path_NM"
  36106. +else
  36107. + # Didn't find any BSD compatible name lister, look for dumpbin.
  36108. + if test -n "$ac_tool_prefix"; then
  36109. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  36110. + do
  36111. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  36112. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  36113. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  36114. +$as_echo_n "checking for $ac_word... " >&6; }
  36115. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  36116. + $as_echo_n "(cached) " >&6
  36117. +else
  36118. + if test -n "$DUMPBIN"; then
  36119. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  36120. +else
  36121. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36122. +for as_dir in $PATH
  36123. +do
  36124. + IFS=$as_save_IFS
  36125. + test -z "$as_dir" && as_dir=.
  36126. + for ac_exec_ext in '' $ac_executable_extensions; do
  36127. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  36128. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  36129. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  36130. + break 2
  36131. + fi
  36132. +done
  36133. + done
  36134. +IFS=$as_save_IFS
  36135. -echo "$as_me:$LINENO: checking whether ln -s works" >&5
  36136. -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  36137. -LN_S=$as_ln_s
  36138. -if test "$LN_S" = "ln -s"; then
  36139. - echo "$as_me:$LINENO: result: yes" >&5
  36140. -echo "${ECHO_T}yes" >&6
  36141. +fi
  36142. +fi
  36143. +DUMPBIN=$ac_cv_prog_DUMPBIN
  36144. +if test -n "$DUMPBIN"; then
  36145. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  36146. +$as_echo "$DUMPBIN" >&6; }
  36147. else
  36148. - echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  36149. -echo "${ECHO_T}no, using $LN_S" >&6
  36150. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36151. +$as_echo "no" >&6; }
  36152. fi
  36153. -echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  36154. -echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  36155. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  36156. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36157. +
  36158. + test -n "$DUMPBIN" && break
  36159. + done
  36160. +fi
  36161. +if test -z "$DUMPBIN"; then
  36162. + ac_ct_DUMPBIN=$DUMPBIN
  36163. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  36164. +do
  36165. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  36166. +set dummy $ac_prog; ac_word=$2
  36167. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  36168. +$as_echo_n "checking for $ac_word... " >&6; }
  36169. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  36170. + $as_echo_n "(cached) " >&6
  36171. else
  36172. - lt_cv_file_magic_cmd='$MAGIC_CMD'
  36173. -lt_cv_file_magic_test_file=
  36174. -lt_cv_deplibs_check_method='unknown'
  36175. -# Need to set the preceding variable on all platforms that support
  36176. -# interlibrary dependencies.
  36177. -# 'none' -- dependencies not supported.
  36178. -# `unknown' -- same as none, but documents that we really don't know.
  36179. -# 'pass_all' -- all dependencies passed with no checks.
  36180. -# 'test_compile' -- check by making test program.
  36181. -# 'file_magic [[regex]]' -- check by looking for files in library path
  36182. -# which responds to the $file_magic_cmd with a given extended regex.
  36183. -# If you have `file' or equivalent on your system and you're not sure
  36184. -# whether `pass_all' will *always* work, you probably want this one.
  36185. + if test -n "$ac_ct_DUMPBIN"; then
  36186. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  36187. +else
  36188. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36189. +for as_dir in $PATH
  36190. +do
  36191. + IFS=$as_save_IFS
  36192. + test -z "$as_dir" && as_dir=.
  36193. + for ac_exec_ext in '' $ac_executable_extensions; do
  36194. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  36195. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  36196. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  36197. + break 2
  36198. + fi
  36199. +done
  36200. + done
  36201. +IFS=$as_save_IFS
  36202. -case $host_os in
  36203. -aix4* | aix5*)
  36204. - lt_cv_deplibs_check_method=pass_all
  36205. - ;;
  36206. +fi
  36207. +fi
  36208. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  36209. +if test -n "$ac_ct_DUMPBIN"; then
  36210. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  36211. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  36212. +else
  36213. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36214. +$as_echo "no" >&6; }
  36215. +fi
  36216. -beos*)
  36217. - lt_cv_deplibs_check_method=pass_all
  36218. - ;;
  36219. -bsdi4*)
  36220. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  36221. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  36222. - lt_cv_file_magic_test_file=/shlib/libc.so
  36223. - ;;
  36224. + test -n "$ac_ct_DUMPBIN" && break
  36225. +done
  36226. -cygwin* | mingw* | pw32*)
  36227. - # win32_libid is a shell function defined in ltmain.sh
  36228. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  36229. - lt_cv_file_magic_cmd='win32_libid'
  36230. - ;;
  36231. + if test "x$ac_ct_DUMPBIN" = x; then
  36232. + DUMPBIN=":"
  36233. + else
  36234. + case $cross_compiling:$ac_tool_warned in
  36235. +yes:)
  36236. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  36237. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  36238. +ac_tool_warned=yes ;;
  36239. +esac
  36240. + DUMPBIN=$ac_ct_DUMPBIN
  36241. + fi
  36242. +fi
  36243. -darwin* | rhapsody*)
  36244. - # this will be overwritten by pass_all, but leave it in just in case
  36245. - lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  36246. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  36247. - case "$host_os" in
  36248. - rhapsody* | darwin1.[012])
  36249. - lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
  36250. - ;;
  36251. - *) # Darwin 1.3 on
  36252. - lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  36253. - ;;
  36254. - esac
  36255. - lt_cv_deplibs_check_method=pass_all
  36256. - ;;
  36257. -freebsd*)
  36258. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  36259. - case $host_cpu in
  36260. - i*86 )
  36261. - # Not sure whether the presence of OpenBSD here was a mistake.
  36262. - # Let's accept both of them until this is cleared up.
  36263. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  36264. - lt_cv_file_magic_cmd=/usr/bin/file
  36265. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  36266. - ;;
  36267. - esac
  36268. - else
  36269. - lt_cv_deplibs_check_method=pass_all
  36270. + if test "$DUMPBIN" != ":"; then
  36271. + NM="$DUMPBIN"
  36272. fi
  36273. - ;;
  36274. +fi
  36275. +test -z "$NM" && NM=nm
  36276. -gnu*)
  36277. - lt_cv_deplibs_check_method=pass_all
  36278. - ;;
  36279. -hpux10.20* | hpux11*)
  36280. - lt_cv_file_magic_cmd=/usr/bin/file
  36281. - case "$host_cpu" in
  36282. - ia64*)
  36283. +
  36284. +
  36285. +
  36286. +
  36287. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  36288. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  36289. +if test "${lt_cv_nm_interface+set}" = set; then :
  36290. + $as_echo_n "(cached) " >&6
  36291. +else
  36292. + lt_cv_nm_interface="BSD nm"
  36293. + echo "int some_variable = 0;" > conftest.$ac_ext
  36294. + (eval echo "\"\$as_me:4574: $ac_compile\"" >&5)
  36295. + (eval "$ac_compile" 2>conftest.err)
  36296. + cat conftest.err >&5
  36297. + (eval echo "\"\$as_me:4577: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  36298. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  36299. + cat conftest.err >&5
  36300. + (eval echo "\"\$as_me:4580: output\"" >&5)
  36301. + cat conftest.out >&5
  36302. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  36303. + lt_cv_nm_interface="MS dumpbin"
  36304. + fi
  36305. + rm -f conftest*
  36306. +fi
  36307. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  36308. +$as_echo "$lt_cv_nm_interface" >&6; }
  36309. +
  36310. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  36311. +$as_echo_n "checking whether ln -s works... " >&6; }
  36312. +LN_S=$as_ln_s
  36313. +if test "$LN_S" = "ln -s"; then
  36314. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36315. +$as_echo "yes" >&6; }
  36316. +else
  36317. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  36318. +$as_echo "no, using $LN_S" >&6; }
  36319. +fi
  36320. +
  36321. +# find the maximum length of command line arguments
  36322. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  36323. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  36324. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  36325. + $as_echo_n "(cached) " >&6
  36326. +else
  36327. + i=0
  36328. + teststring="ABCD"
  36329. +
  36330. + case $build_os in
  36331. + msdosdjgpp*)
  36332. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  36333. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  36334. + # during glob expansion). Even if it were fixed, the result of this
  36335. + # check would be larger than it should be.
  36336. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  36337. + ;;
  36338. +
  36339. + gnu*)
  36340. + # Under GNU Hurd, this test is not required because there is
  36341. + # no limit to the length of command line arguments.
  36342. + # Libtool will interpret -1 as no limit whatsoever
  36343. + lt_cv_sys_max_cmd_len=-1;
  36344. + ;;
  36345. +
  36346. + cygwin* | mingw* | cegcc*)
  36347. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  36348. + # about 5 minutes as the teststring grows exponentially.
  36349. + # Worse, since 9x/ME are not pre-emptively multitasking,
  36350. + # you end up with a "frozen" computer, even though with patience
  36351. + # the test eventually succeeds (with a max line length of 256k).
  36352. + # Instead, let's just punt: use the minimum linelength reported by
  36353. + # all of the supported platforms: 8192 (on NT/2K/XP).
  36354. + lt_cv_sys_max_cmd_len=8192;
  36355. + ;;
  36356. +
  36357. + amigaos*)
  36358. + # On AmigaOS with pdksh, this test takes hours, literally.
  36359. + # So we just punt and use a minimum line length of 8192.
  36360. + lt_cv_sys_max_cmd_len=8192;
  36361. + ;;
  36362. +
  36363. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  36364. + # This has been around since 386BSD, at least. Likely further.
  36365. + if test -x /sbin/sysctl; then
  36366. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  36367. + elif test -x /usr/sbin/sysctl; then
  36368. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  36369. + else
  36370. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  36371. + fi
  36372. + # And add a safety zone
  36373. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  36374. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  36375. + ;;
  36376. +
  36377. + interix*)
  36378. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  36379. + lt_cv_sys_max_cmd_len=196608
  36380. + ;;
  36381. +
  36382. + osf*)
  36383. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  36384. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  36385. + # nice to cause kernel panics so lets avoid the loop below.
  36386. + # First set a reasonable default.
  36387. + lt_cv_sys_max_cmd_len=16384
  36388. + #
  36389. + if test -x /sbin/sysconfig; then
  36390. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  36391. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  36392. + esac
  36393. + fi
  36394. + ;;
  36395. + sco3.2v5*)
  36396. + lt_cv_sys_max_cmd_len=102400
  36397. + ;;
  36398. + sysv5* | sco5v6* | sysv4.2uw2*)
  36399. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  36400. + if test -n "$kargmax"; then
  36401. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  36402. + else
  36403. + lt_cv_sys_max_cmd_len=32768
  36404. + fi
  36405. + ;;
  36406. + *)
  36407. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  36408. + if test -n "$lt_cv_sys_max_cmd_len"; then
  36409. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  36410. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  36411. + else
  36412. + # Make teststring a little bigger before we do anything with it.
  36413. + # a 1K string should be a reasonable start.
  36414. + for i in 1 2 3 4 5 6 7 8 ; do
  36415. + teststring=$teststring$teststring
  36416. + done
  36417. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  36418. + # If test is not a shell built-in, we'll probably end up computing a
  36419. + # maximum length that is only half of the actual maximum length, but
  36420. + # we can't tell.
  36421. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  36422. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  36423. + test $i != 17 # 1/2 MB should be enough
  36424. + do
  36425. + i=`expr $i + 1`
  36426. + teststring=$teststring$teststring
  36427. + done
  36428. + # Only check the string length outside the loop.
  36429. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  36430. + teststring=
  36431. + # Add a significant safety factor because C++ compilers can tack on
  36432. + # massive amounts of additional arguments before passing them to the
  36433. + # linker. It appears as though 1/2 is a usable value.
  36434. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  36435. + fi
  36436. + ;;
  36437. + esac
  36438. +
  36439. +fi
  36440. +
  36441. +if test -n $lt_cv_sys_max_cmd_len ; then
  36442. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  36443. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  36444. +else
  36445. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  36446. +$as_echo "none" >&6; }
  36447. +fi
  36448. +max_cmd_len=$lt_cv_sys_max_cmd_len
  36449. +
  36450. +
  36451. +
  36452. +
  36453. +
  36454. +
  36455. +: ${CP="cp -f"}
  36456. +: ${MV="mv -f"}
  36457. +: ${RM="rm -f"}
  36458. +
  36459. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  36460. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  36461. +# Try some XSI features
  36462. +xsi_shell=no
  36463. +( _lt_dummy="a/b/c"
  36464. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  36465. + = c,a/b,, \
  36466. + && eval 'test $(( 1 + 1 )) -eq 2 \
  36467. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  36468. + && xsi_shell=yes
  36469. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  36470. +$as_echo "$xsi_shell" >&6; }
  36471. +
  36472. +
  36473. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  36474. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  36475. +lt_shell_append=no
  36476. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  36477. + >/dev/null 2>&1 \
  36478. + && lt_shell_append=yes
  36479. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  36480. +$as_echo "$lt_shell_append" >&6; }
  36481. +
  36482. +
  36483. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  36484. + lt_unset=unset
  36485. +else
  36486. + lt_unset=false
  36487. +fi
  36488. +
  36489. +
  36490. +
  36491. +
  36492. +
  36493. +# test EBCDIC or ASCII
  36494. +case `echo X|tr X '\101'` in
  36495. + A) # ASCII based system
  36496. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  36497. + lt_SP2NL='tr \040 \012'
  36498. + lt_NL2SP='tr \015\012 \040\040'
  36499. + ;;
  36500. + *) # EBCDIC based system
  36501. + lt_SP2NL='tr \100 \n'
  36502. + lt_NL2SP='tr \r\n \100\100'
  36503. + ;;
  36504. +esac
  36505. +
  36506. +
  36507. +
  36508. +
  36509. +
  36510. +
  36511. +
  36512. +
  36513. +
  36514. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  36515. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  36516. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  36517. + $as_echo_n "(cached) " >&6
  36518. +else
  36519. + lt_cv_ld_reload_flag='-r'
  36520. +fi
  36521. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  36522. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  36523. +reload_flag=$lt_cv_ld_reload_flag
  36524. +case $reload_flag in
  36525. +"" | " "*) ;;
  36526. +*) reload_flag=" $reload_flag" ;;
  36527. +esac
  36528. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  36529. +case $host_os in
  36530. + darwin*)
  36531. + if test "$GCC" = yes; then
  36532. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  36533. + else
  36534. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  36535. + fi
  36536. + ;;
  36537. +esac
  36538. +
  36539. +
  36540. +
  36541. +
  36542. +
  36543. +
  36544. +
  36545. +
  36546. +
  36547. +if test -n "$ac_tool_prefix"; then
  36548. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  36549. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  36550. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  36551. +$as_echo_n "checking for $ac_word... " >&6; }
  36552. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  36553. + $as_echo_n "(cached) " >&6
  36554. +else
  36555. + if test -n "$OBJDUMP"; then
  36556. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  36557. +else
  36558. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36559. +for as_dir in $PATH
  36560. +do
  36561. + IFS=$as_save_IFS
  36562. + test -z "$as_dir" && as_dir=.
  36563. + for ac_exec_ext in '' $ac_executable_extensions; do
  36564. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  36565. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  36566. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  36567. + break 2
  36568. + fi
  36569. +done
  36570. + done
  36571. +IFS=$as_save_IFS
  36572. +
  36573. +fi
  36574. +fi
  36575. +OBJDUMP=$ac_cv_prog_OBJDUMP
  36576. +if test -n "$OBJDUMP"; then
  36577. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  36578. +$as_echo "$OBJDUMP" >&6; }
  36579. +else
  36580. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36581. +$as_echo "no" >&6; }
  36582. +fi
  36583. +
  36584. +
  36585. +fi
  36586. +if test -z "$ac_cv_prog_OBJDUMP"; then
  36587. + ac_ct_OBJDUMP=$OBJDUMP
  36588. + # Extract the first word of "objdump", so it can be a program name with args.
  36589. +set dummy objdump; ac_word=$2
  36590. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  36591. +$as_echo_n "checking for $ac_word... " >&6; }
  36592. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  36593. + $as_echo_n "(cached) " >&6
  36594. +else
  36595. + if test -n "$ac_ct_OBJDUMP"; then
  36596. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  36597. +else
  36598. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36599. +for as_dir in $PATH
  36600. +do
  36601. + IFS=$as_save_IFS
  36602. + test -z "$as_dir" && as_dir=.
  36603. + for ac_exec_ext in '' $ac_executable_extensions; do
  36604. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  36605. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  36606. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  36607. + break 2
  36608. + fi
  36609. +done
  36610. + done
  36611. +IFS=$as_save_IFS
  36612. +
  36613. +fi
  36614. +fi
  36615. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  36616. +if test -n "$ac_ct_OBJDUMP"; then
  36617. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  36618. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  36619. +else
  36620. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36621. +$as_echo "no" >&6; }
  36622. +fi
  36623. +
  36624. + if test "x$ac_ct_OBJDUMP" = x; then
  36625. + OBJDUMP="false"
  36626. + else
  36627. + case $cross_compiling:$ac_tool_warned in
  36628. +yes:)
  36629. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  36630. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  36631. +ac_tool_warned=yes ;;
  36632. +esac
  36633. + OBJDUMP=$ac_ct_OBJDUMP
  36634. + fi
  36635. +else
  36636. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  36637. +fi
  36638. +
  36639. +test -z "$OBJDUMP" && OBJDUMP=objdump
  36640. +
  36641. +
  36642. +
  36643. +
  36644. +
  36645. +
  36646. +
  36647. +
  36648. +
  36649. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  36650. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  36651. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  36652. + $as_echo_n "(cached) " >&6
  36653. +else
  36654. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  36655. +lt_cv_file_magic_test_file=
  36656. +lt_cv_deplibs_check_method='unknown'
  36657. +# Need to set the preceding variable on all platforms that support
  36658. +# interlibrary dependencies.
  36659. +# 'none' -- dependencies not supported.
  36660. +# `unknown' -- same as none, but documents that we really don't know.
  36661. +# 'pass_all' -- all dependencies passed with no checks.
  36662. +# 'test_compile' -- check by making test program.
  36663. +# 'file_magic [[regex]]' -- check by looking for files in library path
  36664. +# which responds to the $file_magic_cmd with a given extended regex.
  36665. +# If you have `file' or equivalent on your system and you're not sure
  36666. +# whether `pass_all' will *always* work, you probably want this one.
  36667. +
  36668. +case $host_os in
  36669. +aix[4-9]*)
  36670. + lt_cv_deplibs_check_method=pass_all
  36671. + ;;
  36672. +
  36673. +beos*)
  36674. + lt_cv_deplibs_check_method=pass_all
  36675. + ;;
  36676. +
  36677. +bsdi[45]*)
  36678. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  36679. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  36680. + lt_cv_file_magic_test_file=/shlib/libc.so
  36681. + ;;
  36682. +
  36683. +cygwin*)
  36684. + # func_win32_libid is a shell function defined in ltmain.sh
  36685. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  36686. + lt_cv_file_magic_cmd='func_win32_libid'
  36687. + ;;
  36688. +
  36689. +mingw* | pw32*)
  36690. + # Base MSYS/MinGW do not provide the 'file' command needed by
  36691. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  36692. + # unless we find 'file', for example because we are cross-compiling.
  36693. + if ( file / ) >/dev/null 2>&1; then
  36694. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  36695. + lt_cv_file_magic_cmd='func_win32_libid'
  36696. + else
  36697. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  36698. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  36699. + fi
  36700. + ;;
  36701. +
  36702. +cegcc)
  36703. + # use the weaker test based on 'objdump'. See mingw*.
  36704. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  36705. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  36706. + ;;
  36707. +
  36708. +darwin* | rhapsody*)
  36709. + lt_cv_deplibs_check_method=pass_all
  36710. + ;;
  36711. +
  36712. +freebsd* | dragonfly*)
  36713. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  36714. + case $host_cpu in
  36715. + i*86 )
  36716. + # Not sure whether the presence of OpenBSD here was a mistake.
  36717. + # Let's accept both of them until this is cleared up.
  36718. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  36719. + lt_cv_file_magic_cmd=/usr/bin/file
  36720. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  36721. + ;;
  36722. + esac
  36723. + else
  36724. + lt_cv_deplibs_check_method=pass_all
  36725. + fi
  36726. + ;;
  36727. +
  36728. +gnu*)
  36729. + lt_cv_deplibs_check_method=pass_all
  36730. + ;;
  36731. +
  36732. +hpux10.20* | hpux11*)
  36733. + lt_cv_file_magic_cmd=/usr/bin/file
  36734. + case $host_cpu in
  36735. + ia64*)
  36736. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  36737. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  36738. ;;
  36739. @@ -3548,41 +5027,28 @@
  36740. esac
  36741. ;;
  36742. +interix[3-9]*)
  36743. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  36744. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  36745. + ;;
  36746. +
  36747. irix5* | irix6* | nonstopux*)
  36748. - case $host_os in
  36749. - irix5* | nonstopux*)
  36750. - # this will be overridden with pass_all, but let us keep it just in case
  36751. - lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  36752. - ;;
  36753. - *)
  36754. - case $LD in
  36755. - *-32|*"-32 ") libmagic=32-bit;;
  36756. - *-n32|*"-n32 ") libmagic=N32;;
  36757. - *-64|*"-64 ") libmagic=64-bit;;
  36758. - *) libmagic=never-match;;
  36759. - esac
  36760. - # this will be overridden with pass_all, but let us keep it just in case
  36761. - lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
  36762. - ;;
  36763. + case $LD in
  36764. + *-32|*"-32 ") libmagic=32-bit;;
  36765. + *-n32|*"-n32 ") libmagic=N32;;
  36766. + *-64|*"-64 ") libmagic=64-bit;;
  36767. + *) libmagic=never-match;;
  36768. esac
  36769. - lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  36770. lt_cv_deplibs_check_method=pass_all
  36771. ;;
  36772. # This must be Linux ELF.
  36773. -linux*)
  36774. - case $host_cpu in
  36775. - alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
  36776. - lt_cv_deplibs_check_method=pass_all ;;
  36777. - *)
  36778. - # glibc up to 2.1.1 does not perform some relocations on ARM
  36779. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
  36780. - esac
  36781. - lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  36782. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  36783. + lt_cv_deplibs_check_method=pass_all
  36784. ;;
  36785. -netbsd*)
  36786. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  36787. +netbsd* | netbsdelf*-gnu)
  36788. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  36789. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  36790. else
  36791. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  36792. @@ -3595,37 +5061,35 @@
  36793. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  36794. ;;
  36795. -nto-qnx)
  36796. - lt_cv_deplibs_check_method=unknown
  36797. +*nto* | *qnx*)
  36798. + lt_cv_deplibs_check_method=pass_all
  36799. ;;
  36800. openbsd*)
  36801. - lt_cv_file_magic_cmd=/usr/bin/file
  36802. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  36803. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  36804. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  36805. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  36806. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  36807. else
  36808. - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  36809. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  36810. fi
  36811. ;;
  36812. osf3* | osf4* | osf5*)
  36813. - # this will be overridden with pass_all, but let us keep it just in case
  36814. - lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  36815. - lt_cv_file_magic_test_file=/shlib/libc.so
  36816. lt_cv_deplibs_check_method=pass_all
  36817. ;;
  36818. -sco3.2v5*)
  36819. +rdos*)
  36820. lt_cv_deplibs_check_method=pass_all
  36821. ;;
  36822. solaris*)
  36823. lt_cv_deplibs_check_method=pass_all
  36824. - lt_cv_file_magic_test_file=/lib/libc.so
  36825. ;;
  36826. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  36827. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  36828. + lt_cv_deplibs_check_method=pass_all
  36829. + ;;
  36830. +
  36831. +sysv4 | sysv4.3*)
  36832. case $host_vendor in
  36833. motorola)
  36834. 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]'
  36835. @@ -3646,17 +5110,20 @@
  36836. siemens)
  36837. lt_cv_deplibs_check_method=pass_all
  36838. ;;
  36839. + pc)
  36840. + lt_cv_deplibs_check_method=pass_all
  36841. + ;;
  36842. esac
  36843. ;;
  36844. -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  36845. +tpf*)
  36846. lt_cv_deplibs_check_method=pass_all
  36847. ;;
  36848. esac
  36849. fi
  36850. -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  36851. -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  36852. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  36853. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  36854. file_magic_cmd=$lt_cv_file_magic_cmd
  36855. deplibs_check_method=$lt_cv_deplibs_check_method
  36856. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  36857. @@ -3664,608 +5131,334 @@
  36858. -# If no C compiler was specified, use CC.
  36859. -LTCC=${LTCC-"$CC"}
  36860. -
  36861. -# Allow CC to be a program name with arguments.
  36862. -compiler=$CC
  36863. -
  36864. -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  36865. -if test "${enable_libtool_lock+set}" = set; then
  36866. - enableval="$enable_libtool_lock"
  36867. -fi;
  36868. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  36869. -# Some flags need to be propagated to the compiler or linker for good
  36870. -# libtool support.
  36871. -case $host in
  36872. -ia64-*-hpux*)
  36873. - # Find out which ABI we are using.
  36874. - echo 'int i;' > conftest.$ac_ext
  36875. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  36876. - (eval $ac_compile) 2>&5
  36877. - ac_status=$?
  36878. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36879. - (exit $ac_status); }; then
  36880. - case `/usr/bin/file conftest.$ac_objext` in
  36881. - *ELF-32*)
  36882. - HPUX_IA64_MODE="32"
  36883. - ;;
  36884. - *ELF-64*)
  36885. - HPUX_IA64_MODE="64"
  36886. - ;;
  36887. - esac
  36888. - fi
  36889. - rm -rf conftest*
  36890. - ;;
  36891. -*-*-irix6*)
  36892. - # Find out which ABI we are using.
  36893. - echo '#line 3705 "configure"' > conftest.$ac_ext
  36894. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  36895. - (eval $ac_compile) 2>&5
  36896. - ac_status=$?
  36897. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36898. - (exit $ac_status); }; then
  36899. - if test "$lt_cv_prog_gnu_ld" = yes; then
  36900. - case `/usr/bin/file conftest.$ac_objext` in
  36901. - *32-bit*)
  36902. - LD="${LD-ld} -melf32bsmip"
  36903. - ;;
  36904. - *N32*)
  36905. - LD="${LD-ld} -melf32bmipn32"
  36906. - ;;
  36907. - *64-bit*)
  36908. - LD="${LD-ld} -melf64bmip"
  36909. - ;;
  36910. - esac
  36911. - else
  36912. - case `/usr/bin/file conftest.$ac_objext` in
  36913. - *32-bit*)
  36914. - LD="${LD-ld} -32"
  36915. - ;;
  36916. - *N32*)
  36917. - LD="${LD-ld} -n32"
  36918. - ;;
  36919. - *64-bit*)
  36920. - LD="${LD-ld} -64"
  36921. - ;;
  36922. - esac
  36923. - fi
  36924. - fi
  36925. - rm -rf conftest*
  36926. - ;;
  36927. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  36928. - # Find out which ABI we are using.
  36929. - echo 'int i;' > conftest.$ac_ext
  36930. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  36931. - (eval $ac_compile) 2>&5
  36932. - ac_status=$?
  36933. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36934. - (exit $ac_status); }; then
  36935. - case "`/usr/bin/file conftest.o`" in
  36936. - *32-bit*)
  36937. - case $host in
  36938. - x86_64-*linux*)
  36939. - LD="${LD-ld} -m elf_i386"
  36940. - ;;
  36941. - ppc64-*linux*)
  36942. - LD="${LD-ld} -m elf32ppclinux"
  36943. - ;;
  36944. - s390x-*linux*)
  36945. - LD="${LD-ld} -m elf_s390"
  36946. - ;;
  36947. - sparc64-*linux*)
  36948. - LD="${LD-ld} -m elf32_sparc"
  36949. - ;;
  36950. - esac
  36951. - ;;
  36952. - *64-bit*)
  36953. - case $host in
  36954. - x86_64-*linux*)
  36955. - LD="${LD-ld} -m elf_x86_64"
  36956. - ;;
  36957. - ppc*-*linux*|powerpc*-*linux*)
  36958. - LD="${LD-ld} -m elf64ppc"
  36959. - ;;
  36960. - s390*-*linux*)
  36961. - LD="${LD-ld} -m elf64_s390"
  36962. - ;;
  36963. - sparc*-*linux*)
  36964. - LD="${LD-ld} -m elf64_sparc"
  36965. - ;;
  36966. - esac
  36967. - ;;
  36968. - esac
  36969. - fi
  36970. - rm -rf conftest*
  36971. - ;;
  36972. -*-*-sco3.2v5*)
  36973. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  36974. - SAVE_CFLAGS="$CFLAGS"
  36975. - CFLAGS="$CFLAGS -belf"
  36976. - echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  36977. -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  36978. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  36979. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36980. -else
  36981. - ac_ext=c
  36982. -ac_cpp='$CPP $CPPFLAGS'
  36983. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36984. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36985. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36986. - cat >conftest.$ac_ext <<_ACEOF
  36987. -/* confdefs.h. */
  36988. -_ACEOF
  36989. -cat confdefs.h >>conftest.$ac_ext
  36990. -cat >>conftest.$ac_ext <<_ACEOF
  36991. -/* end confdefs.h. */
  36992. -int
  36993. -main ()
  36994. -{
  36995. - ;
  36996. - return 0;
  36997. -}
  36998. -_ACEOF
  36999. -rm -f conftest.$ac_objext conftest$ac_exeext
  37000. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  37001. - (eval $ac_link) 2>conftest.er1
  37002. - ac_status=$?
  37003. - grep -v '^ *+' conftest.er1 >conftest.err
  37004. - rm -f conftest.er1
  37005. - cat conftest.err >&5
  37006. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37007. - (exit $ac_status); } &&
  37008. - { ac_try='test -z "$ac_c_werror_flag"
  37009. - || test ! -s conftest.err'
  37010. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37011. - (eval $ac_try) 2>&5
  37012. - ac_status=$?
  37013. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37014. - (exit $ac_status); }; } &&
  37015. - { ac_try='test -s conftest$ac_exeext'
  37016. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37017. - (eval $ac_try) 2>&5
  37018. - ac_status=$?
  37019. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37020. - (exit $ac_status); }; }; then
  37021. - lt_cv_cc_needs_belf=yes
  37022. +if test -n "$ac_tool_prefix"; then
  37023. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  37024. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  37025. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  37026. +$as_echo_n "checking for $ac_word... " >&6; }
  37027. +if test "${ac_cv_prog_AR+set}" = set; then :
  37028. + $as_echo_n "(cached) " >&6
  37029. else
  37030. - echo "$as_me: failed program was:" >&5
  37031. -sed 's/^/| /' conftest.$ac_ext >&5
  37032. + if test -n "$AR"; then
  37033. + ac_cv_prog_AR="$AR" # Let the user override the test.
  37034. +else
  37035. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37036. +for as_dir in $PATH
  37037. +do
  37038. + IFS=$as_save_IFS
  37039. + test -z "$as_dir" && as_dir=.
  37040. + for ac_exec_ext in '' $ac_executable_extensions; do
  37041. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  37042. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  37043. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  37044. + break 2
  37045. + fi
  37046. +done
  37047. + done
  37048. +IFS=$as_save_IFS
  37049. -lt_cv_cc_needs_belf=no
  37050. fi
  37051. -rm -f conftest.err conftest.$ac_objext \
  37052. - conftest$ac_exeext conftest.$ac_ext
  37053. - ac_ext=c
  37054. -ac_cpp='$CPP $CPPFLAGS'
  37055. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37056. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37057. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37058. -
  37059. fi
  37060. -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  37061. -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  37062. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  37063. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  37064. - CFLAGS="$SAVE_CFLAGS"
  37065. - fi
  37066. - ;;
  37067. -
  37068. -esac
  37069. -
  37070. -need_locks="$enable_libtool_lock"
  37071. +AR=$ac_cv_prog_AR
  37072. +if test -n "$AR"; then
  37073. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  37074. +$as_echo "$AR" >&6; }
  37075. +else
  37076. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37077. +$as_echo "no" >&6; }
  37078. +fi
  37079. -ac_ext=c
  37080. -ac_cpp='$CPP $CPPFLAGS'
  37081. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37082. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37083. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37084. -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  37085. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  37086. -# On Suns, sometimes $CPP names a directory.
  37087. -if test -n "$CPP" && test -d "$CPP"; then
  37088. - CPP=
  37089. fi
  37090. -if test -z "$CPP"; then
  37091. - if test "${ac_cv_prog_CPP+set}" = set; then
  37092. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37093. +if test -z "$ac_cv_prog_AR"; then
  37094. + ac_ct_AR=$AR
  37095. + # Extract the first word of "ar", so it can be a program name with args.
  37096. +set dummy ar; ac_word=$2
  37097. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  37098. +$as_echo_n "checking for $ac_word... " >&6; }
  37099. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  37100. + $as_echo_n "(cached) " >&6
  37101. else
  37102. - # Double quotes because CPP needs to be expanded
  37103. - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  37104. - do
  37105. - ac_preproc_ok=false
  37106. -for ac_c_preproc_warn_flag in '' yes
  37107. + if test -n "$ac_ct_AR"; then
  37108. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  37109. +else
  37110. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37111. +for as_dir in $PATH
  37112. do
  37113. - # Use a header file that comes with gcc, so configuring glibc
  37114. - # with a fresh cross-compiler works.
  37115. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  37116. - # <limits.h> exists even on freestanding compilers.
  37117. - # On the NeXT, cc -E runs the code through the compiler's parser,
  37118. - # not just through cpp. "Syntax error" is here to catch this case.
  37119. - cat >conftest.$ac_ext <<_ACEOF
  37120. -/* confdefs.h. */
  37121. -_ACEOF
  37122. -cat confdefs.h >>conftest.$ac_ext
  37123. -cat >>conftest.$ac_ext <<_ACEOF
  37124. -/* end confdefs.h. */
  37125. -#ifdef __STDC__
  37126. -# include <limits.h>
  37127. -#else
  37128. -# include <assert.h>
  37129. -#endif
  37130. - Syntax error
  37131. -_ACEOF
  37132. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  37133. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  37134. - ac_status=$?
  37135. - grep -v '^ *+' conftest.er1 >conftest.err
  37136. - rm -f conftest.er1
  37137. - cat conftest.err >&5
  37138. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37139. - (exit $ac_status); } >/dev/null; then
  37140. - if test -s conftest.err; then
  37141. - ac_cpp_err=$ac_c_preproc_warn_flag
  37142. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  37143. - else
  37144. - ac_cpp_err=
  37145. + IFS=$as_save_IFS
  37146. + test -z "$as_dir" && as_dir=.
  37147. + for ac_exec_ext in '' $ac_executable_extensions; do
  37148. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  37149. + ac_cv_prog_ac_ct_AR="ar"
  37150. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  37151. + break 2
  37152. fi
  37153. -else
  37154. - ac_cpp_err=yes
  37155. +done
  37156. + done
  37157. +IFS=$as_save_IFS
  37158. +
  37159. fi
  37160. -if test -z "$ac_cpp_err"; then
  37161. - :
  37162. +fi
  37163. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  37164. +if test -n "$ac_ct_AR"; then
  37165. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  37166. +$as_echo "$ac_ct_AR" >&6; }
  37167. else
  37168. - echo "$as_me: failed program was:" >&5
  37169. -sed 's/^/| /' conftest.$ac_ext >&5
  37170. -
  37171. - # Broken: fails on valid input.
  37172. -continue
  37173. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37174. +$as_echo "no" >&6; }
  37175. fi
  37176. -rm -f conftest.err conftest.$ac_ext
  37177. - # OK, works on sane cases. Now check whether non-existent headers
  37178. - # can be detected and how.
  37179. - cat >conftest.$ac_ext <<_ACEOF
  37180. -/* confdefs.h. */
  37181. -_ACEOF
  37182. -cat confdefs.h >>conftest.$ac_ext
  37183. -cat >>conftest.$ac_ext <<_ACEOF
  37184. -/* end confdefs.h. */
  37185. -#include <ac_nonexistent.h>
  37186. -_ACEOF
  37187. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  37188. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  37189. - ac_status=$?
  37190. - grep -v '^ *+' conftest.er1 >conftest.err
  37191. - rm -f conftest.er1
  37192. - cat conftest.err >&5
  37193. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37194. - (exit $ac_status); } >/dev/null; then
  37195. - if test -s conftest.err; then
  37196. - ac_cpp_err=$ac_c_preproc_warn_flag
  37197. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  37198. + if test "x$ac_ct_AR" = x; then
  37199. + AR="false"
  37200. else
  37201. - ac_cpp_err=
  37202. + case $cross_compiling:$ac_tool_warned in
  37203. +yes:)
  37204. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  37205. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  37206. +ac_tool_warned=yes ;;
  37207. +esac
  37208. + AR=$ac_ct_AR
  37209. fi
  37210. else
  37211. - ac_cpp_err=yes
  37212. + AR="$ac_cv_prog_AR"
  37213. fi
  37214. -if test -z "$ac_cpp_err"; then
  37215. - # Broken: success on invalid input.
  37216. -continue
  37217. -else
  37218. - echo "$as_me: failed program was:" >&5
  37219. -sed 's/^/| /' conftest.$ac_ext >&5
  37220. - # Passes both tests.
  37221. -ac_preproc_ok=:
  37222. -break
  37223. -fi
  37224. -rm -f conftest.err conftest.$ac_ext
  37225. +test -z "$AR" && AR=ar
  37226. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  37227. +
  37228. +
  37229. +
  37230. +
  37231. +
  37232. +
  37233. +
  37234. +
  37235. +
  37236. +
  37237. +if test -n "$ac_tool_prefix"; then
  37238. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  37239. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  37240. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  37241. +$as_echo_n "checking for $ac_word... " >&6; }
  37242. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  37243. + $as_echo_n "(cached) " >&6
  37244. +else
  37245. + if test -n "$STRIP"; then
  37246. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  37247. +else
  37248. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37249. +for as_dir in $PATH
  37250. +do
  37251. + IFS=$as_save_IFS
  37252. + test -z "$as_dir" && as_dir=.
  37253. + for ac_exec_ext in '' $ac_executable_extensions; do
  37254. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  37255. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  37256. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  37257. + break 2
  37258. + fi
  37259. done
  37260. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  37261. -rm -f conftest.err conftest.$ac_ext
  37262. -if $ac_preproc_ok; then
  37263. - break
  37264. + done
  37265. +IFS=$as_save_IFS
  37266. +
  37267. +fi
  37268. +fi
  37269. +STRIP=$ac_cv_prog_STRIP
  37270. +if test -n "$STRIP"; then
  37271. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  37272. +$as_echo "$STRIP" >&6; }
  37273. +else
  37274. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37275. +$as_echo "no" >&6; }
  37276. fi
  37277. - done
  37278. - ac_cv_prog_CPP=$CPP
  37279. fi
  37280. - CPP=$ac_cv_prog_CPP
  37281. +if test -z "$ac_cv_prog_STRIP"; then
  37282. + ac_ct_STRIP=$STRIP
  37283. + # Extract the first word of "strip", so it can be a program name with args.
  37284. +set dummy strip; ac_word=$2
  37285. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  37286. +$as_echo_n "checking for $ac_word... " >&6; }
  37287. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  37288. + $as_echo_n "(cached) " >&6
  37289. else
  37290. - ac_cv_prog_CPP=$CPP
  37291. -fi
  37292. -echo "$as_me:$LINENO: result: $CPP" >&5
  37293. -echo "${ECHO_T}$CPP" >&6
  37294. -ac_preproc_ok=false
  37295. -for ac_c_preproc_warn_flag in '' yes
  37296. -do
  37297. - # Use a header file that comes with gcc, so configuring glibc
  37298. - # with a fresh cross-compiler works.
  37299. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  37300. - # <limits.h> exists even on freestanding compilers.
  37301. - # On the NeXT, cc -E runs the code through the compiler's parser,
  37302. - # not just through cpp. "Syntax error" is here to catch this case.
  37303. - cat >conftest.$ac_ext <<_ACEOF
  37304. -/* confdefs.h. */
  37305. -_ACEOF
  37306. -cat confdefs.h >>conftest.$ac_ext
  37307. -cat >>conftest.$ac_ext <<_ACEOF
  37308. -/* end confdefs.h. */
  37309. -#ifdef __STDC__
  37310. -# include <limits.h>
  37311. -#else
  37312. -# include <assert.h>
  37313. -#endif
  37314. - Syntax error
  37315. -_ACEOF
  37316. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  37317. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  37318. - ac_status=$?
  37319. - grep -v '^ *+' conftest.er1 >conftest.err
  37320. - rm -f conftest.er1
  37321. - cat conftest.err >&5
  37322. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37323. - (exit $ac_status); } >/dev/null; then
  37324. - if test -s conftest.err; then
  37325. - ac_cpp_err=$ac_c_preproc_warn_flag
  37326. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  37327. - else
  37328. - ac_cpp_err=
  37329. - fi
  37330. + if test -n "$ac_ct_STRIP"; then
  37331. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  37332. else
  37333. - ac_cpp_err=yes
  37334. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37335. +for as_dir in $PATH
  37336. +do
  37337. + IFS=$as_save_IFS
  37338. + test -z "$as_dir" && as_dir=.
  37339. + for ac_exec_ext in '' $ac_executable_extensions; do
  37340. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  37341. + ac_cv_prog_ac_ct_STRIP="strip"
  37342. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  37343. + break 2
  37344. + fi
  37345. +done
  37346. + done
  37347. +IFS=$as_save_IFS
  37348. +
  37349. fi
  37350. -if test -z "$ac_cpp_err"; then
  37351. - :
  37352. +fi
  37353. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  37354. +if test -n "$ac_ct_STRIP"; then
  37355. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  37356. +$as_echo "$ac_ct_STRIP" >&6; }
  37357. else
  37358. - echo "$as_me: failed program was:" >&5
  37359. -sed 's/^/| /' conftest.$ac_ext >&5
  37360. -
  37361. - # Broken: fails on valid input.
  37362. -continue
  37363. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37364. +$as_echo "no" >&6; }
  37365. fi
  37366. -rm -f conftest.err conftest.$ac_ext
  37367. - # OK, works on sane cases. Now check whether non-existent headers
  37368. - # can be detected and how.
  37369. - cat >conftest.$ac_ext <<_ACEOF
  37370. -/* confdefs.h. */
  37371. -_ACEOF
  37372. -cat confdefs.h >>conftest.$ac_ext
  37373. -cat >>conftest.$ac_ext <<_ACEOF
  37374. -/* end confdefs.h. */
  37375. -#include <ac_nonexistent.h>
  37376. -_ACEOF
  37377. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  37378. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  37379. - ac_status=$?
  37380. - grep -v '^ *+' conftest.er1 >conftest.err
  37381. - rm -f conftest.er1
  37382. - cat conftest.err >&5
  37383. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37384. - (exit $ac_status); } >/dev/null; then
  37385. - if test -s conftest.err; then
  37386. - ac_cpp_err=$ac_c_preproc_warn_flag
  37387. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  37388. + if test "x$ac_ct_STRIP" = x; then
  37389. + STRIP=":"
  37390. else
  37391. - ac_cpp_err=
  37392. + case $cross_compiling:$ac_tool_warned in
  37393. +yes:)
  37394. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  37395. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  37396. +ac_tool_warned=yes ;;
  37397. +esac
  37398. + STRIP=$ac_ct_STRIP
  37399. fi
  37400. else
  37401. - ac_cpp_err=yes
  37402. + STRIP="$ac_cv_prog_STRIP"
  37403. fi
  37404. -if test -z "$ac_cpp_err"; then
  37405. - # Broken: success on invalid input.
  37406. -continue
  37407. -else
  37408. - echo "$as_me: failed program was:" >&5
  37409. -sed 's/^/| /' conftest.$ac_ext >&5
  37410. - # Passes both tests.
  37411. -ac_preproc_ok=:
  37412. -break
  37413. -fi
  37414. -rm -f conftest.err conftest.$ac_ext
  37415. +test -z "$STRIP" && STRIP=:
  37416. -done
  37417. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  37418. -rm -f conftest.err conftest.$ac_ext
  37419. -if $ac_preproc_ok; then
  37420. - :
  37421. -else
  37422. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  37423. -See \`config.log' for more details." >&5
  37424. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  37425. -See \`config.log' for more details." >&2;}
  37426. - { (exit 1); exit 1; }; }
  37427. -fi
  37428. -ac_ext=c
  37429. -ac_cpp='$CPP $CPPFLAGS'
  37430. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37431. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37432. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37433. -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  37434. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  37435. -if test "${ac_cv_header_stdc+set}" = set; then
  37436. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37437. -else
  37438. - cat >conftest.$ac_ext <<_ACEOF
  37439. -/* confdefs.h. */
  37440. -_ACEOF
  37441. -cat confdefs.h >>conftest.$ac_ext
  37442. -cat >>conftest.$ac_ext <<_ACEOF
  37443. -/* end confdefs.h. */
  37444. -#include <stdlib.h>
  37445. -#include <stdarg.h>
  37446. -#include <string.h>
  37447. -#include <float.h>
  37448. -int
  37449. -main ()
  37450. -{
  37451. - ;
  37452. - return 0;
  37453. -}
  37454. -_ACEOF
  37455. -rm -f conftest.$ac_objext
  37456. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  37457. - (eval $ac_compile) 2>conftest.er1
  37458. - ac_status=$?
  37459. - grep -v '^ *+' conftest.er1 >conftest.err
  37460. - rm -f conftest.er1
  37461. - cat conftest.err >&5
  37462. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37463. - (exit $ac_status); } &&
  37464. - { ac_try='test -z "$ac_c_werror_flag"
  37465. - || test ! -s conftest.err'
  37466. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37467. - (eval $ac_try) 2>&5
  37468. - ac_status=$?
  37469. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37470. - (exit $ac_status); }; } &&
  37471. - { ac_try='test -s conftest.$ac_objext'
  37472. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37473. - (eval $ac_try) 2>&5
  37474. - ac_status=$?
  37475. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37476. - (exit $ac_status); }; }; then
  37477. - ac_cv_header_stdc=yes
  37478. +if test -n "$ac_tool_prefix"; then
  37479. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  37480. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  37481. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  37482. +$as_echo_n "checking for $ac_word... " >&6; }
  37483. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  37484. + $as_echo_n "(cached) " >&6
  37485. else
  37486. - echo "$as_me: failed program was:" >&5
  37487. -sed 's/^/| /' conftest.$ac_ext >&5
  37488. -
  37489. -ac_cv_header_stdc=no
  37490. -fi
  37491. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  37492. -
  37493. -if test $ac_cv_header_stdc = yes; then
  37494. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  37495. - cat >conftest.$ac_ext <<_ACEOF
  37496. -/* confdefs.h. */
  37497. -_ACEOF
  37498. -cat confdefs.h >>conftest.$ac_ext
  37499. -cat >>conftest.$ac_ext <<_ACEOF
  37500. -/* end confdefs.h. */
  37501. -#include <string.h>
  37502. -
  37503. -_ACEOF
  37504. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  37505. - $EGREP "memchr" >/dev/null 2>&1; then
  37506. - :
  37507. + if test -n "$RANLIB"; then
  37508. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  37509. else
  37510. - ac_cv_header_stdc=no
  37511. -fi
  37512. -rm -f conftest*
  37513. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37514. +for as_dir in $PATH
  37515. +do
  37516. + IFS=$as_save_IFS
  37517. + test -z "$as_dir" && as_dir=.
  37518. + for ac_exec_ext in '' $ac_executable_extensions; do
  37519. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  37520. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  37521. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  37522. + break 2
  37523. + fi
  37524. +done
  37525. + done
  37526. +IFS=$as_save_IFS
  37527. fi
  37528. -
  37529. -if test $ac_cv_header_stdc = yes; then
  37530. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  37531. - cat >conftest.$ac_ext <<_ACEOF
  37532. -/* confdefs.h. */
  37533. -_ACEOF
  37534. -cat confdefs.h >>conftest.$ac_ext
  37535. -cat >>conftest.$ac_ext <<_ACEOF
  37536. -/* end confdefs.h. */
  37537. -#include <stdlib.h>
  37538. -
  37539. -_ACEOF
  37540. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  37541. - $EGREP "free" >/dev/null 2>&1; then
  37542. - :
  37543. +fi
  37544. +RANLIB=$ac_cv_prog_RANLIB
  37545. +if test -n "$RANLIB"; then
  37546. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  37547. +$as_echo "$RANLIB" >&6; }
  37548. else
  37549. - ac_cv_header_stdc=no
  37550. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37551. +$as_echo "no" >&6; }
  37552. fi
  37553. -rm -f conftest*
  37554. -fi
  37555. -if test $ac_cv_header_stdc = yes; then
  37556. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  37557. - if test "$cross_compiling" = yes; then
  37558. - :
  37559. +fi
  37560. +if test -z "$ac_cv_prog_RANLIB"; then
  37561. + ac_ct_RANLIB=$RANLIB
  37562. + # Extract the first word of "ranlib", so it can be a program name with args.
  37563. +set dummy ranlib; ac_word=$2
  37564. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  37565. +$as_echo_n "checking for $ac_word... " >&6; }
  37566. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  37567. + $as_echo_n "(cached) " >&6
  37568. else
  37569. - cat >conftest.$ac_ext <<_ACEOF
  37570. -/* confdefs.h. */
  37571. -_ACEOF
  37572. -cat confdefs.h >>conftest.$ac_ext
  37573. -cat >>conftest.$ac_ext <<_ACEOF
  37574. -/* end confdefs.h. */
  37575. -#include <ctype.h>
  37576. -#if ((' ' & 0x0FF) == 0x020)
  37577. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  37578. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  37579. -#else
  37580. -# define ISLOWER(c) \
  37581. - (('a' <= (c) && (c) <= 'i') \
  37582. - || ('j' <= (c) && (c) <= 'r') \
  37583. - || ('s' <= (c) && (c) <= 'z'))
  37584. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  37585. -#endif
  37586. -
  37587. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  37588. -int
  37589. -main ()
  37590. -{
  37591. - int i;
  37592. - for (i = 0; i < 256; i++)
  37593. - if (XOR (islower (i), ISLOWER (i))
  37594. - || toupper (i) != TOUPPER (i))
  37595. - exit(2);
  37596. - exit (0);
  37597. -}
  37598. -_ACEOF
  37599. -rm -f conftest$ac_exeext
  37600. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  37601. - (eval $ac_link) 2>&5
  37602. - ac_status=$?
  37603. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37604. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  37605. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37606. - (eval $ac_try) 2>&5
  37607. - ac_status=$?
  37608. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37609. - (exit $ac_status); }; }; then
  37610. - :
  37611. + if test -n "$ac_ct_RANLIB"; then
  37612. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  37613. else
  37614. - echo "$as_me: program exited with status $ac_status" >&5
  37615. -echo "$as_me: failed program was:" >&5
  37616. -sed 's/^/| /' conftest.$ac_ext >&5
  37617. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37618. +for as_dir in $PATH
  37619. +do
  37620. + IFS=$as_save_IFS
  37621. + test -z "$as_dir" && as_dir=.
  37622. + for ac_exec_ext in '' $ac_executable_extensions; do
  37623. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  37624. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  37625. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  37626. + break 2
  37627. + fi
  37628. +done
  37629. + done
  37630. +IFS=$as_save_IFS
  37631. -( exit $ac_status )
  37632. -ac_cv_header_stdc=no
  37633. fi
  37634. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  37635. fi
  37636. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  37637. +if test -n "$ac_ct_RANLIB"; then
  37638. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  37639. +$as_echo "$ac_ct_RANLIB" >&6; }
  37640. +else
  37641. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37642. +$as_echo "no" >&6; }
  37643. fi
  37644. +
  37645. + if test "x$ac_ct_RANLIB" = x; then
  37646. + RANLIB=":"
  37647. + else
  37648. + case $cross_compiling:$ac_tool_warned in
  37649. +yes:)
  37650. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  37651. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  37652. +ac_tool_warned=yes ;;
  37653. +esac
  37654. + RANLIB=$ac_ct_RANLIB
  37655. + fi
  37656. +else
  37657. + RANLIB="$ac_cv_prog_RANLIB"
  37658. fi
  37659. -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  37660. -echo "${ECHO_T}$ac_cv_header_stdc" >&6
  37661. -if test $ac_cv_header_stdc = yes; then
  37662. -cat >>confdefs.h <<\_ACEOF
  37663. -#define STDC_HEADERS 1
  37664. -_ACEOF
  37665. +test -z "$RANLIB" && RANLIB=:
  37666. +
  37667. +
  37668. +
  37669. +
  37670. +
  37671. +
  37672. +# Determine commands to create old-style static archives.
  37673. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  37674. +old_postinstall_cmds='chmod 644 $oldlib'
  37675. +old_postuninstall_cmds=
  37676. +if test -n "$RANLIB"; then
  37677. + case $host_os in
  37678. + openbsd*)
  37679. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  37680. + ;;
  37681. + *)
  37682. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  37683. + ;;
  37684. + esac
  37685. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  37686. fi
  37687. -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  37688. @@ -4275,1733 +5468,1632 @@
  37689. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  37690. - inttypes.h stdint.h unistd.h
  37691. -do
  37692. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  37693. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  37694. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  37695. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  37696. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37697. -else
  37698. - cat >conftest.$ac_ext <<_ACEOF
  37699. -/* confdefs.h. */
  37700. -_ACEOF
  37701. -cat confdefs.h >>conftest.$ac_ext
  37702. -cat >>conftest.$ac_ext <<_ACEOF
  37703. -/* end confdefs.h. */
  37704. -$ac_includes_default
  37705. -#include <$ac_header>
  37706. -_ACEOF
  37707. -rm -f conftest.$ac_objext
  37708. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  37709. - (eval $ac_compile) 2>conftest.er1
  37710. - ac_status=$?
  37711. - grep -v '^ *+' conftest.er1 >conftest.err
  37712. - rm -f conftest.er1
  37713. - cat conftest.err >&5
  37714. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37715. - (exit $ac_status); } &&
  37716. - { ac_try='test -z "$ac_c_werror_flag"
  37717. - || test ! -s conftest.err'
  37718. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37719. - (eval $ac_try) 2>&5
  37720. - ac_status=$?
  37721. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37722. - (exit $ac_status); }; } &&
  37723. - { ac_try='test -s conftest.$ac_objext'
  37724. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37725. - (eval $ac_try) 2>&5
  37726. - ac_status=$?
  37727. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37728. - (exit $ac_status); }; }; then
  37729. - eval "$as_ac_Header=yes"
  37730. -else
  37731. - echo "$as_me: failed program was:" >&5
  37732. -sed 's/^/| /' conftest.$ac_ext >&5
  37733. -eval "$as_ac_Header=no"
  37734. -fi
  37735. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  37736. -fi
  37737. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  37738. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  37739. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  37740. - cat >>confdefs.h <<_ACEOF
  37741. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  37742. -_ACEOF
  37743. -fi
  37744. -done
  37745. -for ac_header in dlfcn.h
  37746. -do
  37747. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  37748. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  37749. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  37750. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  37751. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  37752. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37753. -fi
  37754. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  37755. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  37756. -else
  37757. - # Is the header compilable?
  37758. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  37759. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  37760. -cat >conftest.$ac_ext <<_ACEOF
  37761. -/* confdefs.h. */
  37762. -_ACEOF
  37763. -cat confdefs.h >>conftest.$ac_ext
  37764. -cat >>conftest.$ac_ext <<_ACEOF
  37765. -/* end confdefs.h. */
  37766. -$ac_includes_default
  37767. -#include <$ac_header>
  37768. -_ACEOF
  37769. -rm -f conftest.$ac_objext
  37770. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  37771. - (eval $ac_compile) 2>conftest.er1
  37772. - ac_status=$?
  37773. - grep -v '^ *+' conftest.er1 >conftest.err
  37774. - rm -f conftest.er1
  37775. - cat conftest.err >&5
  37776. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37777. - (exit $ac_status); } &&
  37778. - { ac_try='test -z "$ac_c_werror_flag"
  37779. - || test ! -s conftest.err'
  37780. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37781. - (eval $ac_try) 2>&5
  37782. - ac_status=$?
  37783. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37784. - (exit $ac_status); }; } &&
  37785. - { ac_try='test -s conftest.$ac_objext'
  37786. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37787. - (eval $ac_try) 2>&5
  37788. - ac_status=$?
  37789. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37790. - (exit $ac_status); }; }; then
  37791. - ac_header_compiler=yes
  37792. -else
  37793. - echo "$as_me: failed program was:" >&5
  37794. -sed 's/^/| /' conftest.$ac_ext >&5
  37795. -ac_header_compiler=no
  37796. -fi
  37797. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  37798. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  37799. -echo "${ECHO_T}$ac_header_compiler" >&6
  37800. -# Is the header present?
  37801. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  37802. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  37803. -cat >conftest.$ac_ext <<_ACEOF
  37804. -/* confdefs.h. */
  37805. -_ACEOF
  37806. -cat confdefs.h >>conftest.$ac_ext
  37807. -cat >>conftest.$ac_ext <<_ACEOF
  37808. -/* end confdefs.h. */
  37809. -#include <$ac_header>
  37810. -_ACEOF
  37811. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  37812. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  37813. - ac_status=$?
  37814. - grep -v '^ *+' conftest.er1 >conftest.err
  37815. - rm -f conftest.er1
  37816. - cat conftest.err >&5
  37817. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37818. - (exit $ac_status); } >/dev/null; then
  37819. - if test -s conftest.err; then
  37820. - ac_cpp_err=$ac_c_preproc_warn_flag
  37821. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  37822. - else
  37823. - ac_cpp_err=
  37824. - fi
  37825. -else
  37826. - ac_cpp_err=yes
  37827. -fi
  37828. -if test -z "$ac_cpp_err"; then
  37829. - ac_header_preproc=yes
  37830. -else
  37831. - echo "$as_me: failed program was:" >&5
  37832. -sed 's/^/| /' conftest.$ac_ext >&5
  37833. - ac_header_preproc=no
  37834. -fi
  37835. -rm -f conftest.err conftest.$ac_ext
  37836. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  37837. -echo "${ECHO_T}$ac_header_preproc" >&6
  37838. -# So? What about this header?
  37839. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  37840. - yes:no: )
  37841. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  37842. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  37843. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  37844. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  37845. - ac_header_preproc=yes
  37846. - ;;
  37847. - no:yes:* )
  37848. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  37849. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  37850. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  37851. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  37852. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  37853. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  37854. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  37855. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  37856. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  37857. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  37858. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  37859. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  37860. - (
  37861. - cat <<\_ASBOX
  37862. -## ------------------------------------------ ##
  37863. -## Report this to the AC_PACKAGE_NAME lists. ##
  37864. -## ------------------------------------------ ##
  37865. -_ASBOX
  37866. - ) |
  37867. - sed "s/^/$as_me: WARNING: /" >&2
  37868. - ;;
  37869. -esac
  37870. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  37871. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  37872. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  37873. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37874. -else
  37875. - eval "$as_ac_Header=\$ac_header_preproc"
  37876. -fi
  37877. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  37878. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  37879. -fi
  37880. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  37881. - cat >>confdefs.h <<_ACEOF
  37882. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  37883. -_ACEOF
  37884. -fi
  37885. -done
  37886. -ac_ext=cc
  37887. -ac_cpp='$CXXCPP $CPPFLAGS'
  37888. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37889. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37890. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37891. -if test -n "$ac_tool_prefix"; then
  37892. - for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  37893. - do
  37894. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  37895. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  37896. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  37897. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  37898. -if test "${ac_cv_prog_CXX+set}" = set; then
  37899. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37900. -else
  37901. - if test -n "$CXX"; then
  37902. - ac_cv_prog_CXX="$CXX" # Let the user override the test.
  37903. -else
  37904. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37905. -for as_dir in $PATH
  37906. -do
  37907. - IFS=$as_save_IFS
  37908. - test -z "$as_dir" && as_dir=.
  37909. - for ac_exec_ext in '' $ac_executable_extensions; do
  37910. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  37911. - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  37912. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  37913. - break 2
  37914. - fi
  37915. -done
  37916. -done
  37917. -fi
  37918. -fi
  37919. -CXX=$ac_cv_prog_CXX
  37920. -if test -n "$CXX"; then
  37921. - echo "$as_me:$LINENO: result: $CXX" >&5
  37922. -echo "${ECHO_T}$CXX" >&6
  37923. -else
  37924. - echo "$as_me:$LINENO: result: no" >&5
  37925. -echo "${ECHO_T}no" >&6
  37926. -fi
  37927. - test -n "$CXX" && break
  37928. - done
  37929. -fi
  37930. -if test -z "$CXX"; then
  37931. - ac_ct_CXX=$CXX
  37932. - for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  37933. -do
  37934. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  37935. -set dummy $ac_prog; ac_word=$2
  37936. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  37937. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  37938. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  37939. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37940. -else
  37941. - if test -n "$ac_ct_CXX"; then
  37942. - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  37943. +
  37944. +
  37945. +
  37946. +
  37947. +
  37948. +
  37949. +
  37950. +# If no C compiler was specified, use CC.
  37951. +LTCC=${LTCC-"$CC"}
  37952. +
  37953. +# If no C compiler flags were specified, use CFLAGS.
  37954. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  37955. +
  37956. +# Allow CC to be a program name with arguments.
  37957. +compiler=$CC
  37958. +
  37959. +
  37960. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  37961. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  37962. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  37963. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  37964. + $as_echo_n "(cached) " >&6
  37965. else
  37966. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37967. -for as_dir in $PATH
  37968. -do
  37969. - IFS=$as_save_IFS
  37970. - test -z "$as_dir" && as_dir=.
  37971. - for ac_exec_ext in '' $ac_executable_extensions; do
  37972. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  37973. - ac_cv_prog_ac_ct_CXX="$ac_prog"
  37974. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  37975. - break 2
  37976. +
  37977. +# These are sane defaults that work on at least a few old systems.
  37978. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  37979. +
  37980. +# Character class describing NM global symbol codes.
  37981. +symcode='[BCDEGRST]'
  37982. +
  37983. +# Regexp to match symbols that can be accessed directly from C.
  37984. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  37985. +
  37986. +# Define system-specific variables.
  37987. +case $host_os in
  37988. +aix*)
  37989. + symcode='[BCDT]'
  37990. + ;;
  37991. +cygwin* | mingw* | pw32* | cegcc*)
  37992. + symcode='[ABCDGISTW]'
  37993. + ;;
  37994. +hpux*)
  37995. + if test "$host_cpu" = ia64; then
  37996. + symcode='[ABCDEGRST]'
  37997. fi
  37998. -done
  37999. -done
  38000. + ;;
  38001. +irix* | nonstopux*)
  38002. + symcode='[BCDEGRST]'
  38003. + ;;
  38004. +osf*)
  38005. + symcode='[BCDEGQRST]'
  38006. + ;;
  38007. +solaris*)
  38008. + symcode='[BDRT]'
  38009. + ;;
  38010. +sco3.2v5*)
  38011. + symcode='[DT]'
  38012. + ;;
  38013. +sysv4.2uw2*)
  38014. + symcode='[DT]'
  38015. + ;;
  38016. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  38017. + symcode='[ABDT]'
  38018. + ;;
  38019. +sysv4)
  38020. + symcode='[DFNSTU]'
  38021. + ;;
  38022. +esac
  38023. -fi
  38024. -fi
  38025. -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  38026. -if test -n "$ac_ct_CXX"; then
  38027. - echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  38028. -echo "${ECHO_T}$ac_ct_CXX" >&6
  38029. -else
  38030. - echo "$as_me:$LINENO: result: no" >&5
  38031. -echo "${ECHO_T}no" >&6
  38032. -fi
  38033. +# If we're using GNU nm, then use its standard symbol codes.
  38034. +case `$NM -V 2>&1` in
  38035. +*GNU* | *'with BFD'*)
  38036. + symcode='[ABCDGIRSTW]' ;;
  38037. +esac
  38038. - test -n "$ac_ct_CXX" && break
  38039. -done
  38040. -test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  38041. +# Transform an extracted symbol line into a proper C declaration.
  38042. +# Some systems (esp. on ia64) link data and code symbols differently,
  38043. +# so use this general approach.
  38044. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  38045. - CXX=$ac_ct_CXX
  38046. -fi
  38047. +# Transform an extracted symbol line into symbol name and symbol address
  38048. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  38049. +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'"
  38050. +
  38051. +# Handle CRLF in mingw tool chain
  38052. +opt_cr=
  38053. +case $build_os in
  38054. +mingw*)
  38055. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  38056. + ;;
  38057. +esac
  38058. +# Try without a prefix underscore, then with it.
  38059. +for ac_symprfx in "" "_"; do
  38060. -# Provide some information about the compiler.
  38061. -echo "$as_me:$LINENO:" \
  38062. - "checking for C++ compiler version" >&5
  38063. -ac_compiler=`set X $ac_compile; echo $2`
  38064. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  38065. - (eval $ac_compiler --version </dev/null >&5) 2>&5
  38066. - ac_status=$?
  38067. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38068. - (exit $ac_status); }
  38069. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  38070. - (eval $ac_compiler -v </dev/null >&5) 2>&5
  38071. - ac_status=$?
  38072. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38073. - (exit $ac_status); }
  38074. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  38075. - (eval $ac_compiler -V </dev/null >&5) 2>&5
  38076. - ac_status=$?
  38077. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38078. - (exit $ac_status); }
  38079. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  38080. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  38081. -echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  38082. -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  38083. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  38084. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38085. -else
  38086. - cat >conftest.$ac_ext <<_ACEOF
  38087. -/* confdefs.h. */
  38088. -_ACEOF
  38089. -cat confdefs.h >>conftest.$ac_ext
  38090. -cat >>conftest.$ac_ext <<_ACEOF
  38091. -/* end confdefs.h. */
  38092. + # Write the raw and C identifiers.
  38093. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  38094. + # Fake it for dumpbin and say T for any non-static function
  38095. + # and D for any global variable.
  38096. + # Also find C++ and __fastcall symbols from MSVC++,
  38097. + # which start with @ or ?.
  38098. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  38099. +" {last_section=section; section=\$ 3};"\
  38100. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  38101. +" \$ 0!~/External *\|/{next};"\
  38102. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  38103. +" {if(hide[section]) next};"\
  38104. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  38105. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  38106. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  38107. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  38108. +" ' prfx=^$ac_symprfx"
  38109. + else
  38110. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  38111. + fi
  38112. -int
  38113. -main ()
  38114. -{
  38115. -#ifndef __GNUC__
  38116. - choke me
  38117. -#endif
  38118. + # Check to see that the pipe works correctly.
  38119. + pipe_works=no
  38120. - ;
  38121. - return 0;
  38122. + rm -f conftest*
  38123. + cat > conftest.$ac_ext <<_LT_EOF
  38124. +#ifdef __cplusplus
  38125. +extern "C" {
  38126. +#endif
  38127. +char nm_test_var;
  38128. +void nm_test_func(void);
  38129. +void nm_test_func(void){}
  38130. +#ifdef __cplusplus
  38131. }
  38132. -_ACEOF
  38133. -rm -f conftest.$ac_objext
  38134. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  38135. - (eval $ac_compile) 2>conftest.er1
  38136. - ac_status=$?
  38137. - grep -v '^ *+' conftest.er1 >conftest.err
  38138. - rm -f conftest.er1
  38139. - cat conftest.err >&5
  38140. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38141. - (exit $ac_status); } &&
  38142. - { ac_try='test -z "$ac_cxx_werror_flag"
  38143. - || test ! -s conftest.err'
  38144. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38145. - (eval $ac_try) 2>&5
  38146. +#endif
  38147. +int main(){nm_test_var='a';nm_test_func();return(0);}
  38148. +_LT_EOF
  38149. +
  38150. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  38151. + (eval $ac_compile) 2>&5
  38152. ac_status=$?
  38153. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38154. - (exit $ac_status); }; } &&
  38155. - { ac_try='test -s conftest.$ac_objext'
  38156. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38157. - (eval $ac_try) 2>&5
  38158. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  38159. + test $ac_status = 0; }; then
  38160. + # Now try to grab the symbols.
  38161. + nlist=conftest.nm
  38162. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  38163. + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  38164. ac_status=$?
  38165. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38166. - (exit $ac_status); }; }; then
  38167. - ac_compiler_gnu=yes
  38168. -else
  38169. - echo "$as_me: failed program was:" >&5
  38170. -sed 's/^/| /' conftest.$ac_ext >&5
  38171. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  38172. + test $ac_status = 0; } && test -s "$nlist"; then
  38173. + # Try sorting and uniquifying the output.
  38174. + if sort "$nlist" | uniq > "$nlist"T; then
  38175. + mv -f "$nlist"T "$nlist"
  38176. + else
  38177. + rm -f "$nlist"T
  38178. + fi
  38179. -ac_compiler_gnu=no
  38180. -fi
  38181. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  38182. -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  38183. + # Make sure that we snagged all the symbols we need.
  38184. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  38185. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  38186. + cat <<_LT_EOF > conftest.$ac_ext
  38187. +#ifdef __cplusplus
  38188. +extern "C" {
  38189. +#endif
  38190. -fi
  38191. -echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  38192. -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  38193. -GXX=`test $ac_compiler_gnu = yes && echo yes`
  38194. -ac_test_CXXFLAGS=${CXXFLAGS+set}
  38195. -ac_save_CXXFLAGS=$CXXFLAGS
  38196. -CXXFLAGS="-g"
  38197. -echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  38198. -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  38199. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  38200. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38201. -else
  38202. - cat >conftest.$ac_ext <<_ACEOF
  38203. -/* confdefs.h. */
  38204. -_ACEOF
  38205. -cat confdefs.h >>conftest.$ac_ext
  38206. -cat >>conftest.$ac_ext <<_ACEOF
  38207. -/* end confdefs.h. */
  38208. +_LT_EOF
  38209. + # Now generate the symbol file.
  38210. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  38211. -int
  38212. -main ()
  38213. + cat <<_LT_EOF >> conftest.$ac_ext
  38214. +
  38215. +/* The mapping between symbol names and symbols. */
  38216. +const struct {
  38217. + const char *name;
  38218. + void *address;
  38219. +}
  38220. +lt__PROGRAM__LTX_preloaded_symbols[] =
  38221. {
  38222. + { "@PROGRAM@", (void *) 0 },
  38223. +_LT_EOF
  38224. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  38225. + cat <<\_LT_EOF >> conftest.$ac_ext
  38226. + {0, (void *) 0}
  38227. +};
  38228. - ;
  38229. - return 0;
  38230. +/* This works around a problem in FreeBSD linker */
  38231. +#ifdef FREEBSD_WORKAROUND
  38232. +static const void *lt_preloaded_setup() {
  38233. + return lt__PROGRAM__LTX_preloaded_symbols;
  38234. }
  38235. -_ACEOF
  38236. -rm -f conftest.$ac_objext
  38237. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  38238. - (eval $ac_compile) 2>conftest.er1
  38239. - ac_status=$?
  38240. - grep -v '^ *+' conftest.er1 >conftest.err
  38241. - rm -f conftest.er1
  38242. - cat conftest.err >&5
  38243. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38244. - (exit $ac_status); } &&
  38245. - { ac_try='test -z "$ac_cxx_werror_flag"
  38246. - || test ! -s conftest.err'
  38247. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38248. - (eval $ac_try) 2>&5
  38249. - ac_status=$?
  38250. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38251. - (exit $ac_status); }; } &&
  38252. - { ac_try='test -s conftest.$ac_objext'
  38253. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38254. - (eval $ac_try) 2>&5
  38255. - ac_status=$?
  38256. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38257. - (exit $ac_status); }; }; then
  38258. - ac_cv_prog_cxx_g=yes
  38259. -else
  38260. - echo "$as_me: failed program was:" >&5
  38261. -sed 's/^/| /' conftest.$ac_ext >&5
  38262. +#endif
  38263. -ac_cv_prog_cxx_g=no
  38264. -fi
  38265. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  38266. -fi
  38267. -echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  38268. -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  38269. -if test "$ac_test_CXXFLAGS" = set; then
  38270. - CXXFLAGS=$ac_save_CXXFLAGS
  38271. -elif test $ac_cv_prog_cxx_g = yes; then
  38272. - if test "$GXX" = yes; then
  38273. - CXXFLAGS="-g -O2"
  38274. +#ifdef __cplusplus
  38275. +}
  38276. +#endif
  38277. +_LT_EOF
  38278. + # Now try linking the two files.
  38279. + mv conftest.$ac_objext conftstm.$ac_objext
  38280. + lt_save_LIBS="$LIBS"
  38281. + lt_save_CFLAGS="$CFLAGS"
  38282. + LIBS="conftstm.$ac_objext"
  38283. + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  38284. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  38285. + (eval $ac_link) 2>&5
  38286. + ac_status=$?
  38287. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  38288. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  38289. + pipe_works=yes
  38290. + fi
  38291. + LIBS="$lt_save_LIBS"
  38292. + CFLAGS="$lt_save_CFLAGS"
  38293. + else
  38294. + echo "cannot find nm_test_func in $nlist" >&5
  38295. + fi
  38296. + else
  38297. + echo "cannot find nm_test_var in $nlist" >&5
  38298. + fi
  38299. + else
  38300. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  38301. + fi
  38302. else
  38303. - CXXFLAGS="-g"
  38304. + echo "$progname: failed program was:" >&5
  38305. + cat conftest.$ac_ext >&5
  38306. fi
  38307. -else
  38308. - if test "$GXX" = yes; then
  38309. - CXXFLAGS="-O2"
  38310. + rm -rf conftest* conftst*
  38311. +
  38312. + # Do not use the global_symbol_pipe unless it works.
  38313. + if test "$pipe_works" = yes; then
  38314. + break
  38315. else
  38316. - CXXFLAGS=
  38317. + lt_cv_sys_global_symbol_pipe=
  38318. fi
  38319. +done
  38320. +
  38321. fi
  38322. -for ac_declaration in \
  38323. - '' \
  38324. - 'extern "C" void std::exit (int) throw (); using std::exit;' \
  38325. - 'extern "C" void std::exit (int); using std::exit;' \
  38326. - 'extern "C" void exit (int) throw ();' \
  38327. - 'extern "C" void exit (int);' \
  38328. - 'void exit (int);'
  38329. -do
  38330. - cat >conftest.$ac_ext <<_ACEOF
  38331. -/* confdefs.h. */
  38332. -_ACEOF
  38333. -cat confdefs.h >>conftest.$ac_ext
  38334. -cat >>conftest.$ac_ext <<_ACEOF
  38335. -/* end confdefs.h. */
  38336. -$ac_declaration
  38337. -#include <stdlib.h>
  38338. -int
  38339. -main ()
  38340. -{
  38341. -exit (42);
  38342. - ;
  38343. - return 0;
  38344. -}
  38345. -_ACEOF
  38346. -rm -f conftest.$ac_objext
  38347. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  38348. - (eval $ac_compile) 2>conftest.er1
  38349. - ac_status=$?
  38350. - grep -v '^ *+' conftest.er1 >conftest.err
  38351. - rm -f conftest.er1
  38352. - cat conftest.err >&5
  38353. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38354. - (exit $ac_status); } &&
  38355. - { ac_try='test -z "$ac_cxx_werror_flag"
  38356. - || test ! -s conftest.err'
  38357. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38358. - (eval $ac_try) 2>&5
  38359. +
  38360. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  38361. + lt_cv_sys_global_symbol_to_cdecl=
  38362. +fi
  38363. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  38364. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  38365. +$as_echo "failed" >&6; }
  38366. +else
  38367. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  38368. +$as_echo "ok" >&6; }
  38369. +fi
  38370. +
  38371. +
  38372. +
  38373. +
  38374. +
  38375. +
  38376. +
  38377. +
  38378. +
  38379. +
  38380. +
  38381. +
  38382. +
  38383. +
  38384. +
  38385. +
  38386. +
  38387. +
  38388. +
  38389. +
  38390. +
  38391. +
  38392. +
  38393. +# Check whether --enable-libtool-lock was given.
  38394. +if test "${enable_libtool_lock+set}" = set; then :
  38395. + enableval=$enable_libtool_lock;
  38396. +fi
  38397. +
  38398. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  38399. +
  38400. +# Some flags need to be propagated to the compiler or linker for good
  38401. +# libtool support.
  38402. +case $host in
  38403. +ia64-*-hpux*)
  38404. + # Find out which ABI we are using.
  38405. + echo 'int i;' > conftest.$ac_ext
  38406. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  38407. + (eval $ac_compile) 2>&5
  38408. ac_status=$?
  38409. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38410. - (exit $ac_status); }; } &&
  38411. - { ac_try='test -s conftest.$ac_objext'
  38412. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38413. - (eval $ac_try) 2>&5
  38414. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  38415. + test $ac_status = 0; }; then
  38416. + case `/usr/bin/file conftest.$ac_objext` in
  38417. + *ELF-32*)
  38418. + HPUX_IA64_MODE="32"
  38419. + ;;
  38420. + *ELF-64*)
  38421. + HPUX_IA64_MODE="64"
  38422. + ;;
  38423. + esac
  38424. + fi
  38425. + rm -rf conftest*
  38426. + ;;
  38427. +*-*-irix6*)
  38428. + # Find out which ABI we are using.
  38429. + echo '#line 5786 "configure"' > conftest.$ac_ext
  38430. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  38431. + (eval $ac_compile) 2>&5
  38432. ac_status=$?
  38433. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38434. - (exit $ac_status); }; }; then
  38435. - :
  38436. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  38437. + test $ac_status = 0; }; then
  38438. + if test "$lt_cv_prog_gnu_ld" = yes; then
  38439. + case `/usr/bin/file conftest.$ac_objext` in
  38440. + *32-bit*)
  38441. + LD="${LD-ld} -melf32bsmip"
  38442. + ;;
  38443. + *N32*)
  38444. + LD="${LD-ld} -melf32bmipn32"
  38445. + ;;
  38446. + *64-bit*)
  38447. + LD="${LD-ld} -melf64bmip"
  38448. + ;;
  38449. + esac
  38450. + else
  38451. + case `/usr/bin/file conftest.$ac_objext` in
  38452. + *32-bit*)
  38453. + LD="${LD-ld} -32"
  38454. + ;;
  38455. + *N32*)
  38456. + LD="${LD-ld} -n32"
  38457. + ;;
  38458. + *64-bit*)
  38459. + LD="${LD-ld} -64"
  38460. + ;;
  38461. + esac
  38462. + fi
  38463. + fi
  38464. + rm -rf conftest*
  38465. + ;;
  38466. +
  38467. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  38468. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  38469. + # Find out which ABI we are using.
  38470. + echo 'int i;' > conftest.$ac_ext
  38471. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  38472. + (eval $ac_compile) 2>&5
  38473. + ac_status=$?
  38474. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  38475. + test $ac_status = 0; }; then
  38476. + case `/usr/bin/file conftest.o` in
  38477. + *32-bit*)
  38478. + case $host in
  38479. + x86_64-*kfreebsd*-gnu)
  38480. + LD="${LD-ld} -m elf_i386_fbsd"
  38481. + ;;
  38482. + x86_64-*linux*)
  38483. + LD="${LD-ld} -m elf_i386"
  38484. + ;;
  38485. + ppc64-*linux*|powerpc64-*linux*)
  38486. + LD="${LD-ld} -m elf32ppclinux"
  38487. + ;;
  38488. + s390x-*linux*)
  38489. + LD="${LD-ld} -m elf_s390"
  38490. + ;;
  38491. + sparc64-*linux*)
  38492. + LD="${LD-ld} -m elf32_sparc"
  38493. + ;;
  38494. + esac
  38495. + ;;
  38496. + *64-bit*)
  38497. + case $host in
  38498. + x86_64-*kfreebsd*-gnu)
  38499. + LD="${LD-ld} -m elf_x86_64_fbsd"
  38500. + ;;
  38501. + x86_64-*linux*)
  38502. + LD="${LD-ld} -m elf_x86_64"
  38503. + ;;
  38504. + ppc*-*linux*|powerpc*-*linux*)
  38505. + LD="${LD-ld} -m elf64ppc"
  38506. + ;;
  38507. + s390*-*linux*|s390*-*tpf*)
  38508. + LD="${LD-ld} -m elf64_s390"
  38509. + ;;
  38510. + sparc*-*linux*)
  38511. + LD="${LD-ld} -m elf64_sparc"
  38512. + ;;
  38513. + esac
  38514. + ;;
  38515. + esac
  38516. + fi
  38517. + rm -rf conftest*
  38518. + ;;
  38519. +
  38520. +*-*-sco3.2v5*)
  38521. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  38522. + SAVE_CFLAGS="$CFLAGS"
  38523. + CFLAGS="$CFLAGS -belf"
  38524. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  38525. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  38526. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  38527. + $as_echo_n "(cached) " >&6
  38528. else
  38529. - echo "$as_me: failed program was:" >&5
  38530. -sed 's/^/| /' conftest.$ac_ext >&5
  38531. + ac_ext=c
  38532. +ac_cpp='$CPP $CPPFLAGS'
  38533. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38534. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38535. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38536. -continue
  38537. -fi
  38538. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  38539. - cat >conftest.$ac_ext <<_ACEOF
  38540. -/* confdefs.h. */
  38541. -_ACEOF
  38542. -cat confdefs.h >>conftest.$ac_ext
  38543. -cat >>conftest.$ac_ext <<_ACEOF
  38544. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38545. /* end confdefs.h. */
  38546. -$ac_declaration
  38547. +
  38548. int
  38549. main ()
  38550. {
  38551. -exit (42);
  38552. +
  38553. ;
  38554. return 0;
  38555. }
  38556. _ACEOF
  38557. -rm -f conftest.$ac_objext
  38558. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  38559. - (eval $ac_compile) 2>conftest.er1
  38560. - ac_status=$?
  38561. - grep -v '^ *+' conftest.er1 >conftest.err
  38562. - rm -f conftest.er1
  38563. - cat conftest.err >&5
  38564. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38565. - (exit $ac_status); } &&
  38566. - { ac_try='test -z "$ac_cxx_werror_flag"
  38567. - || test ! -s conftest.err'
  38568. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38569. - (eval $ac_try) 2>&5
  38570. - ac_status=$?
  38571. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38572. - (exit $ac_status); }; } &&
  38573. - { ac_try='test -s conftest.$ac_objext'
  38574. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38575. - (eval $ac_try) 2>&5
  38576. - ac_status=$?
  38577. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38578. - (exit $ac_status); }; }; then
  38579. - break
  38580. +if ac_fn_c_try_link "$LINENO"; then :
  38581. + lt_cv_cc_needs_belf=yes
  38582. else
  38583. - echo "$as_me: failed program was:" >&5
  38584. -sed 's/^/| /' conftest.$ac_ext >&5
  38585. -
  38586. + lt_cv_cc_needs_belf=no
  38587. fi
  38588. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  38589. -done
  38590. -rm -f conftest*
  38591. -if test -n "$ac_declaration"; then
  38592. - echo '#ifdef __cplusplus' >>confdefs.h
  38593. - echo $ac_declaration >>confdefs.h
  38594. - echo '#endif' >>confdefs.h
  38595. -fi
  38596. -
  38597. -ac_ext=cc
  38598. -ac_cpp='$CXXCPP $CPPFLAGS'
  38599. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38600. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38601. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  38602. -
  38603. -depcc="$CXX" am_compiler_list=
  38604. -
  38605. -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  38606. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  38607. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  38608. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38609. -else
  38610. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  38611. - # We make a subdir and do the tests there. Otherwise we can end up
  38612. - # making bogus files that we don't know about and never remove. For
  38613. - # instance it was reported that on HP-UX the gcc test will end up
  38614. - # making a dummy file named `D' -- because `-MD' means `put the output
  38615. - # in D'.
  38616. - mkdir conftest.dir
  38617. - # Copy depcomp to subdir because otherwise we won't find it if we're
  38618. - # using a relative directory.
  38619. - cp "$am_depcomp" conftest.dir
  38620. - cd conftest.dir
  38621. +rm -f core conftest.err conftest.$ac_objext \
  38622. + conftest$ac_exeext conftest.$ac_ext
  38623. + ac_ext=c
  38624. +ac_cpp='$CPP $CPPFLAGS'
  38625. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38626. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38627. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38628. - am_cv_CXX_dependencies_compiler_type=none
  38629. - if test "$am_compiler_list" = ""; then
  38630. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  38631. +fi
  38632. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  38633. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  38634. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  38635. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  38636. + CFLAGS="$SAVE_CFLAGS"
  38637. fi
  38638. - for depmode in $am_compiler_list; do
  38639. - # We need to recreate these files for each test, as the compiler may
  38640. - # overwrite some of them when testing with obscure command lines.
  38641. - # This happens at least with the AIX C compiler.
  38642. - echo '#include "conftest.h"' > conftest.c
  38643. - echo 'int i;' > conftest.h
  38644. - echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
  38645. -
  38646. - case $depmode in
  38647. - nosideeffect)
  38648. - # after this tag, mechanisms are not by side-effect, so they'll
  38649. - # only be used when explicitly requested
  38650. - if test "x$enable_dependency_tracking" = xyes; then
  38651. - continue
  38652. - else
  38653. - break
  38654. - fi
  38655. + ;;
  38656. +sparc*-*solaris*)
  38657. + # Find out which ABI we are using.
  38658. + echo 'int i;' > conftest.$ac_ext
  38659. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  38660. + (eval $ac_compile) 2>&5
  38661. + ac_status=$?
  38662. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  38663. + test $ac_status = 0; }; then
  38664. + case `/usr/bin/file conftest.o` in
  38665. + *64-bit*)
  38666. + case $lt_cv_prog_gnu_ld in
  38667. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  38668. + *)
  38669. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  38670. + LD="${LD-ld} -64"
  38671. + fi
  38672. + ;;
  38673. + esac
  38674. ;;
  38675. - none) break ;;
  38676. esac
  38677. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  38678. - # mode. It turns out that the SunPro C++ compiler does not properly
  38679. - # handle `-M -o', and we need to detect this.
  38680. - if depmode=$depmode \
  38681. - source=conftest.c object=conftest.o \
  38682. - depfile=conftest.Po tmpdepfile=conftest.TPo \
  38683. - $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
  38684. - grep conftest.h conftest.Po > /dev/null 2>&1 &&
  38685. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  38686. - am_cv_CXX_dependencies_compiler_type=$depmode
  38687. - break
  38688. - fi
  38689. - done
  38690. + fi
  38691. + rm -rf conftest*
  38692. + ;;
  38693. +esac
  38694. - cd ..
  38695. - rm -rf conftest.dir
  38696. +need_locks="$enable_libtool_lock"
  38697. +
  38698. +
  38699. + case $host_os in
  38700. + rhapsody* | darwin*)
  38701. + if test -n "$ac_tool_prefix"; then
  38702. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  38703. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  38704. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  38705. +$as_echo_n "checking for $ac_word... " >&6; }
  38706. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  38707. + $as_echo_n "(cached) " >&6
  38708. else
  38709. - am_cv_CXX_dependencies_compiler_type=none
  38710. -fi
  38711. + if test -n "$DSYMUTIL"; then
  38712. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  38713. +else
  38714. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  38715. +for as_dir in $PATH
  38716. +do
  38717. + IFS=$as_save_IFS
  38718. + test -z "$as_dir" && as_dir=.
  38719. + for ac_exec_ext in '' $ac_executable_extensions; do
  38720. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  38721. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  38722. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  38723. + break 2
  38724. + fi
  38725. +done
  38726. + done
  38727. +IFS=$as_save_IFS
  38728. fi
  38729. -echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  38730. -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  38731. -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  38732. +fi
  38733. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  38734. +if test -n "$DSYMUTIL"; then
  38735. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  38736. +$as_echo "$DSYMUTIL" >&6; }
  38737. +else
  38738. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38739. +$as_echo "no" >&6; }
  38740. +fi
  38741. -ac_ext=cc
  38742. -ac_cpp='$CXXCPP $CPPFLAGS'
  38743. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38744. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38745. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  38746. -echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  38747. -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  38748. -if test -z "$CXXCPP"; then
  38749. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  38750. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38751. +fi
  38752. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  38753. + ac_ct_DSYMUTIL=$DSYMUTIL
  38754. + # Extract the first word of "dsymutil", so it can be a program name with args.
  38755. +set dummy dsymutil; ac_word=$2
  38756. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  38757. +$as_echo_n "checking for $ac_word... " >&6; }
  38758. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  38759. + $as_echo_n "(cached) " >&6
  38760. else
  38761. - # Double quotes because CXXCPP needs to be expanded
  38762. - for CXXCPP in "$CXX -E" "/lib/cpp"
  38763. - do
  38764. - ac_preproc_ok=false
  38765. -for ac_cxx_preproc_warn_flag in '' yes
  38766. + if test -n "$ac_ct_DSYMUTIL"; then
  38767. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  38768. +else
  38769. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  38770. +for as_dir in $PATH
  38771. do
  38772. - # Use a header file that comes with gcc, so configuring glibc
  38773. - # with a fresh cross-compiler works.
  38774. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  38775. - # <limits.h> exists even on freestanding compilers.
  38776. - # On the NeXT, cc -E runs the code through the compiler's parser,
  38777. - # not just through cpp. "Syntax error" is here to catch this case.
  38778. - cat >conftest.$ac_ext <<_ACEOF
  38779. -/* confdefs.h. */
  38780. -_ACEOF
  38781. -cat confdefs.h >>conftest.$ac_ext
  38782. -cat >>conftest.$ac_ext <<_ACEOF
  38783. -/* end confdefs.h. */
  38784. -#ifdef __STDC__
  38785. -# include <limits.h>
  38786. -#else
  38787. -# include <assert.h>
  38788. -#endif
  38789. - Syntax error
  38790. -_ACEOF
  38791. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  38792. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  38793. - ac_status=$?
  38794. - grep -v '^ *+' conftest.er1 >conftest.err
  38795. - rm -f conftest.er1
  38796. - cat conftest.err >&5
  38797. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38798. - (exit $ac_status); } >/dev/null; then
  38799. - if test -s conftest.err; then
  38800. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  38801. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  38802. - else
  38803. - ac_cpp_err=
  38804. + IFS=$as_save_IFS
  38805. + test -z "$as_dir" && as_dir=.
  38806. + for ac_exec_ext in '' $ac_executable_extensions; do
  38807. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  38808. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  38809. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  38810. + break 2
  38811. fi
  38812. -else
  38813. - ac_cpp_err=yes
  38814. +done
  38815. + done
  38816. +IFS=$as_save_IFS
  38817. +
  38818. fi
  38819. -if test -z "$ac_cpp_err"; then
  38820. - :
  38821. +fi
  38822. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  38823. +if test -n "$ac_ct_DSYMUTIL"; then
  38824. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  38825. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  38826. else
  38827. - echo "$as_me: failed program was:" >&5
  38828. -sed 's/^/| /' conftest.$ac_ext >&5
  38829. -
  38830. - # Broken: fails on valid input.
  38831. -continue
  38832. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38833. +$as_echo "no" >&6; }
  38834. fi
  38835. -rm -f conftest.err conftest.$ac_ext
  38836. - # OK, works on sane cases. Now check whether non-existent headers
  38837. - # can be detected and how.
  38838. - cat >conftest.$ac_ext <<_ACEOF
  38839. -/* confdefs.h. */
  38840. -_ACEOF
  38841. -cat confdefs.h >>conftest.$ac_ext
  38842. -cat >>conftest.$ac_ext <<_ACEOF
  38843. -/* end confdefs.h. */
  38844. -#include <ac_nonexistent.h>
  38845. -_ACEOF
  38846. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  38847. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  38848. - ac_status=$?
  38849. - grep -v '^ *+' conftest.er1 >conftest.err
  38850. - rm -f conftest.er1
  38851. - cat conftest.err >&5
  38852. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38853. - (exit $ac_status); } >/dev/null; then
  38854. - if test -s conftest.err; then
  38855. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  38856. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  38857. + if test "x$ac_ct_DSYMUTIL" = x; then
  38858. + DSYMUTIL=":"
  38859. else
  38860. - ac_cpp_err=
  38861. + case $cross_compiling:$ac_tool_warned in
  38862. +yes:)
  38863. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  38864. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  38865. +ac_tool_warned=yes ;;
  38866. +esac
  38867. + DSYMUTIL=$ac_ct_DSYMUTIL
  38868. fi
  38869. else
  38870. - ac_cpp_err=yes
  38871. -fi
  38872. -if test -z "$ac_cpp_err"; then
  38873. - # Broken: success on invalid input.
  38874. -continue
  38875. -else
  38876. - echo "$as_me: failed program was:" >&5
  38877. -sed 's/^/| /' conftest.$ac_ext >&5
  38878. -
  38879. - # Passes both tests.
  38880. -ac_preproc_ok=:
  38881. -break
  38882. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  38883. fi
  38884. -rm -f conftest.err conftest.$ac_ext
  38885. -done
  38886. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  38887. -rm -f conftest.err conftest.$ac_ext
  38888. -if $ac_preproc_ok; then
  38889. - break
  38890. + if test -n "$ac_tool_prefix"; then
  38891. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  38892. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  38893. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  38894. +$as_echo_n "checking for $ac_word... " >&6; }
  38895. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  38896. + $as_echo_n "(cached) " >&6
  38897. +else
  38898. + if test -n "$NMEDIT"; then
  38899. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  38900. +else
  38901. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  38902. +for as_dir in $PATH
  38903. +do
  38904. + IFS=$as_save_IFS
  38905. + test -z "$as_dir" && as_dir=.
  38906. + for ac_exec_ext in '' $ac_executable_extensions; do
  38907. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  38908. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  38909. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  38910. + break 2
  38911. + fi
  38912. +done
  38913. + done
  38914. +IFS=$as_save_IFS
  38915. +
  38916. +fi
  38917. +fi
  38918. +NMEDIT=$ac_cv_prog_NMEDIT
  38919. +if test -n "$NMEDIT"; then
  38920. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  38921. +$as_echo "$NMEDIT" >&6; }
  38922. +else
  38923. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38924. +$as_echo "no" >&6; }
  38925. fi
  38926. - done
  38927. - ac_cv_prog_CXXCPP=$CXXCPP
  38928. fi
  38929. - CXXCPP=$ac_cv_prog_CXXCPP
  38930. +if test -z "$ac_cv_prog_NMEDIT"; then
  38931. + ac_ct_NMEDIT=$NMEDIT
  38932. + # Extract the first word of "nmedit", so it can be a program name with args.
  38933. +set dummy nmedit; ac_word=$2
  38934. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  38935. +$as_echo_n "checking for $ac_word... " >&6; }
  38936. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  38937. + $as_echo_n "(cached) " >&6
  38938. else
  38939. - ac_cv_prog_CXXCPP=$CXXCPP
  38940. -fi
  38941. -echo "$as_me:$LINENO: result: $CXXCPP" >&5
  38942. -echo "${ECHO_T}$CXXCPP" >&6
  38943. -ac_preproc_ok=false
  38944. -for ac_cxx_preproc_warn_flag in '' yes
  38945. + if test -n "$ac_ct_NMEDIT"; then
  38946. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  38947. +else
  38948. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  38949. +for as_dir in $PATH
  38950. do
  38951. - # Use a header file that comes with gcc, so configuring glibc
  38952. - # with a fresh cross-compiler works.
  38953. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  38954. - # <limits.h> exists even on freestanding compilers.
  38955. - # On the NeXT, cc -E runs the code through the compiler's parser,
  38956. - # not just through cpp. "Syntax error" is here to catch this case.
  38957. - cat >conftest.$ac_ext <<_ACEOF
  38958. -/* confdefs.h. */
  38959. -_ACEOF
  38960. -cat confdefs.h >>conftest.$ac_ext
  38961. -cat >>conftest.$ac_ext <<_ACEOF
  38962. -/* end confdefs.h. */
  38963. -#ifdef __STDC__
  38964. -# include <limits.h>
  38965. -#else
  38966. -# include <assert.h>
  38967. -#endif
  38968. - Syntax error
  38969. -_ACEOF
  38970. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  38971. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  38972. - ac_status=$?
  38973. - grep -v '^ *+' conftest.er1 >conftest.err
  38974. - rm -f conftest.er1
  38975. - cat conftest.err >&5
  38976. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38977. - (exit $ac_status); } >/dev/null; then
  38978. - if test -s conftest.err; then
  38979. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  38980. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  38981. - else
  38982. - ac_cpp_err=
  38983. + IFS=$as_save_IFS
  38984. + test -z "$as_dir" && as_dir=.
  38985. + for ac_exec_ext in '' $ac_executable_extensions; do
  38986. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  38987. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  38988. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  38989. + break 2
  38990. fi
  38991. -else
  38992. - ac_cpp_err=yes
  38993. +done
  38994. + done
  38995. +IFS=$as_save_IFS
  38996. +
  38997. fi
  38998. -if test -z "$ac_cpp_err"; then
  38999. - :
  39000. +fi
  39001. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  39002. +if test -n "$ac_ct_NMEDIT"; then
  39003. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  39004. +$as_echo "$ac_ct_NMEDIT" >&6; }
  39005. else
  39006. - echo "$as_me: failed program was:" >&5
  39007. -sed 's/^/| /' conftest.$ac_ext >&5
  39008. -
  39009. - # Broken: fails on valid input.
  39010. -continue
  39011. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39012. +$as_echo "no" >&6; }
  39013. fi
  39014. -rm -f conftest.err conftest.$ac_ext
  39015. - # OK, works on sane cases. Now check whether non-existent headers
  39016. - # can be detected and how.
  39017. - cat >conftest.$ac_ext <<_ACEOF
  39018. -/* confdefs.h. */
  39019. -_ACEOF
  39020. -cat confdefs.h >>conftest.$ac_ext
  39021. -cat >>conftest.$ac_ext <<_ACEOF
  39022. -/* end confdefs.h. */
  39023. -#include <ac_nonexistent.h>
  39024. -_ACEOF
  39025. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  39026. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  39027. - ac_status=$?
  39028. - grep -v '^ *+' conftest.er1 >conftest.err
  39029. - rm -f conftest.er1
  39030. - cat conftest.err >&5
  39031. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39032. - (exit $ac_status); } >/dev/null; then
  39033. - if test -s conftest.err; then
  39034. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  39035. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  39036. + if test "x$ac_ct_NMEDIT" = x; then
  39037. + NMEDIT=":"
  39038. else
  39039. - ac_cpp_err=
  39040. + case $cross_compiling:$ac_tool_warned in
  39041. +yes:)
  39042. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  39043. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  39044. +ac_tool_warned=yes ;;
  39045. +esac
  39046. + NMEDIT=$ac_ct_NMEDIT
  39047. fi
  39048. else
  39049. - ac_cpp_err=yes
  39050. + NMEDIT="$ac_cv_prog_NMEDIT"
  39051. fi
  39052. -if test -z "$ac_cpp_err"; then
  39053. - # Broken: success on invalid input.
  39054. -continue
  39055. +
  39056. + if test -n "$ac_tool_prefix"; then
  39057. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  39058. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  39059. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  39060. +$as_echo_n "checking for $ac_word... " >&6; }
  39061. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  39062. + $as_echo_n "(cached) " >&6
  39063. else
  39064. - echo "$as_me: failed program was:" >&5
  39065. -sed 's/^/| /' conftest.$ac_ext >&5
  39066. + if test -n "$LIPO"; then
  39067. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  39068. +else
  39069. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  39070. +for as_dir in $PATH
  39071. +do
  39072. + IFS=$as_save_IFS
  39073. + test -z "$as_dir" && as_dir=.
  39074. + for ac_exec_ext in '' $ac_executable_extensions; do
  39075. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  39076. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  39077. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  39078. + break 2
  39079. + fi
  39080. +done
  39081. + done
  39082. +IFS=$as_save_IFS
  39083. - # Passes both tests.
  39084. -ac_preproc_ok=:
  39085. -break
  39086. fi
  39087. -rm -f conftest.err conftest.$ac_ext
  39088. -
  39089. -done
  39090. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  39091. -rm -f conftest.err conftest.$ac_ext
  39092. -if $ac_preproc_ok; then
  39093. - :
  39094. +fi
  39095. +LIPO=$ac_cv_prog_LIPO
  39096. +if test -n "$LIPO"; then
  39097. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  39098. +$as_echo "$LIPO" >&6; }
  39099. else
  39100. - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  39101. -See \`config.log' for more details." >&5
  39102. -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  39103. -See \`config.log' for more details." >&2;}
  39104. - { (exit 1); exit 1; }; }
  39105. -fi
  39106. -
  39107. -ac_ext=cc
  39108. -ac_cpp='$CXXCPP $CPPFLAGS'
  39109. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  39110. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  39111. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  39112. -
  39113. -
  39114. -ac_ext=f
  39115. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  39116. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  39117. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  39118. -if test -n "$ac_tool_prefix"; then
  39119. - for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  39120. - do
  39121. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  39122. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  39123. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  39124. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  39125. -if test "${ac_cv_prog_F77+set}" = set; then
  39126. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39127. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39128. +$as_echo "no" >&6; }
  39129. +fi
  39130. +
  39131. +
  39132. +fi
  39133. +if test -z "$ac_cv_prog_LIPO"; then
  39134. + ac_ct_LIPO=$LIPO
  39135. + # Extract the first word of "lipo", so it can be a program name with args.
  39136. +set dummy lipo; ac_word=$2
  39137. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  39138. +$as_echo_n "checking for $ac_word... " >&6; }
  39139. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  39140. + $as_echo_n "(cached) " >&6
  39141. else
  39142. - if test -n "$F77"; then
  39143. - ac_cv_prog_F77="$F77" # Let the user override the test.
  39144. + if test -n "$ac_ct_LIPO"; then
  39145. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  39146. else
  39147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  39148. for as_dir in $PATH
  39149. do
  39150. IFS=$as_save_IFS
  39151. test -z "$as_dir" && as_dir=.
  39152. - for ac_exec_ext in '' $ac_executable_extensions; do
  39153. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  39154. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  39155. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  39156. + for ac_exec_ext in '' $ac_executable_extensions; do
  39157. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  39158. + ac_cv_prog_ac_ct_LIPO="lipo"
  39159. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  39160. break 2
  39161. fi
  39162. done
  39163. -done
  39164. + done
  39165. +IFS=$as_save_IFS
  39166. fi
  39167. fi
  39168. -F77=$ac_cv_prog_F77
  39169. -if test -n "$F77"; then
  39170. - echo "$as_me:$LINENO: result: $F77" >&5
  39171. -echo "${ECHO_T}$F77" >&6
  39172. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  39173. +if test -n "$ac_ct_LIPO"; then
  39174. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  39175. +$as_echo "$ac_ct_LIPO" >&6; }
  39176. else
  39177. - echo "$as_me:$LINENO: result: no" >&5
  39178. -echo "${ECHO_T}no" >&6
  39179. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39180. +$as_echo "no" >&6; }
  39181. fi
  39182. - test -n "$F77" && break
  39183. - done
  39184. + if test "x$ac_ct_LIPO" = x; then
  39185. + LIPO=":"
  39186. + else
  39187. + case $cross_compiling:$ac_tool_warned in
  39188. +yes:)
  39189. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  39190. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  39191. +ac_tool_warned=yes ;;
  39192. +esac
  39193. + LIPO=$ac_ct_LIPO
  39194. + fi
  39195. +else
  39196. + LIPO="$ac_cv_prog_LIPO"
  39197. fi
  39198. -if test -z "$F77"; then
  39199. - ac_ct_F77=$F77
  39200. - for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  39201. -do
  39202. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  39203. -set dummy $ac_prog; ac_word=$2
  39204. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  39205. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  39206. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  39207. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39208. +
  39209. + if test -n "$ac_tool_prefix"; then
  39210. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  39211. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  39212. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  39213. +$as_echo_n "checking for $ac_word... " >&6; }
  39214. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  39215. + $as_echo_n "(cached) " >&6
  39216. else
  39217. - if test -n "$ac_ct_F77"; then
  39218. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  39219. + if test -n "$OTOOL"; then
  39220. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  39221. else
  39222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  39223. for as_dir in $PATH
  39224. do
  39225. IFS=$as_save_IFS
  39226. test -z "$as_dir" && as_dir=.
  39227. - for ac_exec_ext in '' $ac_executable_extensions; do
  39228. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  39229. - ac_cv_prog_ac_ct_F77="$ac_prog"
  39230. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  39231. + for ac_exec_ext in '' $ac_executable_extensions; do
  39232. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  39233. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  39234. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  39235. break 2
  39236. fi
  39237. done
  39238. -done
  39239. + done
  39240. +IFS=$as_save_IFS
  39241. fi
  39242. fi
  39243. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  39244. -if test -n "$ac_ct_F77"; then
  39245. - echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  39246. -echo "${ECHO_T}$ac_ct_F77" >&6
  39247. +OTOOL=$ac_cv_prog_OTOOL
  39248. +if test -n "$OTOOL"; then
  39249. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  39250. +$as_echo "$OTOOL" >&6; }
  39251. else
  39252. - echo "$as_me:$LINENO: result: no" >&5
  39253. -echo "${ECHO_T}no" >&6
  39254. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39255. +$as_echo "no" >&6; }
  39256. fi
  39257. - test -n "$ac_ct_F77" && break
  39258. -done
  39259. - F77=$ac_ct_F77
  39260. fi
  39261. +if test -z "$ac_cv_prog_OTOOL"; then
  39262. + ac_ct_OTOOL=$OTOOL
  39263. + # Extract the first word of "otool", so it can be a program name with args.
  39264. +set dummy otool; ac_word=$2
  39265. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  39266. +$as_echo_n "checking for $ac_word... " >&6; }
  39267. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  39268. + $as_echo_n "(cached) " >&6
  39269. +else
  39270. + if test -n "$ac_ct_OTOOL"; then
  39271. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  39272. +else
  39273. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  39274. +for as_dir in $PATH
  39275. +do
  39276. + IFS=$as_save_IFS
  39277. + test -z "$as_dir" && as_dir=.
  39278. + for ac_exec_ext in '' $ac_executable_extensions; do
  39279. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  39280. + ac_cv_prog_ac_ct_OTOOL="otool"
  39281. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  39282. + break 2
  39283. + fi
  39284. +done
  39285. + done
  39286. +IFS=$as_save_IFS
  39287. +fi
  39288. +fi
  39289. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  39290. +if test -n "$ac_ct_OTOOL"; then
  39291. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  39292. +$as_echo "$ac_ct_OTOOL" >&6; }
  39293. +else
  39294. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39295. +$as_echo "no" >&6; }
  39296. +fi
  39297. -# Provide some information about the compiler.
  39298. -echo "$as_me:5237:" \
  39299. - "checking for Fortran 77 compiler version" >&5
  39300. -ac_compiler=`set X $ac_compile; echo $2`
  39301. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  39302. - (eval $ac_compiler --version </dev/null >&5) 2>&5
  39303. - ac_status=$?
  39304. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39305. - (exit $ac_status); }
  39306. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  39307. - (eval $ac_compiler -v </dev/null >&5) 2>&5
  39308. - ac_status=$?
  39309. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39310. - (exit $ac_status); }
  39311. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  39312. - (eval $ac_compiler -V </dev/null >&5) 2>&5
  39313. - ac_status=$?
  39314. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39315. - (exit $ac_status); }
  39316. -rm -f a.out
  39317. -
  39318. -# If we don't use `.F' as extension, the preprocessor is not run on the
  39319. -# input file. (Note that this only needs to work for GNU compilers.)
  39320. -ac_save_ext=$ac_ext
  39321. -ac_ext=F
  39322. -echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  39323. -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  39324. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  39325. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39326. + if test "x$ac_ct_OTOOL" = x; then
  39327. + OTOOL=":"
  39328. + else
  39329. + case $cross_compiling:$ac_tool_warned in
  39330. +yes:)
  39331. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  39332. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  39333. +ac_tool_warned=yes ;;
  39334. +esac
  39335. + OTOOL=$ac_ct_OTOOL
  39336. + fi
  39337. else
  39338. - cat >conftest.$ac_ext <<_ACEOF
  39339. - program main
  39340. -#ifndef __GNUC__
  39341. - choke me
  39342. -#endif
  39343. + OTOOL="$ac_cv_prog_OTOOL"
  39344. +fi
  39345. - end
  39346. -_ACEOF
  39347. -rm -f conftest.$ac_objext
  39348. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  39349. - (eval $ac_compile) 2>conftest.er1
  39350. - ac_status=$?
  39351. - grep -v '^ *+' conftest.er1 >conftest.err
  39352. - rm -f conftest.er1
  39353. - cat conftest.err >&5
  39354. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39355. - (exit $ac_status); } &&
  39356. - { ac_try='test -z "$ac_f77_werror_flag"
  39357. - || test ! -s conftest.err'
  39358. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39359. - (eval $ac_try) 2>&5
  39360. - ac_status=$?
  39361. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39362. - (exit $ac_status); }; } &&
  39363. - { ac_try='test -s conftest.$ac_objext'
  39364. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39365. - (eval $ac_try) 2>&5
  39366. - ac_status=$?
  39367. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39368. - (exit $ac_status); }; }; then
  39369. - ac_compiler_gnu=yes
  39370. + if test -n "$ac_tool_prefix"; then
  39371. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  39372. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  39373. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  39374. +$as_echo_n "checking for $ac_word... " >&6; }
  39375. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  39376. + $as_echo_n "(cached) " >&6
  39377. else
  39378. - echo "$as_me: failed program was:" >&5
  39379. -sed 's/^/| /' conftest.$ac_ext >&5
  39380. + if test -n "$OTOOL64"; then
  39381. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  39382. +else
  39383. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  39384. +for as_dir in $PATH
  39385. +do
  39386. + IFS=$as_save_IFS
  39387. + test -z "$as_dir" && as_dir=.
  39388. + for ac_exec_ext in '' $ac_executable_extensions; do
  39389. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  39390. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  39391. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  39392. + break 2
  39393. + fi
  39394. +done
  39395. + done
  39396. +IFS=$as_save_IFS
  39397. -ac_compiler_gnu=no
  39398. fi
  39399. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  39400. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  39401. -
  39402. fi
  39403. -echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  39404. -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  39405. -ac_ext=$ac_save_ext
  39406. -ac_test_FFLAGS=${FFLAGS+set}
  39407. -ac_save_FFLAGS=$FFLAGS
  39408. -FFLAGS=
  39409. -echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  39410. -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  39411. -if test "${ac_cv_prog_f77_g+set}" = set; then
  39412. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39413. -else
  39414. - FFLAGS=-g
  39415. -cat >conftest.$ac_ext <<_ACEOF
  39416. - program main
  39417. -
  39418. - end
  39419. -_ACEOF
  39420. -rm -f conftest.$ac_objext
  39421. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  39422. - (eval $ac_compile) 2>conftest.er1
  39423. - ac_status=$?
  39424. - grep -v '^ *+' conftest.er1 >conftest.err
  39425. - rm -f conftest.er1
  39426. - cat conftest.err >&5
  39427. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39428. - (exit $ac_status); } &&
  39429. - { ac_try='test -z "$ac_f77_werror_flag"
  39430. - || test ! -s conftest.err'
  39431. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39432. - (eval $ac_try) 2>&5
  39433. - ac_status=$?
  39434. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39435. - (exit $ac_status); }; } &&
  39436. - { ac_try='test -s conftest.$ac_objext'
  39437. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39438. - (eval $ac_try) 2>&5
  39439. - ac_status=$?
  39440. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39441. - (exit $ac_status); }; }; then
  39442. - ac_cv_prog_f77_g=yes
  39443. +OTOOL64=$ac_cv_prog_OTOOL64
  39444. +if test -n "$OTOOL64"; then
  39445. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  39446. +$as_echo "$OTOOL64" >&6; }
  39447. else
  39448. - echo "$as_me: failed program was:" >&5
  39449. -sed 's/^/| /' conftest.$ac_ext >&5
  39450. -
  39451. -ac_cv_prog_f77_g=no
  39452. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39453. +$as_echo "no" >&6; }
  39454. fi
  39455. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  39456. +
  39457. fi
  39458. -echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  39459. -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  39460. -if test "$ac_test_FFLAGS" = set; then
  39461. - FFLAGS=$ac_save_FFLAGS
  39462. -elif test $ac_cv_prog_f77_g = yes; then
  39463. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  39464. - FFLAGS="-g -O2"
  39465. - else
  39466. - FFLAGS="-g"
  39467. +if test -z "$ac_cv_prog_OTOOL64"; then
  39468. + ac_ct_OTOOL64=$OTOOL64
  39469. + # Extract the first word of "otool64", so it can be a program name with args.
  39470. +set dummy otool64; ac_word=$2
  39471. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  39472. +$as_echo_n "checking for $ac_word... " >&6; }
  39473. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  39474. + $as_echo_n "(cached) " >&6
  39475. +else
  39476. + if test -n "$ac_ct_OTOOL64"; then
  39477. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  39478. +else
  39479. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  39480. +for as_dir in $PATH
  39481. +do
  39482. + IFS=$as_save_IFS
  39483. + test -z "$as_dir" && as_dir=.
  39484. + for ac_exec_ext in '' $ac_executable_extensions; do
  39485. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  39486. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  39487. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  39488. + break 2
  39489. fi
  39490. +done
  39491. + done
  39492. +IFS=$as_save_IFS
  39493. +
  39494. +fi
  39495. +fi
  39496. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  39497. +if test -n "$ac_ct_OTOOL64"; then
  39498. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  39499. +$as_echo "$ac_ct_OTOOL64" >&6; }
  39500. else
  39501. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  39502. - FFLAGS="-O2"
  39503. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39504. +$as_echo "no" >&6; }
  39505. +fi
  39506. +
  39507. + if test "x$ac_ct_OTOOL64" = x; then
  39508. + OTOOL64=":"
  39509. else
  39510. - FFLAGS=
  39511. + case $cross_compiling:$ac_tool_warned in
  39512. +yes:)
  39513. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  39514. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  39515. +ac_tool_warned=yes ;;
  39516. +esac
  39517. + OTOOL64=$ac_ct_OTOOL64
  39518. fi
  39519. +else
  39520. + OTOOL64="$ac_cv_prog_OTOOL64"
  39521. fi
  39522. -G77=`test $ac_compiler_gnu = yes && echo yes`
  39523. -ac_ext=c
  39524. -ac_cpp='$CPP $CPPFLAGS'
  39525. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  39526. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  39527. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  39528. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  39529. -# find the maximum length of command line arguments
  39530. -echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  39531. -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  39532. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  39533. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39534. -else
  39535. - i=0
  39536. - testring="ABCD"
  39537. - case $build_os in
  39538. - msdosdjgpp*)
  39539. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  39540. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  39541. - # during glob expansion). Even if it were fixed, the result of this
  39542. - # check would be larger than it should be.
  39543. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  39544. - ;;
  39545. - gnu*)
  39546. - # Under GNU Hurd, this test is not required because there is
  39547. - # no limit to the length of command line arguments.
  39548. - # Libtool will interpret -1 as no limit whatsoever
  39549. - lt_cv_sys_max_cmd_len=-1;
  39550. - ;;
  39551. - cygwin* | mingw*)
  39552. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  39553. - # about 5 minutes as the teststring grows exponentially.
  39554. - # Worse, since 9x/ME are not pre-emptively multitasking,
  39555. - # you end up with a "frozen" computer, even though with patience
  39556. - # the test eventually succeeds (with a max line length of 256k).
  39557. - # Instead, let's just punt: use the minimum linelength reported by
  39558. - # all of the supported platforms: 8192 (on NT/2K/XP).
  39559. - lt_cv_sys_max_cmd_len=8192;
  39560. - ;;
  39561. - *)
  39562. - # If test is not a shell built-in, we'll probably end up computing a
  39563. - # maximum length that is only half of the actual maximum length, but
  39564. - # we can't tell.
  39565. - while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
  39566. - = "XX$testring") >/dev/null 2>&1 &&
  39567. - new_result=`expr "X$testring" : ".*" 2>&1` &&
  39568. - lt_cv_sys_max_cmd_len=$new_result &&
  39569. - test $i != 17 # 1/2 MB should be enough
  39570. - do
  39571. - i=`expr $i + 1`
  39572. - testring=$testring$testring
  39573. - done
  39574. - testring=
  39575. - # Add a significant safety factor because C++ compilers can tack on massive
  39576. - # amounts of additional arguments before passing them to the linker.
  39577. - # It appears as though 1/2 is a usable value.
  39578. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  39579. - ;;
  39580. - esac
  39581. -fi
  39582. -if test -n $lt_cv_sys_max_cmd_len ; then
  39583. - echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  39584. -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  39585. -else
  39586. - echo "$as_me:$LINENO: result: none" >&5
  39587. -echo "${ECHO_T}none" >&6
  39588. -fi
  39589. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  39590. -echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  39591. -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  39592. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  39593. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39594. -else
  39595. -# These are sane defaults that work on at least a few old systems.
  39596. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  39597. -# Character class describing NM global symbol codes.
  39598. -symcode='[BCDEGRST]'
  39599. -# Regexp to match symbols that can be accessed directly from C.
  39600. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  39601. -# Transform the above into a raw symbol and a C symbol.
  39602. -symxfrm='\1 \2\3 \3'
  39603. -# Transform an extracted symbol line into a proper C declaration
  39604. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  39605. -# Transform an extracted symbol line into symbol name and symbol address
  39606. -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'"
  39607. -# Define system-specific variables.
  39608. -case $host_os in
  39609. -aix*)
  39610. - symcode='[BCDT]'
  39611. - ;;
  39612. -cygwin* | mingw* | pw32*)
  39613. - symcode='[ABCDGISTW]'
  39614. - ;;
  39615. -hpux*) # Its linker distinguishes data from code symbols
  39616. - if test "$host_cpu" = ia64; then
  39617. - symcode='[ABCDEGRST]'
  39618. - fi
  39619. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  39620. - 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'"
  39621. - ;;
  39622. -irix* | nonstopux*)
  39623. - symcode='[BCDEGRST]'
  39624. - ;;
  39625. -osf*)
  39626. - symcode='[BCDEGQRST]'
  39627. - ;;
  39628. -solaris* | sysv5*)
  39629. - symcode='[BDT]'
  39630. - ;;
  39631. -sysv4)
  39632. - symcode='[DFNSTU]'
  39633. - ;;
  39634. -esac
  39635. -
  39636. -# Handle CRLF in mingw tool chain
  39637. -opt_cr=
  39638. -case $build_os in
  39639. -mingw*)
  39640. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  39641. - ;;
  39642. -esac
  39643. -# If we're using GNU nm, then use its standard symbol codes.
  39644. -case `$NM -V 2>&1` in
  39645. -*GNU* | *'with BFD'*)
  39646. - symcode='[ABCDGISTW]' ;;
  39647. -esac
  39648. -# Try without a prefix undercore, then with it.
  39649. -for ac_symprfx in "" "_"; do
  39650. -
  39651. - # Write the raw and C identifiers.
  39652. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  39653. - # Check to see that the pipe works correctly.
  39654. - pipe_works=no
  39655. - rm -f conftest*
  39656. - cat > conftest.$ac_ext <<EOF
  39657. -#ifdef __cplusplus
  39658. -extern "C" {
  39659. -#endif
  39660. -char nm_test_var;
  39661. -void nm_test_func(){}
  39662. -#ifdef __cplusplus
  39663. -}
  39664. -#endif
  39665. -int main(){nm_test_var='a';nm_test_func();return(0);}
  39666. -EOF
  39667. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  39668. - (eval $ac_compile) 2>&5
  39669. - ac_status=$?
  39670. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39671. - (exit $ac_status); }; then
  39672. - # Now try to grab the symbols.
  39673. - nlist=conftest.nm
  39674. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  39675. - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  39676. - ac_status=$?
  39677. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39678. - (exit $ac_status); } && test -s "$nlist"; then
  39679. - # Try sorting and uniquifying the output.
  39680. - if sort "$nlist" | uniq > "$nlist"T; then
  39681. - mv -f "$nlist"T "$nlist"
  39682. - else
  39683. - rm -f "$nlist"T
  39684. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  39685. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  39686. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  39687. + $as_echo_n "(cached) " >&6
  39688. +else
  39689. + lt_cv_apple_cc_single_mod=no
  39690. + if test -z "${LT_MULTI_MODULE}"; then
  39691. + # By default we will add the -single_module flag. You can override
  39692. + # by either setting the environment variable LT_MULTI_MODULE
  39693. + # non-empty at configure time, or by adding -multi_module to the
  39694. + # link flags.
  39695. + rm -rf libconftest.dylib*
  39696. + echo "int foo(void){return 1;}" > conftest.c
  39697. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  39698. +-dynamiclib -Wl,-single_module conftest.c" >&5
  39699. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  39700. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  39701. + _lt_result=$?
  39702. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  39703. + lt_cv_apple_cc_single_mod=yes
  39704. + else
  39705. + cat conftest.err >&5
  39706. + fi
  39707. + rm -rf libconftest.dylib*
  39708. + rm -f conftest.*
  39709. fi
  39710. +fi
  39711. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  39712. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  39713. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  39714. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  39715. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  39716. + $as_echo_n "(cached) " >&6
  39717. +else
  39718. + lt_cv_ld_exported_symbols_list=no
  39719. + save_LDFLAGS=$LDFLAGS
  39720. + echo "_main" > conftest.sym
  39721. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  39722. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39723. +/* end confdefs.h. */
  39724. - # Make sure that we snagged all the symbols we need.
  39725. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  39726. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  39727. - cat <<EOF > conftest.$ac_ext
  39728. -#ifdef __cplusplus
  39729. -extern "C" {
  39730. -#endif
  39731. +int
  39732. +main ()
  39733. +{
  39734. -EOF
  39735. - # Now generate the symbol file.
  39736. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  39737. + ;
  39738. + return 0;
  39739. +}
  39740. +_ACEOF
  39741. +if ac_fn_c_try_link "$LINENO"; then :
  39742. + lt_cv_ld_exported_symbols_list=yes
  39743. +else
  39744. + lt_cv_ld_exported_symbols_list=no
  39745. +fi
  39746. +rm -f core conftest.err conftest.$ac_objext \
  39747. + conftest$ac_exeext conftest.$ac_ext
  39748. + LDFLAGS="$save_LDFLAGS"
  39749. +
  39750. +fi
  39751. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  39752. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  39753. + case $host_os in
  39754. + rhapsody* | darwin1.[012])
  39755. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  39756. + darwin1.*)
  39757. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  39758. + darwin*) # darwin 5.x on
  39759. + # if running on 10.5 or later, the deployment target defaults
  39760. + # to the OS version, if on x86, and 10.4, the deployment
  39761. + # target defaults to 10.4. Don't you love it?
  39762. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  39763. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  39764. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  39765. + 10.[012]*)
  39766. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  39767. + 10.*)
  39768. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  39769. + esac
  39770. + ;;
  39771. + esac
  39772. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  39773. + _lt_dar_single_mod='$single_module'
  39774. + fi
  39775. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  39776. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  39777. + else
  39778. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  39779. + fi
  39780. + if test "$DSYMUTIL" != ":"; then
  39781. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  39782. + else
  39783. + _lt_dsymutil=
  39784. + fi
  39785. + ;;
  39786. + esac
  39787. - cat <<EOF >> conftest.$ac_ext
  39788. -#if defined (__STDC__) && __STDC__
  39789. -# define lt_ptr_t void *
  39790. +ac_ext=c
  39791. +ac_cpp='$CPP $CPPFLAGS'
  39792. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  39793. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  39794. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  39795. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  39796. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  39797. +# On Suns, sometimes $CPP names a directory.
  39798. +if test -n "$CPP" && test -d "$CPP"; then
  39799. + CPP=
  39800. +fi
  39801. +if test -z "$CPP"; then
  39802. + if test "${ac_cv_prog_CPP+set}" = set; then :
  39803. + $as_echo_n "(cached) " >&6
  39804. +else
  39805. + # Double quotes because CPP needs to be expanded
  39806. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  39807. + do
  39808. + ac_preproc_ok=false
  39809. +for ac_c_preproc_warn_flag in '' yes
  39810. +do
  39811. + # Use a header file that comes with gcc, so configuring glibc
  39812. + # with a fresh cross-compiler works.
  39813. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  39814. + # <limits.h> exists even on freestanding compilers.
  39815. + # On the NeXT, cc -E runs the code through the compiler's parser,
  39816. + # not just through cpp. "Syntax error" is here to catch this case.
  39817. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39818. +/* end confdefs.h. */
  39819. +#ifdef __STDC__
  39820. +# include <limits.h>
  39821. #else
  39822. -# define lt_ptr_t char *
  39823. -# define const
  39824. +# include <assert.h>
  39825. #endif
  39826. + Syntax error
  39827. +_ACEOF
  39828. +if ac_fn_c_try_cpp "$LINENO"; then :
  39829. -/* The mapping between symbol names and symbols. */
  39830. -const struct {
  39831. - const char *name;
  39832. - lt_ptr_t address;
  39833. -}
  39834. -lt_preloaded_symbols[] =
  39835. -{
  39836. -EOF
  39837. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  39838. - cat <<\EOF >> conftest.$ac_ext
  39839. - {0, (lt_ptr_t) 0}
  39840. -};
  39841. +else
  39842. + # Broken: fails on valid input.
  39843. +continue
  39844. +fi
  39845. +rm -f conftest.err conftest.$ac_ext
  39846. -#ifdef __cplusplus
  39847. -}
  39848. -#endif
  39849. -EOF
  39850. - # Now try linking the two files.
  39851. - mv conftest.$ac_objext conftstm.$ac_objext
  39852. - lt_save_LIBS="$LIBS"
  39853. - lt_save_CFLAGS="$CFLAGS"
  39854. - LIBS="conftstm.$ac_objext"
  39855. - CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  39856. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  39857. - (eval $ac_link) 2>&5
  39858. - ac_status=$?
  39859. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39860. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  39861. - pipe_works=yes
  39862. - fi
  39863. - LIBS="$lt_save_LIBS"
  39864. - CFLAGS="$lt_save_CFLAGS"
  39865. - else
  39866. - echo "cannot find nm_test_func in $nlist" >&5
  39867. - fi
  39868. - else
  39869. - echo "cannot find nm_test_var in $nlist" >&5
  39870. - fi
  39871. - else
  39872. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  39873. - fi
  39874. - else
  39875. - echo "$progname: failed program was:" >&5
  39876. - cat conftest.$ac_ext >&5
  39877. - fi
  39878. - rm -f conftest* conftst*
  39879. + # OK, works on sane cases. Now check whether nonexistent headers
  39880. + # can be detected and how.
  39881. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39882. +/* end confdefs.h. */
  39883. +#include <ac_nonexistent.h>
  39884. +_ACEOF
  39885. +if ac_fn_c_try_cpp "$LINENO"; then :
  39886. + # Broken: success on invalid input.
  39887. +continue
  39888. +else
  39889. + # Passes both tests.
  39890. +ac_preproc_ok=:
  39891. +break
  39892. +fi
  39893. +rm -f conftest.err conftest.$ac_ext
  39894. - # Do not use the global_symbol_pipe unless it works.
  39895. - if test "$pipe_works" = yes; then
  39896. - break
  39897. - else
  39898. - lt_cv_sys_global_symbol_pipe=
  39899. - fi
  39900. done
  39901. -
  39902. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  39903. +rm -f conftest.err conftest.$ac_ext
  39904. +if $ac_preproc_ok; then :
  39905. + break
  39906. fi
  39907. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  39908. - lt_cv_sys_global_symbol_to_cdecl=
  39909. + done
  39910. + ac_cv_prog_CPP=$CPP
  39911. +
  39912. fi
  39913. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  39914. - echo "$as_me:$LINENO: result: failed" >&5
  39915. -echo "${ECHO_T}failed" >&6
  39916. + CPP=$ac_cv_prog_CPP
  39917. else
  39918. - echo "$as_me:$LINENO: result: ok" >&5
  39919. -echo "${ECHO_T}ok" >&6
  39920. + ac_cv_prog_CPP=$CPP
  39921. fi
  39922. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  39923. +$as_echo "$CPP" >&6; }
  39924. +ac_preproc_ok=false
  39925. +for ac_c_preproc_warn_flag in '' yes
  39926. +do
  39927. + # Use a header file that comes with gcc, so configuring glibc
  39928. + # with a fresh cross-compiler works.
  39929. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  39930. + # <limits.h> exists even on freestanding compilers.
  39931. + # On the NeXT, cc -E runs the code through the compiler's parser,
  39932. + # not just through cpp. "Syntax error" is here to catch this case.
  39933. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39934. +/* end confdefs.h. */
  39935. +#ifdef __STDC__
  39936. +# include <limits.h>
  39937. +#else
  39938. +# include <assert.h>
  39939. +#endif
  39940. + Syntax error
  39941. +_ACEOF
  39942. +if ac_fn_c_try_cpp "$LINENO"; then :
  39943. -echo "$as_me:$LINENO: checking for objdir" >&5
  39944. -echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  39945. -if test "${lt_cv_objdir+set}" = set; then
  39946. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39947. else
  39948. - rm -f .libs 2>/dev/null
  39949. -mkdir .libs 2>/dev/null
  39950. -if test -d .libs; then
  39951. - lt_cv_objdir=.libs
  39952. + # Broken: fails on valid input.
  39953. +continue
  39954. +fi
  39955. +rm -f conftest.err conftest.$ac_ext
  39956. +
  39957. + # OK, works on sane cases. Now check whether nonexistent headers
  39958. + # can be detected and how.
  39959. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39960. +/* end confdefs.h. */
  39961. +#include <ac_nonexistent.h>
  39962. +_ACEOF
  39963. +if ac_fn_c_try_cpp "$LINENO"; then :
  39964. + # Broken: success on invalid input.
  39965. +continue
  39966. else
  39967. - # MS-DOS does not allow filenames that begin with a dot.
  39968. - lt_cv_objdir=_libs
  39969. + # Passes both tests.
  39970. +ac_preproc_ok=:
  39971. +break
  39972. fi
  39973. -rmdir .libs 2>/dev/null
  39974. +rm -f conftest.err conftest.$ac_ext
  39975. +
  39976. +done
  39977. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  39978. +rm -f conftest.err conftest.$ac_ext
  39979. +if $ac_preproc_ok; then :
  39980. +
  39981. +else
  39982. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  39983. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  39984. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  39985. +See \`config.log' for more details." "$LINENO" 5; }
  39986. fi
  39987. -echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  39988. -echo "${ECHO_T}$lt_cv_objdir" >&6
  39989. -objdir=$lt_cv_objdir
  39990. +ac_ext=c
  39991. +ac_cpp='$CPP $CPPFLAGS'
  39992. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  39993. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  39994. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  39995. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  39996. +$as_echo_n "checking for ANSI C header files... " >&6; }
  39997. +if test "${ac_cv_header_stdc+set}" = set; then :
  39998. + $as_echo_n "(cached) " >&6
  39999. +else
  40000. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40001. +/* end confdefs.h. */
  40002. +#include <stdlib.h>
  40003. +#include <stdarg.h>
  40004. +#include <string.h>
  40005. +#include <float.h>
  40006. +int
  40007. +main ()
  40008. +{
  40009. -case $host_os in
  40010. -aix3*)
  40011. - # AIX sometimes has problems with the GCC collect2 program. For some
  40012. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  40013. - # vanish in a puff of smoke.
  40014. - if test "X${COLLECT_NAMES+set}" != Xset; then
  40015. - COLLECT_NAMES=
  40016. - export COLLECT_NAMES
  40017. - fi
  40018. - ;;
  40019. -esac
  40020. + ;
  40021. + return 0;
  40022. +}
  40023. +_ACEOF
  40024. +if ac_fn_c_try_compile "$LINENO"; then :
  40025. + ac_cv_header_stdc=yes
  40026. +else
  40027. + ac_cv_header_stdc=no
  40028. +fi
  40029. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40030. -# Sed substitution that helps us do robust quoting. It backslashifies
  40031. -# metacharacters that are still active within double-quoted strings.
  40032. -Xsed='sed -e s/^X//'
  40033. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  40034. +if test $ac_cv_header_stdc = yes; then
  40035. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  40036. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40037. +/* end confdefs.h. */
  40038. +#include <string.h>
  40039. -# Same as above, but do not quote variable references.
  40040. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  40041. +_ACEOF
  40042. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  40043. + $EGREP "memchr" >/dev/null 2>&1; then :
  40044. -# Sed substitution to delay expansion of an escaped shell variable in a
  40045. -# double_quote_subst'ed string.
  40046. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  40047. +else
  40048. + ac_cv_header_stdc=no
  40049. +fi
  40050. +rm -f conftest*
  40051. -# Sed substitution to undo escaping of the cmd sep variable
  40052. -unescape_variable_subst='s/\\\(${_S_}\)/\1/g'
  40053. +fi
  40054. -# Sed substitution to avoid accidental globbing in evaled expressions
  40055. -no_glob_subst='s/\*/\\\*/g'
  40056. +if test $ac_cv_header_stdc = yes; then
  40057. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  40058. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40059. +/* end confdefs.h. */
  40060. +#include <stdlib.h>
  40061. -# Constants:
  40062. -rm="rm -f"
  40063. +_ACEOF
  40064. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  40065. + $EGREP "free" >/dev/null 2>&1; then :
  40066. -# Global variables:
  40067. -default_ofile=libtool
  40068. -can_build_shared=yes
  40069. +else
  40070. + ac_cv_header_stdc=no
  40071. +fi
  40072. +rm -f conftest*
  40073. -# All known linkers require a `.a' archive for static linking (except M$VC,
  40074. -# which needs '.lib').
  40075. -libext=a
  40076. -ltmain="$ac_aux_dir/ltmain.sh"
  40077. -ofile="$default_ofile"
  40078. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  40079. +fi
  40080. -if test -n "$ac_tool_prefix"; then
  40081. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  40082. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  40083. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  40084. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  40085. -if test "${ac_cv_prog_AR+set}" = set; then
  40086. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40087. -else
  40088. - if test -n "$AR"; then
  40089. - ac_cv_prog_AR="$AR" # Let the user override the test.
  40090. +if test $ac_cv_header_stdc = yes; then
  40091. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  40092. + if test "$cross_compiling" = yes; then :
  40093. + :
  40094. else
  40095. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  40096. -for as_dir in $PATH
  40097. -do
  40098. - IFS=$as_save_IFS
  40099. - test -z "$as_dir" && as_dir=.
  40100. - for ac_exec_ext in '' $ac_executable_extensions; do
  40101. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  40102. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  40103. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  40104. - break 2
  40105. - fi
  40106. -done
  40107. -done
  40108. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40109. +/* end confdefs.h. */
  40110. +#include <ctype.h>
  40111. +#include <stdlib.h>
  40112. +#if ((' ' & 0x0FF) == 0x020)
  40113. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  40114. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  40115. +#else
  40116. +# define ISLOWER(c) \
  40117. + (('a' <= (c) && (c) <= 'i') \
  40118. + || ('j' <= (c) && (c) <= 'r') \
  40119. + || ('s' <= (c) && (c) <= 'z'))
  40120. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  40121. +#endif
  40122. +
  40123. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  40124. +int
  40125. +main ()
  40126. +{
  40127. + int i;
  40128. + for (i = 0; i < 256; i++)
  40129. + if (XOR (islower (i), ISLOWER (i))
  40130. + || toupper (i) != TOUPPER (i))
  40131. + return 2;
  40132. + return 0;
  40133. +}
  40134. +_ACEOF
  40135. +if ac_fn_c_try_run "$LINENO"; then :
  40136. -fi
  40137. -fi
  40138. -AR=$ac_cv_prog_AR
  40139. -if test -n "$AR"; then
  40140. - echo "$as_me:$LINENO: result: $AR" >&5
  40141. -echo "${ECHO_T}$AR" >&6
  40142. else
  40143. - echo "$as_me:$LINENO: result: no" >&5
  40144. -echo "${ECHO_T}no" >&6
  40145. + ac_cv_header_stdc=no
  40146. fi
  40147. -
  40148. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  40149. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  40150. fi
  40151. -if test -z "$ac_cv_prog_AR"; then
  40152. - ac_ct_AR=$AR
  40153. - # Extract the first word of "ar", so it can be a program name with args.
  40154. -set dummy ar; ac_word=$2
  40155. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  40156. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  40157. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  40158. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40159. -else
  40160. - if test -n "$ac_ct_AR"; then
  40161. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  40162. -else
  40163. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  40164. -for as_dir in $PATH
  40165. -do
  40166. - IFS=$as_save_IFS
  40167. - test -z "$as_dir" && as_dir=.
  40168. - for ac_exec_ext in '' $ac_executable_extensions; do
  40169. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  40170. - ac_cv_prog_ac_ct_AR="ar"
  40171. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  40172. - break 2
  40173. - fi
  40174. -done
  40175. -done
  40176. - test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  40177. -fi
  40178. fi
  40179. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  40180. -if test -n "$ac_ct_AR"; then
  40181. - echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  40182. -echo "${ECHO_T}$ac_ct_AR" >&6
  40183. -else
  40184. - echo "$as_me:$LINENO: result: no" >&5
  40185. -echo "${ECHO_T}no" >&6
  40186. fi
  40187. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  40188. +$as_echo "$ac_cv_header_stdc" >&6; }
  40189. +if test $ac_cv_header_stdc = yes; then
  40190. +
  40191. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  40192. - AR=$ac_ct_AR
  40193. -else
  40194. - AR="$ac_cv_prog_AR"
  40195. fi
  40196. -if test -n "$ac_tool_prefix"; then
  40197. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  40198. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  40199. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  40200. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  40201. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  40202. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40203. -else
  40204. - if test -n "$RANLIB"; then
  40205. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  40206. -else
  40207. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  40208. -for as_dir in $PATH
  40209. -do
  40210. - IFS=$as_save_IFS
  40211. - test -z "$as_dir" && as_dir=.
  40212. - for ac_exec_ext in '' $ac_executable_extensions; do
  40213. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  40214. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  40215. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  40216. - break 2
  40217. - fi
  40218. -done
  40219. -done
  40220. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  40221. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  40222. + inttypes.h stdint.h unistd.h
  40223. +do :
  40224. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  40225. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  40226. +"
  40227. +eval as_val=\$$as_ac_Header
  40228. + if test "x$as_val" = x""yes; then :
  40229. + cat >>confdefs.h <<_ACEOF
  40230. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  40231. +_ACEOF
  40232. fi
  40233. -fi
  40234. -RANLIB=$ac_cv_prog_RANLIB
  40235. -if test -n "$RANLIB"; then
  40236. - echo "$as_me:$LINENO: result: $RANLIB" >&5
  40237. -echo "${ECHO_T}$RANLIB" >&6
  40238. -else
  40239. - echo "$as_me:$LINENO: result: no" >&5
  40240. -echo "${ECHO_T}no" >&6
  40241. -fi
  40242. -fi
  40243. -if test -z "$ac_cv_prog_RANLIB"; then
  40244. - ac_ct_RANLIB=$RANLIB
  40245. - # Extract the first word of "ranlib", so it can be a program name with args.
  40246. -set dummy ranlib; ac_word=$2
  40247. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  40248. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  40249. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  40250. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40251. -else
  40252. - if test -n "$ac_ct_RANLIB"; then
  40253. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  40254. -else
  40255. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  40256. -for as_dir in $PATH
  40257. -do
  40258. - IFS=$as_save_IFS
  40259. - test -z "$as_dir" && as_dir=.
  40260. - for ac_exec_ext in '' $ac_executable_extensions; do
  40261. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  40262. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  40263. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  40264. - break 2
  40265. - fi
  40266. -done
  40267. done
  40268. - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  40269. -fi
  40270. -fi
  40271. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  40272. -if test -n "$ac_ct_RANLIB"; then
  40273. - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  40274. -echo "${ECHO_T}$ac_ct_RANLIB" >&6
  40275. -else
  40276. - echo "$as_me:$LINENO: result: no" >&5
  40277. -echo "${ECHO_T}no" >&6
  40278. -fi
  40279. - RANLIB=$ac_ct_RANLIB
  40280. -else
  40281. - RANLIB="$ac_cv_prog_RANLIB"
  40282. +for ac_header in dlfcn.h
  40283. +do :
  40284. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  40285. +"
  40286. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  40287. + cat >>confdefs.h <<_ACEOF
  40288. +#define HAVE_DLFCN_H 1
  40289. +_ACEOF
  40290. +
  40291. fi
  40292. -if test -n "$ac_tool_prefix"; then
  40293. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  40294. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  40295. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  40296. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  40297. -if test "${ac_cv_prog_STRIP+set}" = set; then
  40298. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40299. -else
  40300. - if test -n "$STRIP"; then
  40301. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  40302. -else
  40303. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  40304. -for as_dir in $PATH
  40305. -do
  40306. - IFS=$as_save_IFS
  40307. - test -z "$as_dir" && as_dir=.
  40308. - for ac_exec_ext in '' $ac_executable_extensions; do
  40309. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  40310. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  40311. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  40312. - break 2
  40313. - fi
  40314. -done
  40315. done
  40316. -fi
  40317. -fi
  40318. -STRIP=$ac_cv_prog_STRIP
  40319. -if test -n "$STRIP"; then
  40320. - echo "$as_me:$LINENO: result: $STRIP" >&5
  40321. -echo "${ECHO_T}$STRIP" >&6
  40322. -else
  40323. - echo "$as_me:$LINENO: result: no" >&5
  40324. -echo "${ECHO_T}no" >&6
  40325. -fi
  40326. -fi
  40327. -if test -z "$ac_cv_prog_STRIP"; then
  40328. - ac_ct_STRIP=$STRIP
  40329. - # Extract the first word of "strip", so it can be a program name with args.
  40330. -set dummy strip; ac_word=$2
  40331. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  40332. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  40333. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  40334. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40335. -else
  40336. - if test -n "$ac_ct_STRIP"; then
  40337. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  40338. -else
  40339. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  40340. -for as_dir in $PATH
  40341. -do
  40342. - IFS=$as_save_IFS
  40343. - test -z "$as_dir" && as_dir=.
  40344. - for ac_exec_ext in '' $ac_executable_extensions; do
  40345. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  40346. - ac_cv_prog_ac_ct_STRIP="strip"
  40347. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  40348. - break 2
  40349. - fi
  40350. -done
  40351. -done
  40352. - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  40353. -fi
  40354. -fi
  40355. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  40356. -if test -n "$ac_ct_STRIP"; then
  40357. - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  40358. -echo "${ECHO_T}$ac_ct_STRIP" >&6
  40359. -else
  40360. - echo "$as_me:$LINENO: result: no" >&5
  40361. -echo "${ECHO_T}no" >&6
  40362. -fi
  40363. +# Set options
  40364. - STRIP=$ac_ct_STRIP
  40365. -else
  40366. - STRIP="$ac_cv_prog_STRIP"
  40367. -fi
  40368. -old_CC="$CC"
  40369. -old_CFLAGS="$CFLAGS"
  40370. -# Set sane defaults for various variables
  40371. -test -z "$AR" && AR=ar
  40372. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  40373. -test -z "$AS" && AS=as
  40374. -test -z "$CC" && CC=cc
  40375. -test -z "$LTCC" && LTCC=$CC
  40376. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  40377. -test -z "$LD" && LD=ld
  40378. -test -z "$LN_S" && LN_S="ln -s"
  40379. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  40380. -test -z "$NM" && NM=nm
  40381. -test -z "$SED" && SED=sed
  40382. -test -z "$OBJDUMP" && OBJDUMP=objdump
  40383. -test -z "$RANLIB" && RANLIB=:
  40384. -test -z "$STRIP" && STRIP=:
  40385. -test -z "$ac_objext" && ac_objext=o
  40386. + enable_win32_dll=no
  40387. -# Determine commands to create old-style static archives.
  40388. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  40389. -old_postinstall_cmds='chmod 644 $oldlib'
  40390. -old_postuninstall_cmds=
  40391. -if test -n "$RANLIB"; then
  40392. - case $host_os in
  40393. - openbsd*)
  40394. - old_postinstall_cmds="\$RANLIB -t \$oldlib\${_S_}$old_postinstall_cmds"
  40395. - ;;
  40396. - *)
  40397. - old_postinstall_cmds="\$RANLIB \$oldlib\${_S_}$old_postinstall_cmds"
  40398. - ;;
  40399. - esac
  40400. - old_archive_cmds="$old_archive_cmds\${_S_}\$RANLIB \$oldlib"
  40401. + # Check whether --enable-shared was given.
  40402. +if test "${enable_shared+set}" = set; then :
  40403. + enableval=$enable_shared; p=${PACKAGE-default}
  40404. + case $enableval in
  40405. + yes) enable_shared=yes ;;
  40406. + no) enable_shared=no ;;
  40407. + *)
  40408. + enable_shared=no
  40409. + # Look at the argument we got. We use all the common list separators.
  40410. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  40411. + for pkg in $enableval; do
  40412. + IFS="$lt_save_ifs"
  40413. + if test "X$pkg" = "X$p"; then
  40414. + enable_shared=yes
  40415. + fi
  40416. + done
  40417. + IFS="$lt_save_ifs"
  40418. + ;;
  40419. + esac
  40420. +else
  40421. + enable_shared=yes
  40422. fi
  40423. -# Only perform the check for file, if the check method requires it
  40424. -case $deplibs_check_method in
  40425. +
  40426. +
  40427. +
  40428. +
  40429. +
  40430. +
  40431. +
  40432. +
  40433. + # Check whether --enable-static was given.
  40434. +if test "${enable_static+set}" = set; then :
  40435. + enableval=$enable_static; p=${PACKAGE-default}
  40436. + case $enableval in
  40437. + yes) enable_static=yes ;;
  40438. + no) enable_static=no ;;
  40439. + *)
  40440. + enable_static=no
  40441. + # Look at the argument we got. We use all the common list separators.
  40442. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  40443. + for pkg in $enableval; do
  40444. + IFS="$lt_save_ifs"
  40445. + if test "X$pkg" = "X$p"; then
  40446. + enable_static=yes
  40447. + fi
  40448. + done
  40449. + IFS="$lt_save_ifs"
  40450. + ;;
  40451. + esac
  40452. +else
  40453. + enable_static=yes
  40454. +fi
  40455. +
  40456. +
  40457. +
  40458. +
  40459. +
  40460. +
  40461. +
  40462. +
  40463. +
  40464. +
  40465. +# Check whether --with-pic was given.
  40466. +if test "${with_pic+set}" = set; then :
  40467. + withval=$with_pic; pic_mode="$withval"
  40468. +else
  40469. + pic_mode=default
  40470. +fi
  40471. +
  40472. +
  40473. +test -z "$pic_mode" && pic_mode=default
  40474. +
  40475. +
  40476. +
  40477. +
  40478. +
  40479. +
  40480. +
  40481. + # Check whether --enable-fast-install was given.
  40482. +if test "${enable_fast_install+set}" = set; then :
  40483. + enableval=$enable_fast_install; p=${PACKAGE-default}
  40484. + case $enableval in
  40485. + yes) enable_fast_install=yes ;;
  40486. + no) enable_fast_install=no ;;
  40487. + *)
  40488. + enable_fast_install=no
  40489. + # Look at the argument we got. We use all the common list separators.
  40490. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  40491. + for pkg in $enableval; do
  40492. + IFS="$lt_save_ifs"
  40493. + if test "X$pkg" = "X$p"; then
  40494. + enable_fast_install=yes
  40495. + fi
  40496. + done
  40497. + IFS="$lt_save_ifs"
  40498. + ;;
  40499. + esac
  40500. +else
  40501. + enable_fast_install=yes
  40502. +fi
  40503. +
  40504. +
  40505. +
  40506. +
  40507. +
  40508. +
  40509. +
  40510. +
  40511. +
  40512. +
  40513. +
  40514. +# This can be used to rebuild libtool when needed
  40515. +LIBTOOL_DEPS="$ltmain"
  40516. +
  40517. +# Always use our own libtool.
  40518. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  40519. +
  40520. +
  40521. +
  40522. +
  40523. +
  40524. +
  40525. +
  40526. +
  40527. +
  40528. +
  40529. +
  40530. +
  40531. +
  40532. +
  40533. +
  40534. +
  40535. +
  40536. +
  40537. +
  40538. +
  40539. +
  40540. +
  40541. +
  40542. +
  40543. +
  40544. +test -z "$LN_S" && LN_S="ln -s"
  40545. +
  40546. +
  40547. +
  40548. +
  40549. +
  40550. +
  40551. +
  40552. +
  40553. +
  40554. +
  40555. +
  40556. +
  40557. +
  40558. +
  40559. +if test -n "${ZSH_VERSION+set}" ; then
  40560. + setopt NO_GLOB_SUBST
  40561. +fi
  40562. +
  40563. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  40564. +$as_echo_n "checking for objdir... " >&6; }
  40565. +if test "${lt_cv_objdir+set}" = set; then :
  40566. + $as_echo_n "(cached) " >&6
  40567. +else
  40568. + rm -f .libs 2>/dev/null
  40569. +mkdir .libs 2>/dev/null
  40570. +if test -d .libs; then
  40571. + lt_cv_objdir=.libs
  40572. +else
  40573. + # MS-DOS does not allow filenames that begin with a dot.
  40574. + lt_cv_objdir=_libs
  40575. +fi
  40576. +rmdir .libs 2>/dev/null
  40577. +fi
  40578. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  40579. +$as_echo "$lt_cv_objdir" >&6; }
  40580. +objdir=$lt_cv_objdir
  40581. +
  40582. +
  40583. +
  40584. +
  40585. +
  40586. +cat >>confdefs.h <<_ACEOF
  40587. +#define LT_OBJDIR "$lt_cv_objdir/"
  40588. +_ACEOF
  40589. +
  40590. +
  40591. +
  40592. +
  40593. +
  40594. +
  40595. +
  40596. +
  40597. +
  40598. +
  40599. +
  40600. +
  40601. +
  40602. +
  40603. +
  40604. +
  40605. +
  40606. +case $host_os in
  40607. +aix3*)
  40608. + # AIX sometimes has problems with the GCC collect2 program. For some
  40609. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  40610. + # vanish in a puff of smoke.
  40611. + if test "X${COLLECT_NAMES+set}" != Xset; then
  40612. + COLLECT_NAMES=
  40613. + export COLLECT_NAMES
  40614. + fi
  40615. + ;;
  40616. +esac
  40617. +
  40618. +# Sed substitution that helps us do robust quoting. It backslashifies
  40619. +# metacharacters that are still active within double-quoted strings.
  40620. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  40621. +
  40622. +# Same as above, but do not quote variable references.
  40623. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  40624. +
  40625. +# Sed substitution to delay expansion of an escaped shell variable in a
  40626. +# double_quote_subst'ed string.
  40627. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  40628. +
  40629. +# Sed substitution to delay expansion of an escaped single quote.
  40630. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  40631. +
  40632. +# Sed substitution to avoid accidental globbing in evaled expressions
  40633. +no_glob_subst='s/\*/\\\*/g'
  40634. +
  40635. +# Global variables:
  40636. +ofile=libtool
  40637. +can_build_shared=yes
  40638. +
  40639. +# All known linkers require a `.a' archive for static linking (except MSVC,
  40640. +# which needs '.lib').
  40641. +libext=a
  40642. +
  40643. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  40644. +
  40645. +old_CC="$CC"
  40646. +old_CFLAGS="$CFLAGS"
  40647. +
  40648. +# Set sane defaults for various variables
  40649. +test -z "$CC" && CC=cc
  40650. +test -z "$LTCC" && LTCC=$CC
  40651. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  40652. +test -z "$LD" && LD=ld
  40653. +test -z "$ac_objext" && ac_objext=o
  40654. +
  40655. +for cc_temp in $compiler""; do
  40656. + case $cc_temp in
  40657. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  40658. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  40659. + \-*) ;;
  40660. + *) break;;
  40661. + esac
  40662. +done
  40663. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  40664. +
  40665. +
  40666. +# Only perform the check for file, if the check method requires it
  40667. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  40668. +case $deplibs_check_method in
  40669. file_magic*)
  40670. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  40671. - echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  40672. -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  40673. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  40674. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40675. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  40676. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  40677. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  40678. + $as_echo_n "(cached) " >&6
  40679. else
  40680. case $MAGIC_CMD in
  40681. [\\/*] | ?:[\\/]*)
  40682. @@ -6019,13 +7111,13 @@
  40683. if test -n "$file_magic_test_file"; then
  40684. case $deplibs_check_method in
  40685. "file_magic "*)
  40686. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  40687. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  40688. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  40689. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  40690. $EGREP "$file_magic_regex" > /dev/null; then
  40691. :
  40692. else
  40693. - cat <<EOF 1>&2
  40694. + cat <<_LT_EOF 1>&2
  40695. *** Warning: the command libtool uses to detect shared libraries,
  40696. *** $file_magic_cmd, produces output that libtool cannot recognize.
  40697. @@ -6036,7 +7128,7 @@
  40698. *** may want to report the problem to your system manager and/or to
  40699. *** bug-libtool@gnu.org
  40700. -EOF
  40701. +_LT_EOF
  40702. fi ;;
  40703. esac
  40704. fi
  40705. @@ -6051,19 +7143,23 @@
  40706. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  40707. if test -n "$MAGIC_CMD"; then
  40708. - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  40709. -echo "${ECHO_T}$MAGIC_CMD" >&6
  40710. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  40711. +$as_echo "$MAGIC_CMD" >&6; }
  40712. else
  40713. - echo "$as_me:$LINENO: result: no" >&5
  40714. -echo "${ECHO_T}no" >&6
  40715. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  40716. +$as_echo "no" >&6; }
  40717. fi
  40718. +
  40719. +
  40720. +
  40721. +
  40722. if test -z "$lt_cv_path_MAGIC_CMD"; then
  40723. if test -n "$ac_tool_prefix"; then
  40724. - echo "$as_me:$LINENO: checking for file" >&5
  40725. -echo $ECHO_N "checking for file... $ECHO_C" >&6
  40726. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  40727. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40728. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  40729. +$as_echo_n "checking for file... " >&6; }
  40730. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  40731. + $as_echo_n "(cached) " >&6
  40732. else
  40733. case $MAGIC_CMD in
  40734. [\\/*] | ?:[\\/]*)
  40735. @@ -6081,13 +7177,13 @@
  40736. if test -n "$file_magic_test_file"; then
  40737. case $deplibs_check_method in
  40738. "file_magic "*)
  40739. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  40740. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  40741. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  40742. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  40743. $EGREP "$file_magic_regex" > /dev/null; then
  40744. :
  40745. else
  40746. - cat <<EOF 1>&2
  40747. + cat <<_LT_EOF 1>&2
  40748. *** Warning: the command libtool uses to detect shared libraries,
  40749. *** $file_magic_cmd, produces output that libtool cannot recognize.
  40750. @@ -6098,7 +7194,7 @@
  40751. *** may want to report the problem to your system manager and/or to
  40752. *** bug-libtool@gnu.org
  40753. -EOF
  40754. +_LT_EOF
  40755. fi ;;
  40756. esac
  40757. fi
  40758. @@ -6113,13 +7209,14 @@
  40759. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  40760. if test -n "$MAGIC_CMD"; then
  40761. - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  40762. -echo "${ECHO_T}$MAGIC_CMD" >&6
  40763. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  40764. +$as_echo "$MAGIC_CMD" >&6; }
  40765. else
  40766. - echo "$as_me:$LINENO: result: no" >&5
  40767. -echo "${ECHO_T}no" >&6
  40768. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  40769. +$as_echo "no" >&6; }
  40770. fi
  40771. +
  40772. else
  40773. MAGIC_CMD=:
  40774. fi
  40775. @@ -6129,28 +7226,8 @@
  40776. ;;
  40777. esac
  40778. -enable_dlopen=yes
  40779. -enable_win32_dll=no
  40780. -
  40781. -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  40782. -if test "${enable_libtool_lock+set}" = set; then
  40783. - enableval="$enable_libtool_lock"
  40784. -
  40785. -fi;
  40786. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  40787. -
  40788. -
  40789. -# Check whether --with-pic or --without-pic was given.
  40790. -if test "${with_pic+set}" = set; then
  40791. - withval="$with_pic"
  40792. - pic_mode="$withval"
  40793. -else
  40794. - pic_mode=default
  40795. -fi;
  40796. -test -z "$pic_mode" && pic_mode=default
  40797. -
  40798. # Use C for the default configuration in the libtool script
  40799. -tagname=
  40800. +
  40801. lt_save_CC="$CC"
  40802. ac_ext=c
  40803. ac_cpp='$CPP $CPPFLAGS'
  40804. @@ -6167,93 +7244,59 @@
  40805. objext=$objext
  40806. # Code to be used in simple compile tests
  40807. -lt_simple_compile_test_code="int some_variable = 0;\n"
  40808. +lt_simple_compile_test_code="int some_variable = 0;"
  40809. # Code to be used in simple link tests
  40810. -lt_simple_link_test_code='int main(){return(0);}\n'
  40811. +lt_simple_link_test_code='int main(){return(0);}'
  40812. +
  40813. +
  40814. +
  40815. +
  40816. +
  40817. # If no C compiler was specified, use CC.
  40818. LTCC=${LTCC-"$CC"}
  40819. +# If no C compiler flags were specified, use CFLAGS.
  40820. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  40821. +
  40822. # Allow CC to be a program name with arguments.
  40823. compiler=$CC
  40824. +# Save the default compiler, since it gets overwritten when the other
  40825. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  40826. +compiler_DEFAULT=$CC
  40827. +
  40828. +# save warnings/boilerplate of simple test code
  40829. +ac_outfile=conftest.$ac_objext
  40830. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  40831. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  40832. +_lt_compiler_boilerplate=`cat conftest.err`
  40833. +$RM conftest*
  40834. +
  40835. +ac_outfile=conftest.$ac_objext
  40836. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  40837. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  40838. +_lt_linker_boilerplate=`cat conftest.err`
  40839. +$RM -r conftest*
  40840. -#
  40841. -# Check for any special shared library compilation flags.
  40842. -#
  40843. -lt_prog_cc_shlib=
  40844. -if test "$GCC" = no; then
  40845. - case $host_os in
  40846. - sco3.2v5*)
  40847. - lt_prog_cc_shlib='-belf'
  40848. - ;;
  40849. - esac
  40850. -fi
  40851. -if test -n "$lt_prog_cc_shlib"; then
  40852. - { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  40853. -echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  40854. - if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  40855. - else
  40856. - { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  40857. -echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  40858. - lt_cv_prog_cc_can_build_shared=no
  40859. - fi
  40860. -fi
  40861. +if test -n "$compiler"; then
  40862. -#
  40863. -# Check to make sure the static flag actually works.
  40864. -#
  40865. -echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  40866. -echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
  40867. -if test "${lt_prog_compiler_static_works+set}" = set; then
  40868. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40869. -else
  40870. - lt_prog_compiler_static_works=no
  40871. - save_LDFLAGS="$LDFLAGS"
  40872. - LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  40873. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  40874. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  40875. - # The compiler can only warn and ignore the option if not recognized
  40876. - # So say no if there are warnings
  40877. - if test -s conftest.err; then
  40878. - # Append any errors to the config.log.
  40879. - cat conftest.err 1>&5
  40880. - else
  40881. - lt_prog_compiler_static_works=yes
  40882. - fi
  40883. - fi
  40884. - $rm conftest*
  40885. - LDFLAGS="$save_LDFLAGS"
  40886. -
  40887. -fi
  40888. -echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  40889. -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  40890. -
  40891. -if test x"$lt_prog_compiler_static_works" = xyes; then
  40892. - :
  40893. -else
  40894. - lt_prog_compiler_static=
  40895. -fi
  40896. -
  40897. -
  40898. -
  40899. -
  40900. -lt_prog_compiler_no_builtin_flag=
  40901. -
  40902. -if test "$GCC" = yes; then
  40903. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  40904. -
  40905. - echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  40906. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  40907. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  40908. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40909. +lt_prog_compiler_no_builtin_flag=
  40910. +
  40911. +if test "$GCC" = yes; then
  40912. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  40913. +
  40914. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  40915. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  40916. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  40917. + $as_echo_n "(cached) " >&6
  40918. else
  40919. lt_cv_prog_compiler_rtti_exceptions=no
  40920. - ac_outfile=conftest.$ac_objext
  40921. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  40922. + ac_outfile=conftest.$ac_objext
  40923. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  40924. lt_compiler_flag="-fno-rtti -fno-exceptions"
  40925. # Insert the option either (1) after the last *FLAGS variable, or
  40926. # (2) before a word containing "conftest.", or (3) at the end.
  40927. @@ -6261,26 +7304,28 @@
  40928. # with a dollar sign (not a hyphen), so the echo should work correctly.
  40929. # The option is referenced via a variable to avoid confusing sed.
  40930. lt_compile=`echo "$ac_compile" | $SED \
  40931. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  40932. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  40933. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  40934. -e 's:$: $lt_compiler_flag:'`
  40935. - (eval echo "\"\$as_me:6267: $lt_compile\"" >&5)
  40936. + (eval echo "\"\$as_me:7310: $lt_compile\"" >&5)
  40937. (eval "$lt_compile" 2>conftest.err)
  40938. ac_status=$?
  40939. cat conftest.err >&5
  40940. - echo "$as_me:6271: \$? = $ac_status" >&5
  40941. + echo "$as_me:7314: \$? = $ac_status" >&5
  40942. if (exit $ac_status) && test -s "$ac_outfile"; then
  40943. # The compiler can only warn and ignore the option if not recognized
  40944. - # So say no if there are warnings
  40945. - if test ! -s conftest.err; then
  40946. + # So say no if there are warnings other than the usual output.
  40947. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  40948. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  40949. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  40950. lt_cv_prog_compiler_rtti_exceptions=yes
  40951. fi
  40952. fi
  40953. - $rm conftest*
  40954. + $RM conftest*
  40955. fi
  40956. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  40957. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  40958. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  40959. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  40960. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  40961. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  40962. @@ -6290,12 +7335,17 @@
  40963. fi
  40964. -lt_prog_compiler_wl=
  40965. +
  40966. +
  40967. +
  40968. +
  40969. +
  40970. + lt_prog_compiler_wl=
  40971. lt_prog_compiler_pic=
  40972. lt_prog_compiler_static=
  40973. -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  40974. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  40975. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  40976. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  40977. if test "$GCC" = yes; then
  40978. lt_prog_compiler_wl='-Wl,'
  40979. @@ -6311,19 +7361,29 @@
  40980. ;;
  40981. amigaos*)
  40982. - # FIXME: we need at least 68020 code to build shared libraries, but
  40983. - # adding the `-m68020' flag to GCC prevents building anything better,
  40984. - # like `-m68040'.
  40985. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  40986. + case $host_cpu in
  40987. + powerpc)
  40988. + # see comment about AmigaOS4 .so support
  40989. + lt_prog_compiler_pic='-fPIC'
  40990. + ;;
  40991. + m68k)
  40992. + # FIXME: we need at least 68020 code to build shared libraries, but
  40993. + # adding the `-m68020' flag to GCC prevents building anything better,
  40994. + # like `-m68040'.
  40995. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  40996. + ;;
  40997. + esac
  40998. ;;
  40999. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  41000. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  41001. # PIC is the default for these OSes.
  41002. ;;
  41003. - mingw* | pw32* | os2*)
  41004. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  41005. # This hack is so that the source file can tell whether it is being
  41006. # built for inclusion in a dll (and should export symbols for example).
  41007. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  41008. + # (--disable-auto-import) libraries
  41009. lt_prog_compiler_pic='-DDLL_EXPORT'
  41010. ;;
  41011. @@ -6333,6 +7393,25 @@
  41012. lt_prog_compiler_pic='-fno-common'
  41013. ;;
  41014. + hpux*)
  41015. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  41016. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  41017. + # sets the default TLS model and affects inlining.
  41018. + case $host_cpu in
  41019. + hppa*64*)
  41020. + # +Z the default
  41021. + ;;
  41022. + *)
  41023. + lt_prog_compiler_pic='-fPIC'
  41024. + ;;
  41025. + esac
  41026. + ;;
  41027. +
  41028. + interix[3-9]*)
  41029. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  41030. + # Instead, we relocate shared libraries at runtime.
  41031. + ;;
  41032. +
  41033. msdosdjgpp*)
  41034. # Just because we use GCC doesn't mean we suddenly get shared libraries
  41035. # on systems that don't support them.
  41036. @@ -6340,25 +7419,18 @@
  41037. enable_shared=no
  41038. ;;
  41039. + *nto* | *qnx*)
  41040. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  41041. + # it will coredump.
  41042. + lt_prog_compiler_pic='-fPIC -shared'
  41043. + ;;
  41044. +
  41045. sysv4*MP*)
  41046. if test -d /usr/nec; then
  41047. lt_prog_compiler_pic=-Kconform_pic
  41048. fi
  41049. ;;
  41050. - hpux*)
  41051. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  41052. - # not for PA HP-UX.
  41053. - case "$host_cpu" in
  41054. - hppa*64*|ia64*)
  41055. - # +Z the default
  41056. - ;;
  41057. - *)
  41058. - lt_prog_compiler_pic='-fPIC'
  41059. - ;;
  41060. - esac
  41061. - ;;
  41062. -
  41063. *)
  41064. lt_prog_compiler_pic='-fPIC'
  41065. ;;
  41066. @@ -6376,7 +7448,7 @@
  41067. fi
  41068. ;;
  41069. - mingw* | pw32* | os2*)
  41070. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  41071. # This hack is so that the source file can tell whether it is being
  41072. # built for inclusion in a dll (and should export symbols for example).
  41073. lt_prog_compiler_pic='-DDLL_EXPORT'
  41074. @@ -6386,7 +7458,7 @@
  41075. lt_prog_compiler_wl='-Wl,'
  41076. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  41077. # not for PA HP-UX.
  41078. - case "$host_cpu" in
  41079. + case $host_cpu in
  41080. hppa*64*|ia64*)
  41081. # +Z the default
  41082. ;;
  41083. @@ -6404,41 +7476,94 @@
  41084. lt_prog_compiler_static='-non_shared'
  41085. ;;
  41086. - newsos6)
  41087. - lt_prog_compiler_pic='-KPIC'
  41088. - lt_prog_compiler_static='-Bstatic'
  41089. - ;;
  41090. -
  41091. - linux*)
  41092. - case $CC in
  41093. - icc|ecc)
  41094. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  41095. + case $cc_basename in
  41096. + # old Intel for x86_64 which still supported -KPIC.
  41097. + ecc*)
  41098. lt_prog_compiler_wl='-Wl,'
  41099. lt_prog_compiler_pic='-KPIC'
  41100. lt_prog_compiler_static='-static'
  41101. ;;
  41102. - ccc)
  41103. + # icc used to be incompatible with GCC.
  41104. + # ICC 10 doesn't accept -KPIC any more.
  41105. + icc* | ifort*)
  41106. + lt_prog_compiler_wl='-Wl,'
  41107. + lt_prog_compiler_pic='-fPIC'
  41108. + lt_prog_compiler_static='-static'
  41109. + ;;
  41110. + # Lahey Fortran 8.1.
  41111. + lf95*)
  41112. + lt_prog_compiler_wl='-Wl,'
  41113. + lt_prog_compiler_pic='--shared'
  41114. + lt_prog_compiler_static='--static'
  41115. + ;;
  41116. + pgcc* | pgf77* | pgf90* | pgf95*)
  41117. + # Portland Group compilers (*not* the Pentium gcc compiler,
  41118. + # which looks to be a dead project)
  41119. + lt_prog_compiler_wl='-Wl,'
  41120. + lt_prog_compiler_pic='-fpic'
  41121. + lt_prog_compiler_static='-Bstatic'
  41122. + ;;
  41123. + ccc*)
  41124. lt_prog_compiler_wl='-Wl,'
  41125. # All Alpha code is PIC.
  41126. lt_prog_compiler_static='-non_shared'
  41127. ;;
  41128. + xl*)
  41129. + # IBM XL C 8.0/Fortran 10.1 on PPC
  41130. + lt_prog_compiler_wl='-Wl,'
  41131. + lt_prog_compiler_pic='-qpic'
  41132. + lt_prog_compiler_static='-qstaticlink'
  41133. + ;;
  41134. + *)
  41135. + case `$CC -V 2>&1 | sed 5q` in
  41136. + *Sun\ C*)
  41137. + # Sun C 5.9
  41138. + lt_prog_compiler_pic='-KPIC'
  41139. + lt_prog_compiler_static='-Bstatic'
  41140. + lt_prog_compiler_wl='-Wl,'
  41141. + ;;
  41142. + *Sun\ F*)
  41143. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  41144. + lt_prog_compiler_pic='-KPIC'
  41145. + lt_prog_compiler_static='-Bstatic'
  41146. + lt_prog_compiler_wl=''
  41147. + ;;
  41148. + esac
  41149. + ;;
  41150. esac
  41151. ;;
  41152. + newsos6)
  41153. + lt_prog_compiler_pic='-KPIC'
  41154. + lt_prog_compiler_static='-Bstatic'
  41155. + ;;
  41156. +
  41157. + *nto* | *qnx*)
  41158. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  41159. + # it will coredump.
  41160. + lt_prog_compiler_pic='-fPIC -shared'
  41161. + ;;
  41162. +
  41163. osf3* | osf4* | osf5*)
  41164. lt_prog_compiler_wl='-Wl,'
  41165. # All OSF/1 code is PIC.
  41166. lt_prog_compiler_static='-non_shared'
  41167. ;;
  41168. - sco3.2v5*)
  41169. - lt_prog_compiler_pic='-Kpic'
  41170. - lt_prog_compiler_static='-dn'
  41171. + rdos*)
  41172. + lt_prog_compiler_static='-non_shared'
  41173. ;;
  41174. solaris*)
  41175. - lt_prog_compiler_wl='-Wl,'
  41176. lt_prog_compiler_pic='-KPIC'
  41177. lt_prog_compiler_static='-Bstatic'
  41178. + case $cc_basename in
  41179. + f77* | f90* | f95*)
  41180. + lt_prog_compiler_wl='-Qoption ld ';;
  41181. + *)
  41182. + lt_prog_compiler_wl='-Wl,';;
  41183. + esac
  41184. ;;
  41185. sunos4*)
  41186. @@ -6447,7 +7572,7 @@
  41187. lt_prog_compiler_static='-Bstatic'
  41188. ;;
  41189. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  41190. + sysv4 | sysv4.2uw2* | sysv4.3*)
  41191. lt_prog_compiler_wl='-Wl,'
  41192. lt_prog_compiler_pic='-KPIC'
  41193. lt_prog_compiler_static='-Bstatic'
  41194. @@ -6460,6 +7585,17 @@
  41195. fi
  41196. ;;
  41197. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  41198. + lt_prog_compiler_wl='-Wl,'
  41199. + lt_prog_compiler_pic='-KPIC'
  41200. + lt_prog_compiler_static='-Bstatic'
  41201. + ;;
  41202. +
  41203. + unicos*)
  41204. + lt_prog_compiler_wl='-Wl,'
  41205. + lt_prog_compiler_can_build_shared=no
  41206. + ;;
  41207. +
  41208. uts4*)
  41209. lt_prog_compiler_pic='-pic'
  41210. lt_prog_compiler_static='-Bstatic'
  41211. @@ -6471,21 +7607,35 @@
  41212. esac
  41213. fi
  41214. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  41215. -echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  41216. +case $host_os in
  41217. + # For platforms which do not support PIC, -DPIC is meaningless:
  41218. + *djgpp*)
  41219. + lt_prog_compiler_pic=
  41220. + ;;
  41221. + *)
  41222. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  41223. + ;;
  41224. +esac
  41225. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  41226. +$as_echo "$lt_prog_compiler_pic" >&6; }
  41227. +
  41228. +
  41229. +
  41230. +
  41231. +
  41232. #
  41233. # Check to make sure the PIC flag actually works.
  41234. #
  41235. if test -n "$lt_prog_compiler_pic"; then
  41236. - echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  41237. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  41238. -if test "${lt_prog_compiler_pic_works+set}" = set; then
  41239. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41240. -else
  41241. - lt_prog_compiler_pic_works=no
  41242. - ac_outfile=conftest.$ac_objext
  41243. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  41244. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  41245. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  41246. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  41247. + $as_echo_n "(cached) " >&6
  41248. +else
  41249. + lt_cv_prog_compiler_pic_works=no
  41250. + ac_outfile=conftest.$ac_objext
  41251. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  41252. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  41253. # Insert the option either (1) after the last *FLAGS variable, or
  41254. # (2) before a word containing "conftest.", or (3) at the end.
  41255. @@ -6493,28 +7643,30 @@
  41256. # with a dollar sign (not a hyphen), so the echo should work correctly.
  41257. # The option is referenced via a variable to avoid confusing sed.
  41258. lt_compile=`echo "$ac_compile" | $SED \
  41259. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  41260. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  41261. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  41262. -e 's:$: $lt_compiler_flag:'`
  41263. - (eval echo "\"\$as_me:6499: $lt_compile\"" >&5)
  41264. + (eval echo "\"\$as_me:7649: $lt_compile\"" >&5)
  41265. (eval "$lt_compile" 2>conftest.err)
  41266. ac_status=$?
  41267. cat conftest.err >&5
  41268. - echo "$as_me:6503: \$? = $ac_status" >&5
  41269. + echo "$as_me:7653: \$? = $ac_status" >&5
  41270. if (exit $ac_status) && test -s "$ac_outfile"; then
  41271. # The compiler can only warn and ignore the option if not recognized
  41272. - # So say no if there are warnings
  41273. - if test ! -s conftest.err; then
  41274. - lt_prog_compiler_pic_works=yes
  41275. + # So say no if there are warnings other than the usual output.
  41276. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  41277. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  41278. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  41279. + lt_cv_prog_compiler_pic_works=yes
  41280. fi
  41281. fi
  41282. - $rm conftest*
  41283. + $RM conftest*
  41284. fi
  41285. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  41286. -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  41287. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  41288. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  41289. -if test x"$lt_prog_compiler_pic_works" = xyes; then
  41290. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  41291. case $lt_prog_compiler_pic in
  41292. "" | " "*) ;;
  41293. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  41294. @@ -6525,34 +7677,125 @@
  41295. fi
  41296. fi
  41297. -case "$host_os" in
  41298. - # For platforms which do not support PIC, -DPIC is meaningless:
  41299. - *djgpp*)
  41300. - lt_prog_compiler_pic=
  41301. - ;;
  41302. - *)
  41303. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  41304. - ;;
  41305. -esac
  41306. -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  41307. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  41308. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  41309. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41310. +
  41311. +
  41312. +
  41313. +
  41314. +
  41315. +#
  41316. +# Check to make sure the static flag actually works.
  41317. +#
  41318. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  41319. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  41320. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  41321. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  41322. + $as_echo_n "(cached) " >&6
  41323. +else
  41324. + lt_cv_prog_compiler_static_works=no
  41325. + save_LDFLAGS="$LDFLAGS"
  41326. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  41327. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  41328. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  41329. + # The linker can only warn and ignore the option if not recognized
  41330. + # So say no if there are warnings
  41331. + if test -s conftest.err; then
  41332. + # Append any errors to the config.log.
  41333. + cat conftest.err 1>&5
  41334. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  41335. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  41336. + if diff conftest.exp conftest.er2 >/dev/null; then
  41337. + lt_cv_prog_compiler_static_works=yes
  41338. + fi
  41339. + else
  41340. + lt_cv_prog_compiler_static_works=yes
  41341. + fi
  41342. + fi
  41343. + $RM -r conftest*
  41344. + LDFLAGS="$save_LDFLAGS"
  41345. +
  41346. +fi
  41347. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  41348. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  41349. +
  41350. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  41351. + :
  41352. +else
  41353. + lt_prog_compiler_static=
  41354. +fi
  41355. +
  41356. +
  41357. +
  41358. +
  41359. +
  41360. +
  41361. +
  41362. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  41363. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  41364. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  41365. + $as_echo_n "(cached) " >&6
  41366. else
  41367. lt_cv_prog_compiler_c_o=no
  41368. - $rm -r conftest 2>/dev/null
  41369. + $RM -r conftest 2>/dev/null
  41370. mkdir conftest
  41371. cd conftest
  41372. mkdir out
  41373. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  41374. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  41375. +
  41376. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  41377. + # Insert the option either (1) after the last *FLAGS variable, or
  41378. + # (2) before a word containing "conftest.", or (3) at the end.
  41379. + # Note that $ac_compile itself does not contain backslashes and begins
  41380. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  41381. + lt_compile=`echo "$ac_compile" | $SED \
  41382. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  41383. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  41384. + -e 's:$: $lt_compiler_flag:'`
  41385. + (eval echo "\"\$as_me:7754: $lt_compile\"" >&5)
  41386. + (eval "$lt_compile" 2>out/conftest.err)
  41387. + ac_status=$?
  41388. + cat out/conftest.err >&5
  41389. + echo "$as_me:7758: \$? = $ac_status" >&5
  41390. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  41391. + then
  41392. + # The compiler can only warn and ignore the option if not recognized
  41393. + # So say no if there are warnings
  41394. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  41395. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  41396. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  41397. + lt_cv_prog_compiler_c_o=yes
  41398. + fi
  41399. + fi
  41400. + chmod u+w . 2>&5
  41401. + $RM conftest*
  41402. + # SGI C++ compiler will create directory out/ii_files/ for
  41403. + # template instantiation
  41404. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  41405. + $RM out/* && rmdir out
  41406. + cd ..
  41407. + $RM -r conftest
  41408. + $RM conftest*
  41409. +
  41410. +fi
  41411. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  41412. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  41413. +
  41414. +
  41415. +
  41416. +
  41417. +
  41418. - # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  41419. - # that will create temporary files in the current directory regardless of
  41420. - # the output directory. Thus, making CWD read-only will cause this test
  41421. - # to fail, enabling locking or at least warning the user not to do parallel
  41422. - # builds.
  41423. - chmod -w .
  41424. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  41425. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  41426. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  41427. + $as_echo_n "(cached) " >&6
  41428. +else
  41429. + lt_cv_prog_compiler_c_o=no
  41430. + $RM -r conftest 2>/dev/null
  41431. + mkdir conftest
  41432. + cd conftest
  41433. + mkdir out
  41434. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  41435. lt_compiler_flag="-o out/conftest2.$ac_objext"
  41436. # Insert the option either (1) after the last *FLAGS variable, or
  41437. @@ -6560,81 +7803,96 @@
  41438. # Note that $ac_compile itself does not contain backslashes and begins
  41439. # with a dollar sign (not a hyphen), so the echo should work correctly.
  41440. lt_compile=`echo "$ac_compile" | $SED \
  41441. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  41442. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  41443. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  41444. -e 's:$: $lt_compiler_flag:'`
  41445. - (eval echo "\"\$as_me:6566: $lt_compile\"" >&5)
  41446. + (eval echo "\"\$as_me:7809: $lt_compile\"" >&5)
  41447. (eval "$lt_compile" 2>out/conftest.err)
  41448. ac_status=$?
  41449. cat out/conftest.err >&5
  41450. - echo "$as_me:6570: \$? = $ac_status" >&5
  41451. + echo "$as_me:7813: \$? = $ac_status" >&5
  41452. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  41453. then
  41454. # The compiler can only warn and ignore the option if not recognized
  41455. # So say no if there are warnings
  41456. - if test ! -s out/conftest.err; then
  41457. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  41458. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  41459. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  41460. lt_cv_prog_compiler_c_o=yes
  41461. fi
  41462. fi
  41463. - chmod u+w .
  41464. - $rm conftest* out/*
  41465. - rmdir out
  41466. + chmod u+w . 2>&5
  41467. + $RM conftest*
  41468. + # SGI C++ compiler will create directory out/ii_files/ for
  41469. + # template instantiation
  41470. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  41471. + $RM out/* && rmdir out
  41472. cd ..
  41473. - rmdir conftest
  41474. - $rm conftest*
  41475. + $RM -r conftest
  41476. + $RM conftest*
  41477. fi
  41478. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  41479. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  41480. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  41481. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  41482. +
  41483. +
  41484. hard_links="nottested"
  41485. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  41486. # do not overwrite the value of need_locks provided by the user
  41487. - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  41488. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  41489. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  41490. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  41491. hard_links=yes
  41492. - $rm conftest*
  41493. + $RM conftest*
  41494. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  41495. touch conftest.a
  41496. ln conftest.a conftest.b 2>&5 || hard_links=no
  41497. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  41498. - echo "$as_me:$LINENO: result: $hard_links" >&5
  41499. -echo "${ECHO_T}$hard_links" >&6
  41500. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  41501. +$as_echo "$hard_links" >&6; }
  41502. if test "$hard_links" = no; then
  41503. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  41504. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  41505. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  41506. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  41507. need_locks=warn
  41508. fi
  41509. else
  41510. need_locks=no
  41511. fi
  41512. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  41513. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  41514. +
  41515. +
  41516. +
  41517. +
  41518. +
  41519. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  41520. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  41521. runpath_var=
  41522. allow_undefined_flag=
  41523. - enable_shared_with_static_runtimes=no
  41524. + always_export_symbols=no
  41525. archive_cmds=
  41526. archive_expsym_cmds=
  41527. - old_archive_From_new_cmds=
  41528. - old_archive_from_expsyms_cmds=
  41529. + compiler_needs_object=no
  41530. + enable_shared_with_static_runtimes=no
  41531. export_dynamic_flag_spec=
  41532. - whole_archive_flag_spec=
  41533. - thread_safe_flag_spec=
  41534. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  41535. + hardcode_automatic=no
  41536. + hardcode_direct=no
  41537. + hardcode_direct_absolute=no
  41538. hardcode_libdir_flag_spec=
  41539. hardcode_libdir_flag_spec_ld=
  41540. hardcode_libdir_separator=
  41541. - hardcode_direct=no
  41542. hardcode_minus_L=no
  41543. hardcode_shlibpath_var=unsupported
  41544. + inherit_rpath=no
  41545. link_all_deplibs=unknown
  41546. - hardcode_automatic=no
  41547. module_cmds=
  41548. module_expsym_cmds=
  41549. - always_export_symbols=no
  41550. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  41551. + old_archive_from_new_cmds=
  41552. + old_archive_from_expsyms_cmds=
  41553. + thread_safe_flag_spec=
  41554. + whole_archive_flag_spec=
  41555. # include_expsyms should be a list of space-separated symbols to be *always*
  41556. # included in the symbol list
  41557. include_expsyms=
  41558. @@ -6642,16 +7900,17 @@
  41559. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  41560. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  41561. # as well as any symbol that contains `d'.
  41562. - exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  41563. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  41564. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  41565. # platforms (ab)use it in PIC code, but their linkers get confused if
  41566. # the symbol is explicitly referenced. Since portable code cannot
  41567. # rely on this symbol name, it's probably fine to never include it in
  41568. # preloaded symbol tables.
  41569. + # Exclude shared library initialization/finalization symbols.
  41570. extract_expsyms_cmds=
  41571. case $host_os in
  41572. - cygwin* | mingw* | pw32*)
  41573. + cygwin* | mingw* | pw32* | cegcc*)
  41574. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  41575. # When not using gcc, we currently assume that we are using
  41576. # Microsoft Visual C++.
  41577. @@ -6659,9 +7918,16 @@
  41578. with_gnu_ld=no
  41579. fi
  41580. ;;
  41581. + interix*)
  41582. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  41583. + with_gnu_ld=yes
  41584. + ;;
  41585. openbsd*)
  41586. with_gnu_ld=no
  41587. ;;
  41588. + linux* | k*bsd*-gnu)
  41589. + link_all_deplibs=no
  41590. + ;;
  41591. esac
  41592. ld_shlibs=yes
  41593. @@ -6669,13 +7935,35 @@
  41594. # If archive_cmds runs LD, not CC, wlarc should be empty
  41595. wlarc='${wl}'
  41596. + # Set some defaults for GNU ld with shared library support. These
  41597. + # are reset later if shared libraries are not supported. Putting them
  41598. + # here allows them to be overridden if necessary.
  41599. + runpath_var=LD_RUN_PATH
  41600. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  41601. + export_dynamic_flag_spec='${wl}--export-dynamic'
  41602. + # ancient GNU ld didn't support --whole-archive et. al.
  41603. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  41604. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  41605. + else
  41606. + whole_archive_flag_spec=
  41607. + fi
  41608. + supports_anon_versioning=no
  41609. + case `$LD -v 2>&1` in
  41610. + *GNU\ gold*) supports_anon_versioning=yes ;;
  41611. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  41612. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  41613. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  41614. + *\ 2.11.*) ;; # other 2.11 versions
  41615. + *) supports_anon_versioning=yes ;;
  41616. + esac
  41617. +
  41618. # See if GNU ld supports shared libraries.
  41619. case $host_os in
  41620. - aix3* | aix4* | aix5*)
  41621. + aix[3-9]*)
  41622. # On AIX/PPC, the GNU linker is very broken
  41623. if test "$host_cpu" != ia64; then
  41624. ld_shlibs=no
  41625. - cat <<EOF 1>&2
  41626. + cat <<_LT_EOF 1>&2
  41627. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  41628. *** to be unable to reliably create shared libraries on AIX.
  41629. @@ -6683,26 +7971,27 @@
  41630. *** really care for shared libraries, you may want to modify your PATH
  41631. *** so that a non-GNU linker is found, and then restart.
  41632. -EOF
  41633. +_LT_EOF
  41634. fi
  41635. ;;
  41636. amigaos*)
  41637. - archive_cmds='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
  41638. - hardcode_libdir_flag_spec='-L$libdir'
  41639. - hardcode_minus_L=yes
  41640. -
  41641. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  41642. - # that the semantics of dynamic libraries on AmigaOS, at least up
  41643. - # to version 4, is to share data among multiple programs linked
  41644. - # with the same dynamic library. Since this doesn't match the
  41645. - # behavior of shared libraries on other platforms, we can't use
  41646. - # them.
  41647. - ld_shlibs=no
  41648. + case $host_cpu in
  41649. + powerpc)
  41650. + # see comment about AmigaOS4 .so support
  41651. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  41652. + archive_expsym_cmds=''
  41653. + ;;
  41654. + m68k)
  41655. + 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)'
  41656. + hardcode_libdir_flag_spec='-L$libdir'
  41657. + hardcode_minus_L=yes
  41658. + ;;
  41659. + esac
  41660. ;;
  41661. beos*)
  41662. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  41663. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  41664. allow_undefined_flag=unsupported
  41665. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  41666. # support --undefined. This deserves some investigation. FIXME
  41667. @@ -6712,17 +8001,17 @@
  41668. fi
  41669. ;;
  41670. - cygwin* | mingw* | pw32*)
  41671. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  41672. + cygwin* | mingw* | pw32* | cegcc*)
  41673. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  41674. # as there is no search path for DLLs.
  41675. hardcode_libdir_flag_spec='-L$libdir'
  41676. allow_undefined_flag=unsupported
  41677. always_export_symbols=no
  41678. enable_shared_with_static_runtimes=yes
  41679. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  41680. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  41681. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  41682. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  41683. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  41684. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  41685. # If the export-symbols file already is a .def file (1st line
  41686. # is EXPORTS), use it as is; otherwise, prepend...
  41687. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  41688. @@ -6730,15 +8019,100 @@
  41689. else
  41690. echo EXPORTS > $output_objdir/$soname.def;
  41691. cat $export_symbols >> $output_objdir/$soname.def;
  41692. - fi${_S_}
  41693. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  41694. + fi~
  41695. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  41696. else
  41697. ld_shlibs=no
  41698. fi
  41699. ;;
  41700. - netbsd*)
  41701. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  41702. + interix[3-9]*)
  41703. + hardcode_direct=no
  41704. + hardcode_shlibpath_var=no
  41705. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  41706. + export_dynamic_flag_spec='${wl}-E'
  41707. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  41708. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  41709. + # default) and relocated if they conflict, which is a slow very memory
  41710. + # consuming and fragmenting process. To avoid this, we pick a random,
  41711. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  41712. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  41713. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  41714. + 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'
  41715. + ;;
  41716. +
  41717. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  41718. + tmp_diet=no
  41719. + if test "$host_os" = linux-dietlibc; then
  41720. + case $cc_basename in
  41721. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  41722. + esac
  41723. + fi
  41724. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  41725. + && test "$tmp_diet" = no
  41726. + then
  41727. + tmp_addflag=
  41728. + tmp_sharedflag='-shared'
  41729. + case $cc_basename,$host_cpu in
  41730. + pgcc*) # Portland Group C compiler
  41731. + 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'
  41732. + tmp_addflag=' $pic_flag'
  41733. + ;;
  41734. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  41735. + 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'
  41736. + tmp_addflag=' $pic_flag -Mnomain' ;;
  41737. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  41738. + tmp_addflag=' -i_dynamic' ;;
  41739. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  41740. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  41741. + ifc* | ifort*) # Intel Fortran compiler
  41742. + tmp_addflag=' -nofor_main' ;;
  41743. + lf95*) # Lahey Fortran 8.1
  41744. + whole_archive_flag_spec=
  41745. + tmp_sharedflag='--shared' ;;
  41746. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  41747. + tmp_sharedflag='-qmkshrobj'
  41748. + tmp_addflag= ;;
  41749. + esac
  41750. + case `$CC -V 2>&1 | sed 5q` in
  41751. + *Sun\ C*) # Sun C 5.9
  41752. + 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'
  41753. + compiler_needs_object=yes
  41754. + tmp_sharedflag='-G' ;;
  41755. + *Sun\ F*) # Sun Fortran 8.3
  41756. + tmp_sharedflag='-G' ;;
  41757. + esac
  41758. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  41759. +
  41760. + if test "x$supports_anon_versioning" = xyes; then
  41761. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  41762. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  41763. + echo "local: *; };" >> $output_objdir/$libname.ver~
  41764. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  41765. + fi
  41766. +
  41767. + case $cc_basename in
  41768. + xlf*)
  41769. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  41770. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  41771. + hardcode_libdir_flag_spec=
  41772. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  41773. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  41774. + if test "x$supports_anon_versioning" = xyes; then
  41775. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  41776. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  41777. + echo "local: *; };" >> $output_objdir/$libname.ver~
  41778. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  41779. + fi
  41780. + ;;
  41781. + esac
  41782. + else
  41783. + ld_shlibs=no
  41784. + fi
  41785. + ;;
  41786. +
  41787. + netbsd* | netbsdelf*-gnu)
  41788. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  41789. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  41790. wlarc=
  41791. else
  41792. @@ -6747,10 +8121,10 @@
  41793. fi
  41794. ;;
  41795. - solaris* | sysv5*)
  41796. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  41797. + solaris*)
  41798. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  41799. ld_shlibs=no
  41800. - cat <<EOF 1>&2
  41801. + cat <<_LT_EOF 1>&2
  41802. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  41803. *** create shared libraries on Solaris systems. Therefore, libtool
  41804. @@ -6759,8 +8133,8 @@
  41805. *** your PATH or compiler configuration so that the native linker is
  41806. *** used, and then restart.
  41807. -EOF
  41808. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  41809. +_LT_EOF
  41810. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  41811. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  41812. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  41813. else
  41814. @@ -6768,15 +8142,46 @@
  41815. fi
  41816. ;;
  41817. - sunos4*)
  41818. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  41819. - wlarc=
  41820. - hardcode_direct=yes
  41821. - hardcode_shlibpath_var=no
  41822. - ;;
  41823. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  41824. + case `$LD -v 2>&1` in
  41825. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  41826. + ld_shlibs=no
  41827. + cat <<_LT_EOF 1>&2
  41828. +
  41829. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  41830. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  41831. +*** is disabling shared libraries support. We urge you to upgrade GNU
  41832. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  41833. +*** your PATH or compiler configuration so that the native linker is
  41834. +*** used, and then restart.
  41835. +
  41836. +_LT_EOF
  41837. + ;;
  41838. + *)
  41839. + # For security reasons, it is highly recommended that you always
  41840. + # use absolute paths for naming shared libraries, and exclude the
  41841. + # DT_RUNPATH tag from executables and libraries. But doing so
  41842. + # requires that you compile everything twice, which is a pain.
  41843. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  41844. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  41845. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  41846. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  41847. + else
  41848. + ld_shlibs=no
  41849. + fi
  41850. + ;;
  41851. + esac
  41852. + ;;
  41853. +
  41854. + sunos4*)
  41855. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  41856. + wlarc=
  41857. + hardcode_direct=yes
  41858. + hardcode_shlibpath_var=no
  41859. + ;;
  41860. *)
  41861. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  41862. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  41863. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  41864. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  41865. else
  41866. @@ -6785,16 +8190,11 @@
  41867. ;;
  41868. esac
  41869. - if test "$ld_shlibs" = yes; then
  41870. - runpath_var=LD_RUN_PATH
  41871. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  41872. - export_dynamic_flag_spec='${wl}--export-dynamic'
  41873. - # ancient GNU ld didn't support --whole-archive et. al.
  41874. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  41875. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  41876. - else
  41877. - whole_archive_flag_spec=
  41878. - fi
  41879. + if test "$ld_shlibs" = no; then
  41880. + runpath_var=
  41881. + hardcode_libdir_flag_spec=
  41882. + export_dynamic_flag_spec=
  41883. + whole_archive_flag_spec=
  41884. fi
  41885. else
  41886. # PORTME fill in a description of your system's linker (not GNU ld)
  41887. @@ -6802,18 +8202,18 @@
  41888. aix3*)
  41889. allow_undefined_flag=unsupported
  41890. always_export_symbols=yes
  41891. - archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE${_S_}$AR $AR_FLAGS $lib $output_objdir/$soname'
  41892. + 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'
  41893. # Note: this linker hardcodes the directories in LIBPATH if there
  41894. # are no directories specified by -L.
  41895. hardcode_minus_L=yes
  41896. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  41897. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  41898. # Neither direct hardcoding nor static linking is supported with a
  41899. # broken collect2.
  41900. hardcode_direct=unsupported
  41901. fi
  41902. ;;
  41903. - aix4* | aix5*)
  41904. + aix[4-9]*)
  41905. if test "$host_cpu" = ia64; then
  41906. # On IA64, the linker does run time linking by default, so we don't
  41907. # have to do anything special.
  41908. @@ -6823,23 +8223,24 @@
  41909. else
  41910. # If we're using GNU nm, then we don't want the "-C" option.
  41911. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  41912. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  41913. - 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'
  41914. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  41915. + 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'
  41916. else
  41917. - 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'
  41918. + 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'
  41919. fi
  41920. aix_use_runtimelinking=no
  41921. # Test if we are trying to use run time linking or normal
  41922. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  41923. # need to do runtime linking.
  41924. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  41925. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  41926. for ld_flag in $LDFLAGS; do
  41927. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  41928. - aix_use_runtimelinking=yes
  41929. - break
  41930. - fi
  41931. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  41932. + aix_use_runtimelinking=yes
  41933. + break
  41934. + fi
  41935. done
  41936. + ;;
  41937. esac
  41938. exp_sym_flag='-bexport'
  41939. @@ -6854,46 +8255,54 @@
  41940. archive_cmds=''
  41941. hardcode_direct=yes
  41942. + hardcode_direct_absolute=yes
  41943. hardcode_libdir_separator=':'
  41944. link_all_deplibs=yes
  41945. + file_list_spec='${wl}-f,'
  41946. if test "$GCC" = yes; then
  41947. - case $host_os in aix4.012|aix4.012.*)
  41948. + case $host_os in aix4.[012]|aix4.[012].*)
  41949. # We only want to do this on AIX 4.2 and lower, the check
  41950. # below for broken collect2 doesn't work under 4.3+
  41951. collect2name=`${CC} -print-prog-name=collect2`
  41952. - if test -f "$collect2name" && \
  41953. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  41954. + if test -f "$collect2name" &&
  41955. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  41956. then
  41957. - # We have reworked collect2
  41958. - hardcode_direct=yes
  41959. + # We have reworked collect2
  41960. + :
  41961. else
  41962. - # We have old collect2
  41963. - hardcode_direct=unsupported
  41964. - # It fails to find uninstalled libraries when the uninstalled
  41965. - # path is not listed in the libpath. Setting hardcode_minus_L
  41966. - # to unsupported forces relinking
  41967. - hardcode_minus_L=yes
  41968. - hardcode_libdir_flag_spec='-L$libdir'
  41969. - hardcode_libdir_separator=
  41970. + # We have old collect2
  41971. + hardcode_direct=unsupported
  41972. + # It fails to find uninstalled libraries when the uninstalled
  41973. + # path is not listed in the libpath. Setting hardcode_minus_L
  41974. + # to unsupported forces relinking
  41975. + hardcode_minus_L=yes
  41976. + hardcode_libdir_flag_spec='-L$libdir'
  41977. + hardcode_libdir_separator=
  41978. fi
  41979. + ;;
  41980. esac
  41981. shared_flag='-shared'
  41982. + if test "$aix_use_runtimelinking" = yes; then
  41983. + shared_flag="$shared_flag "'${wl}-G'
  41984. + fi
  41985. + link_all_deplibs=no
  41986. else
  41987. # not using gcc
  41988. if test "$host_cpu" = ia64; then
  41989. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  41990. - # chokes on -Wl,-G. The following line is correct:
  41991. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  41992. + # chokes on -Wl,-G. The following line is correct:
  41993. shared_flag='-G'
  41994. else
  41995. - if test "$aix_use_runtimelinking" = yes; then
  41996. + if test "$aix_use_runtimelinking" = yes; then
  41997. shared_flag='${wl}-G'
  41998. else
  41999. shared_flag='${wl}-bM:SRE'
  42000. - fi
  42001. + fi
  42002. fi
  42003. fi
  42004. + export_dynamic_flag_spec='${wl}-bexpall'
  42005. # It seems that -bexpall does not export symbols beginning with
  42006. # underscore (_), so it is better to generate a list of symbols to export.
  42007. always_export_symbols=yes
  42008. @@ -6901,12 +8310,9 @@
  42009. # Warning - without using the other runtime loading flags (-brtl),
  42010. # -berok will link without error, but may produce a broken library.
  42011. allow_undefined_flag='-berok'
  42012. - # Determine the default libpath from the value encoded in an empty executable.
  42013. - cat >conftest.$ac_ext <<_ACEOF
  42014. -/* confdefs.h. */
  42015. -_ACEOF
  42016. -cat confdefs.h >>conftest.$ac_ext
  42017. -cat >>conftest.$ac_ext <<_ACEOF
  42018. + # Determine the default libpath from the value encoded in an
  42019. + # empty executable.
  42020. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42021. /* end confdefs.h. */
  42022. int
  42023. @@ -6917,57 +8323,36 @@
  42024. return 0;
  42025. }
  42026. _ACEOF
  42027. -rm -f conftest.$ac_objext conftest$ac_exeext
  42028. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  42029. - (eval $ac_link) 2>conftest.er1
  42030. - ac_status=$?
  42031. - grep -v '^ *+' conftest.er1 >conftest.err
  42032. - rm -f conftest.er1
  42033. - cat conftest.err >&5
  42034. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42035. - (exit $ac_status); } &&
  42036. - { ac_try='test -z "$ac_c_werror_flag"
  42037. - || test ! -s conftest.err'
  42038. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42039. - (eval $ac_try) 2>&5
  42040. - ac_status=$?
  42041. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42042. - (exit $ac_status); }; } &&
  42043. - { ac_try='test -s conftest$ac_exeext'
  42044. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42045. - (eval $ac_try) 2>&5
  42046. - ac_status=$?
  42047. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42048. - (exit $ac_status); }; }; then
  42049. +if ac_fn_c_try_link "$LINENO"; then :
  42050. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  42051. -}'`
  42052. +lt_aix_libpath_sed='
  42053. + /Import File Strings/,/^$/ {
  42054. + /^0/ {
  42055. + s/^0 *\(.*\)$/\1/
  42056. + p
  42057. + }
  42058. + }'
  42059. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  42060. # Check for a 64-bit object if we didn't find anything.
  42061. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  42062. -}'`; fi
  42063. -else
  42064. - echo "$as_me: failed program was:" >&5
  42065. -sed 's/^/| /' conftest.$ac_ext >&5
  42066. -
  42067. +if test -z "$aix_libpath"; then
  42068. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  42069. +fi
  42070. fi
  42071. -rm -f conftest.err conftest.$ac_objext \
  42072. - conftest$ac_exeext conftest.$ac_ext
  42073. +rm -f core conftest.err conftest.$ac_objext \
  42074. + conftest$ac_exeext conftest.$ac_ext
  42075. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  42076. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  42077. - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  42078. - else
  42079. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  42080. + 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"
  42081. + else
  42082. if test "$host_cpu" = ia64; then
  42083. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  42084. allow_undefined_flag="-z nodefs"
  42085. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  42086. + 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"
  42087. else
  42088. - # Determine the default libpath from the value encoded in an empty executable.
  42089. - cat >conftest.$ac_ext <<_ACEOF
  42090. -/* confdefs.h. */
  42091. -_ACEOF
  42092. -cat confdefs.h >>conftest.$ac_ext
  42093. -cat >>conftest.$ac_ext <<_ACEOF
  42094. + # Determine the default libpath from the value encoded in an
  42095. + # empty executable.
  42096. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42097. /* end confdefs.h. */
  42098. int
  42099. @@ -6978,41 +8363,23 @@
  42100. return 0;
  42101. }
  42102. _ACEOF
  42103. -rm -f conftest.$ac_objext conftest$ac_exeext
  42104. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  42105. - (eval $ac_link) 2>conftest.er1
  42106. - ac_status=$?
  42107. - grep -v '^ *+' conftest.er1 >conftest.err
  42108. - rm -f conftest.er1
  42109. - cat conftest.err >&5
  42110. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42111. - (exit $ac_status); } &&
  42112. - { ac_try='test -z "$ac_c_werror_flag"
  42113. - || test ! -s conftest.err'
  42114. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42115. - (eval $ac_try) 2>&5
  42116. - ac_status=$?
  42117. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42118. - (exit $ac_status); }; } &&
  42119. - { ac_try='test -s conftest$ac_exeext'
  42120. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42121. - (eval $ac_try) 2>&5
  42122. - ac_status=$?
  42123. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42124. - (exit $ac_status); }; }; then
  42125. +if ac_fn_c_try_link "$LINENO"; then :
  42126. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  42127. -}'`
  42128. +lt_aix_libpath_sed='
  42129. + /Import File Strings/,/^$/ {
  42130. + /^0/ {
  42131. + s/^0 *\(.*\)$/\1/
  42132. + p
  42133. + }
  42134. + }'
  42135. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  42136. # Check for a 64-bit object if we didn't find anything.
  42137. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  42138. -}'`; fi
  42139. -else
  42140. - echo "$as_me: failed program was:" >&5
  42141. -sed 's/^/| /' conftest.$ac_ext >&5
  42142. -
  42143. +if test -z "$aix_libpath"; then
  42144. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  42145. fi
  42146. -rm -f conftest.err conftest.$ac_objext \
  42147. - conftest$ac_exeext conftest.$ac_ext
  42148. +fi
  42149. +rm -f core conftest.err conftest.$ac_objext \
  42150. + conftest$ac_exeext conftest.$ac_ext
  42151. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  42152. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  42153. @@ -7020,30 +8387,35 @@
  42154. # -berok will link without error, but may produce a broken library.
  42155. no_undefined_flag=' ${wl}-bernotok'
  42156. allow_undefined_flag=' ${wl}-berok'
  42157. - # -bexpall does not export symbols beginning with underscore (_)
  42158. - always_export_symbols=yes
  42159. # Exported symbols can be pulled into shared objects from archives
  42160. - whole_archive_flag_spec=' '
  42161. + whole_archive_flag_spec='$convenience'
  42162. archive_cmds_need_lc=yes
  42163. - # This is similar to how AIX traditionally builds it's shared libraries.
  42164. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  42165. + # This is similar to how AIX traditionally builds its shared libraries.
  42166. + 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'
  42167. fi
  42168. fi
  42169. ;;
  42170. amigaos*)
  42171. - archive_cmds='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
  42172. - hardcode_libdir_flag_spec='-L$libdir'
  42173. - hardcode_minus_L=yes
  42174. - # see comment about different semantics on the GNU ld section
  42175. - ld_shlibs=no
  42176. + case $host_cpu in
  42177. + powerpc)
  42178. + # see comment about AmigaOS4 .so support
  42179. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  42180. + archive_expsym_cmds=''
  42181. + ;;
  42182. + m68k)
  42183. + 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)'
  42184. + hardcode_libdir_flag_spec='-L$libdir'
  42185. + hardcode_minus_L=yes
  42186. + ;;
  42187. + esac
  42188. ;;
  42189. - bsdi4*)
  42190. + bsdi[45]*)
  42191. export_dynamic_flag_spec=-rdynamic
  42192. ;;
  42193. - cygwin* | mingw* | pw32*)
  42194. + cygwin* | mingw* | pw32* | cegcc*)
  42195. # When not using gcc, we currently assume that we are using
  42196. # Microsoft Visual C++.
  42197. # hardcode_libdir_flag_spec is actually meaningless, as there is
  42198. @@ -7053,70 +8425,42 @@
  42199. # Tell ltmain to make .lib files, not .a files.
  42200. libext=lib
  42201. # Tell ltmain to make .dll files, not .so files.
  42202. - shrext=".dll"
  42203. + shrext_cmds=".dll"
  42204. # FIXME: Setting linknames here is a bad hack.
  42205. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll${_S_}linknames='
  42206. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  42207. # The linker will automatically build a .lib file if we build a DLL.
  42208. - old_archive_From_new_cmds='true'
  42209. + old_archive_from_new_cmds='true'
  42210. # FIXME: Should let the user specify the lib program.
  42211. - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  42212. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  42213. fix_srcfile_path='`cygpath -w "$srcfile"`'
  42214. enable_shared_with_static_runtimes=yes
  42215. ;;
  42216. darwin* | rhapsody*)
  42217. - if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
  42218. - archive_cmds_need_lc=no
  42219. - case "$host_os" in
  42220. - rhapsody* | darwin1.[012])
  42221. - allow_undefined_flag='-undefined suppress'
  42222. - ;;
  42223. - darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
  42224. - test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
  42225. - ;;
  42226. - *) # Darwin 7.0 on
  42227. - case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
  42228. - 10.[012])
  42229. - test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
  42230. - ;;
  42231. - *) # 10.3 on
  42232. - if test -z ${LD_TWOLEVEL_NAMESPACE}; then
  42233. - allow_undefined_flag='-flat_namespace -undefined suppress'
  42234. - else
  42235. - allow_undefined_flag='-undefined dynamic_lookup'
  42236. - fi
  42237. - ;;
  42238. - esac
  42239. - ;;
  42240. - esac
  42241. - # FIXME: Relying on posixy $() will cause problems for
  42242. - # cross-compilation, but unfortunately the echo tests do not
  42243. - # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  42244. - # `"' quotes if we put them in here... so don't!
  42245. - lt_int_apple_cc_single_mod=no
  42246. - output_verbose_link_cmd='echo'
  42247. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  42248. - lt_int_apple_cc_single_mod=yes
  42249. - fi
  42250. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  42251. - archive_cmds='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  42252. - else
  42253. - archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  42254. - fi
  42255. - module_cmds='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
  42256. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  42257. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  42258. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  42259. - else
  42260. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  42261. - fi
  42262. - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  42263. - hardcode_direct=no
  42264. - hardcode_automatic=yes
  42265. - hardcode_shlibpath_var=unsupported
  42266. - whole_archive_flag_spec='-all_load $convenience'
  42267. - link_all_deplibs=yes
  42268. - fi
  42269. +
  42270. +
  42271. + archive_cmds_need_lc=no
  42272. + hardcode_direct=no
  42273. + hardcode_automatic=yes
  42274. + hardcode_shlibpath_var=unsupported
  42275. + whole_archive_flag_spec=''
  42276. + link_all_deplibs=yes
  42277. + allow_undefined_flag="$_lt_dar_allow_undefined"
  42278. + case $cc_basename in
  42279. + ifort*) _lt_dar_can_shared=yes ;;
  42280. + *) _lt_dar_can_shared=$GCC ;;
  42281. + esac
  42282. + if test "$_lt_dar_can_shared" = "yes"; then
  42283. + output_verbose_link_cmd=echo
  42284. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  42285. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  42286. + 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}"
  42287. + 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}"
  42288. +
  42289. + else
  42290. + ld_shlibs=no
  42291. + fi
  42292. +
  42293. ;;
  42294. dgux*)
  42295. @@ -7149,7 +8493,7 @@
  42296. ;;
  42297. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  42298. - freebsd*)
  42299. + freebsd* | dragonfly*)
  42300. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  42301. hardcode_libdir_flag_spec='-R$libdir'
  42302. hardcode_direct=yes
  42303. @@ -7158,9 +8502,9 @@
  42304. hpux9*)
  42305. if test "$GCC" = yes; then
  42306. - archive_cmds='$rm $output_objdir/$soname${_S_}$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  42307. + 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'
  42308. else
  42309. - archive_cmds='$rm $output_objdir/$soname${_S_}$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  42310. + 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'
  42311. fi
  42312. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  42313. hardcode_libdir_separator=:
  42314. @@ -7172,48 +8516,63 @@
  42315. export_dynamic_flag_spec='${wl}-E'
  42316. ;;
  42317. - hpux10* | hpux11*)
  42318. + hpux10*)
  42319. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  42320. - case "$host_cpu" in
  42321. - hppa*64*|ia64*)
  42322. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  42323. + else
  42324. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  42325. + fi
  42326. + if test "$with_gnu_ld" = no; then
  42327. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  42328. + hardcode_libdir_flag_spec_ld='+b $libdir'
  42329. + hardcode_libdir_separator=:
  42330. + hardcode_direct=yes
  42331. + hardcode_direct_absolute=yes
  42332. + export_dynamic_flag_spec='${wl}-E'
  42333. + # hardcode_minus_L: Not really in the search PATH,
  42334. + # but as the default location of the library.
  42335. + hardcode_minus_L=yes
  42336. + fi
  42337. + ;;
  42338. +
  42339. + hpux11*)
  42340. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  42341. + case $host_cpu in
  42342. + hppa*64*)
  42343. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  42344. ;;
  42345. + ia64*)
  42346. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  42347. + ;;
  42348. *)
  42349. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  42350. ;;
  42351. esac
  42352. else
  42353. - case "$host_cpu" in
  42354. - hppa*64*|ia64*)
  42355. - archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  42356. + case $host_cpu in
  42357. + hppa*64*)
  42358. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  42359. + ;;
  42360. + ia64*)
  42361. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  42362. ;;
  42363. *)
  42364. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  42365. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  42366. ;;
  42367. esac
  42368. fi
  42369. if test "$with_gnu_ld" = no; then
  42370. - case "$host_cpu" in
  42371. - hppa*64*)
  42372. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  42373. - hardcode_libdir_flag_spec_ld='+b $libdir'
  42374. - hardcode_libdir_separator=:
  42375. - hardcode_direct=no
  42376. - hardcode_shlibpath_var=no
  42377. - ;;
  42378. - ia64*)
  42379. - hardcode_libdir_flag_spec='-L$libdir'
  42380. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  42381. + hardcode_libdir_separator=:
  42382. +
  42383. + case $host_cpu in
  42384. + hppa*64*|ia64*)
  42385. hardcode_direct=no
  42386. hardcode_shlibpath_var=no
  42387. -
  42388. - # hardcode_minus_L: Not really in the search PATH,
  42389. - # but as the default location of the library.
  42390. - hardcode_minus_L=yes
  42391. ;;
  42392. *)
  42393. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  42394. - hardcode_libdir_separator=:
  42395. hardcode_direct=yes
  42396. + hardcode_direct_absolute=yes
  42397. export_dynamic_flag_spec='${wl}-E'
  42398. # hardcode_minus_L: Not really in the search PATH,
  42399. @@ -7226,18 +8585,36 @@
  42400. irix5* | irix6* | nonstopux*)
  42401. if test "$GCC" = yes; then
  42402. - 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'
  42403. + 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'
  42404. + # Try to use the -exported_symbol ld option, if it does not
  42405. + # work, assume that -exports_file does not work either and
  42406. + # implicitly export all symbols.
  42407. + save_LDFLAGS="$LDFLAGS"
  42408. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  42409. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42410. +/* end confdefs.h. */
  42411. +int foo(void) {}
  42412. +_ACEOF
  42413. +if ac_fn_c_try_link "$LINENO"; then :
  42414. + 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'
  42415. +
  42416. +fi
  42417. +rm -f core conftest.err conftest.$ac_objext \
  42418. + conftest$ac_exeext conftest.$ac_ext
  42419. + LDFLAGS="$save_LDFLAGS"
  42420. else
  42421. - 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'
  42422. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  42423. + 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'
  42424. + 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'
  42425. fi
  42426. + archive_cmds_need_lc='no'
  42427. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  42428. hardcode_libdir_separator=:
  42429. + inherit_rpath=yes
  42430. link_all_deplibs=yes
  42431. ;;
  42432. - netbsd*)
  42433. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  42434. + netbsd* | netbsdelf*-gnu)
  42435. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  42436. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  42437. else
  42438. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  42439. @@ -7255,24 +8632,33 @@
  42440. hardcode_shlibpath_var=no
  42441. ;;
  42442. + *nto* | *qnx*)
  42443. + ;;
  42444. +
  42445. openbsd*)
  42446. - hardcode_direct=yes
  42447. - hardcode_shlibpath_var=no
  42448. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  42449. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  42450. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  42451. - export_dynamic_flag_spec='${wl}-E'
  42452. + if test -f /usr/libexec/ld.so; then
  42453. + hardcode_direct=yes
  42454. + hardcode_shlibpath_var=no
  42455. + hardcode_direct_absolute=yes
  42456. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  42457. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  42458. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  42459. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  42460. + export_dynamic_flag_spec='${wl}-E'
  42461. + else
  42462. + case $host_os in
  42463. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  42464. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  42465. + hardcode_libdir_flag_spec='-R$libdir'
  42466. + ;;
  42467. + *)
  42468. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  42469. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  42470. + ;;
  42471. + esac
  42472. + fi
  42473. else
  42474. - case $host_os in
  42475. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  42476. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  42477. - hardcode_libdir_flag_spec='-R$libdir'
  42478. - ;;
  42479. - *)
  42480. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  42481. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  42482. - ;;
  42483. - esac
  42484. + ld_shlibs=no
  42485. fi
  42486. ;;
  42487. @@ -7280,18 +8666,19 @@
  42488. hardcode_libdir_flag_spec='-L$libdir'
  42489. hardcode_minus_L=yes
  42490. allow_undefined_flag=unsupported
  42491. - archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def${_S_}$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def${_S_}$echo DATA >> $output_objdir/$libname.def${_S_}$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def${_S_}$echo EXPORTS >> $output_objdir/$libname.def${_S_}emxexp $libobjs >> $output_objdir/$libname.def${_S_}$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  42492. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  42493. + 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'
  42494. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  42495. ;;
  42496. osf3*)
  42497. if test "$GCC" = yes; then
  42498. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  42499. - 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'
  42500. + 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'
  42501. else
  42502. allow_undefined_flag=' -expect_unresolved \*'
  42503. - 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'
  42504. + 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'
  42505. fi
  42506. + archive_cmds_need_lc='no'
  42507. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  42508. hardcode_libdir_separator=:
  42509. ;;
  42510. @@ -7299,45 +8686,59 @@
  42511. osf4* | osf5*) # as osf3* with the addition of -msym flag
  42512. if test "$GCC" = yes; then
  42513. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  42514. - 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'
  42515. + 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'
  42516. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  42517. else
  42518. allow_undefined_flag=' -expect_unresolved \*'
  42519. - 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'
  42520. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp${_S_}
  42521. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib${_S_}$rm $lib.exp'
  42522. + 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'
  42523. + 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~
  42524. + $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'
  42525. # Both c and cxx compiler support -rpath directly
  42526. hardcode_libdir_flag_spec='-rpath $libdir'
  42527. fi
  42528. + archive_cmds_need_lc='no'
  42529. hardcode_libdir_separator=:
  42530. ;;
  42531. - sco3.2v5*)
  42532. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  42533. - hardcode_shlibpath_var=no
  42534. - export_dynamic_flag_spec='${wl}-Bexport'
  42535. - runpath_var=LD_RUN_PATH
  42536. - hardcode_runpath_var=yes
  42537. - ;;
  42538. -
  42539. solaris*)
  42540. - no_undefined_flag=' -z text'
  42541. + no_undefined_flag=' -z defs'
  42542. if test "$GCC" = yes; then
  42543. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  42544. - archive_expsym_cmds='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
  42545. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags${_S_}$rm $lib.exp'
  42546. - else
  42547. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  42548. - archive_expsym_cmds='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
  42549. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
  42550. + wlarc='${wl}'
  42551. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  42552. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  42553. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  42554. + else
  42555. + case `$CC -V 2>&1` in
  42556. + *"Compilers 5.0"*)
  42557. + wlarc=''
  42558. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  42559. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  42560. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  42561. + ;;
  42562. + *)
  42563. + wlarc='${wl}'
  42564. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  42565. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  42566. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  42567. + ;;
  42568. + esac
  42569. fi
  42570. hardcode_libdir_flag_spec='-R$libdir'
  42571. hardcode_shlibpath_var=no
  42572. case $host_os in
  42573. solaris2.[0-5] | solaris2.[0-5].*) ;;
  42574. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  42575. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  42576. + *)
  42577. + # The compiler driver will combine and reorder linker options,
  42578. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  42579. + # but is careful enough not to reorder.
  42580. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  42581. + if test "$GCC" = yes; then
  42582. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  42583. + else
  42584. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  42585. + fi
  42586. + ;;
  42587. esac
  42588. link_all_deplibs=yes
  42589. ;;
  42590. @@ -7394,36 +8795,45 @@
  42591. fi
  42592. ;;
  42593. - sysv4.2uw2*)
  42594. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  42595. - hardcode_direct=yes
  42596. - hardcode_minus_L=no
  42597. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  42598. + no_undefined_flag='${wl}-z,text'
  42599. + archive_cmds_need_lc=no
  42600. hardcode_shlibpath_var=no
  42601. - hardcode_runpath_var=yes
  42602. - runpath_var=LD_RUN_PATH
  42603. - ;;
  42604. + runpath_var='LD_RUN_PATH'
  42605. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  42606. - no_undefined_flag='${wl}-z ${wl}text'
  42607. if test "$GCC" = yes; then
  42608. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  42609. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  42610. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  42611. else
  42612. - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  42613. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  42614. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  42615. fi
  42616. - runpath_var='LD_RUN_PATH'
  42617. - hardcode_shlibpath_var=no
  42618. ;;
  42619. - sysv5*)
  42620. - no_undefined_flag=' -z text'
  42621. - # $CC -shared without GNU ld will not create a library from C++
  42622. - # object files and a static libstdc++, better avoid it by now
  42623. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  42624. - archive_expsym_cmds='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
  42625. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
  42626. - hardcode_libdir_flag_spec=
  42627. + sysv5* | sco3.2v5* | sco5v6*)
  42628. + # Note: We can NOT use -z defs as we might desire, because we do not
  42629. + # link with -lc, and that would cause any symbols used from libc to
  42630. + # always be unresolved, which means just about no library would
  42631. + # ever link correctly. If we're not using GNU ld we use -z text
  42632. + # though, which does catch some bad symbols but isn't as heavy-handed
  42633. + # as -z defs.
  42634. + no_undefined_flag='${wl}-z,text'
  42635. + allow_undefined_flag='${wl}-z,nodefs'
  42636. + archive_cmds_need_lc=no
  42637. hardcode_shlibpath_var=no
  42638. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  42639. + hardcode_libdir_separator=':'
  42640. + link_all_deplibs=yes
  42641. + export_dynamic_flag_spec='${wl}-Bexport'
  42642. runpath_var='LD_RUN_PATH'
  42643. +
  42644. + if test "$GCC" = yes; then
  42645. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  42646. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  42647. + else
  42648. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  42649. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  42650. + fi
  42651. ;;
  42652. uts4*)
  42653. @@ -7436,16 +8846,35 @@
  42654. ld_shlibs=no
  42655. ;;
  42656. esac
  42657. +
  42658. + if test x$host_vendor = xsni; then
  42659. + case $host in
  42660. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  42661. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  42662. + ;;
  42663. + esac
  42664. + fi
  42665. fi
  42666. -echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  42667. -echo "${ECHO_T}$ld_shlibs" >&6
  42668. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  42669. +$as_echo "$ld_shlibs" >&6; }
  42670. test "$ld_shlibs" = no && can_build_shared=no
  42671. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  42672. -if test "$GCC" = yes; then
  42673. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  42674. -fi
  42675. +with_gnu_ld=$with_gnu_ld
  42676. +
  42677. +
  42678. +
  42679. +
  42680. +
  42681. +
  42682. +
  42683. +
  42684. +
  42685. +
  42686. +
  42687. +
  42688. +
  42689. +
  42690. #
  42691. # Do we need to explicitly link libc?
  42692. @@ -7457,28 +8886,29 @@
  42693. if test "$enable_shared" = yes && test "$GCC" = yes; then
  42694. case $archive_cmds in
  42695. - *"$_S_"*)
  42696. + *'~'*)
  42697. # FIXME: we may have to deal with multi-command sequences.
  42698. ;;
  42699. '$CC '*)
  42700. # Test whether the compiler implicitly links with -lc since on some
  42701. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  42702. # to ld, don't add -lc before -lgcc.
  42703. - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  42704. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  42705. - $rm conftest*
  42706. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  42707. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  42708. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  42709. + $RM conftest*
  42710. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  42711. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  42712. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  42713. (eval $ac_compile) 2>&5
  42714. ac_status=$?
  42715. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42716. - (exit $ac_status); } 2>conftest.err; then
  42717. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  42718. + test $ac_status = 0; } 2>conftest.err; then
  42719. soname=conftest
  42720. lib=conftest
  42721. libobjs=conftest.$ac_objext
  42722. deplibs=
  42723. wl=$lt_prog_compiler_wl
  42724. + pic_flag=$lt_prog_compiler_pic
  42725. compiler_flags=-v
  42726. linker_flags=-v
  42727. verstring=
  42728. @@ -7486,11 +8916,11 @@
  42729. libname=conftest
  42730. lt_save_allow_undefined_flag=$allow_undefined_flag
  42731. allow_undefined_flag=
  42732. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  42733. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  42734. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  42735. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  42736. ac_status=$?
  42737. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42738. - (exit $ac_status); }
  42739. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  42740. + test $ac_status = 0; }
  42741. then
  42742. archive_cmds_need_lc=no
  42743. else
  42744. @@ -7500,128 +8930,256 @@
  42745. else
  42746. cat conftest.err 1>&5
  42747. fi
  42748. - $rm conftest*
  42749. - echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  42750. -echo "${ECHO_T}$archive_cmds_need_lc" >&6
  42751. + $RM conftest*
  42752. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  42753. +$as_echo "$archive_cmds_need_lc" >&6; }
  42754. ;;
  42755. esac
  42756. fi
  42757. ;;
  42758. esac
  42759. -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  42760. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  42761. -hardcode_action=
  42762. -if test -n "$hardcode_libdir_flag_spec" || \
  42763. - test -n "$runpath_var " || \
  42764. - test "X$hardcode_automatic"="Xyes" ; then
  42765. - # We can hardcode non-existant directories.
  42766. - if test "$hardcode_direct" != no &&
  42767. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  42768. - # have to relink, otherwise we might link with an installed library
  42769. - # when we should be linking with a yet-to-be-installed one
  42770. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  42771. - test "$hardcode_minus_L" != no; then
  42772. - # Linking always hardcodes the temporary library directory.
  42773. - hardcode_action=relink
  42774. - else
  42775. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  42776. - hardcode_action=immediate
  42777. - fi
  42778. -else
  42779. - # We cannot hardcode anything, or else we can only hardcode existing
  42780. - # directories.
  42781. - hardcode_action=unsupported
  42782. -fi
  42783. -echo "$as_me:$LINENO: result: $hardcode_action" >&5
  42784. -echo "${ECHO_T}$hardcode_action" >&6
  42785. -if test "$hardcode_action" = relink; then
  42786. - # Fast installation is not supported
  42787. - enable_fast_install=no
  42788. -elif test "$shlibpath_overrides_runpath" = yes ||
  42789. - test "$enable_shared" = no; then
  42790. - # Fast installation is not necessary
  42791. - enable_fast_install=needless
  42792. -fi
  42793. -striplib=
  42794. -old_striplib=
  42795. -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  42796. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  42797. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  42798. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  42799. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  42800. - echo "$as_me:$LINENO: result: yes" >&5
  42801. -echo "${ECHO_T}yes" >&6
  42802. -else
  42803. -# FIXME - insert some real tests, host_os isn't really good enough
  42804. - case $host_os in
  42805. - NOT-darwin*)
  42806. - if test -n "$STRIP" ; then
  42807. - striplib="$STRIP -x"
  42808. - echo "$as_me:$LINENO: result: yes" >&5
  42809. -echo "${ECHO_T}yes" >&6
  42810. - else
  42811. - echo "$as_me:$LINENO: result: no" >&5
  42812. -echo "${ECHO_T}no" >&6
  42813. -fi
  42814. - ;;
  42815. - *)
  42816. - echo "$as_me:$LINENO: result: no" >&5
  42817. -echo "${ECHO_T}no" >&6
  42818. - ;;
  42819. - esac
  42820. -fi
  42821. -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  42822. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  42823. -library_names_spec=
  42824. -libname_spec='lib$name'
  42825. -soname_spec=
  42826. -shrext=".so"
  42827. -postinstall_cmds=
  42828. -postuninstall_cmds=
  42829. -finish_cmds=
  42830. -finish_eval=
  42831. -shlibpath_var=
  42832. -shlibpath_overrides_runpath=unknown
  42833. -version_type=none
  42834. -dynamic_linker="$host_os ld.so"
  42835. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  42836. -if test "$GCC" = yes; then
  42837. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  42838. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  42839. - # if the path contains ";" then we assume it to be the separator
  42840. - # otherwise default to the standard path separator (i.e. ":") - it is
  42841. - # assumed that no part of a normal pathname contains ";" but that should
  42842. - # okay in the real world where ";" in dirpaths is itself problematic.
  42843. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  42844. - else
  42845. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  42846. - fi
  42847. -else
  42848. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  42849. -fi
  42850. -need_lib_prefix=unknown
  42851. -hardcode_into_libs=no
  42852. -# when you set need_version to no, make sure it does not cause -set_version
  42853. -# flags to be left without arguments
  42854. -need_version=unknown
  42855. -case $host_os in
  42856. -aix3*)
  42857. - version_type=linux
  42858. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  42859. - shlibpath_var=LIBPATH
  42860. - # AIX 3 has no versioning support, so we append a major version to the name.
  42861. +
  42862. +
  42863. +
  42864. +
  42865. +
  42866. +
  42867. +
  42868. +
  42869. +
  42870. +
  42871. +
  42872. +
  42873. +
  42874. +
  42875. +
  42876. +
  42877. +
  42878. +
  42879. +
  42880. +
  42881. +
  42882. +
  42883. +
  42884. +
  42885. +
  42886. +
  42887. +
  42888. +
  42889. +
  42890. +
  42891. +
  42892. +
  42893. +
  42894. +
  42895. +
  42896. +
  42897. +
  42898. +
  42899. +
  42900. +
  42901. +
  42902. +
  42903. +
  42904. +
  42905. +
  42906. +
  42907. +
  42908. +
  42909. +
  42910. +
  42911. +
  42912. +
  42913. +
  42914. +
  42915. +
  42916. +
  42917. +
  42918. +
  42919. +
  42920. +
  42921. +
  42922. +
  42923. +
  42924. +
  42925. +
  42926. +
  42927. +
  42928. +
  42929. +
  42930. +
  42931. +
  42932. +
  42933. +
  42934. +
  42935. +
  42936. +
  42937. +
  42938. +
  42939. +
  42940. +
  42941. +
  42942. +
  42943. +
  42944. +
  42945. +
  42946. +
  42947. +
  42948. +
  42949. +
  42950. +
  42951. +
  42952. +
  42953. +
  42954. +
  42955. +
  42956. +
  42957. +
  42958. +
  42959. +
  42960. +
  42961. +
  42962. +
  42963. +
  42964. +
  42965. +
  42966. +
  42967. +
  42968. +
  42969. +
  42970. +
  42971. +
  42972. +
  42973. +
  42974. +
  42975. +
  42976. +
  42977. +
  42978. +
  42979. +
  42980. +
  42981. +
  42982. +
  42983. +
  42984. +
  42985. +
  42986. +
  42987. +
  42988. +
  42989. +
  42990. +
  42991. +
  42992. +
  42993. +
  42994. +
  42995. +
  42996. +
  42997. +
  42998. +
  42999. +
  43000. +
  43001. +
  43002. +
  43003. +
  43004. +
  43005. +
  43006. +
  43007. +
  43008. +
  43009. +
  43010. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  43011. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  43012. +
  43013. +if test "$GCC" = yes; then
  43014. + case $host_os in
  43015. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  43016. + *) lt_awk_arg="/^libraries:/" ;;
  43017. + esac
  43018. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  43019. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  43020. + # if the path contains ";" then we assume it to be the separator
  43021. + # otherwise default to the standard path separator (i.e. ":") - it is
  43022. + # assumed that no part of a normal pathname contains ";" but that should
  43023. + # okay in the real world where ";" in dirpaths is itself problematic.
  43024. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  43025. + else
  43026. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  43027. + fi
  43028. + # Ok, now we have the path, separated by spaces, we can step through it
  43029. + # and add multilib dir if necessary.
  43030. + lt_tmp_lt_search_path_spec=
  43031. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  43032. + for lt_sys_path in $lt_search_path_spec; do
  43033. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  43034. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  43035. + else
  43036. + test -d "$lt_sys_path" && \
  43037. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  43038. + fi
  43039. + done
  43040. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  43041. +BEGIN {RS=" "; FS="/|\n";} {
  43042. + lt_foo="";
  43043. + lt_count=0;
  43044. + for (lt_i = NF; lt_i > 0; lt_i--) {
  43045. + if ($lt_i != "" && $lt_i != ".") {
  43046. + if ($lt_i == "..") {
  43047. + lt_count++;
  43048. + } else {
  43049. + if (lt_count == 0) {
  43050. + lt_foo="/" $lt_i lt_foo;
  43051. + } else {
  43052. + lt_count--;
  43053. + }
  43054. + }
  43055. + }
  43056. + }
  43057. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  43058. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  43059. +}'`
  43060. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  43061. +else
  43062. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  43063. +fi
  43064. +library_names_spec=
  43065. +libname_spec='lib$name'
  43066. +soname_spec=
  43067. +shrext_cmds=".so"
  43068. +postinstall_cmds=
  43069. +postuninstall_cmds=
  43070. +finish_cmds=
  43071. +finish_eval=
  43072. +shlibpath_var=
  43073. +shlibpath_overrides_runpath=unknown
  43074. +version_type=none
  43075. +dynamic_linker="$host_os ld.so"
  43076. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  43077. +need_lib_prefix=unknown
  43078. +hardcode_into_libs=no
  43079. +
  43080. +# when you set need_version to no, make sure it does not cause -set_version
  43081. +# flags to be left without arguments
  43082. +need_version=unknown
  43083. +
  43084. +case $host_os in
  43085. +aix3*)
  43086. + version_type=linux
  43087. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  43088. + shlibpath_var=LIBPATH
  43089. +
  43090. + # AIX 3 has no versioning support, so we append a major version to the name.
  43091. soname_spec='${libname}${release}${shared_ext}$major'
  43092. ;;
  43093. -aix4* | aix5*)
  43094. +aix[4-9]*)
  43095. version_type=linux
  43096. need_lib_prefix=no
  43097. need_version=no
  43098. @@ -7640,7 +9198,7 @@
  43099. aix4 | aix4.[01] | aix4.[01].*)
  43100. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  43101. echo ' yes '
  43102. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  43103. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  43104. :
  43105. else
  43106. can_build_shared=no
  43107. @@ -7666,9 +9224,18 @@
  43108. ;;
  43109. amigaos*)
  43110. - library_names_spec='$libname.ixlibrary $libname.a'
  43111. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  43112. - 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'
  43113. + case $host_cpu in
  43114. + powerpc)
  43115. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  43116. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  43117. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43118. + ;;
  43119. + m68k)
  43120. + library_names_spec='$libname.ixlibrary $libname.a'
  43121. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  43122. + 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'
  43123. + ;;
  43124. + esac
  43125. ;;
  43126. beos*)
  43127. @@ -7677,7 +9244,7 @@
  43128. shlibpath_var=LIBRARY_PATH
  43129. ;;
  43130. -bsdi4*)
  43131. +bsdi[45]*)
  43132. version_type=linux
  43133. need_version=no
  43134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43135. @@ -7691,51 +9258,55 @@
  43136. # libtool to hard-code these into programs
  43137. ;;
  43138. -cygwin* | mingw* | pw32*)
  43139. +cygwin* | mingw* | pw32* | cegcc*)
  43140. version_type=windows
  43141. - shrext=".dll"
  43142. + shrext_cmds=".dll"
  43143. need_version=no
  43144. need_lib_prefix=no
  43145. case $GCC,$host_os in
  43146. - yes,cygwin* | yes,mingw* | yes,pw32*)
  43147. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  43148. library_names_spec='$libname.dll.a'
  43149. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  43150. - postinstall_cmds='base_file=`basename \${file}`${_S_}
  43151. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
  43152. - dldir=$destdir/`dirname \$dlpath`${_S_}
  43153. - test -d \$dldir || mkdir -p \$dldir${_S_}
  43154. - $install_prog $dir/$dlname \$dldir/$dlname'
  43155. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
  43156. - dlpath=$dir/\$dldll${_S_}
  43157. - $rm \$dlpath'
  43158. + postinstall_cmds='base_file=`basename \${file}`~
  43159. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  43160. + dldir=$destdir/`dirname \$dlpath`~
  43161. + test -d \$dldir || mkdir -p \$dldir~
  43162. + $install_prog $dir/$dlname \$dldir/$dlname~
  43163. + chmod a+x \$dldir/$dlname~
  43164. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  43165. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  43166. + fi'
  43167. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  43168. + dlpath=$dir/\$dldll~
  43169. + $RM \$dlpath'
  43170. shlibpath_overrides_runpath=yes
  43171. case $host_os in
  43172. cygwin*)
  43173. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  43174. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  43175. - sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
  43176. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  43177. ;;
  43178. - mingw*)
  43179. + mingw* | cegcc*)
  43180. # MinGW DLLs use traditional 'lib' prefix
  43181. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  43182. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  43183. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  43184. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  43185. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  43186. # It is most probably a Windows format PATH printed by
  43187. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  43188. # path with ; separators, and with drive letters. We can handle the
  43189. # drive letters (cygwin fileutils understands them), so leave them,
  43190. # especially as we might pass files found there to a mingw objdump,
  43191. # which wouldn't understand a cygwinified path. Ahh.
  43192. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  43193. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  43194. else
  43195. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  43196. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  43197. fi
  43198. ;;
  43199. pw32*)
  43200. # pw32 DLLs use 'pw' prefix rather than 'lib'
  43201. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  43202. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  43203. ;;
  43204. esac
  43205. ;;
  43206. @@ -7754,18 +9325,13 @@
  43207. version_type=darwin
  43208. need_lib_prefix=no
  43209. need_version=no
  43210. - # FIXME: Relying on posixy $() will cause problems for
  43211. - # cross-compilation, but unfortunately the echo tests do not
  43212. - # yet detect zsh echo's removal of \ escapes.
  43213. - library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
  43214. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  43215. soname_spec='${libname}${release}${major}$shared_ext'
  43216. shlibpath_overrides_runpath=yes
  43217. shlibpath_var=DYLD_LIBRARY_PATH
  43218. - shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  43219. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  43220. - if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
  43221. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  43222. - fi
  43223. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  43224. +
  43225. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  43226. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  43227. ;;
  43228. @@ -7782,8 +9348,17 @@
  43229. dynamic_linker=no
  43230. ;;
  43231. -freebsd*)
  43232. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  43233. +freebsd* | dragonfly*)
  43234. + # DragonFly does not have aout. When/if they implement a new
  43235. + # versioning mechanism, adjust this.
  43236. + if test -x /usr/bin/objformat; then
  43237. + objformat=`/usr/bin/objformat`
  43238. + else
  43239. + case $host_os in
  43240. + freebsd[123]*) objformat=aout ;;
  43241. + *) objformat=elf ;;
  43242. + esac
  43243. + fi
  43244. version_type=freebsd-$objformat
  43245. case $version_type in
  43246. freebsd-elf*)
  43247. @@ -7801,14 +9376,19 @@
  43248. freebsd2*)
  43249. shlibpath_overrides_runpath=yes
  43250. ;;
  43251. - freebsd3.01* | freebsdelf3.01*)
  43252. + freebsd3.[01]* | freebsdelf3.[01]*)
  43253. shlibpath_overrides_runpath=yes
  43254. hardcode_into_libs=yes
  43255. ;;
  43256. - *) # from 3.2 on
  43257. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  43258. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  43259. shlibpath_overrides_runpath=no
  43260. hardcode_into_libs=yes
  43261. ;;
  43262. + *) # from 4.6 on, and DragonFly
  43263. + shlibpath_overrides_runpath=yes
  43264. + hardcode_into_libs=yes
  43265. + ;;
  43266. esac
  43267. ;;
  43268. @@ -7828,9 +9408,9 @@
  43269. version_type=sunos
  43270. need_lib_prefix=no
  43271. need_version=no
  43272. - case "$host_cpu" in
  43273. + case $host_cpu in
  43274. ia64*)
  43275. - shrext='.so'
  43276. + shrext_cmds='.so'
  43277. hardcode_into_libs=yes
  43278. dynamic_linker="$host_os dld.so"
  43279. shlibpath_var=LD_LIBRARY_PATH
  43280. @@ -7844,19 +9424,19 @@
  43281. fi
  43282. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  43283. ;;
  43284. - hppa*64*)
  43285. - shrext='.sl'
  43286. - hardcode_into_libs=yes
  43287. - dynamic_linker="$host_os dld.sl"
  43288. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  43289. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  43290. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43291. - soname_spec='${libname}${release}${shared_ext}$major'
  43292. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  43293. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  43294. - ;;
  43295. - *)
  43296. - shrext='.sl'
  43297. + hppa*64*)
  43298. + shrext_cmds='.sl'
  43299. + hardcode_into_libs=yes
  43300. + dynamic_linker="$host_os dld.sl"
  43301. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  43302. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  43303. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43304. + soname_spec='${libname}${release}${shared_ext}$major'
  43305. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  43306. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  43307. + ;;
  43308. + *)
  43309. + shrext_cmds='.sl'
  43310. dynamic_linker="$host_os dld.sl"
  43311. shlibpath_var=SHLIB_PATH
  43312. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  43313. @@ -7868,6 +9448,18 @@
  43314. postinstall_cmds='chmod 555 $lib'
  43315. ;;
  43316. +interix[3-9]*)
  43317. + version_type=linux
  43318. + need_lib_prefix=no
  43319. + need_version=no
  43320. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  43321. + soname_spec='${libname}${release}${shared_ext}$major'
  43322. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  43323. + shlibpath_var=LD_LIBRARY_PATH
  43324. + shlibpath_overrides_runpath=no
  43325. + hardcode_into_libs=yes
  43326. + ;;
  43327. +
  43328. irix5* | irix6* | nonstopux*)
  43329. case $host_os in
  43330. nonstopux*) version_type=nonstopux ;;
  43331. @@ -7911,7 +9503,7 @@
  43332. ;;
  43333. # This must be Linux ELF.
  43334. -linux*)
  43335. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  43336. version_type=linux
  43337. need_lib_prefix=no
  43338. need_version=no
  43339. @@ -7920,11 +9512,43 @@
  43340. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  43341. shlibpath_var=LD_LIBRARY_PATH
  43342. shlibpath_overrides_runpath=no
  43343. + # Some binutils ld are patched to set DT_RUNPATH
  43344. + save_LDFLAGS=$LDFLAGS
  43345. + save_libdir=$libdir
  43346. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  43347. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  43348. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43349. +/* end confdefs.h. */
  43350. +
  43351. +int
  43352. +main ()
  43353. +{
  43354. +
  43355. + ;
  43356. + return 0;
  43357. +}
  43358. +_ACEOF
  43359. +if ac_fn_c_try_link "$LINENO"; then :
  43360. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  43361. + shlibpath_overrides_runpath=yes
  43362. +fi
  43363. +fi
  43364. +rm -f core conftest.err conftest.$ac_objext \
  43365. + conftest$ac_exeext conftest.$ac_ext
  43366. + LDFLAGS=$save_LDFLAGS
  43367. + libdir=$save_libdir
  43368. +
  43369. # This implies no fast_install, which is unacceptable.
  43370. # Some rework will be needed to allow for fast_install
  43371. # before this can be enabled.
  43372. hardcode_into_libs=yes
  43373. + # Append ld.so.conf contents to the search path
  43374. + if test -f /etc/ld.so.conf; then
  43375. + 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' ' '`
  43376. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  43377. + fi
  43378. +
  43379. # We used to test for /lib/ld.so.1 and disable shared libraries on
  43380. # powerpc, because MkLinux only supported shared libraries with the
  43381. # GNU dynamic linker. Since this was broken with cross compilers,
  43382. @@ -7934,16 +9558,28 @@
  43383. dynamic_linker='GNU/Linux ld.so'
  43384. ;;
  43385. +netbsdelf*-gnu)
  43386. + version_type=linux
  43387. + need_lib_prefix=no
  43388. + need_version=no
  43389. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  43390. + soname_spec='${libname}${release}${shared_ext}$major'
  43391. + shlibpath_var=LD_LIBRARY_PATH
  43392. + shlibpath_overrides_runpath=no
  43393. + hardcode_into_libs=yes
  43394. + dynamic_linker='NetBSD ld.elf_so'
  43395. + ;;
  43396. +
  43397. netbsd*)
  43398. version_type=sunos
  43399. need_lib_prefix=no
  43400. need_version=no
  43401. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  43402. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  43403. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  43404. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  43405. dynamic_linker='NetBSD (a.out) ld.so'
  43406. else
  43407. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
  43408. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  43409. soname_spec='${libname}${release}${shared_ext}$major'
  43410. dynamic_linker='NetBSD ld.elf_so'
  43411. fi
  43412. @@ -7959,24 +9595,31 @@
  43413. shlibpath_overrides_runpath=yes
  43414. ;;
  43415. -nto-qnx)
  43416. - version_type=linux
  43417. +*nto* | *qnx*)
  43418. + version_type=qnx
  43419. need_lib_prefix=no
  43420. need_version=no
  43421. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43422. soname_spec='${libname}${release}${shared_ext}$major'
  43423. shlibpath_var=LD_LIBRARY_PATH
  43424. - shlibpath_overrides_runpath=yes
  43425. + shlibpath_overrides_runpath=no
  43426. + hardcode_into_libs=yes
  43427. + dynamic_linker='ldqnx.so'
  43428. ;;
  43429. openbsd*)
  43430. version_type=sunos
  43431. + sys_lib_dlsearch_path_spec="/usr/lib"
  43432. need_lib_prefix=no
  43433. - need_version=no
  43434. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  43435. + case $host_os in
  43436. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  43437. + *) need_version=no ;;
  43438. + esac
  43439. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  43440. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  43441. shlibpath_var=LD_LIBRARY_PATH
  43442. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  43443. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  43444. case $host_os in
  43445. openbsd2.[89] | openbsd2.[89].*)
  43446. shlibpath_overrides_runpath=no
  43447. @@ -7992,7 +9635,7 @@
  43448. os2*)
  43449. libname_spec='$name'
  43450. - shrext=".dll"
  43451. + shrext_cmds=".dll"
  43452. need_lib_prefix=no
  43453. library_names_spec='$libname${shared_ext} $libname.a'
  43454. dynamic_linker='OS/2 ld.exe'
  43455. @@ -8010,11 +9653,8 @@
  43456. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  43457. ;;
  43458. -sco3.2v5*)
  43459. - version_type=osf
  43460. - soname_spec='${libname}${release}${shared_ext}$major'
  43461. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43462. - shlibpath_var=LD_LIBRARY_PATH
  43463. +rdos*)
  43464. + dynamic_linker=no
  43465. ;;
  43466. solaris*)
  43467. @@ -8042,7 +9682,7 @@
  43468. need_version=yes
  43469. ;;
  43470. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  43471. +sysv4 | sysv4.3*)
  43472. version_type=linux
  43473. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43474. soname_spec='${libname}${release}${shared_ext}$major'
  43475. @@ -8051,7 +9691,6 @@
  43476. sni)
  43477. shlibpath_overrides_runpath=no
  43478. need_lib_prefix=no
  43479. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  43480. runpath_var=LD_RUN_PATH
  43481. ;;
  43482. siemens)
  43483. @@ -8075,15819 +9714,4821 @@
  43484. fi
  43485. ;;
  43486. -uts4*)
  43487. - version_type=linux
  43488. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  43489. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  43490. + version_type=freebsd-elf
  43491. + need_lib_prefix=no
  43492. + need_version=no
  43493. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  43494. soname_spec='${libname}${release}${shared_ext}$major'
  43495. shlibpath_var=LD_LIBRARY_PATH
  43496. - ;;
  43497. -
  43498. -*)
  43499. - dynamic_linker=no
  43500. - ;;
  43501. -esac
  43502. -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  43503. -echo "${ECHO_T}$dynamic_linker" >&6
  43504. -test "$dynamic_linker" = no && can_build_shared=no
  43505. -
  43506. -if test "x$enable_dlopen" != xyes; then
  43507. - enable_dlopen=unknown
  43508. - enable_dlopen_self=unknown
  43509. - enable_dlopen_self_static=unknown
  43510. -else
  43511. - lt_cv_dlopen=no
  43512. - lt_cv_dlopen_libs=
  43513. -
  43514. - case $host_os in
  43515. - beos*)
  43516. - lt_cv_dlopen="load_add_on"
  43517. - lt_cv_dlopen_libs=
  43518. - lt_cv_dlopen_self=yes
  43519. - ;;
  43520. -
  43521. - mingw* | pw32*)
  43522. - lt_cv_dlopen="LoadLibrary"
  43523. - lt_cv_dlopen_libs=
  43524. - ;;
  43525. -
  43526. - cygwin*)
  43527. - lt_cv_dlopen="dlopen"
  43528. - lt_cv_dlopen_libs=
  43529. - ;;
  43530. -
  43531. - darwin*)
  43532. - # if libdl is installed we need to link against it
  43533. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  43534. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  43535. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  43536. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43537. -else
  43538. - ac_check_lib_save_LIBS=$LIBS
  43539. -LIBS="-ldl $LIBS"
  43540. -cat >conftest.$ac_ext <<_ACEOF
  43541. -/* confdefs.h. */
  43542. -_ACEOF
  43543. -cat confdefs.h >>conftest.$ac_ext
  43544. -cat >>conftest.$ac_ext <<_ACEOF
  43545. -/* end confdefs.h. */
  43546. -
  43547. -/* Override any gcc2 internal prototype to avoid an error. */
  43548. -#ifdef __cplusplus
  43549. -extern "C"
  43550. -#endif
  43551. -/* We use char because int might match the return type of a gcc2
  43552. - builtin and then its argument prototype would still apply. */
  43553. -char dlopen ();
  43554. -int
  43555. -main ()
  43556. -{
  43557. -dlopen ();
  43558. - ;
  43559. - return 0;
  43560. -}
  43561. -_ACEOF
  43562. -rm -f conftest.$ac_objext conftest$ac_exeext
  43563. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  43564. - (eval $ac_link) 2>conftest.er1
  43565. - ac_status=$?
  43566. - grep -v '^ *+' conftest.er1 >conftest.err
  43567. - rm -f conftest.er1
  43568. - cat conftest.err >&5
  43569. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43570. - (exit $ac_status); } &&
  43571. - { ac_try='test -z "$ac_c_werror_flag"
  43572. - || test ! -s conftest.err'
  43573. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43574. - (eval $ac_try) 2>&5
  43575. - ac_status=$?
  43576. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43577. - (exit $ac_status); }; } &&
  43578. - { ac_try='test -s conftest$ac_exeext'
  43579. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43580. - (eval $ac_try) 2>&5
  43581. - ac_status=$?
  43582. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43583. - (exit $ac_status); }; }; then
  43584. - ac_cv_lib_dl_dlopen=yes
  43585. -else
  43586. - echo "$as_me: failed program was:" >&5
  43587. -sed 's/^/| /' conftest.$ac_ext >&5
  43588. -
  43589. -ac_cv_lib_dl_dlopen=no
  43590. -fi
  43591. -rm -f conftest.err conftest.$ac_objext \
  43592. - conftest$ac_exeext conftest.$ac_ext
  43593. -LIBS=$ac_check_lib_save_LIBS
  43594. -fi
  43595. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  43596. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  43597. -if test $ac_cv_lib_dl_dlopen = yes; then
  43598. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  43599. -else
  43600. -
  43601. - lt_cv_dlopen="dyld"
  43602. - lt_cv_dlopen_libs=
  43603. - lt_cv_dlopen_self=yes
  43604. -
  43605. -fi
  43606. -
  43607. - ;;
  43608. -
  43609. - *)
  43610. - echo "$as_me:$LINENO: checking for shl_load" >&5
  43611. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  43612. -if test "${ac_cv_func_shl_load+set}" = set; then
  43613. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43614. -else
  43615. - cat >conftest.$ac_ext <<_ACEOF
  43616. -/* confdefs.h. */
  43617. -_ACEOF
  43618. -cat confdefs.h >>conftest.$ac_ext
  43619. -cat >>conftest.$ac_ext <<_ACEOF
  43620. -/* end confdefs.h. */
  43621. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  43622. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  43623. -#define shl_load innocuous_shl_load
  43624. -
  43625. -/* System header to define __stub macros and hopefully few prototypes,
  43626. - which can conflict with char shl_load (); below.
  43627. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  43628. - <limits.h> exists even on freestanding compilers. */
  43629. -
  43630. -#ifdef __STDC__
  43631. -# include <limits.h>
  43632. -#else
  43633. -# include <assert.h>
  43634. -#endif
  43635. -
  43636. -#undef shl_load
  43637. -
  43638. -/* Override any gcc2 internal prototype to avoid an error. */
  43639. -#ifdef __cplusplus
  43640. -extern "C"
  43641. -{
  43642. -#endif
  43643. -/* We use char because int might match the return type of a gcc2
  43644. - builtin and then its argument prototype would still apply. */
  43645. -char shl_load ();
  43646. -/* The GNU C library defines this for functions which it implements
  43647. - to always fail with ENOSYS. Some functions are actually named
  43648. - something starting with __ and the normal name is an alias. */
  43649. -#if defined (__stub_shl_load) || defined (__stub___shl_load)
  43650. -choke me
  43651. -#else
  43652. -char (*f) () = shl_load;
  43653. -#endif
  43654. -#ifdef __cplusplus
  43655. -}
  43656. -#endif
  43657. -
  43658. -int
  43659. -main ()
  43660. -{
  43661. -return f != shl_load;
  43662. - ;
  43663. - return 0;
  43664. -}
  43665. -_ACEOF
  43666. -rm -f conftest.$ac_objext conftest$ac_exeext
  43667. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  43668. - (eval $ac_link) 2>conftest.er1
  43669. - ac_status=$?
  43670. - grep -v '^ *+' conftest.er1 >conftest.err
  43671. - rm -f conftest.er1
  43672. - cat conftest.err >&5
  43673. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43674. - (exit $ac_status); } &&
  43675. - { ac_try='test -z "$ac_c_werror_flag"
  43676. - || test ! -s conftest.err'
  43677. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43678. - (eval $ac_try) 2>&5
  43679. - ac_status=$?
  43680. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43681. - (exit $ac_status); }; } &&
  43682. - { ac_try='test -s conftest$ac_exeext'
  43683. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43684. - (eval $ac_try) 2>&5
  43685. - ac_status=$?
  43686. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43687. - (exit $ac_status); }; }; then
  43688. - ac_cv_func_shl_load=yes
  43689. -else
  43690. - echo "$as_me: failed program was:" >&5
  43691. -sed 's/^/| /' conftest.$ac_ext >&5
  43692. -
  43693. -ac_cv_func_shl_load=no
  43694. -fi
  43695. -rm -f conftest.err conftest.$ac_objext \
  43696. - conftest$ac_exeext conftest.$ac_ext
  43697. -fi
  43698. -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  43699. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  43700. -if test $ac_cv_func_shl_load = yes; then
  43701. - lt_cv_dlopen="shl_load"
  43702. -else
  43703. - echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  43704. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  43705. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  43706. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43707. -else
  43708. - ac_check_lib_save_LIBS=$LIBS
  43709. -LIBS="-ldld $LIBS"
  43710. -cat >conftest.$ac_ext <<_ACEOF
  43711. -/* confdefs.h. */
  43712. -_ACEOF
  43713. -cat confdefs.h >>conftest.$ac_ext
  43714. -cat >>conftest.$ac_ext <<_ACEOF
  43715. -/* end confdefs.h. */
  43716. -
  43717. -/* Override any gcc2 internal prototype to avoid an error. */
  43718. -#ifdef __cplusplus
  43719. -extern "C"
  43720. -#endif
  43721. -/* We use char because int might match the return type of a gcc2
  43722. - builtin and then its argument prototype would still apply. */
  43723. -char shl_load ();
  43724. -int
  43725. -main ()
  43726. -{
  43727. -shl_load ();
  43728. - ;
  43729. - return 0;
  43730. -}
  43731. -_ACEOF
  43732. -rm -f conftest.$ac_objext conftest$ac_exeext
  43733. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  43734. - (eval $ac_link) 2>conftest.er1
  43735. - ac_status=$?
  43736. - grep -v '^ *+' conftest.er1 >conftest.err
  43737. - rm -f conftest.er1
  43738. - cat conftest.err >&5
  43739. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43740. - (exit $ac_status); } &&
  43741. - { ac_try='test -z "$ac_c_werror_flag"
  43742. - || test ! -s conftest.err'
  43743. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43744. - (eval $ac_try) 2>&5
  43745. - ac_status=$?
  43746. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43747. - (exit $ac_status); }; } &&
  43748. - { ac_try='test -s conftest$ac_exeext'
  43749. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43750. - (eval $ac_try) 2>&5
  43751. - ac_status=$?
  43752. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43753. - (exit $ac_status); }; }; then
  43754. - ac_cv_lib_dld_shl_load=yes
  43755. -else
  43756. - echo "$as_me: failed program was:" >&5
  43757. -sed 's/^/| /' conftest.$ac_ext >&5
  43758. -
  43759. -ac_cv_lib_dld_shl_load=no
  43760. -fi
  43761. -rm -f conftest.err conftest.$ac_objext \
  43762. - conftest$ac_exeext conftest.$ac_ext
  43763. -LIBS=$ac_check_lib_save_LIBS
  43764. -fi
  43765. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  43766. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  43767. -if test $ac_cv_lib_dld_shl_load = yes; then
  43768. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  43769. -else
  43770. - echo "$as_me:$LINENO: checking for dlopen" >&5
  43771. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  43772. -if test "${ac_cv_func_dlopen+set}" = set; then
  43773. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43774. -else
  43775. - cat >conftest.$ac_ext <<_ACEOF
  43776. -/* confdefs.h. */
  43777. -_ACEOF
  43778. -cat confdefs.h >>conftest.$ac_ext
  43779. -cat >>conftest.$ac_ext <<_ACEOF
  43780. -/* end confdefs.h. */
  43781. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  43782. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  43783. -#define dlopen innocuous_dlopen
  43784. -
  43785. -/* System header to define __stub macros and hopefully few prototypes,
  43786. - which can conflict with char dlopen (); below.
  43787. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  43788. - <limits.h> exists even on freestanding compilers. */
  43789. -
  43790. -#ifdef __STDC__
  43791. -# include <limits.h>
  43792. -#else
  43793. -# include <assert.h>
  43794. -#endif
  43795. -
  43796. -#undef dlopen
  43797. -
  43798. -/* Override any gcc2 internal prototype to avoid an error. */
  43799. -#ifdef __cplusplus
  43800. -extern "C"
  43801. -{
  43802. -#endif
  43803. -/* We use char because int might match the return type of a gcc2
  43804. - builtin and then its argument prototype would still apply. */
  43805. -char dlopen ();
  43806. -/* The GNU C library defines this for functions which it implements
  43807. - to always fail with ENOSYS. Some functions are actually named
  43808. - something starting with __ and the normal name is an alias. */
  43809. -#if defined (__stub_dlopen) || defined (__stub___dlopen)
  43810. -choke me
  43811. -#else
  43812. -char (*f) () = dlopen;
  43813. -#endif
  43814. -#ifdef __cplusplus
  43815. -}
  43816. -#endif
  43817. -
  43818. -int
  43819. -main ()
  43820. -{
  43821. -return f != dlopen;
  43822. - ;
  43823. - return 0;
  43824. -}
  43825. -_ACEOF
  43826. -rm -f conftest.$ac_objext conftest$ac_exeext
  43827. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  43828. - (eval $ac_link) 2>conftest.er1
  43829. - ac_status=$?
  43830. - grep -v '^ *+' conftest.er1 >conftest.err
  43831. - rm -f conftest.er1
  43832. - cat conftest.err >&5
  43833. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43834. - (exit $ac_status); } &&
  43835. - { ac_try='test -z "$ac_c_werror_flag"
  43836. - || test ! -s conftest.err'
  43837. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43838. - (eval $ac_try) 2>&5
  43839. - ac_status=$?
  43840. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43841. - (exit $ac_status); }; } &&
  43842. - { ac_try='test -s conftest$ac_exeext'
  43843. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43844. - (eval $ac_try) 2>&5
  43845. - ac_status=$?
  43846. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43847. - (exit $ac_status); }; }; then
  43848. - ac_cv_func_dlopen=yes
  43849. -else
  43850. - echo "$as_me: failed program was:" >&5
  43851. -sed 's/^/| /' conftest.$ac_ext >&5
  43852. -
  43853. -ac_cv_func_dlopen=no
  43854. -fi
  43855. -rm -f conftest.err conftest.$ac_objext \
  43856. - conftest$ac_exeext conftest.$ac_ext
  43857. -fi
  43858. -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  43859. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  43860. -if test $ac_cv_func_dlopen = yes; then
  43861. - lt_cv_dlopen="dlopen"
  43862. -else
  43863. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  43864. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  43865. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  43866. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43867. -else
  43868. - ac_check_lib_save_LIBS=$LIBS
  43869. -LIBS="-ldl $LIBS"
  43870. -cat >conftest.$ac_ext <<_ACEOF
  43871. -/* confdefs.h. */
  43872. -_ACEOF
  43873. -cat confdefs.h >>conftest.$ac_ext
  43874. -cat >>conftest.$ac_ext <<_ACEOF
  43875. -/* end confdefs.h. */
  43876. -
  43877. -/* Override any gcc2 internal prototype to avoid an error. */
  43878. -#ifdef __cplusplus
  43879. -extern "C"
  43880. -#endif
  43881. -/* We use char because int might match the return type of a gcc2
  43882. - builtin and then its argument prototype would still apply. */
  43883. -char dlopen ();
  43884. -int
  43885. -main ()
  43886. -{
  43887. -dlopen ();
  43888. - ;
  43889. - return 0;
  43890. -}
  43891. -_ACEOF
  43892. -rm -f conftest.$ac_objext conftest$ac_exeext
  43893. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  43894. - (eval $ac_link) 2>conftest.er1
  43895. - ac_status=$?
  43896. - grep -v '^ *+' conftest.er1 >conftest.err
  43897. - rm -f conftest.er1
  43898. - cat conftest.err >&5
  43899. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43900. - (exit $ac_status); } &&
  43901. - { ac_try='test -z "$ac_c_werror_flag"
  43902. - || test ! -s conftest.err'
  43903. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43904. - (eval $ac_try) 2>&5
  43905. - ac_status=$?
  43906. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43907. - (exit $ac_status); }; } &&
  43908. - { ac_try='test -s conftest$ac_exeext'
  43909. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43910. - (eval $ac_try) 2>&5
  43911. - ac_status=$?
  43912. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43913. - (exit $ac_status); }; }; then
  43914. - ac_cv_lib_dl_dlopen=yes
  43915. -else
  43916. - echo "$as_me: failed program was:" >&5
  43917. -sed 's/^/| /' conftest.$ac_ext >&5
  43918. -
  43919. -ac_cv_lib_dl_dlopen=no
  43920. -fi
  43921. -rm -f conftest.err conftest.$ac_objext \
  43922. - conftest$ac_exeext conftest.$ac_ext
  43923. -LIBS=$ac_check_lib_save_LIBS
  43924. -fi
  43925. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  43926. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  43927. -if test $ac_cv_lib_dl_dlopen = yes; then
  43928. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  43929. -else
  43930. - echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  43931. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  43932. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  43933. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43934. -else
  43935. - ac_check_lib_save_LIBS=$LIBS
  43936. -LIBS="-lsvld $LIBS"
  43937. -cat >conftest.$ac_ext <<_ACEOF
  43938. -/* confdefs.h. */
  43939. -_ACEOF
  43940. -cat confdefs.h >>conftest.$ac_ext
  43941. -cat >>conftest.$ac_ext <<_ACEOF
  43942. -/* end confdefs.h. */
  43943. -
  43944. -/* Override any gcc2 internal prototype to avoid an error. */
  43945. -#ifdef __cplusplus
  43946. -extern "C"
  43947. -#endif
  43948. -/* We use char because int might match the return type of a gcc2
  43949. - builtin and then its argument prototype would still apply. */
  43950. -char dlopen ();
  43951. -int
  43952. -main ()
  43953. -{
  43954. -dlopen ();
  43955. - ;
  43956. - return 0;
  43957. -}
  43958. -_ACEOF
  43959. -rm -f conftest.$ac_objext conftest$ac_exeext
  43960. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  43961. - (eval $ac_link) 2>conftest.er1
  43962. - ac_status=$?
  43963. - grep -v '^ *+' conftest.er1 >conftest.err
  43964. - rm -f conftest.er1
  43965. - cat conftest.err >&5
  43966. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43967. - (exit $ac_status); } &&
  43968. - { ac_try='test -z "$ac_c_werror_flag"
  43969. - || test ! -s conftest.err'
  43970. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43971. - (eval $ac_try) 2>&5
  43972. - ac_status=$?
  43973. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43974. - (exit $ac_status); }; } &&
  43975. - { ac_try='test -s conftest$ac_exeext'
  43976. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43977. - (eval $ac_try) 2>&5
  43978. - ac_status=$?
  43979. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43980. - (exit $ac_status); }; }; then
  43981. - ac_cv_lib_svld_dlopen=yes
  43982. -else
  43983. - echo "$as_me: failed program was:" >&5
  43984. -sed 's/^/| /' conftest.$ac_ext >&5
  43985. -
  43986. -ac_cv_lib_svld_dlopen=no
  43987. -fi
  43988. -rm -f conftest.err conftest.$ac_objext \
  43989. - conftest$ac_exeext conftest.$ac_ext
  43990. -LIBS=$ac_check_lib_save_LIBS
  43991. -fi
  43992. -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  43993. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  43994. -if test $ac_cv_lib_svld_dlopen = yes; then
  43995. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  43996. -else
  43997. - echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  43998. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  43999. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  44000. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44001. -else
  44002. - ac_check_lib_save_LIBS=$LIBS
  44003. -LIBS="-ldld $LIBS"
  44004. -cat >conftest.$ac_ext <<_ACEOF
  44005. -/* confdefs.h. */
  44006. -_ACEOF
  44007. -cat confdefs.h >>conftest.$ac_ext
  44008. -cat >>conftest.$ac_ext <<_ACEOF
  44009. -/* end confdefs.h. */
  44010. -
  44011. -/* Override any gcc2 internal prototype to avoid an error. */
  44012. -#ifdef __cplusplus
  44013. -extern "C"
  44014. -#endif
  44015. -/* We use char because int might match the return type of a gcc2
  44016. - builtin and then its argument prototype would still apply. */
  44017. -char dld_link ();
  44018. -int
  44019. -main ()
  44020. -{
  44021. -dld_link ();
  44022. - ;
  44023. - return 0;
  44024. -}
  44025. -_ACEOF
  44026. -rm -f conftest.$ac_objext conftest$ac_exeext
  44027. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  44028. - (eval $ac_link) 2>conftest.er1
  44029. - ac_status=$?
  44030. - grep -v '^ *+' conftest.er1 >conftest.err
  44031. - rm -f conftest.er1
  44032. - cat conftest.err >&5
  44033. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44034. - (exit $ac_status); } &&
  44035. - { ac_try='test -z "$ac_c_werror_flag"
  44036. - || test ! -s conftest.err'
  44037. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  44038. - (eval $ac_try) 2>&5
  44039. - ac_status=$?
  44040. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44041. - (exit $ac_status); }; } &&
  44042. - { ac_try='test -s conftest$ac_exeext'
  44043. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  44044. - (eval $ac_try) 2>&5
  44045. - ac_status=$?
  44046. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44047. - (exit $ac_status); }; }; then
  44048. - ac_cv_lib_dld_dld_link=yes
  44049. -else
  44050. - echo "$as_me: failed program was:" >&5
  44051. -sed 's/^/| /' conftest.$ac_ext >&5
  44052. -
  44053. -ac_cv_lib_dld_dld_link=no
  44054. -fi
  44055. -rm -f conftest.err conftest.$ac_objext \
  44056. - conftest$ac_exeext conftest.$ac_ext
  44057. -LIBS=$ac_check_lib_save_LIBS
  44058. -fi
  44059. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  44060. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  44061. -if test $ac_cv_lib_dld_dld_link = yes; then
  44062. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  44063. -fi
  44064. -
  44065. -
  44066. -fi
  44067. -
  44068. -
  44069. -fi
  44070. -
  44071. -
  44072. -fi
  44073. -
  44074. -
  44075. -fi
  44076. -
  44077. -
  44078. -fi
  44079. -
  44080. - ;;
  44081. - esac
  44082. -
  44083. - if test "x$lt_cv_dlopen" != xno; then
  44084. - enable_dlopen=yes
  44085. - else
  44086. - enable_dlopen=no
  44087. - fi
  44088. -
  44089. - case $lt_cv_dlopen in
  44090. - dlopen)
  44091. - save_CPPFLAGS="$CPPFLAGS"
  44092. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  44093. -
  44094. - save_LDFLAGS="$LDFLAGS"
  44095. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  44096. -
  44097. - save_LIBS="$LIBS"
  44098. - LIBS="$lt_cv_dlopen_libs $LIBS"
  44099. -
  44100. - echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  44101. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  44102. -if test "${lt_cv_dlopen_self+set}" = set; then
  44103. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44104. -else
  44105. - if test "$cross_compiling" = yes; then :
  44106. - lt_cv_dlopen_self=cross
  44107. -else
  44108. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  44109. - lt_status=$lt_dlunknown
  44110. - cat > conftest.$ac_ext <<EOF
  44111. -#line 8698 "configure"
  44112. -#include "confdefs.h"
  44113. -
  44114. -#if HAVE_DLFCN_H
  44115. -#include <dlfcn.h>
  44116. -#endif
  44117. -
  44118. -#include <stdio.h>
  44119. -
  44120. -#ifdef RTLD_GLOBAL
  44121. -# define LT_DLGLOBAL RTLD_GLOBAL
  44122. -#else
  44123. -# ifdef DL_GLOBAL
  44124. -# define LT_DLGLOBAL DL_GLOBAL
  44125. -# else
  44126. -# define LT_DLGLOBAL 0
  44127. -# endif
  44128. -#endif
  44129. -
  44130. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  44131. - find out it does not work in some platform. */
  44132. -#ifndef LT_DLLAZY_OR_NOW
  44133. -# ifdef RTLD_LAZY
  44134. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  44135. -# else
  44136. -# ifdef DL_LAZY
  44137. -# define LT_DLLAZY_OR_NOW DL_LAZY
  44138. -# else
  44139. -# ifdef RTLD_NOW
  44140. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  44141. -# else
  44142. -# ifdef DL_NOW
  44143. -# define LT_DLLAZY_OR_NOW DL_NOW
  44144. -# else
  44145. -# define LT_DLLAZY_OR_NOW 0
  44146. -# endif
  44147. -# endif
  44148. -# endif
  44149. -# endif
  44150. -#endif
  44151. -
  44152. -#ifdef __cplusplus
  44153. -extern "C" void exit (int);
  44154. -#endif
  44155. -
  44156. -void fnord() { int i=42;}
  44157. -int main ()
  44158. -{
  44159. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  44160. - int status = $lt_dlunknown;
  44161. -
  44162. - if (self)
  44163. - {
  44164. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  44165. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  44166. - /* dlclose (self); */
  44167. - }
  44168. -
  44169. - exit (status);
  44170. -}
  44171. -EOF
  44172. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  44173. - (eval $ac_link) 2>&5
  44174. - ac_status=$?
  44175. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44176. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  44177. - (./conftest; exit; ) 2>/dev/null
  44178. - lt_status=$?
  44179. - case x$lt_status in
  44180. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  44181. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  44182. - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  44183. - esac
  44184. - else :
  44185. - # compilation failed
  44186. - lt_cv_dlopen_self=no
  44187. - fi
  44188. -fi
  44189. -rm -fr conftest*
  44190. -
  44191. -
  44192. -fi
  44193. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  44194. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  44195. -
  44196. - if test "x$lt_cv_dlopen_self" = xyes; then
  44197. - LDFLAGS="$LDFLAGS $link_static_flag"
  44198. - echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  44199. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  44200. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  44201. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44202. -else
  44203. - if test "$cross_compiling" = yes; then :
  44204. - lt_cv_dlopen_self_static=cross
  44205. -else
  44206. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  44207. - lt_status=$lt_dlunknown
  44208. - cat > conftest.$ac_ext <<EOF
  44209. -#line 8796 "configure"
  44210. -#include "confdefs.h"
  44211. -
  44212. -#if HAVE_DLFCN_H
  44213. -#include <dlfcn.h>
  44214. -#endif
  44215. -
  44216. -#include <stdio.h>
  44217. -
  44218. -#ifdef RTLD_GLOBAL
  44219. -# define LT_DLGLOBAL RTLD_GLOBAL
  44220. -#else
  44221. -# ifdef DL_GLOBAL
  44222. -# define LT_DLGLOBAL DL_GLOBAL
  44223. -# else
  44224. -# define LT_DLGLOBAL 0
  44225. -# endif
  44226. -#endif
  44227. -
  44228. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  44229. - find out it does not work in some platform. */
  44230. -#ifndef LT_DLLAZY_OR_NOW
  44231. -# ifdef RTLD_LAZY
  44232. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  44233. -# else
  44234. -# ifdef DL_LAZY
  44235. -# define LT_DLLAZY_OR_NOW DL_LAZY
  44236. -# else
  44237. -# ifdef RTLD_NOW
  44238. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  44239. -# else
  44240. -# ifdef DL_NOW
  44241. -# define LT_DLLAZY_OR_NOW DL_NOW
  44242. -# else
  44243. -# define LT_DLLAZY_OR_NOW 0
  44244. -# endif
  44245. -# endif
  44246. -# endif
  44247. -# endif
  44248. -#endif
  44249. -
  44250. -#ifdef __cplusplus
  44251. -extern "C" void exit (int);
  44252. -#endif
  44253. -
  44254. -void fnord() { int i=42;}
  44255. -int main ()
  44256. -{
  44257. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  44258. - int status = $lt_dlunknown;
  44259. -
  44260. - if (self)
  44261. - {
  44262. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  44263. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  44264. - /* dlclose (self); */
  44265. - }
  44266. -
  44267. - exit (status);
  44268. -}
  44269. -EOF
  44270. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  44271. - (eval $ac_link) 2>&5
  44272. - ac_status=$?
  44273. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44274. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  44275. - (./conftest; exit; ) 2>/dev/null
  44276. - lt_status=$?
  44277. - case x$lt_status in
  44278. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  44279. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  44280. - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  44281. - esac
  44282. - else :
  44283. - # compilation failed
  44284. - lt_cv_dlopen_self_static=no
  44285. - fi
  44286. -fi
  44287. -rm -fr conftest*
  44288. -
  44289. -
  44290. -fi
  44291. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  44292. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  44293. - fi
  44294. -
  44295. - CPPFLAGS="$save_CPPFLAGS"
  44296. - LDFLAGS="$save_LDFLAGS"
  44297. - LIBS="$save_LIBS"
  44298. - ;;
  44299. - esac
  44300. -
  44301. - case $lt_cv_dlopen_self in
  44302. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  44303. - *) enable_dlopen_self=unknown ;;
  44304. - esac
  44305. -
  44306. - case $lt_cv_dlopen_self_static in
  44307. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  44308. - *) enable_dlopen_self_static=unknown ;;
  44309. - esac
  44310. -fi
  44311. -
  44312. -
  44313. -# Report which librarie types wil actually be built
  44314. -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  44315. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  44316. -echo "$as_me:$LINENO: result: $can_build_shared" >&5
  44317. -echo "${ECHO_T}$can_build_shared" >&6
  44318. -
  44319. -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  44320. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  44321. -test "$can_build_shared" = "no" && enable_shared=no
  44322. -
  44323. -# On AIX, shared libraries and static libraries use the same namespace, and
  44324. -# are all built from PIC.
  44325. -case "$host_os" in
  44326. -aix3*)
  44327. - test "$enable_shared" = yes && enable_static=no
  44328. - if test -n "$RANLIB"; then
  44329. - archive_cmds="$archive_cmds\${_S_}\$RANLIB \$lib"
  44330. - postinstall_cmds='$RANLIB $lib'
  44331. - fi
  44332. - ;;
  44333. -
  44334. -aix4*)
  44335. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  44336. - test "$enable_shared" = yes && enable_static=no
  44337. - fi
  44338. - ;;
  44339. - darwin* | rhapsody*)
  44340. - if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
  44341. - archive_cmds_need_lc=no
  44342. - case "$host_os" in
  44343. - rhapsody* | darwin1.[012])
  44344. - allow_undefined_flag='-undefined suppress'
  44345. - ;;
  44346. - darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
  44347. - test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
  44348. - ;;
  44349. - *) # Darwin 7.0 on
  44350. - case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
  44351. - 10.[012])
  44352. - test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
  44353. - ;;
  44354. - *) # 10.3 on
  44355. - if test -z ${LD_TWOLEVEL_NAMESPACE}; then
  44356. - allow_undefined_flag='-flat_namespace -undefined suppress'
  44357. - else
  44358. - allow_undefined_flag='-undefined dynamic_lookup'
  44359. - fi
  44360. - ;;
  44361. - esac
  44362. - ;;
  44363. - esac
  44364. - # FIXME: Relying on posixy $() will cause problems for
  44365. - # cross-compilation, but unfortunately the echo tests do not
  44366. - # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  44367. - # `"' quotes if we put them in here... so don't!
  44368. - output_verbose_link_cmd='echo'
  44369. - archive_cmds='$CC -dynamiclib $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
  44370. - module_cmds='$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
  44371. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  44372. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  44373. - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  44374. - hardcode_direct=no
  44375. - hardcode_automatic=yes
  44376. - hardcode_shlibpath_var=unsupported
  44377. - whole_archive_flag_spec='-all_load $convenience'
  44378. - link_all_deplibs=yes
  44379. - fi
  44380. - ;;
  44381. -esac
  44382. -echo "$as_me:$LINENO: result: $enable_shared" >&5
  44383. -echo "${ECHO_T}$enable_shared" >&6
  44384. -
  44385. -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  44386. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  44387. -# Make sure either enable_shared or enable_static is yes.
  44388. -test "$enable_shared" = yes || enable_static=yes
  44389. -echo "$as_me:$LINENO: result: $enable_static" >&5
  44390. -echo "${ECHO_T}$enable_static" >&6
  44391. -
  44392. -# The else clause should only fire when bootstrapping the
  44393. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  44394. -# with your package, and you will get complaints that there are
  44395. -# no rules to generate ltmain.sh.
  44396. -if test -f "$ltmain"; then
  44397. - # See if we are running on zsh, and set the options which allow our commands through
  44398. - # without removal of \ escapes.
  44399. - if test -n "${ZSH_VERSION+set}" ; then
  44400. - setopt NO_GLOB_SUBST
  44401. - fi
  44402. - # Now quote all the things that may contain metacharacters while being
  44403. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  44404. - # variables and quote the copies for generation of the libtool script.
  44405. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
  44406. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  44407. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  44408. - deplibs_check_method reload_flag reload_cmds need_locks \
  44409. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  44410. - lt_cv_sys_global_symbol_to_c_name_address \
  44411. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  44412. - old_postinstall_cmds old_postuninstall_cmds \
  44413. - compiler \
  44414. - CC \
  44415. - LD \
  44416. - lt_prog_compiler_wl \
  44417. - lt_prog_compiler_pic \
  44418. - lt_prog_compiler_static \
  44419. - lt_prog_compiler_no_builtin_flag \
  44420. - export_dynamic_flag_spec \
  44421. - thread_safe_flag_spec \
  44422. - whole_archive_flag_spec \
  44423. - enable_shared_with_static_runtimes \
  44424. - old_archive_cmds \
  44425. - old_archive_from_new_cmds \
  44426. - predep_objects \
  44427. - postdep_objects \
  44428. - predeps \
  44429. - postdeps \
  44430. - compiler_lib_search_path \
  44431. - archive_cmds \
  44432. - archive_expsym_cmds \
  44433. - postinstall_cmds \
  44434. - postuninstall_cmds \
  44435. - old_archive_from_expsyms_cmds \
  44436. - allow_undefined_flag \
  44437. - no_undefined_flag \
  44438. - export_symbols_cmds \
  44439. - hardcode_libdir_flag_spec \
  44440. - hardcode_libdir_flag_spec_ld \
  44441. - hardcode_libdir_separator \
  44442. - hardcode_automatic \
  44443. - module_cmds \
  44444. - module_expsym_cmds \
  44445. - lt_cv_prog_compiler_c_o \
  44446. - exclude_expsyms \
  44447. - include_expsyms; do
  44448. -
  44449. - case $var in
  44450. - old_archive_cmds | \
  44451. - old_archive_from_new_cmds | \
  44452. - archive_cmds | \
  44453. - archive_expsym_cmds | \
  44454. - module_cmds | \
  44455. - module_expsym_cmds | \
  44456. - old_archive_from_expsyms_cmds | \
  44457. - export_symbols_cmds | \
  44458. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  44459. - postinstall_cmds | postuninstall_cmds | \
  44460. - old_postinstall_cmds | old_postuninstall_cmds | \
  44461. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  44462. - # Double-quote double-evaled strings.
  44463. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
  44464. - ;;
  44465. - *)
  44466. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  44467. - ;;
  44468. - esac
  44469. - done
  44470. -
  44471. - case $lt_echo in
  44472. - *'\$0 --fallback-echo"')
  44473. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  44474. - ;;
  44475. - esac
  44476. -
  44477. -cfgfile="${ofile}T"
  44478. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  44479. - $rm -f "$cfgfile"
  44480. - { echo "$as_me:$LINENO: creating $ofile" >&5
  44481. -echo "$as_me: creating $ofile" >&6;}
  44482. -
  44483. - cat <<__EOF__ >> "$cfgfile"
  44484. -#! $SHELL
  44485. -
  44486. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  44487. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  44488. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  44489. -#
  44490. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  44491. -# Free Software Foundation, Inc.
  44492. -#
  44493. -# This file is part of GNU Libtool:
  44494. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  44495. -#
  44496. -# This program is free software; you can redistribute it and/or modify
  44497. -# it under the terms of the GNU General Public License as published by
  44498. -# the Free Software Foundation; either version 2 of the License, or
  44499. -# (at your option) any later version.
  44500. -#
  44501. -# This program is distributed in the hope that it will be useful, but
  44502. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  44503. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  44504. -# General Public License for more details.
  44505. -#
  44506. -# You should have received a copy of the GNU General Public License
  44507. -# along with this program; if not, write to the Free Software
  44508. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  44509. -#
  44510. -# As a special exception to the GNU General Public License, if you
  44511. -# distribute this file as part of a program that contains a
  44512. -# configuration script generated by Autoconf, you may include it under
  44513. -# the same distribution terms that you use for the rest of that program.
  44514. -
  44515. -# A sed program that does not truncate output.
  44516. -SED=$lt_SED
  44517. -
  44518. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  44519. -Xsed="$SED -e s/^X//"
  44520. -
  44521. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  44522. -# if CDPATH is set.
  44523. -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  44524. -
  44525. -# The names of the tagged configurations supported by this script.
  44526. -available_tags=
  44527. -
  44528. -# ### BEGIN LIBTOOL CONFIG
  44529. -
  44530. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  44531. -
  44532. -# Set the command separator (default: ~)
  44533. -_S_=\${LIBTOOL_CMD_SEP-\~}
  44534. -
  44535. -# Shell to use when invoking shell scripts.
  44536. -SHELL=$lt_SHELL
  44537. -
  44538. -# Whether or not to build shared libraries.
  44539. -build_libtool_libs=$enable_shared
  44540. -
  44541. -# Whether or not to build static libraries.
  44542. -build_old_libs=$enable_static
  44543. -
  44544. -# Whether or not to add -lc for building shared libraries.
  44545. -build_libtool_need_lc=$archive_cmds_need_lc
  44546. -
  44547. -# Whether or not to disallow shared libs when runtime libs are static
  44548. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  44549. -
  44550. -# Whether or not to optimize for fast installation.
  44551. -fast_install=$enable_fast_install
  44552. -
  44553. -# The host system.
  44554. -host_alias=$host_alias
  44555. -host=$host
  44556. -
  44557. -# An echo program that does not interpret backslashes.
  44558. -echo=$lt_echo
  44559. -
  44560. -# The archiver.
  44561. -AR=$lt_AR
  44562. -AR_FLAGS=$lt_AR_FLAGS
  44563. -
  44564. -# A C compiler.
  44565. -LTCC=$lt_LTCC
  44566. -
  44567. -# A language-specific compiler.
  44568. -CC=$lt_compiler
  44569. -
  44570. -# Is the compiler the GNU C compiler?
  44571. -with_gcc=$GCC
  44572. -
  44573. -# An ERE matcher.
  44574. -EGREP=$lt_EGREP
  44575. -
  44576. -# The linker used to build libraries.
  44577. -LD=$lt_LD
  44578. -
  44579. -# Whether we need hard or soft links.
  44580. -LN_S=$lt_LN_S
  44581. -
  44582. -# A BSD-compatible nm program.
  44583. -NM=$lt_NM
  44584. -
  44585. -# A symbol stripping program
  44586. -STRIP=$STRIP
  44587. -
  44588. -# Used to examine libraries when file_magic_cmd begins "file"
  44589. -MAGIC_CMD=$MAGIC_CMD
  44590. -
  44591. -# Used on cygwin: DLL creation program.
  44592. -DLLTOOL="$DLLTOOL"
  44593. -
  44594. -# Used on cygwin: object dumper.
  44595. -OBJDUMP="$OBJDUMP"
  44596. -
  44597. -# Used on cygwin: assembler.
  44598. -AS="$AS"
  44599. -
  44600. -# The name of the directory that contains temporary libtool files.
  44601. -objdir=$objdir
  44602. -
  44603. -# How to create reloadable object files.
  44604. -reload_flag=$lt_reload_flag
  44605. -reload_cmds=$lt_reload_cmds
  44606. -
  44607. -# How to pass a linker flag through the compiler.
  44608. -wl=$lt_lt_prog_compiler_wl
  44609. -
  44610. -# Object file suffix (normally "o").
  44611. -objext="$ac_objext"
  44612. -
  44613. -# Old archive suffix (normally "a").
  44614. -libext="$libext"
  44615. -
  44616. -# Shared library suffix (normally ".so").
  44617. -shrext='$shrext'
  44618. -
  44619. -# Executable file suffix (normally "").
  44620. -exeext="$exeext"
  44621. -
  44622. -# Additional compiler flags for building library objects.
  44623. -pic_flag=$lt_lt_prog_compiler_pic
  44624. -pic_mode=$pic_mode
  44625. -
  44626. -# What is the maximum length of a command?
  44627. -max_cmd_len=$lt_cv_sys_max_cmd_len
  44628. -
  44629. -# Does compiler simultaneously support -c and -o options?
  44630. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  44631. -
  44632. -# Must we lock files when doing compilation ?
  44633. -need_locks=$lt_need_locks
  44634. -
  44635. -# Do we need the lib prefix for modules?
  44636. -need_lib_prefix=$need_lib_prefix
  44637. -
  44638. -# Do we need a version for libraries?
  44639. -need_version=$need_version
  44640. -
  44641. -# Whether dlopen is supported.
  44642. -dlopen_support=$enable_dlopen
  44643. -
  44644. -# Whether dlopen of programs is supported.
  44645. -dlopen_self=$enable_dlopen_self
  44646. -
  44647. -# Whether dlopen of statically linked programs is supported.
  44648. -dlopen_self_static=$enable_dlopen_self_static
  44649. -
  44650. -# Compiler flag to prevent dynamic linking.
  44651. -link_static_flag=$lt_lt_prog_compiler_static
  44652. -
  44653. -# Compiler flag to turn off builtin functions.
  44654. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  44655. -
  44656. -# Compiler flag to allow reflexive dlopens.
  44657. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  44658. -
  44659. -# Compiler flag to generate shared objects directly from archives.
  44660. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  44661. -
  44662. -# Compiler flag to generate thread-safe objects.
  44663. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  44664. -
  44665. -# Library versioning type.
  44666. -version_type=$version_type
  44667. -
  44668. -# Format of library name prefix.
  44669. -libname_spec=$lt_libname_spec
  44670. -
  44671. -# List of archive names. First name is the real one, the rest are links.
  44672. -# The last name is the one that the linker finds with -lNAME.
  44673. -library_names_spec=$lt_library_names_spec
  44674. -
  44675. -# The coded name of the library, if different from the real name.
  44676. -soname_spec=$lt_soname_spec
  44677. -
  44678. -# Commands used to build and install an old-style archive.
  44679. -RANLIB=$lt_RANLIB
  44680. -old_archive_cmds=$lt_old_archive_cmds
  44681. -old_postinstall_cmds=$lt_old_postinstall_cmds
  44682. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  44683. -
  44684. -# Create an old-style archive from a shared archive.
  44685. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  44686. -
  44687. -# Create a temporary old-style archive to link instead of a shared archive.
  44688. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  44689. -
  44690. -# Commands used to build and install a shared archive.
  44691. -archive_cmds=$lt_archive_cmds
  44692. -archive_expsym_cmds=$lt_archive_expsym_cmds
  44693. -postinstall_cmds=$lt_postinstall_cmds
  44694. -postuninstall_cmds=$lt_postuninstall_cmds
  44695. -
  44696. -# Commands used to build a loadable module (assumed same as above if empty)
  44697. -module_cmds=$lt_module_cmds
  44698. -module_expsym_cmds=$lt_module_expsym_cmds
  44699. -
  44700. -# Commands to strip libraries.
  44701. -old_striplib=$lt_old_striplib
  44702. -striplib=$lt_striplib
  44703. -
  44704. -# Dependencies to place before the objects being linked to create a
  44705. -# shared library.
  44706. -predep_objects=$lt_predep_objects
  44707. -
  44708. -# Dependencies to place after the objects being linked to create a
  44709. -# shared library.
  44710. -postdep_objects=$lt_postdep_objects
  44711. -
  44712. -# Dependencies to place before the objects being linked to create a
  44713. -# shared library.
  44714. -predeps=$lt_predeps
  44715. -
  44716. -# Dependencies to place after the objects being linked to create a
  44717. -# shared library.
  44718. -postdeps=$lt_postdeps
  44719. -
  44720. -# The library search path used internally by the compiler when linking
  44721. -# a shared library.
  44722. -compiler_lib_search_path=$lt_compiler_lib_search_path
  44723. -
  44724. -# Method to check whether dependent libraries are shared objects.
  44725. -deplibs_check_method=$lt_deplibs_check_method
  44726. -
  44727. -# Command to use when deplibs_check_method == file_magic.
  44728. -file_magic_cmd=$lt_file_magic_cmd
  44729. -
  44730. -# Flag that allows shared libraries with undefined symbols to be built.
  44731. -allow_undefined_flag=$lt_allow_undefined_flag
  44732. -
  44733. -# Flag that forces no undefined symbols.
  44734. -no_undefined_flag=$lt_no_undefined_flag
  44735. -
  44736. -# Commands used to finish a libtool library installation in a directory.
  44737. -finish_cmds=$lt_finish_cmds
  44738. -
  44739. -# Same as above, but a single script fragment to be evaled but not shown.
  44740. -finish_eval=$lt_finish_eval
  44741. -
  44742. -# Take the output of nm and produce a listing of raw symbols and C names.
  44743. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  44744. -
  44745. -# Transform the output of nm in a proper C declaration
  44746. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  44747. -
  44748. -# Transform the output of nm in a C name address pair
  44749. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  44750. -
  44751. -# This is the shared library runtime path variable.
  44752. -runpath_var=$runpath_var
  44753. -
  44754. -# This is the shared library path variable.
  44755. -shlibpath_var=$shlibpath_var
  44756. -
  44757. -# Is shlibpath searched before the hard-coded library search path?
  44758. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  44759. -
  44760. -# How to hardcode a shared library path into an executable.
  44761. -hardcode_action=$hardcode_action
  44762. -
  44763. -# Whether we should hardcode library paths into libraries.
  44764. -hardcode_into_libs=$hardcode_into_libs
  44765. -
  44766. -# Flag to hardcode \$libdir into a binary during linking.
  44767. -# This must work even if \$libdir does not exist.
  44768. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  44769. -
  44770. -# If ld is used when linking, flag to hardcode \$libdir into
  44771. -# a binary during linking. This must work even if \$libdir does
  44772. -# not exist.
  44773. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  44774. -
  44775. -# Whether we need a single -rpath flag with a separated argument.
  44776. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  44777. -
  44778. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  44779. -# resulting binary.
  44780. -hardcode_direct=$hardcode_direct
  44781. -
  44782. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  44783. -# resulting binary.
  44784. -hardcode_minus_L=$hardcode_minus_L
  44785. -
  44786. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  44787. -# the resulting binary.
  44788. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  44789. -
  44790. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  44791. -# and all subsequent libraries and executables linked against it.
  44792. -hardcode_automatic=$hardcode_automatic
  44793. -
  44794. -# Variables whose values should be saved in libtool wrapper scripts and
  44795. -# restored at relink time.
  44796. -variables_saved_for_relink="$variables_saved_for_relink"
  44797. -
  44798. -# Whether libtool must link a program against all its dependency libraries.
  44799. -link_all_deplibs=$link_all_deplibs
  44800. -
  44801. -# Compile-time system search path for libraries
  44802. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  44803. -
  44804. -# Run-time system search path for libraries
  44805. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  44806. -
  44807. -# Fix the shell variable \$srcfile for the compiler.
  44808. -fix_srcfile_path="$fix_srcfile_path"
  44809. -
  44810. -# Set to yes if exported symbols are required.
  44811. -always_export_symbols=$always_export_symbols
  44812. -
  44813. -# The commands to list exported symbols.
  44814. -export_symbols_cmds=$lt_export_symbols_cmds
  44815. -
  44816. -# The commands to extract the exported symbol list from a shared archive.
  44817. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  44818. -
  44819. -# Symbols that should not be listed in the preloaded symbols.
  44820. -exclude_expsyms=$lt_exclude_expsyms
  44821. -
  44822. -# Symbols that must always be exported.
  44823. -include_expsyms=$lt_include_expsyms
  44824. -
  44825. -# ### END LIBTOOL CONFIG
  44826. -
  44827. -__EOF__
  44828. -
  44829. -
  44830. - case $host_os in
  44831. - aix3*)
  44832. - cat <<\EOF >> "$cfgfile"
  44833. -
  44834. -# AIX sometimes has problems with the GCC collect2 program. For some
  44835. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  44836. -# vanish in a puff of smoke.
  44837. -if test "X${COLLECT_NAMES+set}" != Xset; then
  44838. - COLLECT_NAMES=
  44839. - export COLLECT_NAMES
  44840. -fi
  44841. -EOF
  44842. - ;;
  44843. - esac
  44844. -
  44845. - # We use sed instead of cat because bash on DJGPP gets confused if
  44846. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  44847. - # text mode, it properly converts lines to CR/LF. This bash problem
  44848. - # is reportedly fixed, but why not run on old versions too?
  44849. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  44850. -
  44851. - mv -f "$cfgfile" "$ofile" || \
  44852. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  44853. - chmod +x "$ofile"
  44854. -
  44855. -else
  44856. - # If there is no Makefile yet, we rely on a make rule to execute
  44857. - # `config.status --recheck' to rerun these tests and create the
  44858. - # libtool script then.
  44859. - test -f Makefile && make "$ltmain"
  44860. -fi
  44861. -
  44862. -
  44863. -ac_ext=c
  44864. -ac_cpp='$CPP $CPPFLAGS'
  44865. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44866. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44867. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44868. -
  44869. -CC="$lt_save_CC"
  44870. -
  44871. -
  44872. -# Check whether --with-tags or --without-tags was given.
  44873. -if test "${with_tags+set}" = set; then
  44874. - withval="$with_tags"
  44875. - tagnames="$withval"
  44876. -fi;
  44877. -
  44878. -if test -f "$ltmain" && test -n "$tagnames"; then
  44879. - if test ! -f "${ofile}"; then
  44880. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  44881. -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  44882. - fi
  44883. -
  44884. - if test -z "$LTCC"; then
  44885. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  44886. - if test -z "$LTCC"; then
  44887. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  44888. -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  44889. - else
  44890. - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  44891. -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  44892. - fi
  44893. - fi
  44894. -
  44895. - # Extract list of available tagged configurations in $ofile.
  44896. - # Note that this assumes the entire list is on one line.
  44897. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  44898. -
  44899. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  44900. - for tagname in $tagnames; do
  44901. - IFS="$lt_save_ifs"
  44902. - # Check whether tagname contains only valid characters
  44903. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  44904. - "") ;;
  44905. - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  44906. -echo "$as_me: error: invalid tag name: $tagname" >&2;}
  44907. - { (exit 1); exit 1; }; }
  44908. - ;;
  44909. - esac
  44910. -
  44911. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  44912. - then
  44913. - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  44914. -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  44915. - { (exit 1); exit 1; }; }
  44916. - fi
  44917. -
  44918. - # Update the list of available tags.
  44919. - if test -n "$tagname"; then
  44920. - echo appending configuration tag \"$tagname\" to $ofile
  44921. -
  44922. - case $tagname in
  44923. - CXX)
  44924. - if test -n "$CXX" && test "X$CXX" != "Xno"; then
  44925. - ac_ext=cc
  44926. -ac_cpp='$CXXCPP $CPPFLAGS'
  44927. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44928. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44929. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  44930. -
  44931. -
  44932. -
  44933. -
  44934. -archive_cmds_need_lc_CXX=no
  44935. -allow_undefined_flag_CXX=
  44936. -always_export_symbols_CXX=no
  44937. -archive_expsym_cmds_CXX=
  44938. -export_dynamic_flag_spec_CXX=
  44939. -hardcode_direct_CXX=no
  44940. -hardcode_libdir_flag_spec_CXX=
  44941. -hardcode_libdir_flag_spec_ld_CXX=
  44942. -hardcode_libdir_separator_CXX=
  44943. -hardcode_minus_L_CXX=no
  44944. -hardcode_automatic_CXX=no
  44945. -module_cmds_CXX=
  44946. -module_expsym_cmds_CXX=
  44947. -link_all_deplibs_CXX=unknown
  44948. -old_archive_cmds_CXX=$old_archive_cmds
  44949. -no_undefined_flag_CXX=
  44950. -whole_archive_flag_spec_CXX=
  44951. -enable_shared_with_static_runtimes_CXX=no
  44952. -
  44953. -# Dependencies to place before and after the object being linked:
  44954. -predep_objects_CXX=
  44955. -postdep_objects_CXX=
  44956. -predeps_CXX=
  44957. -postdeps_CXX=
  44958. -compiler_lib_search_path_CXX=
  44959. -
  44960. -# Source file extension for C++ test sources.
  44961. -ac_ext=cc
  44962. -
  44963. -# Object file extension for compiled C++ test sources.
  44964. -objext=o
  44965. -objext_CXX=$objext
  44966. -
  44967. -# Code to be used in simple compile tests
  44968. -lt_simple_compile_test_code="int some_variable = 0;\n"
  44969. -
  44970. -# Code to be used in simple link tests
  44971. -lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
  44972. -
  44973. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  44974. -
  44975. -# If no C compiler was specified, use CC.
  44976. -LTCC=${LTCC-"$CC"}
  44977. -
  44978. -# Allow CC to be a program name with arguments.
  44979. -compiler=$CC
  44980. -
  44981. -
  44982. -# Allow CC to be a program name with arguments.
  44983. -lt_save_CC=$CC
  44984. -lt_save_LD=$LD
  44985. -lt_save_GCC=$GCC
  44986. -GCC=$GXX
  44987. -lt_save_with_gnu_ld=$with_gnu_ld
  44988. -lt_save_path_LD=$lt_cv_path_LD
  44989. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  44990. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  44991. -else
  44992. - unset lt_cv_prog_gnu_ld
  44993. -fi
  44994. -if test -n "${lt_cv_path_LDCXX+set}"; then
  44995. - lt_cv_path_LD=$lt_cv_path_LDCXX
  44996. -else
  44997. - unset lt_cv_path_LD
  44998. -fi
  44999. -test -z "${LDCXX+set}" || LD=$LDCXX
  45000. -CC=${CXX-"c++"}
  45001. -compiler=$CC
  45002. -compiler_CXX=$CC
  45003. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  45004. -
  45005. -# We don't want -fno-exception wen compiling C++ code, so set the
  45006. -# no_builtin_flag separately
  45007. -if test "$GXX" = yes; then
  45008. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  45009. -else
  45010. - lt_prog_compiler_no_builtin_flag_CXX=
  45011. -fi
  45012. -
  45013. -if test "$GXX" = yes; then
  45014. - # Set up default GNU C++ configuration
  45015. -
  45016. -
  45017. -# Check whether --with-gnu-ld or --without-gnu-ld was given.
  45018. -if test "${with_gnu_ld+set}" = set; then
  45019. - withval="$with_gnu_ld"
  45020. - test "$withval" = no || with_gnu_ld=yes
  45021. -else
  45022. - with_gnu_ld=no
  45023. -fi;
  45024. -ac_prog=ld
  45025. -if test "$GCC" = yes; then
  45026. - # Check if gcc -print-prog-name=ld gives a path.
  45027. - echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  45028. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  45029. - case $host in
  45030. - *-*-mingw*)
  45031. - # gcc leaves a trailing carriage return which upsets mingw
  45032. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  45033. - *)
  45034. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  45035. - esac
  45036. - case $ac_prog in
  45037. - # Accept absolute paths.
  45038. - [\\/]* | ?:[\\/]*)
  45039. - re_direlt='/[^/][^/]*/\.\./'
  45040. - # Canonicalize the path of ld
  45041. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  45042. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  45043. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  45044. - done
  45045. - test -z "$LD" && LD="$ac_prog"
  45046. - ;;
  45047. - "")
  45048. - # If it fails, then pretend we aren't using GCC.
  45049. - ac_prog=ld
  45050. - ;;
  45051. - *)
  45052. - # If it is relative, then search for the first ld in PATH.
  45053. - with_gnu_ld=unknown
  45054. - ;;
  45055. - esac
  45056. -elif test "$with_gnu_ld" = yes; then
  45057. - echo "$as_me:$LINENO: checking for GNU ld" >&5
  45058. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  45059. -else
  45060. - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  45061. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  45062. -fi
  45063. -if test "${lt_cv_path_LD+set}" = set; then
  45064. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45065. -else
  45066. - if test -z "$LD"; then
  45067. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  45068. - for ac_dir in $PATH; do
  45069. - IFS="$lt_save_ifs"
  45070. - test -z "$ac_dir" && ac_dir=.
  45071. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  45072. - lt_cv_path_LD="$ac_dir/$ac_prog"
  45073. - # Check to see if the program is GNU ld. I'd rather use --version,
  45074. - # but apparently some GNU ld's only accept -v.
  45075. - # Break only if it was the GNU/non-GNU ld that we prefer.
  45076. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  45077. - *GNU* | *'with BFD'*)
  45078. - test "$with_gnu_ld" != no && break
  45079. - ;;
  45080. - *)
  45081. - test "$with_gnu_ld" != yes && break
  45082. - ;;
  45083. - esac
  45084. - fi
  45085. - done
  45086. - IFS="$lt_save_ifs"
  45087. -else
  45088. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  45089. -fi
  45090. -fi
  45091. -
  45092. -LD="$lt_cv_path_LD"
  45093. -if test -n "$LD"; then
  45094. - echo "$as_me:$LINENO: result: $LD" >&5
  45095. -echo "${ECHO_T}$LD" >&6
  45096. -else
  45097. - echo "$as_me:$LINENO: result: no" >&5
  45098. -echo "${ECHO_T}no" >&6
  45099. -fi
  45100. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  45101. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  45102. - { (exit 1); exit 1; }; }
  45103. -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  45104. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  45105. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  45106. - echo $ECHO_N "(cached) $ECHO_C" >&6
  45107. -else
  45108. - # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  45109. -case `"$LD" -v 2>&1 </dev/null` in
  45110. -*GNU* | *'with BFD'*)
  45111. - lt_cv_prog_gnu_ld=yes
  45112. - ;;
  45113. -*)
  45114. - lt_cv_prog_gnu_ld=no
  45115. - ;;
  45116. -esac
  45117. -fi
  45118. -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  45119. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  45120. -with_gnu_ld=$lt_cv_prog_gnu_ld
  45121. -
  45122. -
  45123. -
  45124. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  45125. - # archiving commands below assume that GNU ld is being used.
  45126. - if test "$with_gnu_ld" = yes; then
  45127. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  45128. - 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'
  45129. -
  45130. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  45131. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  45132. -
  45133. - # If archive_cmds runs LD, not CC, wlarc should be empty
  45134. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  45135. - # investigate it a little bit more. (MM)
  45136. - wlarc='${wl}'
  45137. -
  45138. - # ancient GNU ld didn't support --whole-archive et. al.
  45139. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  45140. - grep 'no-whole-archive' > /dev/null; then
  45141. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  45142. - else
  45143. - whole_archive_flag_spec_CXX=
  45144. - fi
  45145. - else
  45146. - with_gnu_ld=no
  45147. - wlarc=
  45148. -
  45149. - # A generic and very simple default shared library creation
  45150. - # command for GNU C++ for the case where it uses the native
  45151. - # linker, instead of GNU ld. If possible, this setting should
  45152. - # overridden to take advantage of the native linker features on
  45153. - # the platform it is being used on.
  45154. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  45155. - fi
  45156. -
  45157. - # Commands to make compiler produce verbose output that lists
  45158. - # what "hidden" libraries, object files and flags are used when
  45159. - # linking a shared library.
  45160. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  45161. -
  45162. -else
  45163. - GXX=no
  45164. - with_gnu_ld=no
  45165. - wlarc=
  45166. -fi
  45167. -
  45168. -# PORTME: fill in a description of your system's C++ link characteristics
  45169. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  45170. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  45171. -ld_shlibs_CXX=yes
  45172. -case $host_os in
  45173. - aix3*)
  45174. - # FIXME: insert proper C++ library support
  45175. - ld_shlibs_CXX=no
  45176. - ;;
  45177. - aix4* | aix5*)
  45178. - if test "$host_cpu" = ia64; then
  45179. - # On IA64, the linker does run time linking by default, so we don't
  45180. - # have to do anything special.
  45181. - aix_use_runtimelinking=no
  45182. - exp_sym_flag='-Bexport'
  45183. - no_entry_flag=""
  45184. - else
  45185. - aix_use_runtimelinking=no
  45186. -
  45187. - # Test if we are trying to use run time linking or normal
  45188. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  45189. - # need to do runtime linking.
  45190. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  45191. - for ld_flag in $LDFLAGS; do
  45192. - case $ld_flag in
  45193. - *-brtl*)
  45194. - aix_use_runtimelinking=yes
  45195. - break
  45196. - ;;
  45197. - esac
  45198. - done
  45199. - esac
  45200. -
  45201. - exp_sym_flag='-bexport'
  45202. - no_entry_flag='-bnoentry'
  45203. - fi
  45204. -
  45205. - # When large executables or shared objects are built, AIX ld can
  45206. - # have problems creating the table of contents. If linking a library
  45207. - # or program results in "error TOC overflow" add -mminimal-toc to
  45208. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  45209. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  45210. -
  45211. - archive_cmds_CXX=''
  45212. - hardcode_direct_CXX=yes
  45213. - hardcode_libdir_separator_CXX=':'
  45214. - link_all_deplibs_CXX=yes
  45215. -
  45216. - if test "$GXX" = yes; then
  45217. - case $host_os in aix4.012|aix4.012.*)
  45218. - # We only want to do this on AIX 4.2 and lower, the check
  45219. - # below for broken collect2 doesn't work under 4.3+
  45220. - collect2name=`${CC} -print-prog-name=collect2`
  45221. - if test -f "$collect2name" && \
  45222. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  45223. - then
  45224. - # We have reworked collect2
  45225. - hardcode_direct_CXX=yes
  45226. - else
  45227. - # We have old collect2
  45228. - hardcode_direct_CXX=unsupported
  45229. - # It fails to find uninstalled libraries when the uninstalled
  45230. - # path is not listed in the libpath. Setting hardcode_minus_L
  45231. - # to unsupported forces relinking
  45232. - hardcode_minus_L_CXX=yes
  45233. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  45234. - hardcode_libdir_separator_CXX=
  45235. - fi
  45236. - esac
  45237. - shared_flag='-shared'
  45238. - else
  45239. - # not using gcc
  45240. - if test "$host_cpu" = ia64; then
  45241. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  45242. - # chokes on -Wl,-G. The following line is correct:
  45243. - shared_flag='-G'
  45244. - else
  45245. - if test "$aix_use_runtimelinking" = yes; then
  45246. - shared_flag='${wl}-G'
  45247. - else
  45248. - shared_flag='${wl}-bM:SRE'
  45249. - fi
  45250. - fi
  45251. - fi
  45252. -
  45253. - # It seems that -bexpall does not export symbols beginning with
  45254. - # underscore (_), so it is better to generate a list of symbols to export.
  45255. - always_export_symbols_CXX=yes
  45256. - if test "$aix_use_runtimelinking" = yes; then
  45257. - # Warning - without using the other runtime loading flags (-brtl),
  45258. - # -berok will link without error, but may produce a broken library.
  45259. - allow_undefined_flag_CXX='-berok'
  45260. - # Determine the default libpath from the value encoded in an empty executable.
  45261. - cat >conftest.$ac_ext <<_ACEOF
  45262. -/* confdefs.h. */
  45263. -_ACEOF
  45264. -cat confdefs.h >>conftest.$ac_ext
  45265. -cat >>conftest.$ac_ext <<_ACEOF
  45266. -/* end confdefs.h. */
  45267. -
  45268. -int
  45269. -main ()
  45270. -{
  45271. -
  45272. - ;
  45273. - return 0;
  45274. -}
  45275. -_ACEOF
  45276. -rm -f conftest.$ac_objext conftest$ac_exeext
  45277. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  45278. - (eval $ac_link) 2>conftest.er1
  45279. - ac_status=$?
  45280. - grep -v '^ *+' conftest.er1 >conftest.err
  45281. - rm -f conftest.er1
  45282. - cat conftest.err >&5
  45283. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45284. - (exit $ac_status); } &&
  45285. - { ac_try='test -z "$ac_cxx_werror_flag"
  45286. - || test ! -s conftest.err'
  45287. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  45288. - (eval $ac_try) 2>&5
  45289. - ac_status=$?
  45290. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45291. - (exit $ac_status); }; } &&
  45292. - { ac_try='test -s conftest$ac_exeext'
  45293. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  45294. - (eval $ac_try) 2>&5
  45295. - ac_status=$?
  45296. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45297. - (exit $ac_status); }; }; then
  45298. -
  45299. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  45300. -}'`
  45301. -# Check for a 64-bit object if we didn't find anything.
  45302. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  45303. -}'`; fi
  45304. -else
  45305. - echo "$as_me: failed program was:" >&5
  45306. -sed 's/^/| /' conftest.$ac_ext >&5
  45307. -
  45308. -fi
  45309. -rm -f conftest.err conftest.$ac_objext \
  45310. - conftest$ac_exeext conftest.$ac_ext
  45311. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  45312. -
  45313. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  45314. -
  45315. - archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  45316. - else
  45317. - if test "$host_cpu" = ia64; then
  45318. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  45319. - allow_undefined_flag_CXX="-z nodefs"
  45320. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  45321. - else
  45322. - # Determine the default libpath from the value encoded in an empty executable.
  45323. - cat >conftest.$ac_ext <<_ACEOF
  45324. -/* confdefs.h. */
  45325. -_ACEOF
  45326. -cat confdefs.h >>conftest.$ac_ext
  45327. -cat >>conftest.$ac_ext <<_ACEOF
  45328. -/* end confdefs.h. */
  45329. -
  45330. -int
  45331. -main ()
  45332. -{
  45333. -
  45334. - ;
  45335. - return 0;
  45336. -}
  45337. -_ACEOF
  45338. -rm -f conftest.$ac_objext conftest$ac_exeext
  45339. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  45340. - (eval $ac_link) 2>conftest.er1
  45341. - ac_status=$?
  45342. - grep -v '^ *+' conftest.er1 >conftest.err
  45343. - rm -f conftest.er1
  45344. - cat conftest.err >&5
  45345. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45346. - (exit $ac_status); } &&
  45347. - { ac_try='test -z "$ac_cxx_werror_flag"
  45348. - || test ! -s conftest.err'
  45349. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  45350. - (eval $ac_try) 2>&5
  45351. - ac_status=$?
  45352. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45353. - (exit $ac_status); }; } &&
  45354. - { ac_try='test -s conftest$ac_exeext'
  45355. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  45356. - (eval $ac_try) 2>&5
  45357. - ac_status=$?
  45358. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45359. - (exit $ac_status); }; }; then
  45360. -
  45361. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  45362. -}'`
  45363. -# Check for a 64-bit object if we didn't find anything.
  45364. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  45365. -}'`; fi
  45366. -else
  45367. - echo "$as_me: failed program was:" >&5
  45368. -sed 's/^/| /' conftest.$ac_ext >&5
  45369. -
  45370. -fi
  45371. -rm -f conftest.err conftest.$ac_objext \
  45372. - conftest$ac_exeext conftest.$ac_ext
  45373. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  45374. -
  45375. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  45376. - # Warning - without using the other run time loading flags,
  45377. - # -berok will link without error, but may produce a broken library.
  45378. - no_undefined_flag_CXX=' ${wl}-bernotok'
  45379. - allow_undefined_flag_CXX=' ${wl}-berok'
  45380. - # -bexpall does not export symbols beginning with underscore (_)
  45381. - always_export_symbols_CXX=yes
  45382. - # Exported symbols can be pulled into shared objects from archives
  45383. - whole_archive_flag_spec_CXX=' '
  45384. - archive_cmds_need_lc_CXX=yes
  45385. - # This is similar to how AIX traditionally builds it's shared libraries.
  45386. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  45387. - fi
  45388. - fi
  45389. - ;;
  45390. - chorus*)
  45391. - case $cc_basename in
  45392. - *)
  45393. - # FIXME: insert proper C++ library support
  45394. - ld_shlibs_CXX=no
  45395. - ;;
  45396. - esac
  45397. - ;;
  45398. -
  45399. - cygwin* | mingw* | pw32*)
  45400. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  45401. - # as there is no search path for DLLs.
  45402. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  45403. - allow_undefined_flag_CXX=unsupported
  45404. - always_export_symbols_CXX=no
  45405. - enable_shared_with_static_runtimes_CXX=yes
  45406. -
  45407. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  45408. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  45409. - # If the export-symbols file already is a .def file (1st line
  45410. - # is EXPORTS), use it as is; otherwise, prepend...
  45411. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  45412. - cp $export_symbols $output_objdir/$soname.def;
  45413. - else
  45414. - echo EXPORTS > $output_objdir/$soname.def;
  45415. - cat $export_symbols >> $output_objdir/$soname.def;
  45416. - fi${_S_}
  45417. - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  45418. - else
  45419. - ld_shlibs_CXX=no
  45420. - fi
  45421. - ;;
  45422. -
  45423. - darwin* | rhapsody*)
  45424. - if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
  45425. - archive_cmds_need_lc_CXX=no
  45426. - case "$host_os" in
  45427. - rhapsody* | darwin1.[012])
  45428. - allow_undefined_flag_CXX='-undefined suppress'
  45429. - ;;
  45430. - darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
  45431. - test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
  45432. - ;;
  45433. - *) # Darwin 7.0 on
  45434. - case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
  45435. - 10.[012])
  45436. - test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
  45437. - ;;
  45438. - *) # 10.3 on
  45439. - if test -z ${LD_TWOLEVEL_NAMESPACE}; then
  45440. - allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
  45441. - else
  45442. - allow_undefined_flag_CXX='-undefined dynamic_lookup'
  45443. - fi
  45444. - ;;
  45445. - esac
  45446. - ;;
  45447. - esac
  45448. - lt_int_apple_cc_single_mod=no
  45449. - output_verbose_link_cmd='echo'
  45450. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  45451. - lt_int_apple_cc_single_mod=yes
  45452. - fi
  45453. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  45454. - archive_cmds_CXX='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  45455. - else
  45456. - archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  45457. - fi
  45458. - module_cmds_CXX='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
  45459. -
  45460. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  45461. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  45462. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  45463. - else
  45464. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  45465. - fi
  45466. - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  45467. - hardcode_direct_CXX=no
  45468. - hardcode_automatic_CXX=yes
  45469. - hardcode_shlibpath_var_CXX=unsupported
  45470. - whole_archive_flag_spec_CXX='-all_load $convenience'
  45471. - link_all_deplibs_CXX=yes
  45472. - fi
  45473. - ;;
  45474. -
  45475. - dgux*)
  45476. - case $cc_basename in
  45477. - ec++)
  45478. - # FIXME: insert proper C++ library support
  45479. - ld_shlibs_CXX=no
  45480. - ;;
  45481. - ghcx)
  45482. - # Green Hills C++ Compiler
  45483. - # FIXME: insert proper C++ library support
  45484. - ld_shlibs_CXX=no
  45485. - ;;
  45486. - *)
  45487. - # FIXME: insert proper C++ library support
  45488. - ld_shlibs_CXX=no
  45489. - ;;
  45490. - esac
  45491. - ;;
  45492. - freebsd12*)
  45493. - # C++ shared libraries reported to be fairly broken before switch to ELF
  45494. - ld_shlibs_CXX=no
  45495. - ;;
  45496. - freebsd-elf*)
  45497. - archive_cmds_need_lc_CXX=no
  45498. - ;;
  45499. - freebsd*)
  45500. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  45501. - # conventions
  45502. - ld_shlibs_CXX=yes
  45503. - ;;
  45504. - gnu*)
  45505. - ;;
  45506. - hpux9*)
  45507. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  45508. - hardcode_libdir_separator_CXX=:
  45509. - export_dynamic_flag_spec_CXX='${wl}-E'
  45510. - hardcode_direct_CXX=yes
  45511. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  45512. - # but as the default
  45513. - # location of the library.
  45514. -
  45515. - case $cc_basename in
  45516. - CC)
  45517. - # FIXME: insert proper C++ library support
  45518. - ld_shlibs_CXX=no
  45519. - ;;
  45520. - aCC)
  45521. - archive_cmds_CXX='$rm $output_objdir/$soname${_S_}$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  45522. - # Commands to make compiler produce verbose output that lists
  45523. - # what "hidden" libraries, object files and flags are used when
  45524. - # linking a shared library.
  45525. - #
  45526. - # There doesn't appear to be a way to prevent this compiler from
  45527. - # explicitly linking system object files so we need to strip them
  45528. - # from the output so that they don't get included in the library
  45529. - # dependencies.
  45530. - 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 $list'
  45531. - ;;
  45532. - *)
  45533. - if test "$GXX" = yes; then
  45534. - archive_cmds_CXX='$rm $output_objdir/$soname${_S_}$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  45535. - else
  45536. - # FIXME: insert proper C++ library support
  45537. - ld_shlibs_CXX=no
  45538. - fi
  45539. - ;;
  45540. - esac
  45541. - ;;
  45542. - hpux10*|hpux11*)
  45543. - if test $with_gnu_ld = no; then
  45544. - case "$host_cpu" in
  45545. - hppa*64*)
  45546. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  45547. - hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  45548. - hardcode_libdir_separator_CXX=:
  45549. - ;;
  45550. - ia64*)
  45551. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  45552. - ;;
  45553. - *)
  45554. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  45555. - hardcode_libdir_separator_CXX=:
  45556. - export_dynamic_flag_spec_CXX='${wl}-E'
  45557. - ;;
  45558. - esac
  45559. - fi
  45560. - case "$host_cpu" in
  45561. - hppa*64*)
  45562. - hardcode_direct_CXX=no
  45563. - hardcode_shlibpath_var_CXX=no
  45564. - ;;
  45565. - ia64*)
  45566. - hardcode_direct_CXX=no
  45567. - hardcode_shlibpath_var_CXX=no
  45568. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  45569. - # but as the default
  45570. - # location of the library.
  45571. - ;;
  45572. - *)
  45573. - hardcode_direct_CXX=yes
  45574. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  45575. - # but as the default
  45576. - # location of the library.
  45577. - ;;
  45578. - esac
  45579. -
  45580. - case $cc_basename in
  45581. - CC)
  45582. - # FIXME: insert proper C++ library support
  45583. - ld_shlibs_CXX=no
  45584. - ;;
  45585. - aCC)
  45586. - case "$host_cpu" in
  45587. - hppa*64*|ia64*)
  45588. - archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  45589. - ;;
  45590. - *)
  45591. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  45592. - ;;
  45593. - esac
  45594. - # Commands to make compiler produce verbose output that lists
  45595. - # what "hidden" libraries, object files and flags are used when
  45596. - # linking a shared library.
  45597. - #
  45598. - # There doesn't appear to be a way to prevent this compiler from
  45599. - # explicitly linking system object files so we need to strip them
  45600. - # from the output so that they don't get included in the library
  45601. - # dependencies.
  45602. - 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'
  45603. - ;;
  45604. - *)
  45605. - if test "$GXX" = yes; then
  45606. - if test $with_gnu_ld = no; then
  45607. - case "$host_cpu" in
  45608. - ia64*|hppa*64*)
  45609. - archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  45610. - ;;
  45611. - *)
  45612. - 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'
  45613. - ;;
  45614. - esac
  45615. - fi
  45616. - else
  45617. - # FIXME: insert proper C++ library support
  45618. - ld_shlibs_CXX=no
  45619. - fi
  45620. - ;;
  45621. - esac
  45622. - ;;
  45623. - irix5* | irix6*)
  45624. - case $cc_basename in
  45625. - CC)
  45626. - # SGI C++
  45627. - 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 ${objdir}/so_locations -o $lib'
  45628. -
  45629. - # Archives containing C++ object files must be created using
  45630. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  45631. - # necessary to make sure instantiated templates are included
  45632. - # in the archive.
  45633. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  45634. - ;;
  45635. - *)
  45636. - if test "$GXX" = yes; then
  45637. - if test "$with_gnu_ld" = no; then
  45638. - 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}${objdir}/so_locations -o $lib'
  45639. - else
  45640. - 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'
  45641. - fi
  45642. - fi
  45643. - link_all_deplibs_CXX=yes
  45644. - ;;
  45645. - esac
  45646. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  45647. - hardcode_libdir_separator_CXX=:
  45648. - ;;
  45649. - linux*)
  45650. - case $cc_basename in
  45651. - KCC)
  45652. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  45653. -
  45654. - # KCC will only create a shared library if the output file
  45655. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  45656. - # to its proper name (with version) after linking.
  45657. - 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'
  45658. - 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'
  45659. - # Commands to make compiler produce verbose output that lists
  45660. - # what "hidden" libraries, object files and flags are used when
  45661. - # linking a shared library.
  45662. - #
  45663. - # There doesn't appear to be a way to prevent this compiler from
  45664. - # explicitly linking system object files so we need to strip them
  45665. - # from the output so that they don't get included in the library
  45666. - # dependencies.
  45667. - 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'
  45668. -
  45669. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  45670. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  45671. -
  45672. - # Archives containing C++ object files must be created using
  45673. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  45674. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  45675. - ;;
  45676. - icpc)
  45677. - # Intel C++
  45678. - with_gnu_ld=yes
  45679. - archive_cmds_need_lc_CXX=no
  45680. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  45681. - 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'
  45682. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  45683. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  45684. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  45685. - ;;
  45686. - cxx)
  45687. - # Compaq C++
  45688. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  45689. - 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'
  45690. -
  45691. - runpath_var=LD_RUN_PATH
  45692. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  45693. - hardcode_libdir_separator_CXX=:
  45694. -
  45695. - # Commands to make compiler produce verbose output that lists
  45696. - # what "hidden" libraries, object files and flags are used when
  45697. - # linking a shared library.
  45698. - #
  45699. - # There doesn't appear to be a way to prevent this compiler from
  45700. - # explicitly linking system object files so we need to strip them
  45701. - # from the output so that they don't get included in the library
  45702. - # dependencies.
  45703. - 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'
  45704. - ;;
  45705. - esac
  45706. - ;;
  45707. - lynxos*)
  45708. - # FIXME: insert proper C++ library support
  45709. - ld_shlibs_CXX=no
  45710. - ;;
  45711. - m88k*)
  45712. - # FIXME: insert proper C++ library support
  45713. - ld_shlibs_CXX=no
  45714. - ;;
  45715. - mvs*)
  45716. - case $cc_basename in
  45717. - cxx)
  45718. - # FIXME: insert proper C++ library support
  45719. - ld_shlibs_CXX=no
  45720. - ;;
  45721. - *)
  45722. - # FIXME: insert proper C++ library support
  45723. - ld_shlibs_CXX=no
  45724. - ;;
  45725. - esac
  45726. - ;;
  45727. - netbsd*)
  45728. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  45729. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  45730. - wlarc=
  45731. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  45732. - hardcode_direct_CXX=yes
  45733. - hardcode_shlibpath_var_CXX=no
  45734. - fi
  45735. - # Workaround some broken pre-1.5 toolchains
  45736. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  45737. - ;;
  45738. - osf3*)
  45739. - case $cc_basename in
  45740. - KCC)
  45741. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  45742. -
  45743. - # KCC will only create a shared library if the output file
  45744. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  45745. - # to its proper name (with version) after linking.
  45746. - 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'
  45747. -
  45748. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  45749. - hardcode_libdir_separator_CXX=:
  45750. -
  45751. - # Archives containing C++ object files must be created using
  45752. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  45753. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  45754. -
  45755. - ;;
  45756. - RCC)
  45757. - # Rational C++ 2.4.1
  45758. - # FIXME: insert proper C++ library support
  45759. - ld_shlibs_CXX=no
  45760. - ;;
  45761. - cxx)
  45762. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  45763. - 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 ${objdir}/so_locations -o $lib'
  45764. -
  45765. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  45766. - hardcode_libdir_separator_CXX=:
  45767. -
  45768. - # Commands to make compiler produce verbose output that lists
  45769. - # what "hidden" libraries, object files and flags are used when
  45770. - # linking a shared library.
  45771. - #
  45772. - # There doesn't appear to be a way to prevent this compiler from
  45773. - # explicitly linking system object files so we need to strip them
  45774. - # from the output so that they don't get included in the library
  45775. - # dependencies.
  45776. - 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'
  45777. - ;;
  45778. - *)
  45779. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  45780. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  45781. - 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}${objdir}/so_locations -o $lib'
  45782. -
  45783. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  45784. - hardcode_libdir_separator_CXX=:
  45785. -
  45786. - # Commands to make compiler produce verbose output that lists
  45787. - # what "hidden" libraries, object files and flags are used when
  45788. - # linking a shared library.
  45789. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  45790. -
  45791. - else
  45792. - # FIXME: insert proper C++ library support
  45793. - ld_shlibs_CXX=no
  45794. - fi
  45795. - ;;
  45796. - esac
  45797. - ;;
  45798. - osf4* | osf5*)
  45799. - case $cc_basename in
  45800. - KCC)
  45801. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  45802. -
  45803. - # KCC will only create a shared library if the output file
  45804. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  45805. - # to its proper name (with version) after linking.
  45806. - 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'
  45807. -
  45808. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  45809. - hardcode_libdir_separator_CXX=:
  45810. -
  45811. - # Archives containing C++ object files must be created using
  45812. - # the KAI C++ compiler.
  45813. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  45814. - ;;
  45815. - RCC)
  45816. - # Rational C++ 2.4.1
  45817. - # FIXME: insert proper C++ library support
  45818. - ld_shlibs_CXX=no
  45819. - ;;
  45820. - cxx)
  45821. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  45822. - 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 ${objdir}/so_locations -o $lib'
  45823. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done${_S_}
  45824. - echo "-hidden">> $lib.exp${_S_}
  45825. - $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 $objdir/so_locations -o $lib${_S_}
  45826. - $rm $lib.exp'
  45827. -
  45828. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  45829. - hardcode_libdir_separator_CXX=:
  45830. -
  45831. - # Commands to make compiler produce verbose output that lists
  45832. - # what "hidden" libraries, object files and flags are used when
  45833. - # linking a shared library.
  45834. - #
  45835. - # There doesn't appear to be a way to prevent this compiler from
  45836. - # explicitly linking system object files so we need to strip them
  45837. - # from the output so that they don't get included in the library
  45838. - # dependencies.
  45839. - 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'
  45840. - ;;
  45841. - *)
  45842. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  45843. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  45844. - 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}${objdir}/so_locations -o $lib'
  45845. -
  45846. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  45847. - hardcode_libdir_separator_CXX=:
  45848. -
  45849. - # Commands to make compiler produce verbose output that lists
  45850. - # what "hidden" libraries, object files and flags are used when
  45851. - # linking a shared library.
  45852. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  45853. -
  45854. - else
  45855. - # FIXME: insert proper C++ library support
  45856. - ld_shlibs_CXX=no
  45857. - fi
  45858. - ;;
  45859. - esac
  45860. - ;;
  45861. - psos*)
  45862. - # FIXME: insert proper C++ library support
  45863. - ld_shlibs_CXX=no
  45864. - ;;
  45865. - sco*)
  45866. - archive_cmds_need_lc_CXX=no
  45867. - case $cc_basename in
  45868. - CC)
  45869. - # FIXME: insert proper C++ library support
  45870. - ld_shlibs_CXX=no
  45871. - ;;
  45872. - *)
  45873. - # FIXME: insert proper C++ library support
  45874. - ld_shlibs_CXX=no
  45875. - ;;
  45876. - esac
  45877. - ;;
  45878. - sunos4*)
  45879. - case $cc_basename in
  45880. - CC)
  45881. - # Sun C++ 4.x
  45882. - # FIXME: insert proper C++ library support
  45883. - ld_shlibs_CXX=no
  45884. - ;;
  45885. - lcc)
  45886. - # Lucid
  45887. - # FIXME: insert proper C++ library support
  45888. - ld_shlibs_CXX=no
  45889. - ;;
  45890. - *)
  45891. - # FIXME: insert proper C++ library support
  45892. - ld_shlibs_CXX=no
  45893. - ;;
  45894. - esac
  45895. - ;;
  45896. - solaris*)
  45897. - case $cc_basename in
  45898. - CC)
  45899. - # Sun C++ 4.2, 5.x and Centerline C++
  45900. - no_undefined_flag_CXX=' -zdefs'
  45901. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  45902. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
  45903. - $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
  45904. -
  45905. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  45906. - hardcode_shlibpath_var_CXX=no
  45907. - case $host_os in
  45908. - solaris2.0-5 | solaris2.0-5.*) ;;
  45909. - *)
  45910. - # The C++ compiler is used as linker so we must use $wl
  45911. - # flag to pass the commands to the underlying system
  45912. - # linker.
  45913. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  45914. - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  45915. - ;;
  45916. - esac
  45917. - link_all_deplibs_CXX=yes
  45918. -
  45919. - # Commands to make compiler produce verbose output that lists
  45920. - # what "hidden" libraries, object files and flags are used when
  45921. - # linking a shared library.
  45922. - #
  45923. - # There doesn't appear to be a way to prevent this compiler from
  45924. - # explicitly linking system object files so we need to strip them
  45925. - # from the output so that they don't get included in the library
  45926. - # dependencies.
  45927. - output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  45928. -
  45929. - # Archives containing C++ object files must be created using
  45930. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  45931. - # necessary to make sure instantiated templates are included
  45932. - # in the archive.
  45933. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  45934. - ;;
  45935. - gcx)
  45936. - # Green Hills C++ Compiler
  45937. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  45938. -
  45939. - # The C++ compiler must be used to create the archive.
  45940. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  45941. - ;;
  45942. - *)
  45943. - # GNU C++ compiler with Solaris linker
  45944. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  45945. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  45946. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  45947. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  45948. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
  45949. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
  45950. -
  45951. - # Commands to make compiler produce verbose output that lists
  45952. - # what "hidden" libraries, object files and flags are used when
  45953. - # linking a shared library.
  45954. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  45955. - else
  45956. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  45957. - # platform.
  45958. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  45959. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
  45960. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
  45961. -
  45962. - # Commands to make compiler produce verbose output that lists
  45963. - # what "hidden" libraries, object files and flags are used when
  45964. - # linking a shared library.
  45965. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  45966. - fi
  45967. -
  45968. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  45969. - fi
  45970. - ;;
  45971. - esac
  45972. - ;;
  45973. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  45974. - archive_cmds_need_lc_CXX=no
  45975. - ;;
  45976. - tandem*)
  45977. - case $cc_basename in
  45978. - NCC)
  45979. - # NonStop-UX NCC 3.20
  45980. - # FIXME: insert proper C++ library support
  45981. - ld_shlibs_CXX=no
  45982. - ;;
  45983. - *)
  45984. - # FIXME: insert proper C++ library support
  45985. - ld_shlibs_CXX=no
  45986. - ;;
  45987. - esac
  45988. - ;;
  45989. - vxworks*)
  45990. - # FIXME: insert proper C++ library support
  45991. - ld_shlibs_CXX=no
  45992. - ;;
  45993. - *)
  45994. - # FIXME: insert proper C++ library support
  45995. - ld_shlibs_CXX=no
  45996. - ;;
  45997. -esac
  45998. -echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  45999. -echo "${ECHO_T}$ld_shlibs_CXX" >&6
  46000. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  46001. -
  46002. -GCC_CXX="$GXX"
  46003. -LD_CXX="$LD"
  46004. -
  46005. -
  46006. -cat > conftest.$ac_ext <<EOF
  46007. -class Foo
  46008. -{
  46009. -public:
  46010. - Foo (void) { a = 0; }
  46011. -private:
  46012. - int a;
  46013. -};
  46014. -EOF
  46015. -
  46016. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  46017. - (eval $ac_compile) 2>&5
  46018. - ac_status=$?
  46019. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46020. - (exit $ac_status); }; then
  46021. - # Parse the compiler output and extract the necessary
  46022. - # objects, libraries and library flags.
  46023. -
  46024. - # Sentinel used to keep track of whether or not we are before
  46025. - # the conftest object file.
  46026. - pre_test_object_deps_done=no
  46027. -
  46028. - # The `*' in the case matches for architectures that use `case' in
  46029. - # $output_verbose_cmd can trigger glob expansion during the loop
  46030. - # eval without this substitution.
  46031. - output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  46032. -
  46033. - for p in `eval $output_verbose_link_cmd`; do
  46034. - case $p in
  46035. -
  46036. - -L* | -R* | -l*)
  46037. - # Some compilers place space between "-{L,R}" and the path.
  46038. - # Remove the space.
  46039. - if test $p = "-L" \
  46040. - || test $p = "-R"; then
  46041. - prev=$p
  46042. - continue
  46043. - else
  46044. - prev=
  46045. - fi
  46046. -
  46047. - if test "$pre_test_object_deps_done" = no; then
  46048. - case $p in
  46049. - -L* | -R*)
  46050. - # Internal compiler library paths should come after those
  46051. - # provided the user. The postdeps already come after the
  46052. - # user supplied libs so there is no need to process them.
  46053. - if test -z "$compiler_lib_search_path_CXX"; then
  46054. - compiler_lib_search_path_CXX="${prev}${p}"
  46055. - else
  46056. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  46057. - fi
  46058. - ;;
  46059. - # The "-l" case would never come before the object being
  46060. - # linked, so don't bother handling this case.
  46061. - esac
  46062. - else
  46063. - if test -z "$postdeps_CXX"; then
  46064. - postdeps_CXX="${prev}${p}"
  46065. - else
  46066. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  46067. - fi
  46068. - fi
  46069. - ;;
  46070. -
  46071. - *.$objext)
  46072. - # This assumes that the test object file only shows up
  46073. - # once in the compiler output.
  46074. - if test "$p" = "conftest.$objext"; then
  46075. - pre_test_object_deps_done=yes
  46076. - continue
  46077. - fi
  46078. -
  46079. - if test "$pre_test_object_deps_done" = no; then
  46080. - if test -z "$predep_objects_CXX"; then
  46081. - predep_objects_CXX="$p"
  46082. - else
  46083. - predep_objects_CXX="$predep_objects_CXX $p"
  46084. - fi
  46085. - else
  46086. - if test -z "$postdep_objects_CXX"; then
  46087. - postdep_objects_CXX="$p"
  46088. - else
  46089. - postdep_objects_CXX="$postdep_objects_CXX $p"
  46090. - fi
  46091. - fi
  46092. - ;;
  46093. -
  46094. - *) ;; # Ignore the rest.
  46095. -
  46096. - esac
  46097. - done
  46098. -
  46099. - # Clean up.
  46100. - rm -f a.out a.exe
  46101. -else
  46102. - echo "libtool.m4: error: problem compiling CXX test program"
  46103. -fi
  46104. -
  46105. -$rm -f confest.$objext
  46106. -
  46107. -case " $postdeps_CXX " in
  46108. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  46109. -esac
  46110. -
  46111. -lt_prog_compiler_wl_CXX=
  46112. -lt_prog_compiler_pic_CXX=
  46113. -lt_prog_compiler_static_CXX=
  46114. -
  46115. -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  46116. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  46117. -
  46118. - # C++ specific cases for pic, static, wl, etc.
  46119. - if test "$GXX" = yes; then
  46120. - lt_prog_compiler_wl_CXX='-Wl,'
  46121. - lt_prog_compiler_static_CXX='-static'
  46122. -
  46123. - case $host_os in
  46124. - aix*)
  46125. - # All AIX code is PIC.
  46126. - if test "$host_cpu" = ia64; then
  46127. - # AIX 5 now supports IA64 processor
  46128. - lt_prog_compiler_static_CXX='-Bstatic'
  46129. - fi
  46130. - ;;
  46131. - amigaos*)
  46132. - # FIXME: we need at least 68020 code to build shared libraries, but
  46133. - # adding the `-m68020' flag to GCC prevents building anything better,
  46134. - # like `-m68040'.
  46135. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  46136. - ;;
  46137. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  46138. - # PIC is the default for these OSes.
  46139. - ;;
  46140. - mingw* | os2* | pw32*)
  46141. - # This hack is so that the source file can tell whether it is being
  46142. - # built for inclusion in a dll (and should export symbols for example).
  46143. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  46144. - ;;
  46145. - darwin* | rhapsody*)
  46146. - # PIC is the default on this platform
  46147. - # Common symbols not allowed in MH_DYLIB files
  46148. - lt_prog_compiler_pic_CXX='-fno-common'
  46149. - ;;
  46150. - *djgpp*)
  46151. - # DJGPP does not support shared libraries at all
  46152. - lt_prog_compiler_pic_CXX=
  46153. - ;;
  46154. - sysv4*MP*)
  46155. - if test -d /usr/nec; then
  46156. - lt_prog_compiler_pic_CXX=-Kconform_pic
  46157. - fi
  46158. - ;;
  46159. - hpux*)
  46160. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  46161. - # not for PA HP-UX.
  46162. - case "$host_cpu" in
  46163. - hppa*64*|ia64*)
  46164. - ;;
  46165. - *)
  46166. - lt_prog_compiler_pic_CXX='-fPIC'
  46167. - ;;
  46168. - esac
  46169. - ;;
  46170. - *)
  46171. - lt_prog_compiler_pic_CXX='-fPIC'
  46172. - ;;
  46173. - esac
  46174. - else
  46175. - case $host_os in
  46176. - aix4* | aix5*)
  46177. - # All AIX code is PIC.
  46178. - if test "$host_cpu" = ia64; then
  46179. - # AIX 5 now supports IA64 processor
  46180. - lt_prog_compiler_static_CXX='-Bstatic'
  46181. - else
  46182. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  46183. - fi
  46184. - ;;
  46185. - chorus*)
  46186. - case $cc_basename in
  46187. - cxch68)
  46188. - # Green Hills C++ Compiler
  46189. - # _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"
  46190. - ;;
  46191. - esac
  46192. - ;;
  46193. - dgux*)
  46194. - case $cc_basename in
  46195. - ec++)
  46196. - lt_prog_compiler_pic_CXX='-KPIC'
  46197. - ;;
  46198. - ghcx)
  46199. - # Green Hills C++ Compiler
  46200. - lt_prog_compiler_pic_CXX='-pic'
  46201. - ;;
  46202. - *)
  46203. - ;;
  46204. - esac
  46205. - ;;
  46206. - freebsd*)
  46207. - # FreeBSD uses GNU C++
  46208. - ;;
  46209. - hpux9* | hpux10* | hpux11*)
  46210. - case $cc_basename in
  46211. - CC)
  46212. - lt_prog_compiler_wl_CXX='-Wl,'
  46213. - lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  46214. - if test "$host_cpu" != ia64; then
  46215. - lt_prog_compiler_pic_CXX='+Z'
  46216. - fi
  46217. - ;;
  46218. - aCC)
  46219. - lt_prog_compiler_wl_CXX='-Wl,'
  46220. - lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  46221. - case "$host_cpu" in
  46222. - hppa*64*|ia64*)
  46223. - # +Z the default
  46224. - ;;
  46225. - *)
  46226. - lt_prog_compiler_pic_CXX='+Z'
  46227. - ;;
  46228. - esac
  46229. - ;;
  46230. - *)
  46231. - ;;
  46232. - esac
  46233. - ;;
  46234. - irix5* | irix6* | nonstopux*)
  46235. - case $cc_basename in
  46236. - CC)
  46237. - lt_prog_compiler_wl_CXX='-Wl,'
  46238. - lt_prog_compiler_static_CXX='-non_shared'
  46239. - # CC pic flag -KPIC is the default.
  46240. - ;;
  46241. - *)
  46242. - ;;
  46243. - esac
  46244. - ;;
  46245. - linux*)
  46246. - case $cc_basename in
  46247. - KCC)
  46248. - # KAI C++ Compiler
  46249. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  46250. - lt_prog_compiler_pic_CXX='-fPIC'
  46251. - ;;
  46252. - icpc)
  46253. - # Intel C++
  46254. - lt_prog_compiler_wl_CXX='-Wl,'
  46255. - lt_prog_compiler_pic_CXX='-KPIC'
  46256. - lt_prog_compiler_static_CXX='-static'
  46257. - ;;
  46258. - cxx)
  46259. - # Compaq C++
  46260. - # Make sure the PIC flag is empty. It appears that all Alpha
  46261. - # Linux and Compaq Tru64 Unix objects are PIC.
  46262. - lt_prog_compiler_pic_CXX=
  46263. - lt_prog_compiler_static_CXX='-non_shared'
  46264. - ;;
  46265. - *)
  46266. - ;;
  46267. - esac
  46268. - ;;
  46269. - lynxos*)
  46270. - ;;
  46271. - m88k*)
  46272. - ;;
  46273. - mvs*)
  46274. - case $cc_basename in
  46275. - cxx)
  46276. - lt_prog_compiler_pic_CXX='-W c,exportall'
  46277. - ;;
  46278. - *)
  46279. - ;;
  46280. - esac
  46281. - ;;
  46282. - netbsd*)
  46283. - ;;
  46284. - osf3* | osf4* | osf5*)
  46285. - case $cc_basename in
  46286. - KCC)
  46287. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  46288. - ;;
  46289. - RCC)
  46290. - # Rational C++ 2.4.1
  46291. - lt_prog_compiler_pic_CXX='-pic'
  46292. - ;;
  46293. - cxx)
  46294. - # Digital/Compaq C++
  46295. - lt_prog_compiler_wl_CXX='-Wl,'
  46296. - # Make sure the PIC flag is empty. It appears that all Alpha
  46297. - # Linux and Compaq Tru64 Unix objects are PIC.
  46298. - lt_prog_compiler_pic_CXX=
  46299. - lt_prog_compiler_static_CXX='-non_shared'
  46300. - ;;
  46301. - *)
  46302. - ;;
  46303. - esac
  46304. - ;;
  46305. - psos*)
  46306. - ;;
  46307. - sco*)
  46308. - case $cc_basename in
  46309. - CC)
  46310. - lt_prog_compiler_pic_CXX='-fPIC'
  46311. - ;;
  46312. - *)
  46313. - ;;
  46314. - esac
  46315. - ;;
  46316. - solaris*)
  46317. - case $cc_basename in
  46318. - CC)
  46319. - # Sun C++ 4.2, 5.x and Centerline C++
  46320. - lt_prog_compiler_pic_CXX='-KPIC'
  46321. - lt_prog_compiler_static_CXX='-Bstatic'
  46322. - lt_prog_compiler_wl_CXX='-Qoption ld '
  46323. - ;;
  46324. - gcx)
  46325. - # Green Hills C++ Compiler
  46326. - lt_prog_compiler_pic_CXX='-PIC'
  46327. - ;;
  46328. - *)
  46329. - ;;
  46330. - esac
  46331. - ;;
  46332. - sunos4*)
  46333. - case $cc_basename in
  46334. - CC)
  46335. - # Sun C++ 4.x
  46336. - lt_prog_compiler_pic_CXX='-pic'
  46337. - lt_prog_compiler_static_CXX='-Bstatic'
  46338. - ;;
  46339. - lcc)
  46340. - # Lucid
  46341. - lt_prog_compiler_pic_CXX='-pic'
  46342. - ;;
  46343. - *)
  46344. - ;;
  46345. - esac
  46346. - ;;
  46347. - tandem*)
  46348. - case $cc_basename in
  46349. - NCC)
  46350. - # NonStop-UX NCC 3.20
  46351. - lt_prog_compiler_pic_CXX='-KPIC'
  46352. - ;;
  46353. - *)
  46354. - ;;
  46355. - esac
  46356. - ;;
  46357. - unixware*)
  46358. - ;;
  46359. - vxworks*)
  46360. - ;;
  46361. - *)
  46362. - lt_prog_compiler_can_build_shared_CXX=no
  46363. - ;;
  46364. - esac
  46365. - fi
  46366. -
  46367. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  46368. -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  46369. -
  46370. -#
  46371. -# Check to make sure the PIC flag actually works.
  46372. -#
  46373. -if test -n "$lt_prog_compiler_pic_CXX"; then
  46374. - echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  46375. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  46376. -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  46377. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46378. -else
  46379. - lt_prog_compiler_pic_works_CXX=no
  46380. - ac_outfile=conftest.$ac_objext
  46381. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  46382. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  46383. - # Insert the option either (1) after the last *FLAGS variable, or
  46384. - # (2) before a word containing "conftest.", or (3) at the end.
  46385. - # Note that $ac_compile itself does not contain backslashes and begins
  46386. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  46387. - # The option is referenced via a variable to avoid confusing sed.
  46388. - lt_compile=`echo "$ac_compile" | $SED \
  46389. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  46390. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  46391. - -e 's:$: $lt_compiler_flag:'`
  46392. - (eval echo "\"\$as_me:10979: $lt_compile\"" >&5)
  46393. - (eval "$lt_compile" 2>conftest.err)
  46394. - ac_status=$?
  46395. - cat conftest.err >&5
  46396. - echo "$as_me:10983: \$? = $ac_status" >&5
  46397. - if (exit $ac_status) && test -s "$ac_outfile"; then
  46398. - # The compiler can only warn and ignore the option if not recognized
  46399. - # So say no if there are warnings
  46400. - if test ! -s conftest.err; then
  46401. - lt_prog_compiler_pic_works_CXX=yes
  46402. - fi
  46403. - fi
  46404. - $rm conftest*
  46405. -
  46406. -fi
  46407. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  46408. -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  46409. -
  46410. -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  46411. - case $lt_prog_compiler_pic_CXX in
  46412. - "" | " "*) ;;
  46413. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  46414. - esac
  46415. -else
  46416. - lt_prog_compiler_pic_CXX=
  46417. - lt_prog_compiler_can_build_shared_CXX=no
  46418. -fi
  46419. -
  46420. -fi
  46421. -case "$host_os" in
  46422. - # For platforms which do not support PIC, -DPIC is meaningless:
  46423. - *djgpp*)
  46424. - lt_prog_compiler_pic_CXX=
  46425. - ;;
  46426. - *)
  46427. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  46428. - ;;
  46429. -esac
  46430. -
  46431. -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  46432. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  46433. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  46434. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46435. -else
  46436. - lt_cv_prog_compiler_c_o_CXX=no
  46437. - $rm -r conftest 2>/dev/null
  46438. - mkdir conftest
  46439. - cd conftest
  46440. - mkdir out
  46441. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  46442. -
  46443. - # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  46444. - # that will create temporary files in the current directory regardless of
  46445. - # the output directory. Thus, making CWD read-only will cause this test
  46446. - # to fail, enabling locking or at least warning the user not to do parallel
  46447. - # builds.
  46448. - chmod -w .
  46449. -
  46450. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  46451. - # Insert the option either (1) after the last *FLAGS variable, or
  46452. - # (2) before a word containing "conftest.", or (3) at the end.
  46453. - # Note that $ac_compile itself does not contain backslashes and begins
  46454. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  46455. - lt_compile=`echo "$ac_compile" | $SED \
  46456. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  46457. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  46458. - -e 's:$: $lt_compiler_flag:'`
  46459. - (eval echo "\"\$as_me:11046: $lt_compile\"" >&5)
  46460. - (eval "$lt_compile" 2>out/conftest.err)
  46461. - ac_status=$?
  46462. - cat out/conftest.err >&5
  46463. - echo "$as_me:11050: \$? = $ac_status" >&5
  46464. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  46465. - then
  46466. - # The compiler can only warn and ignore the option if not recognized
  46467. - # So say no if there are warnings
  46468. - if test ! -s out/conftest.err; then
  46469. - lt_cv_prog_compiler_c_o_CXX=yes
  46470. - fi
  46471. - fi
  46472. - chmod u+w .
  46473. - $rm conftest* out/*
  46474. - rmdir out
  46475. - cd ..
  46476. - rmdir conftest
  46477. - $rm conftest*
  46478. -
  46479. -fi
  46480. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  46481. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  46482. -
  46483. -
  46484. -hard_links="nottested"
  46485. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  46486. - # do not overwrite the value of need_locks provided by the user
  46487. - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  46488. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  46489. - hard_links=yes
  46490. - $rm conftest*
  46491. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  46492. - touch conftest.a
  46493. - ln conftest.a conftest.b 2>&5 || hard_links=no
  46494. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  46495. - echo "$as_me:$LINENO: result: $hard_links" >&5
  46496. -echo "${ECHO_T}$hard_links" >&6
  46497. - if test "$hard_links" = no; then
  46498. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  46499. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  46500. - need_locks=warn
  46501. - fi
  46502. -else
  46503. - need_locks=no
  46504. -fi
  46505. -
  46506. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  46507. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  46508. -
  46509. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  46510. - case $host_os in
  46511. - aix4* | aix5*)
  46512. - # If we're using GNU nm, then we don't want the "-C" option.
  46513. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  46514. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  46515. - 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'
  46516. - else
  46517. - 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'
  46518. - fi
  46519. - ;;
  46520. - pw32*)
  46521. - export_symbols_cmds_CXX="$ltdll_cmds"
  46522. - ;;
  46523. - cygwin* | mingw*)
  46524. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  46525. - ;;
  46526. - *)
  46527. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  46528. - ;;
  46529. - esac
  46530. -
  46531. -echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  46532. -echo "${ECHO_T}$ld_shlibs_CXX" >&6
  46533. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  46534. -
  46535. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  46536. -if test "$GCC" = yes; then
  46537. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  46538. -fi
  46539. -
  46540. -#
  46541. -# Do we need to explicitly link libc?
  46542. -#
  46543. -case "x$archive_cmds_need_lc_CXX" in
  46544. -x|xyes)
  46545. - # Assume -lc should be added
  46546. - archive_cmds_need_lc_CXX=yes
  46547. -
  46548. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  46549. - case $archive_cmds_CXX in
  46550. - *"$_S_"*)
  46551. - # FIXME: we may have to deal with multi-command sequences.
  46552. - ;;
  46553. - '$CC '*)
  46554. - # Test whether the compiler implicitly links with -lc since on some
  46555. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  46556. - # to ld, don't add -lc before -lgcc.
  46557. - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  46558. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  46559. - $rm conftest*
  46560. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  46561. -
  46562. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  46563. - (eval $ac_compile) 2>&5
  46564. - ac_status=$?
  46565. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46566. - (exit $ac_status); } 2>conftest.err; then
  46567. - soname=conftest
  46568. - lib=conftest
  46569. - libobjs=conftest.$ac_objext
  46570. - deplibs=
  46571. - wl=$lt_prog_compiler_wl_CXX
  46572. - compiler_flags=-v
  46573. - linker_flags=-v
  46574. - verstring=
  46575. - output_objdir=.
  46576. - libname=conftest
  46577. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  46578. - allow_undefined_flag_CXX=
  46579. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  46580. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  46581. - ac_status=$?
  46582. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46583. - (exit $ac_status); }
  46584. - then
  46585. - archive_cmds_need_lc_CXX=no
  46586. - else
  46587. - archive_cmds_need_lc_CXX=yes
  46588. - fi
  46589. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  46590. - else
  46591. - cat conftest.err 1>&5
  46592. - fi
  46593. - $rm conftest*
  46594. - echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  46595. -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  46596. - ;;
  46597. - esac
  46598. - fi
  46599. - ;;
  46600. -esac
  46601. -
  46602. -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  46603. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  46604. -hardcode_action_CXX=
  46605. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  46606. - test -n "$runpath_var CXX" || \
  46607. - test "X$hardcode_automatic_CXX"="Xyes" ; then
  46608. -
  46609. - # We can hardcode non-existant directories.
  46610. - if test "$hardcode_direct_CXX" != no &&
  46611. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  46612. - # have to relink, otherwise we might link with an installed library
  46613. - # when we should be linking with a yet-to-be-installed one
  46614. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  46615. - test "$hardcode_minus_L_CXX" != no; then
  46616. - # Linking always hardcodes the temporary library directory.
  46617. - hardcode_action_CXX=relink
  46618. - else
  46619. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  46620. - hardcode_action_CXX=immediate
  46621. - fi
  46622. -else
  46623. - # We cannot hardcode anything, or else we can only hardcode existing
  46624. - # directories.
  46625. - hardcode_action_CXX=unsupported
  46626. -fi
  46627. -echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  46628. -echo "${ECHO_T}$hardcode_action_CXX" >&6
  46629. -
  46630. -if test "$hardcode_action_CXX" = relink; then
  46631. - # Fast installation is not supported
  46632. - enable_fast_install=no
  46633. -elif test "$shlibpath_overrides_runpath" = yes ||
  46634. - test "$enable_shared" = no; then
  46635. - # Fast installation is not necessary
  46636. - enable_fast_install=needless
  46637. -fi
  46638. -
  46639. -striplib=
  46640. -old_striplib=
  46641. -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  46642. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  46643. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  46644. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  46645. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  46646. - echo "$as_me:$LINENO: result: yes" >&5
  46647. -echo "${ECHO_T}yes" >&6
  46648. -else
  46649. -# FIXME - insert some real tests, host_os isn't really good enough
  46650. - case $host_os in
  46651. - NOT-darwin*)
  46652. - if test -n "$STRIP" ; then
  46653. - striplib="$STRIP -x"
  46654. - echo "$as_me:$LINENO: result: yes" >&5
  46655. -echo "${ECHO_T}yes" >&6
  46656. - else
  46657. - echo "$as_me:$LINENO: result: no" >&5
  46658. -echo "${ECHO_T}no" >&6
  46659. -fi
  46660. - ;;
  46661. - *)
  46662. - echo "$as_me:$LINENO: result: no" >&5
  46663. -echo "${ECHO_T}no" >&6
  46664. - ;;
  46665. - esac
  46666. -fi
  46667. -
  46668. -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  46669. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  46670. -library_names_spec=
  46671. -libname_spec='lib$name'
  46672. -soname_spec=
  46673. -shrext=".so"
  46674. -postinstall_cmds=
  46675. -postuninstall_cmds=
  46676. -finish_cmds=
  46677. -finish_eval=
  46678. -shlibpath_var=
  46679. -shlibpath_overrides_runpath=unknown
  46680. -version_type=none
  46681. -dynamic_linker="$host_os ld.so"
  46682. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  46683. -if test "$GCC" = yes; then
  46684. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  46685. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  46686. - # if the path contains ";" then we assume it to be the separator
  46687. - # otherwise default to the standard path separator (i.e. ":") - it is
  46688. - # assumed that no part of a normal pathname contains ";" but that should
  46689. - # okay in the real world where ";" in dirpaths is itself problematic.
  46690. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  46691. - else
  46692. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  46693. - fi
  46694. -else
  46695. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  46696. -fi
  46697. -need_lib_prefix=unknown
  46698. -hardcode_into_libs=no
  46699. -
  46700. -# when you set need_version to no, make sure it does not cause -set_version
  46701. -# flags to be left without arguments
  46702. -need_version=unknown
  46703. -
  46704. -case $host_os in
  46705. -aix3*)
  46706. - version_type=linux
  46707. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  46708. - shlibpath_var=LIBPATH
  46709. -
  46710. - # AIX 3 has no versioning support, so we append a major version to the name.
  46711. - soname_spec='${libname}${release}${shared_ext}$major'
  46712. - ;;
  46713. -
  46714. -aix4* | aix5*)
  46715. - version_type=linux
  46716. - need_lib_prefix=no
  46717. - need_version=no
  46718. - hardcode_into_libs=yes
  46719. - if test "$host_cpu" = ia64; then
  46720. - # AIX 5 supports IA64
  46721. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  46722. - shlibpath_var=LD_LIBRARY_PATH
  46723. - else
  46724. - # With GCC up to 2.95.x, collect2 would create an import file
  46725. - # for dependence libraries. The import file would start with
  46726. - # the line `#! .'. This would cause the generated library to
  46727. - # depend on `.', always an invalid library. This was fixed in
  46728. - # development snapshots of GCC prior to 3.0.
  46729. - case $host_os in
  46730. - aix4 | aix4.[01] | aix4.[01].*)
  46731. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  46732. - echo ' yes '
  46733. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  46734. - :
  46735. - else
  46736. - can_build_shared=no
  46737. - fi
  46738. - ;;
  46739. - esac
  46740. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  46741. - # soname into executable. Probably we can add versioning support to
  46742. - # collect2, so additional links can be useful in future.
  46743. - if test "$aix_use_runtimelinking" = yes; then
  46744. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  46745. - # instead of lib<name>.a to let people know that these are not
  46746. - # typical AIX shared libraries.
  46747. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  46748. - else
  46749. - # We preserve .a as extension for shared libraries through AIX4.2
  46750. - # and later when we are not doing run time linking.
  46751. - library_names_spec='${libname}${release}.a $libname.a'
  46752. - soname_spec='${libname}${release}${shared_ext}$major'
  46753. - fi
  46754. - shlibpath_var=LIBPATH
  46755. - fi
  46756. - ;;
  46757. -
  46758. -amigaos*)
  46759. - library_names_spec='$libname.ixlibrary $libname.a'
  46760. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  46761. - 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'
  46762. - ;;
  46763. -
  46764. -beos*)
  46765. - library_names_spec='${libname}${shared_ext}'
  46766. - dynamic_linker="$host_os ld.so"
  46767. - shlibpath_var=LIBRARY_PATH
  46768. - ;;
  46769. -
  46770. -bsdi4*)
  46771. - version_type=linux
  46772. - need_version=no
  46773. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  46774. - soname_spec='${libname}${release}${shared_ext}$major'
  46775. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  46776. - shlibpath_var=LD_LIBRARY_PATH
  46777. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  46778. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  46779. - # the default ld.so.conf also contains /usr/contrib/lib and
  46780. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  46781. - # libtool to hard-code these into programs
  46782. - ;;
  46783. -
  46784. -cygwin* | mingw* | pw32*)
  46785. - version_type=windows
  46786. - shrext=".dll"
  46787. - need_version=no
  46788. - need_lib_prefix=no
  46789. -
  46790. - case $GCC,$host_os in
  46791. - yes,cygwin* | yes,mingw* | yes,pw32*)
  46792. - library_names_spec='$libname.dll.a'
  46793. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  46794. - postinstall_cmds='base_file=`basename \${file}`${_S_}
  46795. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
  46796. - dldir=$destdir/`dirname \$dlpath`${_S_}
  46797. - test -d \$dldir || mkdir -p \$dldir${_S_}
  46798. - $install_prog $dir/$dlname \$dldir/$dlname'
  46799. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
  46800. - dlpath=$dir/\$dldll${_S_}
  46801. - $rm \$dlpath'
  46802. - shlibpath_overrides_runpath=yes
  46803. -
  46804. - case $host_os in
  46805. - cygwin*)
  46806. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  46807. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  46808. - sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
  46809. - ;;
  46810. - mingw*)
  46811. - # MinGW DLLs use traditional 'lib' prefix
  46812. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  46813. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  46814. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  46815. - # It is most probably a Windows format PATH printed by
  46816. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  46817. - # path with ; separators, and with drive letters. We can handle the
  46818. - # drive letters (cygwin fileutils understands them), so leave them,
  46819. - # especially as we might pass files found there to a mingw objdump,
  46820. - # which wouldn't understand a cygwinified path. Ahh.
  46821. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  46822. - else
  46823. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  46824. - fi
  46825. - ;;
  46826. - pw32*)
  46827. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  46828. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  46829. - ;;
  46830. - esac
  46831. - ;;
  46832. -
  46833. - *)
  46834. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  46835. - ;;
  46836. - esac
  46837. - dynamic_linker='Win32 ld.exe'
  46838. - # FIXME: first we should search . and the directory the executable is in
  46839. - shlibpath_var=PATH
  46840. - ;;
  46841. -
  46842. -darwin* | rhapsody*)
  46843. - dynamic_linker="$host_os dyld"
  46844. - version_type=darwin
  46845. - need_lib_prefix=no
  46846. - need_version=no
  46847. - # FIXME: Relying on posixy $() will cause problems for
  46848. - # cross-compilation, but unfortunately the echo tests do not
  46849. - # yet detect zsh echo's removal of \ escapes.
  46850. - library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
  46851. - soname_spec='${libname}${release}${major}$shared_ext'
  46852. - shlibpath_overrides_runpath=yes
  46853. - shlibpath_var=DYLD_LIBRARY_PATH
  46854. - shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  46855. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  46856. - if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
  46857. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  46858. - fi
  46859. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  46860. - ;;
  46861. -
  46862. -dgux*)
  46863. - version_type=linux
  46864. - need_lib_prefix=no
  46865. - need_version=no
  46866. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  46867. - soname_spec='${libname}${release}${shared_ext}$major'
  46868. - shlibpath_var=LD_LIBRARY_PATH
  46869. - ;;
  46870. -
  46871. -freebsd1*)
  46872. - dynamic_linker=no
  46873. - ;;
  46874. -
  46875. -freebsd*)
  46876. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  46877. - version_type=freebsd-$objformat
  46878. - case $version_type in
  46879. - freebsd-elf*)
  46880. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  46881. - need_version=no
  46882. - need_lib_prefix=no
  46883. - ;;
  46884. - freebsd-*)
  46885. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  46886. - need_version=yes
  46887. - ;;
  46888. - esac
  46889. - shlibpath_var=LD_LIBRARY_PATH
  46890. - case $host_os in
  46891. - freebsd2*)
  46892. - shlibpath_overrides_runpath=yes
  46893. - ;;
  46894. - freebsd3.01* | freebsdelf3.01*)
  46895. - shlibpath_overrides_runpath=yes
  46896. - hardcode_into_libs=yes
  46897. - ;;
  46898. - *) # from 3.2 on
  46899. - shlibpath_overrides_runpath=no
  46900. - hardcode_into_libs=yes
  46901. - ;;
  46902. - esac
  46903. - ;;
  46904. -
  46905. -gnu*)
  46906. - version_type=linux
  46907. - need_lib_prefix=no
  46908. - need_version=no
  46909. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  46910. - soname_spec='${libname}${release}${shared_ext}$major'
  46911. - shlibpath_var=LD_LIBRARY_PATH
  46912. - hardcode_into_libs=yes
  46913. - ;;
  46914. -
  46915. -hpux9* | hpux10* | hpux11*)
  46916. - # Give a soname corresponding to the major version so that dld.sl refuses to
  46917. - # link against other versions.
  46918. - version_type=sunos
  46919. - need_lib_prefix=no
  46920. - need_version=no
  46921. - case "$host_cpu" in
  46922. - ia64*)
  46923. - shrext='.so'
  46924. - hardcode_into_libs=yes
  46925. - dynamic_linker="$host_os dld.so"
  46926. - shlibpath_var=LD_LIBRARY_PATH
  46927. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  46928. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  46929. - soname_spec='${libname}${release}${shared_ext}$major'
  46930. - if test "X$HPUX_IA64_MODE" = X32; then
  46931. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  46932. - else
  46933. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  46934. - fi
  46935. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  46936. - ;;
  46937. - hppa*64*)
  46938. - shrext='.sl'
  46939. - hardcode_into_libs=yes
  46940. - dynamic_linker="$host_os dld.sl"
  46941. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  46942. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  46943. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  46944. - soname_spec='${libname}${release}${shared_ext}$major'
  46945. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  46946. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  46947. - ;;
  46948. - *)
  46949. - shrext='.sl'
  46950. - dynamic_linker="$host_os dld.sl"
  46951. - shlibpath_var=SHLIB_PATH
  46952. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  46953. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  46954. - soname_spec='${libname}${release}${shared_ext}$major'
  46955. - ;;
  46956. - esac
  46957. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  46958. - postinstall_cmds='chmod 555 $lib'
  46959. - ;;
  46960. -
  46961. -irix5* | irix6* | nonstopux*)
  46962. - case $host_os in
  46963. - nonstopux*) version_type=nonstopux ;;
  46964. - *)
  46965. - if test "$lt_cv_prog_gnu_ld" = yes; then
  46966. - version_type=linux
  46967. - else
  46968. - version_type=irix
  46969. - fi ;;
  46970. - esac
  46971. - need_lib_prefix=no
  46972. - need_version=no
  46973. - soname_spec='${libname}${release}${shared_ext}$major'
  46974. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  46975. - case $host_os in
  46976. - irix5* | nonstopux*)
  46977. - libsuff= shlibsuff=
  46978. - ;;
  46979. - *)
  46980. - case $LD in # libtool.m4 will add one of these switches to LD
  46981. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  46982. - libsuff= shlibsuff= libmagic=32-bit;;
  46983. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  46984. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  46985. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  46986. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  46987. - *) libsuff= shlibsuff= libmagic=never-match;;
  46988. - esac
  46989. - ;;
  46990. - esac
  46991. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  46992. - shlibpath_overrides_runpath=no
  46993. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  46994. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  46995. - hardcode_into_libs=yes
  46996. - ;;
  46997. -
  46998. -# No shared lib support for Linux oldld, aout, or coff.
  46999. -linux*oldld* | linux*aout* | linux*coff*)
  47000. - dynamic_linker=no
  47001. - ;;
  47002. -
  47003. -# This must be Linux ELF.
  47004. -linux*)
  47005. - version_type=linux
  47006. - need_lib_prefix=no
  47007. - need_version=no
  47008. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  47009. - soname_spec='${libname}${release}${shared_ext}$major'
  47010. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  47011. - shlibpath_var=LD_LIBRARY_PATH
  47012. - shlibpath_overrides_runpath=no
  47013. - # This implies no fast_install, which is unacceptable.
  47014. - # Some rework will be needed to allow for fast_install
  47015. - # before this can be enabled.
  47016. - hardcode_into_libs=yes
  47017. -
  47018. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  47019. - # powerpc, because MkLinux only supported shared libraries with the
  47020. - # GNU dynamic linker. Since this was broken with cross compilers,
  47021. - # most powerpc-linux boxes support dynamic linking these days and
  47022. - # people can always --disable-shared, the test was removed, and we
  47023. - # assume the GNU/Linux dynamic linker is in use.
  47024. - dynamic_linker='GNU/Linux ld.so'
  47025. - ;;
  47026. -
  47027. -netbsd*)
  47028. - version_type=sunos
  47029. - need_lib_prefix=no
  47030. - need_version=no
  47031. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  47032. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  47033. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  47034. - dynamic_linker='NetBSD (a.out) ld.so'
  47035. - else
  47036. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
  47037. - soname_spec='${libname}${release}${shared_ext}$major'
  47038. - dynamic_linker='NetBSD ld.elf_so'
  47039. - fi
  47040. - shlibpath_var=LD_LIBRARY_PATH
  47041. - shlibpath_overrides_runpath=yes
  47042. - hardcode_into_libs=yes
  47043. - ;;
  47044. -
  47045. -newsos6)
  47046. - version_type=linux
  47047. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  47048. - shlibpath_var=LD_LIBRARY_PATH
  47049. - shlibpath_overrides_runpath=yes
  47050. - ;;
  47051. -
  47052. -nto-qnx)
  47053. - version_type=linux
  47054. - need_lib_prefix=no
  47055. - need_version=no
  47056. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  47057. - soname_spec='${libname}${release}${shared_ext}$major'
  47058. - shlibpath_var=LD_LIBRARY_PATH
  47059. - shlibpath_overrides_runpath=yes
  47060. - ;;
  47061. -
  47062. -openbsd*)
  47063. - version_type=sunos
  47064. - need_lib_prefix=no
  47065. - need_version=no
  47066. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  47067. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  47068. - shlibpath_var=LD_LIBRARY_PATH
  47069. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  47070. - case $host_os in
  47071. - openbsd2.[89] | openbsd2.[89].*)
  47072. - shlibpath_overrides_runpath=no
  47073. - ;;
  47074. - *)
  47075. - shlibpath_overrides_runpath=yes
  47076. - ;;
  47077. - esac
  47078. - else
  47079. - shlibpath_overrides_runpath=yes
  47080. - fi
  47081. - ;;
  47082. -
  47083. -os2*)
  47084. - libname_spec='$name'
  47085. - shrext=".dll"
  47086. - need_lib_prefix=no
  47087. - library_names_spec='$libname${shared_ext} $libname.a'
  47088. - dynamic_linker='OS/2 ld.exe'
  47089. - shlibpath_var=LIBPATH
  47090. - ;;
  47091. -
  47092. -osf3* | osf4* | osf5*)
  47093. - version_type=osf
  47094. - need_lib_prefix=no
  47095. - need_version=no
  47096. - soname_spec='${libname}${release}${shared_ext}$major'
  47097. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  47098. - shlibpath_var=LD_LIBRARY_PATH
  47099. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  47100. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  47101. - ;;
  47102. -
  47103. -sco3.2v5*)
  47104. - version_type=osf
  47105. - soname_spec='${libname}${release}${shared_ext}$major'
  47106. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  47107. - shlibpath_var=LD_LIBRARY_PATH
  47108. - ;;
  47109. -
  47110. -solaris*)
  47111. - version_type=linux
  47112. - need_lib_prefix=no
  47113. - need_version=no
  47114. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  47115. - soname_spec='${libname}${release}${shared_ext}$major'
  47116. - shlibpath_var=LD_LIBRARY_PATH
  47117. - shlibpath_overrides_runpath=yes
  47118. - hardcode_into_libs=yes
  47119. - # ldd complains unless libraries are executable
  47120. - postinstall_cmds='chmod +x $lib'
  47121. - ;;
  47122. -
  47123. -sunos4*)
  47124. - version_type=sunos
  47125. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  47126. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  47127. - shlibpath_var=LD_LIBRARY_PATH
  47128. - shlibpath_overrides_runpath=yes
  47129. - if test "$with_gnu_ld" = yes; then
  47130. - need_lib_prefix=no
  47131. - fi
  47132. - need_version=yes
  47133. - ;;
  47134. -
  47135. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  47136. - version_type=linux
  47137. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  47138. - soname_spec='${libname}${release}${shared_ext}$major'
  47139. - shlibpath_var=LD_LIBRARY_PATH
  47140. - case $host_vendor in
  47141. - sni)
  47142. - shlibpath_overrides_runpath=no
  47143. - need_lib_prefix=no
  47144. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  47145. - runpath_var=LD_RUN_PATH
  47146. - ;;
  47147. - siemens)
  47148. - need_lib_prefix=no
  47149. - ;;
  47150. - motorola)
  47151. - need_lib_prefix=no
  47152. - need_version=no
  47153. - shlibpath_overrides_runpath=no
  47154. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  47155. - ;;
  47156. - esac
  47157. - ;;
  47158. -
  47159. -sysv4*MP*)
  47160. - if test -d /usr/nec ;then
  47161. - version_type=linux
  47162. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  47163. - soname_spec='$libname${shared_ext}.$major'
  47164. - shlibpath_var=LD_LIBRARY_PATH
  47165. - fi
  47166. - ;;
  47167. -
  47168. -uts4*)
  47169. - version_type=linux
  47170. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  47171. - soname_spec='${libname}${release}${shared_ext}$major'
  47172. - shlibpath_var=LD_LIBRARY_PATH
  47173. - ;;
  47174. -
  47175. -*)
  47176. - dynamic_linker=no
  47177. - ;;
  47178. -esac
  47179. -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  47180. -echo "${ECHO_T}$dynamic_linker" >&6
  47181. -test "$dynamic_linker" = no && can_build_shared=no
  47182. -
  47183. -if test "x$enable_dlopen" != xyes; then
  47184. - enable_dlopen=unknown
  47185. - enable_dlopen_self=unknown
  47186. - enable_dlopen_self_static=unknown
  47187. -else
  47188. - lt_cv_dlopen=no
  47189. - lt_cv_dlopen_libs=
  47190. -
  47191. - case $host_os in
  47192. - beos*)
  47193. - lt_cv_dlopen="load_add_on"
  47194. - lt_cv_dlopen_libs=
  47195. - lt_cv_dlopen_self=yes
  47196. - ;;
  47197. -
  47198. - mingw* | pw32*)
  47199. - lt_cv_dlopen="LoadLibrary"
  47200. - lt_cv_dlopen_libs=
  47201. - ;;
  47202. -
  47203. - cygwin*)
  47204. - lt_cv_dlopen="dlopen"
  47205. - lt_cv_dlopen_libs=
  47206. - ;;
  47207. -
  47208. - darwin*)
  47209. - # if libdl is installed we need to link against it
  47210. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  47211. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  47212. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  47213. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47214. -else
  47215. - ac_check_lib_save_LIBS=$LIBS
  47216. -LIBS="-ldl $LIBS"
  47217. -cat >conftest.$ac_ext <<_ACEOF
  47218. -/* confdefs.h. */
  47219. -_ACEOF
  47220. -cat confdefs.h >>conftest.$ac_ext
  47221. -cat >>conftest.$ac_ext <<_ACEOF
  47222. -/* end confdefs.h. */
  47223. -
  47224. -/* Override any gcc2 internal prototype to avoid an error. */
  47225. -#ifdef __cplusplus
  47226. -extern "C"
  47227. -#endif
  47228. -/* We use char because int might match the return type of a gcc2
  47229. - builtin and then its argument prototype would still apply. */
  47230. -char dlopen ();
  47231. -int
  47232. -main ()
  47233. -{
  47234. -dlopen ();
  47235. - ;
  47236. - return 0;
  47237. -}
  47238. -_ACEOF
  47239. -rm -f conftest.$ac_objext conftest$ac_exeext
  47240. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  47241. - (eval $ac_link) 2>conftest.er1
  47242. - ac_status=$?
  47243. - grep -v '^ *+' conftest.er1 >conftest.err
  47244. - rm -f conftest.er1
  47245. - cat conftest.err >&5
  47246. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47247. - (exit $ac_status); } &&
  47248. - { ac_try='test -z "$ac_cxx_werror_flag"
  47249. - || test ! -s conftest.err'
  47250. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  47251. - (eval $ac_try) 2>&5
  47252. - ac_status=$?
  47253. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47254. - (exit $ac_status); }; } &&
  47255. - { ac_try='test -s conftest$ac_exeext'
  47256. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  47257. - (eval $ac_try) 2>&5
  47258. - ac_status=$?
  47259. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47260. - (exit $ac_status); }; }; then
  47261. - ac_cv_lib_dl_dlopen=yes
  47262. -else
  47263. - echo "$as_me: failed program was:" >&5
  47264. -sed 's/^/| /' conftest.$ac_ext >&5
  47265. -
  47266. -ac_cv_lib_dl_dlopen=no
  47267. -fi
  47268. -rm -f conftest.err conftest.$ac_objext \
  47269. - conftest$ac_exeext conftest.$ac_ext
  47270. -LIBS=$ac_check_lib_save_LIBS
  47271. -fi
  47272. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  47273. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  47274. -if test $ac_cv_lib_dl_dlopen = yes; then
  47275. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  47276. -else
  47277. -
  47278. - lt_cv_dlopen="dyld"
  47279. - lt_cv_dlopen_libs=
  47280. - lt_cv_dlopen_self=yes
  47281. -
  47282. -fi
  47283. -
  47284. - ;;
  47285. -
  47286. - *)
  47287. - echo "$as_me:$LINENO: checking for shl_load" >&5
  47288. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  47289. -if test "${ac_cv_func_shl_load+set}" = set; then
  47290. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47291. -else
  47292. - cat >conftest.$ac_ext <<_ACEOF
  47293. -/* confdefs.h. */
  47294. -_ACEOF
  47295. -cat confdefs.h >>conftest.$ac_ext
  47296. -cat >>conftest.$ac_ext <<_ACEOF
  47297. -/* end confdefs.h. */
  47298. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  47299. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  47300. -#define shl_load innocuous_shl_load
  47301. -
  47302. -/* System header to define __stub macros and hopefully few prototypes,
  47303. - which can conflict with char shl_load (); below.
  47304. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  47305. - <limits.h> exists even on freestanding compilers. */
  47306. -
  47307. -#ifdef __STDC__
  47308. -# include <limits.h>
  47309. -#else
  47310. -# include <assert.h>
  47311. -#endif
  47312. -
  47313. -#undef shl_load
  47314. -
  47315. -/* Override any gcc2 internal prototype to avoid an error. */
  47316. -#ifdef __cplusplus
  47317. -extern "C"
  47318. -{
  47319. -#endif
  47320. -/* We use char because int might match the return type of a gcc2
  47321. - builtin and then its argument prototype would still apply. */
  47322. -char shl_load ();
  47323. -/* The GNU C library defines this for functions which it implements
  47324. - to always fail with ENOSYS. Some functions are actually named
  47325. - something starting with __ and the normal name is an alias. */
  47326. -#if defined (__stub_shl_load) || defined (__stub___shl_load)
  47327. -choke me
  47328. -#else
  47329. -char (*f) () = shl_load;
  47330. -#endif
  47331. -#ifdef __cplusplus
  47332. -}
  47333. -#endif
  47334. -
  47335. -int
  47336. -main ()
  47337. -{
  47338. -return f != shl_load;
  47339. - ;
  47340. - return 0;
  47341. -}
  47342. -_ACEOF
  47343. -rm -f conftest.$ac_objext conftest$ac_exeext
  47344. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  47345. - (eval $ac_link) 2>conftest.er1
  47346. - ac_status=$?
  47347. - grep -v '^ *+' conftest.er1 >conftest.err
  47348. - rm -f conftest.er1
  47349. - cat conftest.err >&5
  47350. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47351. - (exit $ac_status); } &&
  47352. - { ac_try='test -z "$ac_cxx_werror_flag"
  47353. - || test ! -s conftest.err'
  47354. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  47355. - (eval $ac_try) 2>&5
  47356. - ac_status=$?
  47357. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47358. - (exit $ac_status); }; } &&
  47359. - { ac_try='test -s conftest$ac_exeext'
  47360. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  47361. - (eval $ac_try) 2>&5
  47362. - ac_status=$?
  47363. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47364. - (exit $ac_status); }; }; then
  47365. - ac_cv_func_shl_load=yes
  47366. -else
  47367. - echo "$as_me: failed program was:" >&5
  47368. -sed 's/^/| /' conftest.$ac_ext >&5
  47369. -
  47370. -ac_cv_func_shl_load=no
  47371. -fi
  47372. -rm -f conftest.err conftest.$ac_objext \
  47373. - conftest$ac_exeext conftest.$ac_ext
  47374. -fi
  47375. -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  47376. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  47377. -if test $ac_cv_func_shl_load = yes; then
  47378. - lt_cv_dlopen="shl_load"
  47379. -else
  47380. - echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  47381. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  47382. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  47383. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47384. -else
  47385. - ac_check_lib_save_LIBS=$LIBS
  47386. -LIBS="-ldld $LIBS"
  47387. -cat >conftest.$ac_ext <<_ACEOF
  47388. -/* confdefs.h. */
  47389. -_ACEOF
  47390. -cat confdefs.h >>conftest.$ac_ext
  47391. -cat >>conftest.$ac_ext <<_ACEOF
  47392. -/* end confdefs.h. */
  47393. -
  47394. -/* Override any gcc2 internal prototype to avoid an error. */
  47395. -#ifdef __cplusplus
  47396. -extern "C"
  47397. -#endif
  47398. -/* We use char because int might match the return type of a gcc2
  47399. - builtin and then its argument prototype would still apply. */
  47400. -char shl_load ();
  47401. -int
  47402. -main ()
  47403. -{
  47404. -shl_load ();
  47405. - ;
  47406. - return 0;
  47407. -}
  47408. -_ACEOF
  47409. -rm -f conftest.$ac_objext conftest$ac_exeext
  47410. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  47411. - (eval $ac_link) 2>conftest.er1
  47412. - ac_status=$?
  47413. - grep -v '^ *+' conftest.er1 >conftest.err
  47414. - rm -f conftest.er1
  47415. - cat conftest.err >&5
  47416. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47417. - (exit $ac_status); } &&
  47418. - { ac_try='test -z "$ac_cxx_werror_flag"
  47419. - || test ! -s conftest.err'
  47420. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  47421. - (eval $ac_try) 2>&5
  47422. - ac_status=$?
  47423. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47424. - (exit $ac_status); }; } &&
  47425. - { ac_try='test -s conftest$ac_exeext'
  47426. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  47427. - (eval $ac_try) 2>&5
  47428. - ac_status=$?
  47429. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47430. - (exit $ac_status); }; }; then
  47431. - ac_cv_lib_dld_shl_load=yes
  47432. -else
  47433. - echo "$as_me: failed program was:" >&5
  47434. -sed 's/^/| /' conftest.$ac_ext >&5
  47435. -
  47436. -ac_cv_lib_dld_shl_load=no
  47437. -fi
  47438. -rm -f conftest.err conftest.$ac_objext \
  47439. - conftest$ac_exeext conftest.$ac_ext
  47440. -LIBS=$ac_check_lib_save_LIBS
  47441. -fi
  47442. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  47443. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  47444. -if test $ac_cv_lib_dld_shl_load = yes; then
  47445. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  47446. -else
  47447. - echo "$as_me:$LINENO: checking for dlopen" >&5
  47448. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  47449. -if test "${ac_cv_func_dlopen+set}" = set; then
  47450. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47451. -else
  47452. - cat >conftest.$ac_ext <<_ACEOF
  47453. -/* confdefs.h. */
  47454. -_ACEOF
  47455. -cat confdefs.h >>conftest.$ac_ext
  47456. -cat >>conftest.$ac_ext <<_ACEOF
  47457. -/* end confdefs.h. */
  47458. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  47459. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  47460. -#define dlopen innocuous_dlopen
  47461. -
  47462. -/* System header to define __stub macros and hopefully few prototypes,
  47463. - which can conflict with char dlopen (); below.
  47464. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  47465. - <limits.h> exists even on freestanding compilers. */
  47466. -
  47467. -#ifdef __STDC__
  47468. -# include <limits.h>
  47469. -#else
  47470. -# include <assert.h>
  47471. -#endif
  47472. -
  47473. -#undef dlopen
  47474. -
  47475. -/* Override any gcc2 internal prototype to avoid an error. */
  47476. -#ifdef __cplusplus
  47477. -extern "C"
  47478. -{
  47479. -#endif
  47480. -/* We use char because int might match the return type of a gcc2
  47481. - builtin and then its argument prototype would still apply. */
  47482. -char dlopen ();
  47483. -/* The GNU C library defines this for functions which it implements
  47484. - to always fail with ENOSYS. Some functions are actually named
  47485. - something starting with __ and the normal name is an alias. */
  47486. -#if defined (__stub_dlopen) || defined (__stub___dlopen)
  47487. -choke me
  47488. -#else
  47489. -char (*f) () = dlopen;
  47490. -#endif
  47491. -#ifdef __cplusplus
  47492. -}
  47493. -#endif
  47494. -
  47495. -int
  47496. -main ()
  47497. -{
  47498. -return f != dlopen;
  47499. - ;
  47500. - return 0;
  47501. -}
  47502. -_ACEOF
  47503. -rm -f conftest.$ac_objext conftest$ac_exeext
  47504. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  47505. - (eval $ac_link) 2>conftest.er1
  47506. - ac_status=$?
  47507. - grep -v '^ *+' conftest.er1 >conftest.err
  47508. - rm -f conftest.er1
  47509. - cat conftest.err >&5
  47510. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47511. - (exit $ac_status); } &&
  47512. - { ac_try='test -z "$ac_cxx_werror_flag"
  47513. - || test ! -s conftest.err'
  47514. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  47515. - (eval $ac_try) 2>&5
  47516. - ac_status=$?
  47517. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47518. - (exit $ac_status); }; } &&
  47519. - { ac_try='test -s conftest$ac_exeext'
  47520. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  47521. - (eval $ac_try) 2>&5
  47522. - ac_status=$?
  47523. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47524. - (exit $ac_status); }; }; then
  47525. - ac_cv_func_dlopen=yes
  47526. -else
  47527. - echo "$as_me: failed program was:" >&5
  47528. -sed 's/^/| /' conftest.$ac_ext >&5
  47529. -
  47530. -ac_cv_func_dlopen=no
  47531. -fi
  47532. -rm -f conftest.err conftest.$ac_objext \
  47533. - conftest$ac_exeext conftest.$ac_ext
  47534. -fi
  47535. -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  47536. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  47537. -if test $ac_cv_func_dlopen = yes; then
  47538. - lt_cv_dlopen="dlopen"
  47539. -else
  47540. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  47541. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  47542. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  47543. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47544. -else
  47545. - ac_check_lib_save_LIBS=$LIBS
  47546. -LIBS="-ldl $LIBS"
  47547. -cat >conftest.$ac_ext <<_ACEOF
  47548. -/* confdefs.h. */
  47549. -_ACEOF
  47550. -cat confdefs.h >>conftest.$ac_ext
  47551. -cat >>conftest.$ac_ext <<_ACEOF
  47552. -/* end confdefs.h. */
  47553. -
  47554. -/* Override any gcc2 internal prototype to avoid an error. */
  47555. -#ifdef __cplusplus
  47556. -extern "C"
  47557. -#endif
  47558. -/* We use char because int might match the return type of a gcc2
  47559. - builtin and then its argument prototype would still apply. */
  47560. -char dlopen ();
  47561. -int
  47562. -main ()
  47563. -{
  47564. -dlopen ();
  47565. - ;
  47566. - return 0;
  47567. -}
  47568. -_ACEOF
  47569. -rm -f conftest.$ac_objext conftest$ac_exeext
  47570. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  47571. - (eval $ac_link) 2>conftest.er1
  47572. - ac_status=$?
  47573. - grep -v '^ *+' conftest.er1 >conftest.err
  47574. - rm -f conftest.er1
  47575. - cat conftest.err >&5
  47576. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47577. - (exit $ac_status); } &&
  47578. - { ac_try='test -z "$ac_cxx_werror_flag"
  47579. - || test ! -s conftest.err'
  47580. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  47581. - (eval $ac_try) 2>&5
  47582. - ac_status=$?
  47583. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47584. - (exit $ac_status); }; } &&
  47585. - { ac_try='test -s conftest$ac_exeext'
  47586. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  47587. - (eval $ac_try) 2>&5
  47588. - ac_status=$?
  47589. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47590. - (exit $ac_status); }; }; then
  47591. - ac_cv_lib_dl_dlopen=yes
  47592. -else
  47593. - echo "$as_me: failed program was:" >&5
  47594. -sed 's/^/| /' conftest.$ac_ext >&5
  47595. -
  47596. -ac_cv_lib_dl_dlopen=no
  47597. -fi
  47598. -rm -f conftest.err conftest.$ac_objext \
  47599. - conftest$ac_exeext conftest.$ac_ext
  47600. -LIBS=$ac_check_lib_save_LIBS
  47601. -fi
  47602. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  47603. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  47604. -if test $ac_cv_lib_dl_dlopen = yes; then
  47605. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  47606. -else
  47607. - echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  47608. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  47609. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  47610. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47611. -else
  47612. - ac_check_lib_save_LIBS=$LIBS
  47613. -LIBS="-lsvld $LIBS"
  47614. -cat >conftest.$ac_ext <<_ACEOF
  47615. -/* confdefs.h. */
  47616. -_ACEOF
  47617. -cat confdefs.h >>conftest.$ac_ext
  47618. -cat >>conftest.$ac_ext <<_ACEOF
  47619. -/* end confdefs.h. */
  47620. -
  47621. -/* Override any gcc2 internal prototype to avoid an error. */
  47622. -#ifdef __cplusplus
  47623. -extern "C"
  47624. -#endif
  47625. -/* We use char because int might match the return type of a gcc2
  47626. - builtin and then its argument prototype would still apply. */
  47627. -char dlopen ();
  47628. -int
  47629. -main ()
  47630. -{
  47631. -dlopen ();
  47632. - ;
  47633. - return 0;
  47634. -}
  47635. -_ACEOF
  47636. -rm -f conftest.$ac_objext conftest$ac_exeext
  47637. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  47638. - (eval $ac_link) 2>conftest.er1
  47639. - ac_status=$?
  47640. - grep -v '^ *+' conftest.er1 >conftest.err
  47641. - rm -f conftest.er1
  47642. - cat conftest.err >&5
  47643. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47644. - (exit $ac_status); } &&
  47645. - { ac_try='test -z "$ac_cxx_werror_flag"
  47646. - || test ! -s conftest.err'
  47647. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  47648. - (eval $ac_try) 2>&5
  47649. - ac_status=$?
  47650. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47651. - (exit $ac_status); }; } &&
  47652. - { ac_try='test -s conftest$ac_exeext'
  47653. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  47654. - (eval $ac_try) 2>&5
  47655. - ac_status=$?
  47656. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47657. - (exit $ac_status); }; }; then
  47658. - ac_cv_lib_svld_dlopen=yes
  47659. -else
  47660. - echo "$as_me: failed program was:" >&5
  47661. -sed 's/^/| /' conftest.$ac_ext >&5
  47662. -
  47663. -ac_cv_lib_svld_dlopen=no
  47664. -fi
  47665. -rm -f conftest.err conftest.$ac_objext \
  47666. - conftest$ac_exeext conftest.$ac_ext
  47667. -LIBS=$ac_check_lib_save_LIBS
  47668. -fi
  47669. -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  47670. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  47671. -if test $ac_cv_lib_svld_dlopen = yes; then
  47672. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  47673. -else
  47674. - echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  47675. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  47676. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  47677. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47678. -else
  47679. - ac_check_lib_save_LIBS=$LIBS
  47680. -LIBS="-ldld $LIBS"
  47681. -cat >conftest.$ac_ext <<_ACEOF
  47682. -/* confdefs.h. */
  47683. -_ACEOF
  47684. -cat confdefs.h >>conftest.$ac_ext
  47685. -cat >>conftest.$ac_ext <<_ACEOF
  47686. -/* end confdefs.h. */
  47687. -
  47688. -/* Override any gcc2 internal prototype to avoid an error. */
  47689. -#ifdef __cplusplus
  47690. -extern "C"
  47691. -#endif
  47692. -/* We use char because int might match the return type of a gcc2
  47693. - builtin and then its argument prototype would still apply. */
  47694. -char dld_link ();
  47695. -int
  47696. -main ()
  47697. -{
  47698. -dld_link ();
  47699. - ;
  47700. - return 0;
  47701. -}
  47702. -_ACEOF
  47703. -rm -f conftest.$ac_objext conftest$ac_exeext
  47704. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  47705. - (eval $ac_link) 2>conftest.er1
  47706. - ac_status=$?
  47707. - grep -v '^ *+' conftest.er1 >conftest.err
  47708. - rm -f conftest.er1
  47709. - cat conftest.err >&5
  47710. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47711. - (exit $ac_status); } &&
  47712. - { ac_try='test -z "$ac_cxx_werror_flag"
  47713. - || test ! -s conftest.err'
  47714. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  47715. - (eval $ac_try) 2>&5
  47716. - ac_status=$?
  47717. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47718. - (exit $ac_status); }; } &&
  47719. - { ac_try='test -s conftest$ac_exeext'
  47720. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  47721. - (eval $ac_try) 2>&5
  47722. - ac_status=$?
  47723. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47724. - (exit $ac_status); }; }; then
  47725. - ac_cv_lib_dld_dld_link=yes
  47726. -else
  47727. - echo "$as_me: failed program was:" >&5
  47728. -sed 's/^/| /' conftest.$ac_ext >&5
  47729. -
  47730. -ac_cv_lib_dld_dld_link=no
  47731. -fi
  47732. -rm -f conftest.err conftest.$ac_objext \
  47733. - conftest$ac_exeext conftest.$ac_ext
  47734. -LIBS=$ac_check_lib_save_LIBS
  47735. -fi
  47736. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  47737. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  47738. -if test $ac_cv_lib_dld_dld_link = yes; then
  47739. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  47740. -fi
  47741. -
  47742. -
  47743. -fi
  47744. -
  47745. -
  47746. -fi
  47747. -
  47748. -
  47749. -fi
  47750. -
  47751. -
  47752. -fi
  47753. -
  47754. -
  47755. -fi
  47756. -
  47757. - ;;
  47758. - esac
  47759. -
  47760. - if test "x$lt_cv_dlopen" != xno; then
  47761. - enable_dlopen=yes
  47762. - else
  47763. - enable_dlopen=no
  47764. - fi
  47765. -
  47766. - case $lt_cv_dlopen in
  47767. - dlopen)
  47768. - save_CPPFLAGS="$CPPFLAGS"
  47769. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  47770. -
  47771. - save_LDFLAGS="$LDFLAGS"
  47772. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  47773. -
  47774. - save_LIBS="$LIBS"
  47775. - LIBS="$lt_cv_dlopen_libs $LIBS"
  47776. -
  47777. - echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  47778. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  47779. -if test "${lt_cv_dlopen_self+set}" = set; then
  47780. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47781. -else
  47782. - if test "$cross_compiling" = yes; then :
  47783. - lt_cv_dlopen_self=cross
  47784. -else
  47785. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  47786. - lt_status=$lt_dlunknown
  47787. - cat > conftest.$ac_ext <<EOF
  47788. -#line 12375 "configure"
  47789. -#include "confdefs.h"
  47790. -
  47791. -#if HAVE_DLFCN_H
  47792. -#include <dlfcn.h>
  47793. -#endif
  47794. -
  47795. -#include <stdio.h>
  47796. -
  47797. -#ifdef RTLD_GLOBAL
  47798. -# define LT_DLGLOBAL RTLD_GLOBAL
  47799. -#else
  47800. -# ifdef DL_GLOBAL
  47801. -# define LT_DLGLOBAL DL_GLOBAL
  47802. -# else
  47803. -# define LT_DLGLOBAL 0
  47804. -# endif
  47805. -#endif
  47806. -
  47807. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  47808. - find out it does not work in some platform. */
  47809. -#ifndef LT_DLLAZY_OR_NOW
  47810. -# ifdef RTLD_LAZY
  47811. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  47812. -# else
  47813. -# ifdef DL_LAZY
  47814. -# define LT_DLLAZY_OR_NOW DL_LAZY
  47815. -# else
  47816. -# ifdef RTLD_NOW
  47817. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  47818. -# else
  47819. -# ifdef DL_NOW
  47820. -# define LT_DLLAZY_OR_NOW DL_NOW
  47821. -# else
  47822. -# define LT_DLLAZY_OR_NOW 0
  47823. -# endif
  47824. -# endif
  47825. -# endif
  47826. -# endif
  47827. -#endif
  47828. -
  47829. -#ifdef __cplusplus
  47830. -extern "C" void exit (int);
  47831. -#endif
  47832. -
  47833. -void fnord() { int i=42;}
  47834. -int main ()
  47835. -{
  47836. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  47837. - int status = $lt_dlunknown;
  47838. -
  47839. - if (self)
  47840. - {
  47841. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  47842. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  47843. - /* dlclose (self); */
  47844. - }
  47845. -
  47846. - exit (status);
  47847. -}
  47848. -EOF
  47849. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  47850. - (eval $ac_link) 2>&5
  47851. - ac_status=$?
  47852. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47853. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  47854. - (./conftest; exit; ) 2>/dev/null
  47855. - lt_status=$?
  47856. - case x$lt_status in
  47857. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  47858. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  47859. - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  47860. - esac
  47861. - else :
  47862. - # compilation failed
  47863. - lt_cv_dlopen_self=no
  47864. - fi
  47865. -fi
  47866. -rm -fr conftest*
  47867. -
  47868. -
  47869. -fi
  47870. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  47871. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  47872. -
  47873. - if test "x$lt_cv_dlopen_self" = xyes; then
  47874. - LDFLAGS="$LDFLAGS $link_static_flag"
  47875. - echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  47876. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  47877. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  47878. - echo $ECHO_N "(cached) $ECHO_C" >&6
  47879. -else
  47880. - if test "$cross_compiling" = yes; then :
  47881. - lt_cv_dlopen_self_static=cross
  47882. -else
  47883. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  47884. - lt_status=$lt_dlunknown
  47885. - cat > conftest.$ac_ext <<EOF
  47886. -#line 12473 "configure"
  47887. -#include "confdefs.h"
  47888. -
  47889. -#if HAVE_DLFCN_H
  47890. -#include <dlfcn.h>
  47891. -#endif
  47892. -
  47893. -#include <stdio.h>
  47894. -
  47895. -#ifdef RTLD_GLOBAL
  47896. -# define LT_DLGLOBAL RTLD_GLOBAL
  47897. -#else
  47898. -# ifdef DL_GLOBAL
  47899. -# define LT_DLGLOBAL DL_GLOBAL
  47900. -# else
  47901. -# define LT_DLGLOBAL 0
  47902. -# endif
  47903. -#endif
  47904. -
  47905. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  47906. - find out it does not work in some platform. */
  47907. -#ifndef LT_DLLAZY_OR_NOW
  47908. -# ifdef RTLD_LAZY
  47909. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  47910. -# else
  47911. -# ifdef DL_LAZY
  47912. -# define LT_DLLAZY_OR_NOW DL_LAZY
  47913. -# else
  47914. -# ifdef RTLD_NOW
  47915. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  47916. -# else
  47917. -# ifdef DL_NOW
  47918. -# define LT_DLLAZY_OR_NOW DL_NOW
  47919. -# else
  47920. -# define LT_DLLAZY_OR_NOW 0
  47921. -# endif
  47922. -# endif
  47923. -# endif
  47924. -# endif
  47925. -#endif
  47926. -
  47927. -#ifdef __cplusplus
  47928. -extern "C" void exit (int);
  47929. -#endif
  47930. -
  47931. -void fnord() { int i=42;}
  47932. -int main ()
  47933. -{
  47934. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  47935. - int status = $lt_dlunknown;
  47936. -
  47937. - if (self)
  47938. - {
  47939. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  47940. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  47941. - /* dlclose (self); */
  47942. - }
  47943. -
  47944. - exit (status);
  47945. -}
  47946. -EOF
  47947. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  47948. - (eval $ac_link) 2>&5
  47949. - ac_status=$?
  47950. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47951. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  47952. - (./conftest; exit; ) 2>/dev/null
  47953. - lt_status=$?
  47954. - case x$lt_status in
  47955. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  47956. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  47957. - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  47958. - esac
  47959. - else :
  47960. - # compilation failed
  47961. - lt_cv_dlopen_self_static=no
  47962. - fi
  47963. -fi
  47964. -rm -fr conftest*
  47965. -
  47966. -
  47967. -fi
  47968. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  47969. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  47970. - fi
  47971. -
  47972. - CPPFLAGS="$save_CPPFLAGS"
  47973. - LDFLAGS="$save_LDFLAGS"
  47974. - LIBS="$save_LIBS"
  47975. - ;;
  47976. - esac
  47977. -
  47978. - case $lt_cv_dlopen_self in
  47979. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  47980. - *) enable_dlopen_self=unknown ;;
  47981. - esac
  47982. -
  47983. - case $lt_cv_dlopen_self_static in
  47984. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  47985. - *) enable_dlopen_self_static=unknown ;;
  47986. - esac
  47987. -fi
  47988. -
  47989. -
  47990. -# The else clause should only fire when bootstrapping the
  47991. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  47992. -# with your package, and you will get complaints that there are
  47993. -# no rules to generate ltmain.sh.
  47994. -if test -f "$ltmain"; then
  47995. - # See if we are running on zsh, and set the options which allow our commands through
  47996. - # without removal of \ escapes.
  47997. - if test -n "${ZSH_VERSION+set}" ; then
  47998. - setopt NO_GLOB_SUBST
  47999. - fi
  48000. - # Now quote all the things that may contain metacharacters while being
  48001. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  48002. - # variables and quote the copies for generation of the libtool script.
  48003. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
  48004. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  48005. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  48006. - deplibs_check_method reload_flag reload_cmds need_locks \
  48007. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  48008. - lt_cv_sys_global_symbol_to_c_name_address \
  48009. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  48010. - old_postinstall_cmds old_postuninstall_cmds \
  48011. - compiler_CXX \
  48012. - CC_CXX \
  48013. - LD_CXX \
  48014. - lt_prog_compiler_wl_CXX \
  48015. - lt_prog_compiler_pic_CXX \
  48016. - lt_prog_compiler_static_CXX \
  48017. - lt_prog_compiler_no_builtin_flag_CXX \
  48018. - export_dynamic_flag_spec_CXX \
  48019. - thread_safe_flag_spec_CXX \
  48020. - whole_archive_flag_spec_CXX \
  48021. - enable_shared_with_static_runtimes_CXX \
  48022. - old_archive_cmds_CXX \
  48023. - old_archive_from_new_cmds_CXX \
  48024. - predep_objects_CXX \
  48025. - postdep_objects_CXX \
  48026. - predeps_CXX \
  48027. - postdeps_CXX \
  48028. - compiler_lib_search_path_CXX \
  48029. - archive_cmds_CXX \
  48030. - archive_expsym_cmds_CXX \
  48031. - postinstall_cmds_CXX \
  48032. - postuninstall_cmds_CXX \
  48033. - old_archive_from_expsyms_cmds_CXX \
  48034. - allow_undefined_flag_CXX \
  48035. - no_undefined_flag_CXX \
  48036. - export_symbols_cmds_CXX \
  48037. - hardcode_libdir_flag_spec_CXX \
  48038. - hardcode_libdir_flag_spec_ld_CXX \
  48039. - hardcode_libdir_separator_CXX \
  48040. - hardcode_automatic_CXX \
  48041. - module_cmds_CXX \
  48042. - module_expsym_cmds_CXX \
  48043. - lt_cv_prog_compiler_c_o_CXX \
  48044. - exclude_expsyms_CXX \
  48045. - include_expsyms_CXX; do
  48046. -
  48047. - case $var in
  48048. - old_archive_cmds_CXX | \
  48049. - old_archive_from_new_cmds_CXX | \
  48050. - archive_cmds_CXX | \
  48051. - archive_expsym_cmds_CXX | \
  48052. - module_cmds_CXX | \
  48053. - module_expsym_cmds_CXX | \
  48054. - old_archive_from_expsyms_cmds_CXX | \
  48055. - export_symbols_cmds_CXX | \
  48056. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  48057. - postinstall_cmds | postuninstall_cmds | \
  48058. - old_postinstall_cmds | old_postuninstall_cmds | \
  48059. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  48060. - # Double-quote double-evaled strings.
  48061. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
  48062. - ;;
  48063. - *)
  48064. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  48065. - ;;
  48066. - esac
  48067. - done
  48068. -
  48069. - case $lt_echo in
  48070. - *'\$0 --fallback-echo"')
  48071. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  48072. - ;;
  48073. - esac
  48074. -
  48075. -cfgfile="$ofile"
  48076. -
  48077. - cat <<__EOF__ >> "$cfgfile"
  48078. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  48079. -
  48080. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  48081. -
  48082. -# Set the command separator (default: ~)
  48083. -_S_=\${LIBTOOL_CMD_SEP-\~}
  48084. -
  48085. -# Shell to use when invoking shell scripts.
  48086. -SHELL=$lt_SHELL
  48087. -
  48088. -# Whether or not to build shared libraries.
  48089. -build_libtool_libs=$enable_shared
  48090. -
  48091. -# Whether or not to build static libraries.
  48092. -build_old_libs=$enable_static
  48093. -
  48094. -# Whether or not to add -lc for building shared libraries.
  48095. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  48096. -
  48097. -# Whether or not to disallow shared libs when runtime libs are static
  48098. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  48099. -
  48100. -# Whether or not to optimize for fast installation.
  48101. -fast_install=$enable_fast_install
  48102. -
  48103. -# The host system.
  48104. -host_alias=$host_alias
  48105. -host=$host
  48106. -
  48107. -# An echo program that does not interpret backslashes.
  48108. -echo=$lt_echo
  48109. -
  48110. -# The archiver.
  48111. -AR=$lt_AR
  48112. -AR_FLAGS=$lt_AR_FLAGS
  48113. -
  48114. -# A C compiler.
  48115. -LTCC=$lt_LTCC
  48116. -
  48117. -# A language-specific compiler.
  48118. -CC=$lt_compiler_CXX
  48119. -
  48120. -# Is the compiler the GNU C compiler?
  48121. -with_gcc=$GCC_CXX
  48122. -
  48123. -# An ERE matcher.
  48124. -EGREP=$lt_EGREP
  48125. -
  48126. -# The linker used to build libraries.
  48127. -LD=$lt_LD_CXX
  48128. -
  48129. -# Whether we need hard or soft links.
  48130. -LN_S=$lt_LN_S
  48131. -
  48132. -# A BSD-compatible nm program.
  48133. -NM=$lt_NM
  48134. -
  48135. -# A symbol stripping program
  48136. -STRIP=$STRIP
  48137. -
  48138. -# Used to examine libraries when file_magic_cmd begins "file"
  48139. -MAGIC_CMD=$MAGIC_CMD
  48140. -
  48141. -# Used on cygwin: DLL creation program.
  48142. -DLLTOOL="$DLLTOOL"
  48143. -
  48144. -# Used on cygwin: object dumper.
  48145. -OBJDUMP="$OBJDUMP"
  48146. -
  48147. -# Used on cygwin: assembler.
  48148. -AS="$AS"
  48149. -
  48150. -# The name of the directory that contains temporary libtool files.
  48151. -objdir=$objdir
  48152. -
  48153. -# How to create reloadable object files.
  48154. -reload_flag=$lt_reload_flag
  48155. -reload_cmds=$lt_reload_cmds
  48156. -
  48157. -# How to pass a linker flag through the compiler.
  48158. -wl=$lt_lt_prog_compiler_wl_CXX
  48159. -
  48160. -# Object file suffix (normally "o").
  48161. -objext="$ac_objext"
  48162. -
  48163. -# Old archive suffix (normally "a").
  48164. -libext="$libext"
  48165. -
  48166. -# Shared library suffix (normally ".so").
  48167. -shrext='$shrext'
  48168. -
  48169. -# Executable file suffix (normally "").
  48170. -exeext="$exeext"
  48171. -
  48172. -# Additional compiler flags for building library objects.
  48173. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  48174. -pic_mode=$pic_mode
  48175. -
  48176. -# What is the maximum length of a command?
  48177. -max_cmd_len=$lt_cv_sys_max_cmd_len
  48178. -
  48179. -# Does compiler simultaneously support -c and -o options?
  48180. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  48181. -
  48182. -# Must we lock files when doing compilation ?
  48183. -need_locks=$lt_need_locks
  48184. -
  48185. -# Do we need the lib prefix for modules?
  48186. -need_lib_prefix=$need_lib_prefix
  48187. -
  48188. -# Do we need a version for libraries?
  48189. -need_version=$need_version
  48190. -
  48191. -# Whether dlopen is supported.
  48192. -dlopen_support=$enable_dlopen
  48193. -
  48194. -# Whether dlopen of programs is supported.
  48195. -dlopen_self=$enable_dlopen_self
  48196. -
  48197. -# Whether dlopen of statically linked programs is supported.
  48198. -dlopen_self_static=$enable_dlopen_self_static
  48199. -
  48200. -# Compiler flag to prevent dynamic linking.
  48201. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  48202. -
  48203. -# Compiler flag to turn off builtin functions.
  48204. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  48205. -
  48206. -# Compiler flag to allow reflexive dlopens.
  48207. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  48208. -
  48209. -# Compiler flag to generate shared objects directly from archives.
  48210. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  48211. -
  48212. -# Compiler flag to generate thread-safe objects.
  48213. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  48214. -
  48215. -# Library versioning type.
  48216. -version_type=$version_type
  48217. -
  48218. -# Format of library name prefix.
  48219. -libname_spec=$lt_libname_spec
  48220. -
  48221. -# List of archive names. First name is the real one, the rest are links.
  48222. -# The last name is the one that the linker finds with -lNAME.
  48223. -library_names_spec=$lt_library_names_spec
  48224. -
  48225. -# The coded name of the library, if different from the real name.
  48226. -soname_spec=$lt_soname_spec
  48227. -
  48228. -# Commands used to build and install an old-style archive.
  48229. -RANLIB=$lt_RANLIB
  48230. -old_archive_cmds=$lt_old_archive_cmds_CXX
  48231. -old_postinstall_cmds=$lt_old_postinstall_cmds
  48232. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  48233. -
  48234. -# Create an old-style archive from a shared archive.
  48235. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  48236. -
  48237. -# Create a temporary old-style archive to link instead of a shared archive.
  48238. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  48239. -
  48240. -# Commands used to build and install a shared archive.
  48241. -archive_cmds=$lt_archive_cmds_CXX
  48242. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  48243. -postinstall_cmds=$lt_postinstall_cmds
  48244. -postuninstall_cmds=$lt_postuninstall_cmds
  48245. -
  48246. -# Commands used to build a loadable module (assumed same as above if empty)
  48247. -module_cmds=$lt_module_cmds_CXX
  48248. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  48249. -
  48250. -# Commands to strip libraries.
  48251. -old_striplib=$lt_old_striplib
  48252. -striplib=$lt_striplib
  48253. -
  48254. -# Dependencies to place before the objects being linked to create a
  48255. -# shared library.
  48256. -predep_objects=$lt_predep_objects_CXX
  48257. -
  48258. -# Dependencies to place after the objects being linked to create a
  48259. -# shared library.
  48260. -postdep_objects=$lt_postdep_objects_CXX
  48261. -
  48262. -# Dependencies to place before the objects being linked to create a
  48263. -# shared library.
  48264. -predeps=$lt_predeps_CXX
  48265. -
  48266. -# Dependencies to place after the objects being linked to create a
  48267. -# shared library.
  48268. -postdeps=$lt_postdeps_CXX
  48269. -
  48270. -# The library search path used internally by the compiler when linking
  48271. -# a shared library.
  48272. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  48273. -
  48274. -# Method to check whether dependent libraries are shared objects.
  48275. -deplibs_check_method=$lt_deplibs_check_method
  48276. -
  48277. -# Command to use when deplibs_check_method == file_magic.
  48278. -file_magic_cmd=$lt_file_magic_cmd
  48279. -
  48280. -# Flag that allows shared libraries with undefined symbols to be built.
  48281. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  48282. -
  48283. -# Flag that forces no undefined symbols.
  48284. -no_undefined_flag=$lt_no_undefined_flag_CXX
  48285. -
  48286. -# Commands used to finish a libtool library installation in a directory.
  48287. -finish_cmds=$lt_finish_cmds
  48288. -
  48289. -# Same as above, but a single script fragment to be evaled but not shown.
  48290. -finish_eval=$lt_finish_eval
  48291. -
  48292. -# Take the output of nm and produce a listing of raw symbols and C names.
  48293. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  48294. -
  48295. -# Transform the output of nm in a proper C declaration
  48296. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  48297. -
  48298. -# Transform the output of nm in a C name address pair
  48299. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  48300. -
  48301. -# This is the shared library runtime path variable.
  48302. -runpath_var=$runpath_var
  48303. -
  48304. -# This is the shared library path variable.
  48305. -shlibpath_var=$shlibpath_var
  48306. -
  48307. -# Is shlibpath searched before the hard-coded library search path?
  48308. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  48309. -
  48310. -# How to hardcode a shared library path into an executable.
  48311. -hardcode_action=$hardcode_action_CXX
  48312. -
  48313. -# Whether we should hardcode library paths into libraries.
  48314. -hardcode_into_libs=$hardcode_into_libs
  48315. -
  48316. -# Flag to hardcode \$libdir into a binary during linking.
  48317. -# This must work even if \$libdir does not exist.
  48318. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  48319. -
  48320. -# If ld is used when linking, flag to hardcode \$libdir into
  48321. -# a binary during linking. This must work even if \$libdir does
  48322. -# not exist.
  48323. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  48324. -
  48325. -# Whether we need a single -rpath flag with a separated argument.
  48326. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  48327. -
  48328. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  48329. -# resulting binary.
  48330. -hardcode_direct=$hardcode_direct_CXX
  48331. -
  48332. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  48333. -# resulting binary.
  48334. -hardcode_minus_L=$hardcode_minus_L_CXX
  48335. -
  48336. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  48337. -# the resulting binary.
  48338. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  48339. -
  48340. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  48341. -# and all subsequent libraries and executables linked against it.
  48342. -hardcode_automatic=$hardcode_automatic_CXX
  48343. -
  48344. -# Variables whose values should be saved in libtool wrapper scripts and
  48345. -# restored at relink time.
  48346. -variables_saved_for_relink="$variables_saved_for_relink"
  48347. -
  48348. -# Whether libtool must link a program against all its dependency libraries.
  48349. -link_all_deplibs=$link_all_deplibs_CXX
  48350. -
  48351. -# Compile-time system search path for libraries
  48352. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  48353. -
  48354. -# Run-time system search path for libraries
  48355. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  48356. -
  48357. -# Fix the shell variable \$srcfile for the compiler.
  48358. -fix_srcfile_path="$fix_srcfile_path_CXX"
  48359. -
  48360. -# Set to yes if exported symbols are required.
  48361. -always_export_symbols=$always_export_symbols_CXX
  48362. -
  48363. -# The commands to list exported symbols.
  48364. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  48365. -
  48366. -# The commands to extract the exported symbol list from a shared archive.
  48367. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  48368. -
  48369. -# Symbols that should not be listed in the preloaded symbols.
  48370. -exclude_expsyms=$lt_exclude_expsyms_CXX
  48371. -
  48372. -# Symbols that must always be exported.
  48373. -include_expsyms=$lt_include_expsyms_CXX
  48374. -
  48375. -# ### END LIBTOOL TAG CONFIG: $tagname
  48376. -
  48377. -__EOF__
  48378. -
  48379. -
  48380. -else
  48381. - # If there is no Makefile yet, we rely on a make rule to execute
  48382. - # `config.status --recheck' to rerun these tests and create the
  48383. - # libtool script then.
  48384. - test -f Makefile && make "$ltmain"
  48385. -fi
  48386. -
  48387. -
  48388. -ac_ext=c
  48389. -ac_cpp='$CPP $CPPFLAGS'
  48390. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48391. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48392. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48393. -
  48394. -CC=$lt_save_CC
  48395. -LDCXX=$LD
  48396. -LD=$lt_save_LD
  48397. -GCC=$lt_save_GCC
  48398. -with_gnu_ldcxx=$with_gnu_ld
  48399. -with_gnu_ld=$lt_save_with_gnu_ld
  48400. -lt_cv_path_LDCXX=$lt_cv_path_LD
  48401. -lt_cv_path_LD=$lt_save_path_LD
  48402. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  48403. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  48404. -
  48405. - else
  48406. - tagname=""
  48407. - fi
  48408. - ;;
  48409. -
  48410. - F77)
  48411. - if test -n "$F77" && test "X$F77" != "Xno"; then
  48412. -
  48413. -ac_ext=f
  48414. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  48415. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48416. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  48417. -
  48418. -
  48419. -archive_cmds_need_lc_F77=no
  48420. -allow_undefined_flag_F77=
  48421. -always_export_symbols_F77=no
  48422. -archive_expsym_cmds_F77=
  48423. -export_dynamic_flag_spec_F77=
  48424. -hardcode_direct_F77=no
  48425. -hardcode_libdir_flag_spec_F77=
  48426. -hardcode_libdir_flag_spec_ld_F77=
  48427. -hardcode_libdir_separator_F77=
  48428. -hardcode_minus_L_F77=no
  48429. -hardcode_automatic_F77=no
  48430. -module_cmds_F77=
  48431. -module_expsym_cmds_F77=
  48432. -link_all_deplibs_F77=unknown
  48433. -old_archive_cmds_F77=$old_archive_cmds
  48434. -no_undefined_flag_F77=
  48435. -whole_archive_flag_spec_F77=
  48436. -enable_shared_with_static_runtimes_F77=no
  48437. -
  48438. -# Source file extension for f77 test sources.
  48439. -ac_ext=f
  48440. -
  48441. -# Object file extension for compiled f77 test sources.
  48442. -objext=o
  48443. -objext_F77=$objext
  48444. -
  48445. -# Code to be used in simple compile tests
  48446. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  48447. -
  48448. -# Code to be used in simple link tests
  48449. -lt_simple_link_test_code=" program t\n end\n"
  48450. -
  48451. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  48452. -
  48453. -# If no C compiler was specified, use CC.
  48454. -LTCC=${LTCC-"$CC"}
  48455. -
  48456. -# Allow CC to be a program name with arguments.
  48457. -compiler=$CC
  48458. -
  48459. -
  48460. -# Allow CC to be a program name with arguments.
  48461. -lt_save_CC="$CC"
  48462. -CC=${F77-"f77"}
  48463. -compiler=$CC
  48464. -compiler_F77=$CC
  48465. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  48466. -
  48467. -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  48468. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  48469. -echo "$as_me:$LINENO: result: $can_build_shared" >&5
  48470. -echo "${ECHO_T}$can_build_shared" >&6
  48471. -
  48472. -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  48473. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  48474. -test "$can_build_shared" = "no" && enable_shared=no
  48475. -
  48476. -# On AIX, shared libraries and static libraries use the same namespace, and
  48477. -# are all built from PIC.
  48478. -case "$host_os" in
  48479. -aix3*)
  48480. - test "$enable_shared" = yes && enable_static=no
  48481. - if test -n "$RANLIB"; then
  48482. - archive_cmds="$archive_cmds\${_S_}\$RANLIB \$lib"
  48483. - postinstall_cmds='$RANLIB $lib'
  48484. - fi
  48485. - ;;
  48486. -aix4*)
  48487. - test "$enable_shared" = yes && enable_static=no
  48488. - ;;
  48489. -esac
  48490. -echo "$as_me:$LINENO: result: $enable_shared" >&5
  48491. -echo "${ECHO_T}$enable_shared" >&6
  48492. -
  48493. -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  48494. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  48495. -# Make sure either enable_shared or enable_static is yes.
  48496. -test "$enable_shared" = yes || enable_static=yes
  48497. -echo "$as_me:$LINENO: result: $enable_static" >&5
  48498. -echo "${ECHO_T}$enable_static" >&6
  48499. -
  48500. -test "$ld_shlibs_F77" = no && can_build_shared=no
  48501. -
  48502. -GCC_F77="$G77"
  48503. -LD_F77="$LD"
  48504. -
  48505. -lt_prog_compiler_wl_F77=
  48506. -lt_prog_compiler_pic_F77=
  48507. -lt_prog_compiler_static_F77=
  48508. -
  48509. -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  48510. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  48511. -
  48512. - if test "$GCC" = yes; then
  48513. - lt_prog_compiler_wl_F77='-Wl,'
  48514. - lt_prog_compiler_static_F77='-static'
  48515. -
  48516. - case $host_os in
  48517. - aix*)
  48518. - # All AIX code is PIC.
  48519. - if test "$host_cpu" = ia64; then
  48520. - # AIX 5 now supports IA64 processor
  48521. - lt_prog_compiler_static_F77='-Bstatic'
  48522. - fi
  48523. - ;;
  48524. -
  48525. - amigaos*)
  48526. - # FIXME: we need at least 68020 code to build shared libraries, but
  48527. - # adding the `-m68020' flag to GCC prevents building anything better,
  48528. - # like `-m68040'.
  48529. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  48530. - ;;
  48531. -
  48532. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  48533. - # PIC is the default for these OSes.
  48534. - ;;
  48535. -
  48536. - mingw* | pw32* | os2*)
  48537. - # This hack is so that the source file can tell whether it is being
  48538. - # built for inclusion in a dll (and should export symbols for example).
  48539. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  48540. - ;;
  48541. -
  48542. - darwin* | rhapsody*)
  48543. - # PIC is the default on this platform
  48544. - # Common symbols not allowed in MH_DYLIB files
  48545. - lt_prog_compiler_pic_F77='-fno-common'
  48546. - ;;
  48547. -
  48548. - msdosdjgpp*)
  48549. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  48550. - # on systems that don't support them.
  48551. - lt_prog_compiler_can_build_shared_F77=no
  48552. - enable_shared=no
  48553. - ;;
  48554. -
  48555. - sysv4*MP*)
  48556. - if test -d /usr/nec; then
  48557. - lt_prog_compiler_pic_F77=-Kconform_pic
  48558. - fi
  48559. - ;;
  48560. -
  48561. - hpux*)
  48562. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  48563. - # not for PA HP-UX.
  48564. - case "$host_cpu" in
  48565. - hppa*64*|ia64*)
  48566. - # +Z the default
  48567. - ;;
  48568. - *)
  48569. - lt_prog_compiler_pic_F77='-fPIC'
  48570. - ;;
  48571. - esac
  48572. - ;;
  48573. -
  48574. - *)
  48575. - lt_prog_compiler_pic_F77='-fPIC'
  48576. - ;;
  48577. - esac
  48578. - else
  48579. - # PORTME Check for flag to pass linker flags through the system compiler.
  48580. - case $host_os in
  48581. - aix*)
  48582. - lt_prog_compiler_wl_F77='-Wl,'
  48583. - if test "$host_cpu" = ia64; then
  48584. - # AIX 5 now supports IA64 processor
  48585. - lt_prog_compiler_static_F77='-Bstatic'
  48586. - else
  48587. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  48588. - fi
  48589. - ;;
  48590. -
  48591. - mingw* | pw32* | os2*)
  48592. - # This hack is so that the source file can tell whether it is being
  48593. - # built for inclusion in a dll (and should export symbols for example).
  48594. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  48595. - ;;
  48596. -
  48597. - hpux9* | hpux10* | hpux11*)
  48598. - lt_prog_compiler_wl_F77='-Wl,'
  48599. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  48600. - # not for PA HP-UX.
  48601. - case "$host_cpu" in
  48602. - hppa*64*|ia64*)
  48603. - # +Z the default
  48604. - ;;
  48605. - *)
  48606. - lt_prog_compiler_pic_F77='+Z'
  48607. - ;;
  48608. - esac
  48609. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  48610. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  48611. - ;;
  48612. -
  48613. - irix5* | irix6* | nonstopux*)
  48614. - lt_prog_compiler_wl_F77='-Wl,'
  48615. - # PIC (with -KPIC) is the default.
  48616. - lt_prog_compiler_static_F77='-non_shared'
  48617. - ;;
  48618. -
  48619. - newsos6)
  48620. - lt_prog_compiler_pic_F77='-KPIC'
  48621. - lt_prog_compiler_static_F77='-Bstatic'
  48622. - ;;
  48623. -
  48624. - linux*)
  48625. - case $CC in
  48626. - icc|ecc)
  48627. - lt_prog_compiler_wl_F77='-Wl,'
  48628. - lt_prog_compiler_pic_F77='-KPIC'
  48629. - lt_prog_compiler_static_F77='-static'
  48630. - ;;
  48631. - ccc)
  48632. - lt_prog_compiler_wl_F77='-Wl,'
  48633. - # All Alpha code is PIC.
  48634. - lt_prog_compiler_static_F77='-non_shared'
  48635. - ;;
  48636. - esac
  48637. - ;;
  48638. -
  48639. - osf3* | osf4* | osf5*)
  48640. - lt_prog_compiler_wl_F77='-Wl,'
  48641. - # All OSF/1 code is PIC.
  48642. - lt_prog_compiler_static_F77='-non_shared'
  48643. - ;;
  48644. -
  48645. - sco3.2v5*)
  48646. - lt_prog_compiler_pic_F77='-Kpic'
  48647. - lt_prog_compiler_static_F77='-dn'
  48648. - ;;
  48649. -
  48650. - solaris*)
  48651. - lt_prog_compiler_wl_F77='-Wl,'
  48652. - lt_prog_compiler_pic_F77='-KPIC'
  48653. - lt_prog_compiler_static_F77='-Bstatic'
  48654. - ;;
  48655. -
  48656. - sunos4*)
  48657. - lt_prog_compiler_wl_F77='-Qoption ld '
  48658. - lt_prog_compiler_pic_F77='-PIC'
  48659. - lt_prog_compiler_static_F77='-Bstatic'
  48660. - ;;
  48661. -
  48662. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  48663. - lt_prog_compiler_wl_F77='-Wl,'
  48664. - lt_prog_compiler_pic_F77='-KPIC'
  48665. - lt_prog_compiler_static_F77='-Bstatic'
  48666. - ;;
  48667. -
  48668. - sysv4*MP*)
  48669. - if test -d /usr/nec ;then
  48670. - lt_prog_compiler_pic_F77='-Kconform_pic'
  48671. - lt_prog_compiler_static_F77='-Bstatic'
  48672. - fi
  48673. - ;;
  48674. -
  48675. - uts4*)
  48676. - lt_prog_compiler_pic_F77='-pic'
  48677. - lt_prog_compiler_static_F77='-Bstatic'
  48678. - ;;
  48679. -
  48680. - *)
  48681. - lt_prog_compiler_can_build_shared_F77=no
  48682. - ;;
  48683. - esac
  48684. - fi
  48685. -
  48686. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  48687. -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  48688. -
  48689. -#
  48690. -# Check to make sure the PIC flag actually works.
  48691. -#
  48692. -if test -n "$lt_prog_compiler_pic_F77"; then
  48693. - echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  48694. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  48695. -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  48696. - echo $ECHO_N "(cached) $ECHO_C" >&6
  48697. -else
  48698. - lt_prog_compiler_pic_works_F77=no
  48699. - ac_outfile=conftest.$ac_objext
  48700. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  48701. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  48702. - # Insert the option either (1) after the last *FLAGS variable, or
  48703. - # (2) before a word containing "conftest.", or (3) at the end.
  48704. - # Note that $ac_compile itself does not contain backslashes and begins
  48705. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  48706. - # The option is referenced via a variable to avoid confusing sed.
  48707. - lt_compile=`echo "$ac_compile" | $SED \
  48708. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  48709. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  48710. - -e 's:$: $lt_compiler_flag:'`
  48711. - (eval echo "\"\$as_me:13298: $lt_compile\"" >&5)
  48712. - (eval "$lt_compile" 2>conftest.err)
  48713. - ac_status=$?
  48714. - cat conftest.err >&5
  48715. - echo "$as_me:13302: \$? = $ac_status" >&5
  48716. - if (exit $ac_status) && test -s "$ac_outfile"; then
  48717. - # The compiler can only warn and ignore the option if not recognized
  48718. - # So say no if there are warnings
  48719. - if test ! -s conftest.err; then
  48720. - lt_prog_compiler_pic_works_F77=yes
  48721. - fi
  48722. - fi
  48723. - $rm conftest*
  48724. -
  48725. -fi
  48726. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  48727. -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  48728. -
  48729. -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  48730. - case $lt_prog_compiler_pic_F77 in
  48731. - "" | " "*) ;;
  48732. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  48733. - esac
  48734. -else
  48735. - lt_prog_compiler_pic_F77=
  48736. - lt_prog_compiler_can_build_shared_F77=no
  48737. -fi
  48738. -
  48739. -fi
  48740. -case "$host_os" in
  48741. - # For platforms which do not support PIC, -DPIC is meaningless:
  48742. - *djgpp*)
  48743. - lt_prog_compiler_pic_F77=
  48744. - ;;
  48745. - *)
  48746. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  48747. - ;;
  48748. -esac
  48749. -
  48750. -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  48751. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  48752. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  48753. - echo $ECHO_N "(cached) $ECHO_C" >&6
  48754. -else
  48755. - lt_cv_prog_compiler_c_o_F77=no
  48756. - $rm -r conftest 2>/dev/null
  48757. - mkdir conftest
  48758. - cd conftest
  48759. - mkdir out
  48760. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  48761. -
  48762. - # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  48763. - # that will create temporary files in the current directory regardless of
  48764. - # the output directory. Thus, making CWD read-only will cause this test
  48765. - # to fail, enabling locking or at least warning the user not to do parallel
  48766. - # builds.
  48767. - chmod -w .
  48768. -
  48769. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  48770. - # Insert the option either (1) after the last *FLAGS variable, or
  48771. - # (2) before a word containing "conftest.", or (3) at the end.
  48772. - # Note that $ac_compile itself does not contain backslashes and begins
  48773. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  48774. - lt_compile=`echo "$ac_compile" | $SED \
  48775. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  48776. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  48777. - -e 's:$: $lt_compiler_flag:'`
  48778. - (eval echo "\"\$as_me:13365: $lt_compile\"" >&5)
  48779. - (eval "$lt_compile" 2>out/conftest.err)
  48780. - ac_status=$?
  48781. - cat out/conftest.err >&5
  48782. - echo "$as_me:13369: \$? = $ac_status" >&5
  48783. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  48784. - then
  48785. - # The compiler can only warn and ignore the option if not recognized
  48786. - # So say no if there are warnings
  48787. - if test ! -s out/conftest.err; then
  48788. - lt_cv_prog_compiler_c_o_F77=yes
  48789. - fi
  48790. - fi
  48791. - chmod u+w .
  48792. - $rm conftest* out/*
  48793. - rmdir out
  48794. - cd ..
  48795. - rmdir conftest
  48796. - $rm conftest*
  48797. -
  48798. -fi
  48799. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  48800. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  48801. -
  48802. -
  48803. -hard_links="nottested"
  48804. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  48805. - # do not overwrite the value of need_locks provided by the user
  48806. - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  48807. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  48808. - hard_links=yes
  48809. - $rm conftest*
  48810. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  48811. - touch conftest.a
  48812. - ln conftest.a conftest.b 2>&5 || hard_links=no
  48813. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  48814. - echo "$as_me:$LINENO: result: $hard_links" >&5
  48815. -echo "${ECHO_T}$hard_links" >&6
  48816. - if test "$hard_links" = no; then
  48817. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  48818. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  48819. - need_locks=warn
  48820. - fi
  48821. -else
  48822. - need_locks=no
  48823. -fi
  48824. -
  48825. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  48826. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  48827. -
  48828. - runpath_var=
  48829. - allow_undefined_flag_F77=
  48830. - enable_shared_with_static_runtimes_F77=no
  48831. - archive_cmds_F77=
  48832. - archive_expsym_cmds_F77=
  48833. - old_archive_From_new_cmds_F77=
  48834. - old_archive_from_expsyms_cmds_F77=
  48835. - export_dynamic_flag_spec_F77=
  48836. - whole_archive_flag_spec_F77=
  48837. - thread_safe_flag_spec_F77=
  48838. - hardcode_libdir_flag_spec_F77=
  48839. - hardcode_libdir_flag_spec_ld_F77=
  48840. - hardcode_libdir_separator_F77=
  48841. - hardcode_direct_F77=no
  48842. - hardcode_minus_L_F77=no
  48843. - hardcode_shlibpath_var_F77=unsupported
  48844. - link_all_deplibs_F77=unknown
  48845. - hardcode_automatic_F77=no
  48846. - module_cmds_F77=
  48847. - module_expsym_cmds_F77=
  48848. - always_export_symbols_F77=no
  48849. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  48850. - # include_expsyms should be a list of space-separated symbols to be *always*
  48851. - # included in the symbol list
  48852. - include_expsyms_F77=
  48853. - # exclude_expsyms can be an extended regexp of symbols to exclude
  48854. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  48855. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  48856. - # as well as any symbol that contains `d'.
  48857. - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  48858. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  48859. - # platforms (ab)use it in PIC code, but their linkers get confused if
  48860. - # the symbol is explicitly referenced. Since portable code cannot
  48861. - # rely on this symbol name, it's probably fine to never include it in
  48862. - # preloaded symbol tables.
  48863. - extract_expsyms_cmds=
  48864. -
  48865. - case $host_os in
  48866. - cygwin* | mingw* | pw32*)
  48867. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  48868. - # When not using gcc, we currently assume that we are using
  48869. - # Microsoft Visual C++.
  48870. - if test "$GCC" != yes; then
  48871. - with_gnu_ld=no
  48872. - fi
  48873. - ;;
  48874. - openbsd*)
  48875. - with_gnu_ld=no
  48876. - ;;
  48877. - esac
  48878. -
  48879. - ld_shlibs_F77=yes
  48880. - if test "$with_gnu_ld" = yes; then
  48881. - # If archive_cmds runs LD, not CC, wlarc should be empty
  48882. - wlarc='${wl}'
  48883. -
  48884. - # See if GNU ld supports shared libraries.
  48885. - case $host_os in
  48886. - aix3* | aix4* | aix5*)
  48887. - # On AIX/PPC, the GNU linker is very broken
  48888. - if test "$host_cpu" != ia64; then
  48889. - ld_shlibs_F77=no
  48890. - cat <<EOF 1>&2
  48891. -
  48892. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  48893. -*** to be unable to reliably create shared libraries on AIX.
  48894. -*** Therefore, libtool is disabling shared libraries support. If you
  48895. -*** really care for shared libraries, you may want to modify your PATH
  48896. -*** so that a non-GNU linker is found, and then restart.
  48897. -
  48898. -EOF
  48899. - fi
  48900. - ;;
  48901. -
  48902. - amigaos*)
  48903. - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
  48904. - hardcode_libdir_flag_spec_F77='-L$libdir'
  48905. - hardcode_minus_L_F77=yes
  48906. -
  48907. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  48908. - # that the semantics of dynamic libraries on AmigaOS, at least up
  48909. - # to version 4, is to share data among multiple programs linked
  48910. - # with the same dynamic library. Since this doesn't match the
  48911. - # behavior of shared libraries on other platforms, we can't use
  48912. - # them.
  48913. - ld_shlibs_F77=no
  48914. - ;;
  48915. -
  48916. - beos*)
  48917. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  48918. - allow_undefined_flag_F77=unsupported
  48919. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  48920. - # support --undefined. This deserves some investigation. FIXME
  48921. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  48922. - else
  48923. - ld_shlibs_F77=no
  48924. - fi
  48925. - ;;
  48926. -
  48927. - cygwin* | mingw* | pw32*)
  48928. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  48929. - # as there is no search path for DLLs.
  48930. - hardcode_libdir_flag_spec_F77='-L$libdir'
  48931. - allow_undefined_flag_F77=unsupported
  48932. - always_export_symbols_F77=no
  48933. - enable_shared_with_static_runtimes_F77=yes
  48934. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  48935. -
  48936. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  48937. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  48938. - # If the export-symbols file already is a .def file (1st line
  48939. - # is EXPORTS), use it as is; otherwise, prepend...
  48940. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  48941. - cp $export_symbols $output_objdir/$soname.def;
  48942. - else
  48943. - echo EXPORTS > $output_objdir/$soname.def;
  48944. - cat $export_symbols >> $output_objdir/$soname.def;
  48945. - fi${_S_}
  48946. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  48947. - else
  48948. - ld_shlibs=no
  48949. - fi
  48950. - ;;
  48951. -
  48952. - netbsd*)
  48953. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  48954. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  48955. - wlarc=
  48956. - else
  48957. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  48958. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  48959. - fi
  48960. - ;;
  48961. -
  48962. - solaris* | sysv5*)
  48963. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  48964. - ld_shlibs_F77=no
  48965. - cat <<EOF 1>&2
  48966. -
  48967. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  48968. -*** create shared libraries on Solaris systems. Therefore, libtool
  48969. -*** is disabling shared libraries support. We urge you to upgrade GNU
  48970. -*** binutils to release 2.9.1 or newer. Another option is to modify
  48971. -*** your PATH or compiler configuration so that the native linker is
  48972. -*** used, and then restart.
  48973. -
  48974. -EOF
  48975. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  48976. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  48977. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  48978. - else
  48979. - ld_shlibs_F77=no
  48980. - fi
  48981. - ;;
  48982. -
  48983. - sunos4*)
  48984. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  48985. - wlarc=
  48986. - hardcode_direct_F77=yes
  48987. - hardcode_shlibpath_var_F77=no
  48988. - ;;
  48989. -
  48990. - *)
  48991. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  48992. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  48993. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  48994. - else
  48995. - ld_shlibs_F77=no
  48996. - fi
  48997. - ;;
  48998. - esac
  48999. -
  49000. - if test "$ld_shlibs_F77" = yes; then
  49001. - runpath_var=LD_RUN_PATH
  49002. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  49003. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  49004. - # ancient GNU ld didn't support --whole-archive et. al.
  49005. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  49006. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  49007. - else
  49008. - whole_archive_flag_spec_F77=
  49009. - fi
  49010. - fi
  49011. - else
  49012. - # PORTME fill in a description of your system's linker (not GNU ld)
  49013. - case $host_os in
  49014. - aix3*)
  49015. - allow_undefined_flag_F77=unsupported
  49016. - always_export_symbols_F77=yes
  49017. - archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE${_S_}$AR $AR_FLAGS $lib $output_objdir/$soname'
  49018. - # Note: this linker hardcodes the directories in LIBPATH if there
  49019. - # are no directories specified by -L.
  49020. - hardcode_minus_L_F77=yes
  49021. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  49022. - # Neither direct hardcoding nor static linking is supported with a
  49023. - # broken collect2.
  49024. - hardcode_direct_F77=unsupported
  49025. - fi
  49026. - ;;
  49027. -
  49028. - aix4* | aix5*)
  49029. - if test "$host_cpu" = ia64; then
  49030. - # On IA64, the linker does run time linking by default, so we don't
  49031. - # have to do anything special.
  49032. - aix_use_runtimelinking=no
  49033. - exp_sym_flag='-Bexport'
  49034. - no_entry_flag=""
  49035. - else
  49036. - # If we're using GNU nm, then we don't want the "-C" option.
  49037. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  49038. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  49039. - 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'
  49040. - else
  49041. - 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'
  49042. - fi
  49043. - aix_use_runtimelinking=no
  49044. -
  49045. - # Test if we are trying to use run time linking or normal
  49046. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  49047. - # need to do runtime linking.
  49048. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  49049. - for ld_flag in $LDFLAGS; do
  49050. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  49051. - aix_use_runtimelinking=yes
  49052. - break
  49053. - fi
  49054. - done
  49055. - esac
  49056. -
  49057. - exp_sym_flag='-bexport'
  49058. - no_entry_flag='-bnoentry'
  49059. - fi
  49060. -
  49061. - # When large executables or shared objects are built, AIX ld can
  49062. - # have problems creating the table of contents. If linking a library
  49063. - # or program results in "error TOC overflow" add -mminimal-toc to
  49064. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  49065. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  49066. -
  49067. - archive_cmds_F77=''
  49068. - hardcode_direct_F77=yes
  49069. - hardcode_libdir_separator_F77=':'
  49070. - link_all_deplibs_F77=yes
  49071. -
  49072. - if test "$GCC" = yes; then
  49073. - case $host_os in aix4.012|aix4.012.*)
  49074. - # We only want to do this on AIX 4.2 and lower, the check
  49075. - # below for broken collect2 doesn't work under 4.3+
  49076. - collect2name=`${CC} -print-prog-name=collect2`
  49077. - if test -f "$collect2name" && \
  49078. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  49079. - then
  49080. - # We have reworked collect2
  49081. - hardcode_direct_F77=yes
  49082. - else
  49083. - # We have old collect2
  49084. - hardcode_direct_F77=unsupported
  49085. - # It fails to find uninstalled libraries when the uninstalled
  49086. - # path is not listed in the libpath. Setting hardcode_minus_L
  49087. - # to unsupported forces relinking
  49088. - hardcode_minus_L_F77=yes
  49089. - hardcode_libdir_flag_spec_F77='-L$libdir'
  49090. - hardcode_libdir_separator_F77=
  49091. - fi
  49092. - esac
  49093. - shared_flag='-shared'
  49094. - else
  49095. - # not using gcc
  49096. - if test "$host_cpu" = ia64; then
  49097. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  49098. - # chokes on -Wl,-G. The following line is correct:
  49099. - shared_flag='-G'
  49100. - else
  49101. - if test "$aix_use_runtimelinking" = yes; then
  49102. - shared_flag='${wl}-G'
  49103. - else
  49104. - shared_flag='${wl}-bM:SRE'
  49105. - fi
  49106. - fi
  49107. - fi
  49108. -
  49109. - # It seems that -bexpall does not export symbols beginning with
  49110. - # underscore (_), so it is better to generate a list of symbols to export.
  49111. - always_export_symbols_F77=yes
  49112. - if test "$aix_use_runtimelinking" = yes; then
  49113. - # Warning - without using the other runtime loading flags (-brtl),
  49114. - # -berok will link without error, but may produce a broken library.
  49115. - allow_undefined_flag_F77='-berok'
  49116. - # Determine the default libpath from the value encoded in an empty executable.
  49117. - cat >conftest.$ac_ext <<_ACEOF
  49118. - program main
  49119. -
  49120. - end
  49121. -_ACEOF
  49122. -rm -f conftest.$ac_objext conftest$ac_exeext
  49123. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  49124. - (eval $ac_link) 2>conftest.er1
  49125. - ac_status=$?
  49126. - grep -v '^ *+' conftest.er1 >conftest.err
  49127. - rm -f conftest.er1
  49128. - cat conftest.err >&5
  49129. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49130. - (exit $ac_status); } &&
  49131. - { ac_try='test -z "$ac_f77_werror_flag"
  49132. - || test ! -s conftest.err'
  49133. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  49134. - (eval $ac_try) 2>&5
  49135. - ac_status=$?
  49136. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49137. - (exit $ac_status); }; } &&
  49138. - { ac_try='test -s conftest$ac_exeext'
  49139. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  49140. - (eval $ac_try) 2>&5
  49141. - ac_status=$?
  49142. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49143. - (exit $ac_status); }; }; then
  49144. -
  49145. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  49146. -}'`
  49147. -# Check for a 64-bit object if we didn't find anything.
  49148. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  49149. -}'`; fi
  49150. -else
  49151. - echo "$as_me: failed program was:" >&5
  49152. -sed 's/^/| /' conftest.$ac_ext >&5
  49153. -
  49154. -fi
  49155. -rm -f conftest.err conftest.$ac_objext \
  49156. - conftest$ac_exeext conftest.$ac_ext
  49157. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  49158. -
  49159. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  49160. - archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  49161. - else
  49162. - if test "$host_cpu" = ia64; then
  49163. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  49164. - allow_undefined_flag_F77="-z nodefs"
  49165. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  49166. - else
  49167. - # Determine the default libpath from the value encoded in an empty executable.
  49168. - cat >conftest.$ac_ext <<_ACEOF
  49169. - program main
  49170. -
  49171. - end
  49172. -_ACEOF
  49173. -rm -f conftest.$ac_objext conftest$ac_exeext
  49174. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  49175. - (eval $ac_link) 2>conftest.er1
  49176. - ac_status=$?
  49177. - grep -v '^ *+' conftest.er1 >conftest.err
  49178. - rm -f conftest.er1
  49179. - cat conftest.err >&5
  49180. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49181. - (exit $ac_status); } &&
  49182. - { ac_try='test -z "$ac_f77_werror_flag"
  49183. - || test ! -s conftest.err'
  49184. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  49185. - (eval $ac_try) 2>&5
  49186. - ac_status=$?
  49187. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49188. - (exit $ac_status); }; } &&
  49189. - { ac_try='test -s conftest$ac_exeext'
  49190. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  49191. - (eval $ac_try) 2>&5
  49192. - ac_status=$?
  49193. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49194. - (exit $ac_status); }; }; then
  49195. -
  49196. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  49197. -}'`
  49198. -# Check for a 64-bit object if we didn't find anything.
  49199. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  49200. -}'`; fi
  49201. -else
  49202. - echo "$as_me: failed program was:" >&5
  49203. -sed 's/^/| /' conftest.$ac_ext >&5
  49204. -
  49205. -fi
  49206. -rm -f conftest.err conftest.$ac_objext \
  49207. - conftest$ac_exeext conftest.$ac_ext
  49208. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  49209. -
  49210. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  49211. - # Warning - without using the other run time loading flags,
  49212. - # -berok will link without error, but may produce a broken library.
  49213. - no_undefined_flag_F77=' ${wl}-bernotok'
  49214. - allow_undefined_flag_F77=' ${wl}-berok'
  49215. - # -bexpall does not export symbols beginning with underscore (_)
  49216. - always_export_symbols_F77=yes
  49217. - # Exported symbols can be pulled into shared objects from archives
  49218. - whole_archive_flag_spec_F77=' '
  49219. - archive_cmds_need_lc_F77=yes
  49220. - # This is similar to how AIX traditionally builds it's shared libraries.
  49221. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  49222. - fi
  49223. - fi
  49224. - ;;
  49225. -
  49226. - amigaos*)
  49227. - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
  49228. - hardcode_libdir_flag_spec_F77='-L$libdir'
  49229. - hardcode_minus_L_F77=yes
  49230. - # see comment about different semantics on the GNU ld section
  49231. - ld_shlibs_F77=no
  49232. - ;;
  49233. -
  49234. - bsdi4*)
  49235. - export_dynamic_flag_spec_F77=-rdynamic
  49236. - ;;
  49237. -
  49238. - cygwin* | mingw* | pw32*)
  49239. - # When not using gcc, we currently assume that we are using
  49240. - # Microsoft Visual C++.
  49241. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  49242. - # no search path for DLLs.
  49243. - hardcode_libdir_flag_spec_F77=' '
  49244. - allow_undefined_flag_F77=unsupported
  49245. - # Tell ltmain to make .lib files, not .a files.
  49246. - libext=lib
  49247. - # Tell ltmain to make .dll files, not .so files.
  49248. - shrext=".dll"
  49249. - # FIXME: Setting linknames here is a bad hack.
  49250. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll${_S_}linknames='
  49251. - # The linker will automatically build a .lib file if we build a DLL.
  49252. - old_archive_From_new_cmds_F77='true'
  49253. - # FIXME: Should let the user specify the lib program.
  49254. - old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  49255. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  49256. - enable_shared_with_static_runtimes_F77=yes
  49257. - ;;
  49258. -
  49259. - darwin* | rhapsody*)
  49260. - if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
  49261. - archive_cmds_need_lc_F77=no
  49262. - case "$host_os" in
  49263. - rhapsody* | darwin1.[012])
  49264. - allow_undefined_flag_F77='-undefined suppress'
  49265. - ;;
  49266. - darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
  49267. - test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
  49268. - ;;
  49269. - *) # Darwin 7.0 on
  49270. - case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
  49271. - 10.[012])
  49272. - test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
  49273. - ;;
  49274. - *) # 10.3 on
  49275. - if test -z ${LD_TWOLEVEL_NAMESPACE}; then
  49276. - allow_undefined_flag_F77='-flat_namespace -undefined suppress'
  49277. - else
  49278. - allow_undefined_flag_F77='-undefined dynamic_lookup'
  49279. - fi
  49280. - ;;
  49281. - esac
  49282. - ;;
  49283. - esac
  49284. - # FIXME: Relying on posixy $() will cause problems for
  49285. - # cross-compilation, but unfortunately the echo tests do not
  49286. - # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  49287. - # `"' quotes if we put them in here... so don't!
  49288. - lt_int_apple_cc_single_mod=no
  49289. - output_verbose_link_cmd='echo'
  49290. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  49291. - lt_int_apple_cc_single_mod=yes
  49292. - fi
  49293. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  49294. - archive_cmds_F77='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  49295. - else
  49296. - archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  49297. - fi
  49298. - module_cmds_F77='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
  49299. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  49300. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  49301. - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  49302. - else
  49303. - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  49304. - fi
  49305. - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  49306. - hardcode_direct_F77=no
  49307. - hardcode_automatic_F77=yes
  49308. - hardcode_shlibpath_var_F77=unsupported
  49309. - whole_archive_flag_spec_F77='-all_load $convenience'
  49310. - link_all_deplibs_F77=yes
  49311. - fi
  49312. - ;;
  49313. -
  49314. - dgux*)
  49315. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  49316. - hardcode_libdir_flag_spec_F77='-L$libdir'
  49317. - hardcode_shlibpath_var_F77=no
  49318. - ;;
  49319. -
  49320. - freebsd1*)
  49321. - ld_shlibs_F77=no
  49322. - ;;
  49323. -
  49324. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  49325. - # support. Future versions do this automatically, but an explicit c++rt0.o
  49326. - # does not break anything, and helps significantly (at the cost of a little
  49327. - # extra space).
  49328. - freebsd2.2*)
  49329. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  49330. - hardcode_libdir_flag_spec_F77='-R$libdir'
  49331. - hardcode_direct_F77=yes
  49332. - hardcode_shlibpath_var_F77=no
  49333. - ;;
  49334. -
  49335. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  49336. - freebsd2*)
  49337. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  49338. - hardcode_direct_F77=yes
  49339. - hardcode_minus_L_F77=yes
  49340. - hardcode_shlibpath_var_F77=no
  49341. - ;;
  49342. -
  49343. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  49344. - freebsd*)
  49345. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  49346. - hardcode_libdir_flag_spec_F77='-R$libdir'
  49347. - hardcode_direct_F77=yes
  49348. - hardcode_shlibpath_var_F77=no
  49349. - ;;
  49350. -
  49351. - hpux9*)
  49352. - if test "$GCC" = yes; then
  49353. - archive_cmds_F77='$rm $output_objdir/$soname${_S_}$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  49354. - else
  49355. - archive_cmds_F77='$rm $output_objdir/$soname${_S_}$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  49356. - fi
  49357. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  49358. - hardcode_libdir_separator_F77=:
  49359. - hardcode_direct_F77=yes
  49360. -
  49361. - # hardcode_minus_L: Not really in the search PATH,
  49362. - # but as the default location of the library.
  49363. - hardcode_minus_L_F77=yes
  49364. - export_dynamic_flag_spec_F77='${wl}-E'
  49365. - ;;
  49366. -
  49367. - hpux10* | hpux11*)
  49368. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  49369. - case "$host_cpu" in
  49370. - hppa*64*|ia64*)
  49371. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  49372. - ;;
  49373. - *)
  49374. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  49375. - ;;
  49376. - esac
  49377. - else
  49378. - case "$host_cpu" in
  49379. - hppa*64*|ia64*)
  49380. - archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  49381. - ;;
  49382. - *)
  49383. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  49384. - ;;
  49385. - esac
  49386. - fi
  49387. - if test "$with_gnu_ld" = no; then
  49388. - case "$host_cpu" in
  49389. - hppa*64*)
  49390. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  49391. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  49392. - hardcode_libdir_separator_F77=:
  49393. - hardcode_direct_F77=no
  49394. - hardcode_shlibpath_var_F77=no
  49395. - ;;
  49396. - ia64*)
  49397. - hardcode_libdir_flag_spec_F77='-L$libdir'
  49398. - hardcode_direct_F77=no
  49399. - hardcode_shlibpath_var_F77=no
  49400. -
  49401. - # hardcode_minus_L: Not really in the search PATH,
  49402. - # but as the default location of the library.
  49403. - hardcode_minus_L_F77=yes
  49404. - ;;
  49405. - *)
  49406. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  49407. - hardcode_libdir_separator_F77=:
  49408. - hardcode_direct_F77=yes
  49409. - export_dynamic_flag_spec_F77='${wl}-E'
  49410. -
  49411. - # hardcode_minus_L: Not really in the search PATH,
  49412. - # but as the default location of the library.
  49413. - hardcode_minus_L_F77=yes
  49414. - ;;
  49415. - esac
  49416. - fi
  49417. - ;;
  49418. -
  49419. - irix5* | irix6* | nonstopux*)
  49420. - if test "$GCC" = yes; then
  49421. - 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'
  49422. - else
  49423. - 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'
  49424. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  49425. - fi
  49426. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  49427. - hardcode_libdir_separator_F77=:
  49428. - link_all_deplibs_F77=yes
  49429. - ;;
  49430. -
  49431. - netbsd*)
  49432. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  49433. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  49434. - else
  49435. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  49436. - fi
  49437. - hardcode_libdir_flag_spec_F77='-R$libdir'
  49438. - hardcode_direct_F77=yes
  49439. - hardcode_shlibpath_var_F77=no
  49440. - ;;
  49441. -
  49442. - newsos6)
  49443. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  49444. - hardcode_direct_F77=yes
  49445. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  49446. - hardcode_libdir_separator_F77=:
  49447. - hardcode_shlibpath_var_F77=no
  49448. - ;;
  49449. -
  49450. - openbsd*)
  49451. - hardcode_direct_F77=yes
  49452. - hardcode_shlibpath_var_F77=no
  49453. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  49454. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  49455. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  49456. - export_dynamic_flag_spec_F77='${wl}-E'
  49457. - else
  49458. - case $host_os in
  49459. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  49460. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  49461. - hardcode_libdir_flag_spec_F77='-R$libdir'
  49462. - ;;
  49463. - *)
  49464. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  49465. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  49466. - ;;
  49467. - esac
  49468. - fi
  49469. - ;;
  49470. -
  49471. - os2*)
  49472. - hardcode_libdir_flag_spec_F77='-L$libdir'
  49473. - hardcode_minus_L_F77=yes
  49474. - allow_undefined_flag_F77=unsupported
  49475. - archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def${_S_}$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def${_S_}$echo DATA >> $output_objdir/$libname.def${_S_}$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def${_S_}$echo EXPORTS >> $output_objdir/$libname.def${_S_}emxexp $libobjs >> $output_objdir/$libname.def${_S_}$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  49476. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  49477. - ;;
  49478. -
  49479. - osf3*)
  49480. - if test "$GCC" = yes; then
  49481. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  49482. - 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'
  49483. - else
  49484. - allow_undefined_flag_F77=' -expect_unresolved \*'
  49485. - 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'
  49486. - fi
  49487. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  49488. - hardcode_libdir_separator_F77=:
  49489. - ;;
  49490. -
  49491. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  49492. - if test "$GCC" = yes; then
  49493. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  49494. - 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'
  49495. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  49496. - else
  49497. - allow_undefined_flag_F77=' -expect_unresolved \*'
  49498. - 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'
  49499. - 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${_S_}
  49500. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib${_S_}$rm $lib.exp'
  49501. -
  49502. - # Both c and cxx compiler support -rpath directly
  49503. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  49504. - fi
  49505. - hardcode_libdir_separator_F77=:
  49506. - ;;
  49507. -
  49508. - sco3.2v5*)
  49509. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  49510. - hardcode_shlibpath_var_F77=no
  49511. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  49512. - runpath_var=LD_RUN_PATH
  49513. - hardcode_runpath_var=yes
  49514. - ;;
  49515. -
  49516. - solaris*)
  49517. - no_undefined_flag_F77=' -z text'
  49518. - if test "$GCC" = yes; then
  49519. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  49520. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
  49521. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags${_S_}$rm $lib.exp'
  49522. - else
  49523. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  49524. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
  49525. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
  49526. - fi
  49527. - hardcode_libdir_flag_spec_F77='-R$libdir'
  49528. - hardcode_shlibpath_var_F77=no
  49529. - case $host_os in
  49530. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  49531. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  49532. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  49533. - esac
  49534. - link_all_deplibs_F77=yes
  49535. - ;;
  49536. -
  49537. - sunos4*)
  49538. - if test "x$host_vendor" = xsequent; then
  49539. - # Use $CC to link under sequent, because it throws in some extra .o
  49540. - # files that make .init and .fini sections work.
  49541. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  49542. - else
  49543. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  49544. - fi
  49545. - hardcode_libdir_flag_spec_F77='-L$libdir'
  49546. - hardcode_direct_F77=yes
  49547. - hardcode_minus_L_F77=yes
  49548. - hardcode_shlibpath_var_F77=no
  49549. - ;;
  49550. -
  49551. - sysv4)
  49552. - case $host_vendor in
  49553. - sni)
  49554. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  49555. - hardcode_direct_F77=yes # is this really true???
  49556. - ;;
  49557. - siemens)
  49558. - ## LD is ld it makes a PLAMLIB
  49559. - ## CC just makes a GrossModule.
  49560. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  49561. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  49562. - hardcode_direct_F77=no
  49563. - ;;
  49564. - motorola)
  49565. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  49566. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  49567. - ;;
  49568. - esac
  49569. - runpath_var='LD_RUN_PATH'
  49570. - hardcode_shlibpath_var_F77=no
  49571. - ;;
  49572. -
  49573. - sysv4.3*)
  49574. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  49575. - hardcode_shlibpath_var_F77=no
  49576. - export_dynamic_flag_spec_F77='-Bexport'
  49577. - ;;
  49578. -
  49579. - sysv4*MP*)
  49580. - if test -d /usr/nec; then
  49581. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  49582. - hardcode_shlibpath_var_F77=no
  49583. - runpath_var=LD_RUN_PATH
  49584. - hardcode_runpath_var=yes
  49585. - ld_shlibs_F77=yes
  49586. - fi
  49587. - ;;
  49588. -
  49589. - sysv4.2uw2*)
  49590. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  49591. - hardcode_direct_F77=yes
  49592. - hardcode_minus_L_F77=no
  49593. - hardcode_shlibpath_var_F77=no
  49594. - hardcode_runpath_var=yes
  49595. - runpath_var=LD_RUN_PATH
  49596. - ;;
  49597. -
  49598. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  49599. - no_undefined_flag_F77='${wl}-z ${wl}text'
  49600. - if test "$GCC" = yes; then
  49601. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  49602. - else
  49603. - archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  49604. - fi
  49605. - runpath_var='LD_RUN_PATH'
  49606. - hardcode_shlibpath_var_F77=no
  49607. - ;;
  49608. -
  49609. - sysv5*)
  49610. - no_undefined_flag_F77=' -z text'
  49611. - # $CC -shared without GNU ld will not create a library from C++
  49612. - # object files and a static libstdc++, better avoid it by now
  49613. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  49614. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
  49615. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
  49616. - hardcode_libdir_flag_spec_F77=
  49617. - hardcode_shlibpath_var_F77=no
  49618. - runpath_var='LD_RUN_PATH'
  49619. - ;;
  49620. -
  49621. - uts4*)
  49622. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  49623. - hardcode_libdir_flag_spec_F77='-L$libdir'
  49624. - hardcode_shlibpath_var_F77=no
  49625. - ;;
  49626. -
  49627. - *)
  49628. - ld_shlibs_F77=no
  49629. - ;;
  49630. - esac
  49631. - fi
  49632. -
  49633. -echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  49634. -echo "${ECHO_T}$ld_shlibs_F77" >&6
  49635. -test "$ld_shlibs_F77" = no && can_build_shared=no
  49636. -
  49637. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  49638. -if test "$GCC" = yes; then
  49639. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  49640. -fi
  49641. -
  49642. -#
  49643. -# Do we need to explicitly link libc?
  49644. -#
  49645. -case "x$archive_cmds_need_lc_F77" in
  49646. -x|xyes)
  49647. - # Assume -lc should be added
  49648. - archive_cmds_need_lc_F77=yes
  49649. -
  49650. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  49651. - case $archive_cmds_F77 in
  49652. - *"$_S_"*)
  49653. - # FIXME: we may have to deal with multi-command sequences.
  49654. - ;;
  49655. - '$CC '*)
  49656. - # Test whether the compiler implicitly links with -lc since on some
  49657. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  49658. - # to ld, don't add -lc before -lgcc.
  49659. - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  49660. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  49661. - $rm conftest*
  49662. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  49663. -
  49664. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  49665. - (eval $ac_compile) 2>&5
  49666. - ac_status=$?
  49667. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49668. - (exit $ac_status); } 2>conftest.err; then
  49669. - soname=conftest
  49670. - lib=conftest
  49671. - libobjs=conftest.$ac_objext
  49672. - deplibs=
  49673. - wl=$lt_prog_compiler_wl_F77
  49674. - compiler_flags=-v
  49675. - linker_flags=-v
  49676. - verstring=
  49677. - output_objdir=.
  49678. - libname=conftest
  49679. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  49680. - allow_undefined_flag_F77=
  49681. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  49682. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  49683. - ac_status=$?
  49684. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49685. - (exit $ac_status); }
  49686. - then
  49687. - archive_cmds_need_lc_F77=no
  49688. - else
  49689. - archive_cmds_need_lc_F77=yes
  49690. - fi
  49691. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  49692. - else
  49693. - cat conftest.err 1>&5
  49694. - fi
  49695. - $rm conftest*
  49696. - echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  49697. -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  49698. - ;;
  49699. - esac
  49700. - fi
  49701. - ;;
  49702. -esac
  49703. -
  49704. -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  49705. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  49706. -hardcode_action_F77=
  49707. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  49708. - test -n "$runpath_var F77" || \
  49709. - test "X$hardcode_automatic_F77"="Xyes" ; then
  49710. -
  49711. - # We can hardcode non-existant directories.
  49712. - if test "$hardcode_direct_F77" != no &&
  49713. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  49714. - # have to relink, otherwise we might link with an installed library
  49715. - # when we should be linking with a yet-to-be-installed one
  49716. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  49717. - test "$hardcode_minus_L_F77" != no; then
  49718. - # Linking always hardcodes the temporary library directory.
  49719. - hardcode_action_F77=relink
  49720. - else
  49721. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  49722. - hardcode_action_F77=immediate
  49723. - fi
  49724. -else
  49725. - # We cannot hardcode anything, or else we can only hardcode existing
  49726. - # directories.
  49727. - hardcode_action_F77=unsupported
  49728. -fi
  49729. -echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  49730. -echo "${ECHO_T}$hardcode_action_F77" >&6
  49731. -
  49732. -if test "$hardcode_action_F77" = relink; then
  49733. - # Fast installation is not supported
  49734. - enable_fast_install=no
  49735. -elif test "$shlibpath_overrides_runpath" = yes ||
  49736. - test "$enable_shared" = no; then
  49737. - # Fast installation is not necessary
  49738. - enable_fast_install=needless
  49739. -fi
  49740. -
  49741. -striplib=
  49742. -old_striplib=
  49743. -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  49744. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  49745. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  49746. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  49747. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  49748. - echo "$as_me:$LINENO: result: yes" >&5
  49749. -echo "${ECHO_T}yes" >&6
  49750. -else
  49751. -# FIXME - insert some real tests, host_os isn't really good enough
  49752. - case $host_os in
  49753. - NOT-darwin*)
  49754. - if test -n "$STRIP" ; then
  49755. - striplib="$STRIP -x"
  49756. - echo "$as_me:$LINENO: result: yes" >&5
  49757. -echo "${ECHO_T}yes" >&6
  49758. - else
  49759. - echo "$as_me:$LINENO: result: no" >&5
  49760. -echo "${ECHO_T}no" >&6
  49761. -fi
  49762. - ;;
  49763. - *)
  49764. - echo "$as_me:$LINENO: result: no" >&5
  49765. -echo "${ECHO_T}no" >&6
  49766. - ;;
  49767. - esac
  49768. -fi
  49769. -
  49770. -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  49771. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  49772. -library_names_spec=
  49773. -libname_spec='lib$name'
  49774. -soname_spec=
  49775. -shrext=".so"
  49776. -postinstall_cmds=
  49777. -postuninstall_cmds=
  49778. -finish_cmds=
  49779. -finish_eval=
  49780. -shlibpath_var=
  49781. -shlibpath_overrides_runpath=unknown
  49782. -version_type=none
  49783. -dynamic_linker="$host_os ld.so"
  49784. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  49785. -if test "$GCC" = yes; then
  49786. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  49787. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  49788. - # if the path contains ";" then we assume it to be the separator
  49789. - # otherwise default to the standard path separator (i.e. ":") - it is
  49790. - # assumed that no part of a normal pathname contains ";" but that should
  49791. - # okay in the real world where ";" in dirpaths is itself problematic.
  49792. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  49793. - else
  49794. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  49795. - fi
  49796. -else
  49797. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  49798. -fi
  49799. -need_lib_prefix=unknown
  49800. -hardcode_into_libs=no
  49801. -
  49802. -# when you set need_version to no, make sure it does not cause -set_version
  49803. -# flags to be left without arguments
  49804. -need_version=unknown
  49805. -
  49806. -case $host_os in
  49807. -aix3*)
  49808. - version_type=linux
  49809. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  49810. - shlibpath_var=LIBPATH
  49811. -
  49812. - # AIX 3 has no versioning support, so we append a major version to the name.
  49813. - soname_spec='${libname}${release}${shared_ext}$major'
  49814. - ;;
  49815. -
  49816. -aix4* | aix5*)
  49817. - version_type=linux
  49818. - need_lib_prefix=no
  49819. - need_version=no
  49820. - hardcode_into_libs=yes
  49821. - if test "$host_cpu" = ia64; then
  49822. - # AIX 5 supports IA64
  49823. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  49824. - shlibpath_var=LD_LIBRARY_PATH
  49825. - else
  49826. - # With GCC up to 2.95.x, collect2 would create an import file
  49827. - # for dependence libraries. The import file would start with
  49828. - # the line `#! .'. This would cause the generated library to
  49829. - # depend on `.', always an invalid library. This was fixed in
  49830. - # development snapshots of GCC prior to 3.0.
  49831. - case $host_os in
  49832. - aix4 | aix4.[01] | aix4.[01].*)
  49833. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  49834. - echo ' yes '
  49835. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  49836. - :
  49837. - else
  49838. - can_build_shared=no
  49839. - fi
  49840. - ;;
  49841. - esac
  49842. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  49843. - # soname into executable. Probably we can add versioning support to
  49844. - # collect2, so additional links can be useful in future.
  49845. - if test "$aix_use_runtimelinking" = yes; then
  49846. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  49847. - # instead of lib<name>.a to let people know that these are not
  49848. - # typical AIX shared libraries.
  49849. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  49850. - else
  49851. - # We preserve .a as extension for shared libraries through AIX4.2
  49852. - # and later when we are not doing run time linking.
  49853. - library_names_spec='${libname}${release}.a $libname.a'
  49854. - soname_spec='${libname}${release}${shared_ext}$major'
  49855. - fi
  49856. - shlibpath_var=LIBPATH
  49857. - fi
  49858. - ;;
  49859. -
  49860. -amigaos*)
  49861. - library_names_spec='$libname.ixlibrary $libname.a'
  49862. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  49863. - 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'
  49864. - ;;
  49865. -
  49866. -beos*)
  49867. - library_names_spec='${libname}${shared_ext}'
  49868. - dynamic_linker="$host_os ld.so"
  49869. - shlibpath_var=LIBRARY_PATH
  49870. - ;;
  49871. -
  49872. -bsdi4*)
  49873. - version_type=linux
  49874. - need_version=no
  49875. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  49876. - soname_spec='${libname}${release}${shared_ext}$major'
  49877. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  49878. - shlibpath_var=LD_LIBRARY_PATH
  49879. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  49880. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  49881. - # the default ld.so.conf also contains /usr/contrib/lib and
  49882. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  49883. - # libtool to hard-code these into programs
  49884. - ;;
  49885. -
  49886. -cygwin* | mingw* | pw32*)
  49887. - version_type=windows
  49888. - shrext=".dll"
  49889. - need_version=no
  49890. - need_lib_prefix=no
  49891. -
  49892. - case $GCC,$host_os in
  49893. - yes,cygwin* | yes,mingw* | yes,pw32*)
  49894. - library_names_spec='$libname.dll.a'
  49895. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  49896. - postinstall_cmds='base_file=`basename \${file}`${_S_}
  49897. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
  49898. - dldir=$destdir/`dirname \$dlpath`${_S_}
  49899. - test -d \$dldir || mkdir -p \$dldir${_S_}
  49900. - $install_prog $dir/$dlname \$dldir/$dlname'
  49901. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
  49902. - dlpath=$dir/\$dldll${_S_}
  49903. - $rm \$dlpath'
  49904. - shlibpath_overrides_runpath=yes
  49905. -
  49906. - case $host_os in
  49907. - cygwin*)
  49908. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  49909. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  49910. - sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
  49911. - ;;
  49912. - mingw*)
  49913. - # MinGW DLLs use traditional 'lib' prefix
  49914. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  49915. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  49916. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  49917. - # It is most probably a Windows format PATH printed by
  49918. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  49919. - # path with ; separators, and with drive letters. We can handle the
  49920. - # drive letters (cygwin fileutils understands them), so leave them,
  49921. - # especially as we might pass files found there to a mingw objdump,
  49922. - # which wouldn't understand a cygwinified path. Ahh.
  49923. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  49924. - else
  49925. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  49926. - fi
  49927. - ;;
  49928. - pw32*)
  49929. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  49930. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  49931. - ;;
  49932. - esac
  49933. - ;;
  49934. -
  49935. - *)
  49936. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  49937. - ;;
  49938. - esac
  49939. - dynamic_linker='Win32 ld.exe'
  49940. - # FIXME: first we should search . and the directory the executable is in
  49941. - shlibpath_var=PATH
  49942. - ;;
  49943. -
  49944. -darwin* | rhapsody*)
  49945. - dynamic_linker="$host_os dyld"
  49946. - version_type=darwin
  49947. - need_lib_prefix=no
  49948. - need_version=no
  49949. - # FIXME: Relying on posixy $() will cause problems for
  49950. - # cross-compilation, but unfortunately the echo tests do not
  49951. - # yet detect zsh echo's removal of \ escapes.
  49952. - library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
  49953. - soname_spec='${libname}${release}${major}$shared_ext'
  49954. - shlibpath_overrides_runpath=yes
  49955. - shlibpath_var=DYLD_LIBRARY_PATH
  49956. - shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  49957. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  49958. - if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
  49959. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  49960. - fi
  49961. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  49962. - ;;
  49963. -
  49964. -dgux*)
  49965. - version_type=linux
  49966. - need_lib_prefix=no
  49967. - need_version=no
  49968. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  49969. - soname_spec='${libname}${release}${shared_ext}$major'
  49970. - shlibpath_var=LD_LIBRARY_PATH
  49971. - ;;
  49972. -
  49973. -freebsd1*)
  49974. - dynamic_linker=no
  49975. - ;;
  49976. -
  49977. -freebsd*)
  49978. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  49979. - version_type=freebsd-$objformat
  49980. - case $version_type in
  49981. - freebsd-elf*)
  49982. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  49983. - need_version=no
  49984. - need_lib_prefix=no
  49985. - ;;
  49986. - freebsd-*)
  49987. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  49988. - need_version=yes
  49989. - ;;
  49990. - esac
  49991. - shlibpath_var=LD_LIBRARY_PATH
  49992. - case $host_os in
  49993. - freebsd2*)
  49994. - shlibpath_overrides_runpath=yes
  49995. - ;;
  49996. - freebsd3.01* | freebsdelf3.01*)
  49997. - shlibpath_overrides_runpath=yes
  49998. - hardcode_into_libs=yes
  49999. - ;;
  50000. - *) # from 3.2 on
  50001. - shlibpath_overrides_runpath=no
  50002. - hardcode_into_libs=yes
  50003. - ;;
  50004. - esac
  50005. - ;;
  50006. -
  50007. -gnu*)
  50008. - version_type=linux
  50009. - need_lib_prefix=no
  50010. - need_version=no
  50011. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  50012. - soname_spec='${libname}${release}${shared_ext}$major'
  50013. - shlibpath_var=LD_LIBRARY_PATH
  50014. - hardcode_into_libs=yes
  50015. - ;;
  50016. -
  50017. -hpux9* | hpux10* | hpux11*)
  50018. - # Give a soname corresponding to the major version so that dld.sl refuses to
  50019. - # link against other versions.
  50020. - version_type=sunos
  50021. - need_lib_prefix=no
  50022. - need_version=no
  50023. - case "$host_cpu" in
  50024. - ia64*)
  50025. - shrext='.so'
  50026. - hardcode_into_libs=yes
  50027. - dynamic_linker="$host_os dld.so"
  50028. - shlibpath_var=LD_LIBRARY_PATH
  50029. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  50030. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  50031. - soname_spec='${libname}${release}${shared_ext}$major'
  50032. - if test "X$HPUX_IA64_MODE" = X32; then
  50033. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  50034. - else
  50035. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  50036. - fi
  50037. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  50038. - ;;
  50039. - hppa*64*)
  50040. - shrext='.sl'
  50041. - hardcode_into_libs=yes
  50042. - dynamic_linker="$host_os dld.sl"
  50043. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  50044. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  50045. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  50046. - soname_spec='${libname}${release}${shared_ext}$major'
  50047. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  50048. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  50049. - ;;
  50050. - *)
  50051. - shrext='.sl'
  50052. - dynamic_linker="$host_os dld.sl"
  50053. - shlibpath_var=SHLIB_PATH
  50054. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  50055. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  50056. - soname_spec='${libname}${release}${shared_ext}$major'
  50057. - ;;
  50058. - esac
  50059. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  50060. - postinstall_cmds='chmod 555 $lib'
  50061. - ;;
  50062. -
  50063. -irix5* | irix6* | nonstopux*)
  50064. - case $host_os in
  50065. - nonstopux*) version_type=nonstopux ;;
  50066. - *)
  50067. - if test "$lt_cv_prog_gnu_ld" = yes; then
  50068. - version_type=linux
  50069. - else
  50070. - version_type=irix
  50071. - fi ;;
  50072. - esac
  50073. - need_lib_prefix=no
  50074. - need_version=no
  50075. - soname_spec='${libname}${release}${shared_ext}$major'
  50076. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  50077. - case $host_os in
  50078. - irix5* | nonstopux*)
  50079. - libsuff= shlibsuff=
  50080. - ;;
  50081. - *)
  50082. - case $LD in # libtool.m4 will add one of these switches to LD
  50083. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  50084. - libsuff= shlibsuff= libmagic=32-bit;;
  50085. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  50086. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  50087. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  50088. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  50089. - *) libsuff= shlibsuff= libmagic=never-match;;
  50090. - esac
  50091. - ;;
  50092. - esac
  50093. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  50094. - shlibpath_overrides_runpath=no
  50095. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  50096. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  50097. - hardcode_into_libs=yes
  50098. - ;;
  50099. -
  50100. -# No shared lib support for Linux oldld, aout, or coff.
  50101. -linux*oldld* | linux*aout* | linux*coff*)
  50102. - dynamic_linker=no
  50103. - ;;
  50104. -
  50105. -# This must be Linux ELF.
  50106. -linux*)
  50107. - version_type=linux
  50108. - need_lib_prefix=no
  50109. - need_version=no
  50110. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  50111. - soname_spec='${libname}${release}${shared_ext}$major'
  50112. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  50113. - shlibpath_var=LD_LIBRARY_PATH
  50114. - shlibpath_overrides_runpath=no
  50115. - # This implies no fast_install, which is unacceptable.
  50116. - # Some rework will be needed to allow for fast_install
  50117. - # before this can be enabled.
  50118. - hardcode_into_libs=yes
  50119. -
  50120. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  50121. - # powerpc, because MkLinux only supported shared libraries with the
  50122. - # GNU dynamic linker. Since this was broken with cross compilers,
  50123. - # most powerpc-linux boxes support dynamic linking these days and
  50124. - # people can always --disable-shared, the test was removed, and we
  50125. - # assume the GNU/Linux dynamic linker is in use.
  50126. - dynamic_linker='GNU/Linux ld.so'
  50127. - ;;
  50128. -
  50129. -netbsd*)
  50130. - version_type=sunos
  50131. - need_lib_prefix=no
  50132. - need_version=no
  50133. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  50134. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  50135. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  50136. - dynamic_linker='NetBSD (a.out) ld.so'
  50137. - else
  50138. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
  50139. - soname_spec='${libname}${release}${shared_ext}$major'
  50140. - dynamic_linker='NetBSD ld.elf_so'
  50141. - fi
  50142. - shlibpath_var=LD_LIBRARY_PATH
  50143. - shlibpath_overrides_runpath=yes
  50144. - hardcode_into_libs=yes
  50145. - ;;
  50146. -
  50147. -newsos6)
  50148. - version_type=linux
  50149. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  50150. - shlibpath_var=LD_LIBRARY_PATH
  50151. - shlibpath_overrides_runpath=yes
  50152. - ;;
  50153. -
  50154. -nto-qnx)
  50155. - version_type=linux
  50156. - need_lib_prefix=no
  50157. - need_version=no
  50158. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  50159. - soname_spec='${libname}${release}${shared_ext}$major'
  50160. - shlibpath_var=LD_LIBRARY_PATH
  50161. - shlibpath_overrides_runpath=yes
  50162. - ;;
  50163. -
  50164. -openbsd*)
  50165. - version_type=sunos
  50166. - need_lib_prefix=no
  50167. - need_version=no
  50168. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  50169. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  50170. - shlibpath_var=LD_LIBRARY_PATH
  50171. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  50172. - case $host_os in
  50173. - openbsd2.[89] | openbsd2.[89].*)
  50174. - shlibpath_overrides_runpath=no
  50175. - ;;
  50176. - *)
  50177. - shlibpath_overrides_runpath=yes
  50178. - ;;
  50179. - esac
  50180. - else
  50181. - shlibpath_overrides_runpath=yes
  50182. - fi
  50183. - ;;
  50184. -
  50185. -os2*)
  50186. - libname_spec='$name'
  50187. - shrext=".dll"
  50188. - need_lib_prefix=no
  50189. - library_names_spec='$libname${shared_ext} $libname.a'
  50190. - dynamic_linker='OS/2 ld.exe'
  50191. - shlibpath_var=LIBPATH
  50192. - ;;
  50193. -
  50194. -osf3* | osf4* | osf5*)
  50195. - version_type=osf
  50196. - need_lib_prefix=no
  50197. - need_version=no
  50198. - soname_spec='${libname}${release}${shared_ext}$major'
  50199. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  50200. - shlibpath_var=LD_LIBRARY_PATH
  50201. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  50202. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  50203. - ;;
  50204. -
  50205. -sco3.2v5*)
  50206. - version_type=osf
  50207. - soname_spec='${libname}${release}${shared_ext}$major'
  50208. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  50209. - shlibpath_var=LD_LIBRARY_PATH
  50210. - ;;
  50211. -
  50212. -solaris*)
  50213. - version_type=linux
  50214. - need_lib_prefix=no
  50215. - need_version=no
  50216. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  50217. - soname_spec='${libname}${release}${shared_ext}$major'
  50218. - shlibpath_var=LD_LIBRARY_PATH
  50219. - shlibpath_overrides_runpath=yes
  50220. - hardcode_into_libs=yes
  50221. - # ldd complains unless libraries are executable
  50222. - postinstall_cmds='chmod +x $lib'
  50223. - ;;
  50224. -
  50225. -sunos4*)
  50226. - version_type=sunos
  50227. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  50228. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  50229. - shlibpath_var=LD_LIBRARY_PATH
  50230. - shlibpath_overrides_runpath=yes
  50231. - if test "$with_gnu_ld" = yes; then
  50232. - need_lib_prefix=no
  50233. - fi
  50234. - need_version=yes
  50235. - ;;
  50236. -
  50237. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  50238. - version_type=linux
  50239. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  50240. - soname_spec='${libname}${release}${shared_ext}$major'
  50241. - shlibpath_var=LD_LIBRARY_PATH
  50242. - case $host_vendor in
  50243. - sni)
  50244. - shlibpath_overrides_runpath=no
  50245. - need_lib_prefix=no
  50246. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  50247. - runpath_var=LD_RUN_PATH
  50248. - ;;
  50249. - siemens)
  50250. - need_lib_prefix=no
  50251. - ;;
  50252. - motorola)
  50253. - need_lib_prefix=no
  50254. - need_version=no
  50255. - shlibpath_overrides_runpath=no
  50256. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  50257. - ;;
  50258. - esac
  50259. - ;;
  50260. -
  50261. -sysv4*MP*)
  50262. - if test -d /usr/nec ;then
  50263. - version_type=linux
  50264. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  50265. - soname_spec='$libname${shared_ext}.$major'
  50266. - shlibpath_var=LD_LIBRARY_PATH
  50267. - fi
  50268. - ;;
  50269. -
  50270. -uts4*)
  50271. - version_type=linux
  50272. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  50273. - soname_spec='${libname}${release}${shared_ext}$major'
  50274. - shlibpath_var=LD_LIBRARY_PATH
  50275. - ;;
  50276. -
  50277. -*)
  50278. - dynamic_linker=no
  50279. - ;;
  50280. -esac
  50281. -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  50282. -echo "${ECHO_T}$dynamic_linker" >&6
  50283. -test "$dynamic_linker" = no && can_build_shared=no
  50284. -
  50285. -
  50286. -# The else clause should only fire when bootstrapping the
  50287. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  50288. -# with your package, and you will get complaints that there are
  50289. -# no rules to generate ltmain.sh.
  50290. -if test -f "$ltmain"; then
  50291. - # See if we are running on zsh, and set the options which allow our commands through
  50292. - # without removal of \ escapes.
  50293. - if test -n "${ZSH_VERSION+set}" ; then
  50294. - setopt NO_GLOB_SUBST
  50295. - fi
  50296. - # Now quote all the things that may contain metacharacters while being
  50297. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  50298. - # variables and quote the copies for generation of the libtool script.
  50299. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
  50300. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  50301. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  50302. - deplibs_check_method reload_flag reload_cmds need_locks \
  50303. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  50304. - lt_cv_sys_global_symbol_to_c_name_address \
  50305. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  50306. - old_postinstall_cmds old_postuninstall_cmds \
  50307. - compiler_F77 \
  50308. - CC_F77 \
  50309. - LD_F77 \
  50310. - lt_prog_compiler_wl_F77 \
  50311. - lt_prog_compiler_pic_F77 \
  50312. - lt_prog_compiler_static_F77 \
  50313. - lt_prog_compiler_no_builtin_flag_F77 \
  50314. - export_dynamic_flag_spec_F77 \
  50315. - thread_safe_flag_spec_F77 \
  50316. - whole_archive_flag_spec_F77 \
  50317. - enable_shared_with_static_runtimes_F77 \
  50318. - old_archive_cmds_F77 \
  50319. - old_archive_from_new_cmds_F77 \
  50320. - predep_objects_F77 \
  50321. - postdep_objects_F77 \
  50322. - predeps_F77 \
  50323. - postdeps_F77 \
  50324. - compiler_lib_search_path_F77 \
  50325. - archive_cmds_F77 \
  50326. - archive_expsym_cmds_F77 \
  50327. - postinstall_cmds_F77 \
  50328. - postuninstall_cmds_F77 \
  50329. - old_archive_from_expsyms_cmds_F77 \
  50330. - allow_undefined_flag_F77 \
  50331. - no_undefined_flag_F77 \
  50332. - export_symbols_cmds_F77 \
  50333. - hardcode_libdir_flag_spec_F77 \
  50334. - hardcode_libdir_flag_spec_ld_F77 \
  50335. - hardcode_libdir_separator_F77 \
  50336. - hardcode_automatic_F77 \
  50337. - module_cmds_F77 \
  50338. - module_expsym_cmds_F77 \
  50339. - lt_cv_prog_compiler_c_o_F77 \
  50340. - exclude_expsyms_F77 \
  50341. - include_expsyms_F77; do
  50342. -
  50343. - case $var in
  50344. - old_archive_cmds_F77 | \
  50345. - old_archive_from_new_cmds_F77 | \
  50346. - archive_cmds_F77 | \
  50347. - archive_expsym_cmds_F77 | \
  50348. - module_cmds_F77 | \
  50349. - module_expsym_cmds_F77 | \
  50350. - old_archive_from_expsyms_cmds_F77 | \
  50351. - export_symbols_cmds_F77 | \
  50352. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  50353. - postinstall_cmds | postuninstall_cmds | \
  50354. - old_postinstall_cmds | old_postuninstall_cmds | \
  50355. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  50356. - # Double-quote double-evaled strings.
  50357. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
  50358. - ;;
  50359. - *)
  50360. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  50361. - ;;
  50362. - esac
  50363. - done
  50364. -
  50365. - case $lt_echo in
  50366. - *'\$0 --fallback-echo"')
  50367. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  50368. - ;;
  50369. - esac
  50370. -
  50371. -cfgfile="$ofile"
  50372. -
  50373. - cat <<__EOF__ >> "$cfgfile"
  50374. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  50375. -
  50376. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  50377. -
  50378. -# Set the command separator (default: ~)
  50379. -_S_=\${LIBTOOL_CMD_SEP-\~}
  50380. -
  50381. -# Shell to use when invoking shell scripts.
  50382. -SHELL=$lt_SHELL
  50383. -
  50384. -# Whether or not to build shared libraries.
  50385. -build_libtool_libs=$enable_shared
  50386. -
  50387. -# Whether or not to build static libraries.
  50388. -build_old_libs=$enable_static
  50389. -
  50390. -# Whether or not to add -lc for building shared libraries.
  50391. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  50392. -
  50393. -# Whether or not to disallow shared libs when runtime libs are static
  50394. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  50395. -
  50396. -# Whether or not to optimize for fast installation.
  50397. -fast_install=$enable_fast_install
  50398. -
  50399. -# The host system.
  50400. -host_alias=$host_alias
  50401. -host=$host
  50402. -
  50403. -# An echo program that does not interpret backslashes.
  50404. -echo=$lt_echo
  50405. -
  50406. -# The archiver.
  50407. -AR=$lt_AR
  50408. -AR_FLAGS=$lt_AR_FLAGS
  50409. -
  50410. -# A C compiler.
  50411. -LTCC=$lt_LTCC
  50412. -
  50413. -# A language-specific compiler.
  50414. -CC=$lt_compiler_F77
  50415. -
  50416. -# Is the compiler the GNU C compiler?
  50417. -with_gcc=$GCC_F77
  50418. -
  50419. -# An ERE matcher.
  50420. -EGREP=$lt_EGREP
  50421. -
  50422. -# The linker used to build libraries.
  50423. -LD=$lt_LD_F77
  50424. -
  50425. -# Whether we need hard or soft links.
  50426. -LN_S=$lt_LN_S
  50427. -
  50428. -# A BSD-compatible nm program.
  50429. -NM=$lt_NM
  50430. -
  50431. -# A symbol stripping program
  50432. -STRIP=$STRIP
  50433. -
  50434. -# Used to examine libraries when file_magic_cmd begins "file"
  50435. -MAGIC_CMD=$MAGIC_CMD
  50436. -
  50437. -# Used on cygwin: DLL creation program.
  50438. -DLLTOOL="$DLLTOOL"
  50439. -
  50440. -# Used on cygwin: object dumper.
  50441. -OBJDUMP="$OBJDUMP"
  50442. -
  50443. -# Used on cygwin: assembler.
  50444. -AS="$AS"
  50445. -
  50446. -# The name of the directory that contains temporary libtool files.
  50447. -objdir=$objdir
  50448. -
  50449. -# How to create reloadable object files.
  50450. -reload_flag=$lt_reload_flag
  50451. -reload_cmds=$lt_reload_cmds
  50452. -
  50453. -# How to pass a linker flag through the compiler.
  50454. -wl=$lt_lt_prog_compiler_wl_F77
  50455. -
  50456. -# Object file suffix (normally "o").
  50457. -objext="$ac_objext"
  50458. -
  50459. -# Old archive suffix (normally "a").
  50460. -libext="$libext"
  50461. -
  50462. -# Shared library suffix (normally ".so").
  50463. -shrext='$shrext'
  50464. -
  50465. -# Executable file suffix (normally "").
  50466. -exeext="$exeext"
  50467. -
  50468. -# Additional compiler flags for building library objects.
  50469. -pic_flag=$lt_lt_prog_compiler_pic_F77
  50470. -pic_mode=$pic_mode
  50471. -
  50472. -# What is the maximum length of a command?
  50473. -max_cmd_len=$lt_cv_sys_max_cmd_len
  50474. -
  50475. -# Does compiler simultaneously support -c and -o options?
  50476. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  50477. -
  50478. -# Must we lock files when doing compilation ?
  50479. -need_locks=$lt_need_locks
  50480. -
  50481. -# Do we need the lib prefix for modules?
  50482. -need_lib_prefix=$need_lib_prefix
  50483. -
  50484. -# Do we need a version for libraries?
  50485. -need_version=$need_version
  50486. -
  50487. -# Whether dlopen is supported.
  50488. -dlopen_support=$enable_dlopen
  50489. -
  50490. -# Whether dlopen of programs is supported.
  50491. -dlopen_self=$enable_dlopen_self
  50492. -
  50493. -# Whether dlopen of statically linked programs is supported.
  50494. -dlopen_self_static=$enable_dlopen_self_static
  50495. -
  50496. -# Compiler flag to prevent dynamic linking.
  50497. -link_static_flag=$lt_lt_prog_compiler_static_F77
  50498. -
  50499. -# Compiler flag to turn off builtin functions.
  50500. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  50501. -
  50502. -# Compiler flag to allow reflexive dlopens.
  50503. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  50504. -
  50505. -# Compiler flag to generate shared objects directly from archives.
  50506. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  50507. -
  50508. -# Compiler flag to generate thread-safe objects.
  50509. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  50510. -
  50511. -# Library versioning type.
  50512. -version_type=$version_type
  50513. -
  50514. -# Format of library name prefix.
  50515. -libname_spec=$lt_libname_spec
  50516. -
  50517. -# List of archive names. First name is the real one, the rest are links.
  50518. -# The last name is the one that the linker finds with -lNAME.
  50519. -library_names_spec=$lt_library_names_spec
  50520. -
  50521. -# The coded name of the library, if different from the real name.
  50522. -soname_spec=$lt_soname_spec
  50523. -
  50524. -# Commands used to build and install an old-style archive.
  50525. -RANLIB=$lt_RANLIB
  50526. -old_archive_cmds=$lt_old_archive_cmds_F77
  50527. -old_postinstall_cmds=$lt_old_postinstall_cmds
  50528. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  50529. -
  50530. -# Create an old-style archive from a shared archive.
  50531. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  50532. -
  50533. -# Create a temporary old-style archive to link instead of a shared archive.
  50534. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  50535. -
  50536. -# Commands used to build and install a shared archive.
  50537. -archive_cmds=$lt_archive_cmds_F77
  50538. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  50539. -postinstall_cmds=$lt_postinstall_cmds
  50540. -postuninstall_cmds=$lt_postuninstall_cmds
  50541. -
  50542. -# Commands used to build a loadable module (assumed same as above if empty)
  50543. -module_cmds=$lt_module_cmds_F77
  50544. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  50545. -
  50546. -# Commands to strip libraries.
  50547. -old_striplib=$lt_old_striplib
  50548. -striplib=$lt_striplib
  50549. -
  50550. -# Dependencies to place before the objects being linked to create a
  50551. -# shared library.
  50552. -predep_objects=$lt_predep_objects_F77
  50553. -
  50554. -# Dependencies to place after the objects being linked to create a
  50555. -# shared library.
  50556. -postdep_objects=$lt_postdep_objects_F77
  50557. -
  50558. -# Dependencies to place before the objects being linked to create a
  50559. -# shared library.
  50560. -predeps=$lt_predeps_F77
  50561. -
  50562. -# Dependencies to place after the objects being linked to create a
  50563. -# shared library.
  50564. -postdeps=$lt_postdeps_F77
  50565. -
  50566. -# The library search path used internally by the compiler when linking
  50567. -# a shared library.
  50568. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  50569. -
  50570. -# Method to check whether dependent libraries are shared objects.
  50571. -deplibs_check_method=$lt_deplibs_check_method
  50572. -
  50573. -# Command to use when deplibs_check_method == file_magic.
  50574. -file_magic_cmd=$lt_file_magic_cmd
  50575. -
  50576. -# Flag that allows shared libraries with undefined symbols to be built.
  50577. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  50578. -
  50579. -# Flag that forces no undefined symbols.
  50580. -no_undefined_flag=$lt_no_undefined_flag_F77
  50581. -
  50582. -# Commands used to finish a libtool library installation in a directory.
  50583. -finish_cmds=$lt_finish_cmds
  50584. -
  50585. -# Same as above, but a single script fragment to be evaled but not shown.
  50586. -finish_eval=$lt_finish_eval
  50587. -
  50588. -# Take the output of nm and produce a listing of raw symbols and C names.
  50589. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  50590. -
  50591. -# Transform the output of nm in a proper C declaration
  50592. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  50593. -
  50594. -# Transform the output of nm in a C name address pair
  50595. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  50596. -
  50597. -# This is the shared library runtime path variable.
  50598. -runpath_var=$runpath_var
  50599. -
  50600. -# This is the shared library path variable.
  50601. -shlibpath_var=$shlibpath_var
  50602. -
  50603. -# Is shlibpath searched before the hard-coded library search path?
  50604. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  50605. -
  50606. -# How to hardcode a shared library path into an executable.
  50607. -hardcode_action=$hardcode_action_F77
  50608. -
  50609. -# Whether we should hardcode library paths into libraries.
  50610. -hardcode_into_libs=$hardcode_into_libs
  50611. -
  50612. -# Flag to hardcode \$libdir into a binary during linking.
  50613. -# This must work even if \$libdir does not exist.
  50614. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  50615. -
  50616. -# If ld is used when linking, flag to hardcode \$libdir into
  50617. -# a binary during linking. This must work even if \$libdir does
  50618. -# not exist.
  50619. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  50620. -
  50621. -# Whether we need a single -rpath flag with a separated argument.
  50622. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  50623. -
  50624. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  50625. -# resulting binary.
  50626. -hardcode_direct=$hardcode_direct_F77
  50627. -
  50628. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  50629. -# resulting binary.
  50630. -hardcode_minus_L=$hardcode_minus_L_F77
  50631. -
  50632. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  50633. -# the resulting binary.
  50634. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  50635. -
  50636. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  50637. -# and all subsequent libraries and executables linked against it.
  50638. -hardcode_automatic=$hardcode_automatic_F77
  50639. -
  50640. -# Variables whose values should be saved in libtool wrapper scripts and
  50641. -# restored at relink time.
  50642. -variables_saved_for_relink="$variables_saved_for_relink"
  50643. -
  50644. -# Whether libtool must link a program against all its dependency libraries.
  50645. -link_all_deplibs=$link_all_deplibs_F77
  50646. -
  50647. -# Compile-time system search path for libraries
  50648. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  50649. -
  50650. -# Run-time system search path for libraries
  50651. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  50652. -
  50653. -# Fix the shell variable \$srcfile for the compiler.
  50654. -fix_srcfile_path="$fix_srcfile_path_F77"
  50655. -
  50656. -# Set to yes if exported symbols are required.
  50657. -always_export_symbols=$always_export_symbols_F77
  50658. -
  50659. -# The commands to list exported symbols.
  50660. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  50661. -
  50662. -# The commands to extract the exported symbol list from a shared archive.
  50663. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  50664. -
  50665. -# Symbols that should not be listed in the preloaded symbols.
  50666. -exclude_expsyms=$lt_exclude_expsyms_F77
  50667. -
  50668. -# Symbols that must always be exported.
  50669. -include_expsyms=$lt_include_expsyms_F77
  50670. -
  50671. -# ### END LIBTOOL TAG CONFIG: $tagname
  50672. -
  50673. -__EOF__
  50674. -
  50675. -
  50676. -else
  50677. - # If there is no Makefile yet, we rely on a make rule to execute
  50678. - # `config.status --recheck' to rerun these tests and create the
  50679. - # libtool script then.
  50680. - test -f Makefile && make "$ltmain"
  50681. -fi
  50682. -
  50683. -
  50684. -ac_ext=c
  50685. -ac_cpp='$CPP $CPPFLAGS'
  50686. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  50687. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  50688. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  50689. -
  50690. -CC="$lt_save_CC"
  50691. -
  50692. - else
  50693. - tagname=""
  50694. - fi
  50695. - ;;
  50696. -
  50697. - GCJ)
  50698. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  50699. -
  50700. -
  50701. -
  50702. -# Source file extension for Java test sources.
  50703. -ac_ext=java
  50704. -
  50705. -# Object file extension for compiled Java test sources.
  50706. -objext=o
  50707. -objext_GCJ=$objext
  50708. -
  50709. -# Code to be used in simple compile tests
  50710. -lt_simple_compile_test_code="class foo {}\n"
  50711. -
  50712. -# Code to be used in simple link tests
  50713. -lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
  50714. -
  50715. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  50716. -
  50717. -# If no C compiler was specified, use CC.
  50718. -LTCC=${LTCC-"$CC"}
  50719. -
  50720. -# Allow CC to be a program name with arguments.
  50721. -compiler=$CC
  50722. -
  50723. -
  50724. -# Allow CC to be a program name with arguments.
  50725. -lt_save_CC="$CC"
  50726. -CC=${GCJ-"gcj"}
  50727. -compiler=$CC
  50728. -compiler_GCJ=$CC
  50729. -
  50730. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  50731. -archive_cmds_need_lc_GCJ=no
  50732. -
  50733. -
  50734. -lt_prog_compiler_no_builtin_flag_GCJ=
  50735. -
  50736. -if test "$GCC" = yes; then
  50737. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  50738. -
  50739. - echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  50740. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  50741. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  50742. - echo $ECHO_N "(cached) $ECHO_C" >&6
  50743. -else
  50744. - lt_cv_prog_compiler_rtti_exceptions=no
  50745. - ac_outfile=conftest.$ac_objext
  50746. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  50747. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  50748. - # Insert the option either (1) after the last *FLAGS variable, or
  50749. - # (2) before a word containing "conftest.", or (3) at the end.
  50750. - # Note that $ac_compile itself does not contain backslashes and begins
  50751. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  50752. - # The option is referenced via a variable to avoid confusing sed.
  50753. - lt_compile=`echo "$ac_compile" | $SED \
  50754. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  50755. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  50756. - -e 's:$: $lt_compiler_flag:'`
  50757. - (eval echo "\"\$as_me:15344: $lt_compile\"" >&5)
  50758. - (eval "$lt_compile" 2>conftest.err)
  50759. - ac_status=$?
  50760. - cat conftest.err >&5
  50761. - echo "$as_me:15348: \$? = $ac_status" >&5
  50762. - if (exit $ac_status) && test -s "$ac_outfile"; then
  50763. - # The compiler can only warn and ignore the option if not recognized
  50764. - # So say no if there are warnings
  50765. - if test ! -s conftest.err; then
  50766. - lt_cv_prog_compiler_rtti_exceptions=yes
  50767. - fi
  50768. - fi
  50769. - $rm conftest*
  50770. -
  50771. -fi
  50772. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  50773. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  50774. -
  50775. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  50776. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  50777. -else
  50778. - :
  50779. -fi
  50780. -
  50781. -fi
  50782. -
  50783. -lt_prog_compiler_wl_GCJ=
  50784. -lt_prog_compiler_pic_GCJ=
  50785. -lt_prog_compiler_static_GCJ=
  50786. -
  50787. -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  50788. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  50789. -
  50790. - if test "$GCC" = yes; then
  50791. - lt_prog_compiler_wl_GCJ='-Wl,'
  50792. - lt_prog_compiler_static_GCJ='-static'
  50793. -
  50794. - case $host_os in
  50795. - aix*)
  50796. - # All AIX code is PIC.
  50797. - if test "$host_cpu" = ia64; then
  50798. - # AIX 5 now supports IA64 processor
  50799. - lt_prog_compiler_static_GCJ='-Bstatic'
  50800. - fi
  50801. - ;;
  50802. -
  50803. - amigaos*)
  50804. - # FIXME: we need at least 68020 code to build shared libraries, but
  50805. - # adding the `-m68020' flag to GCC prevents building anything better,
  50806. - # like `-m68040'.
  50807. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  50808. - ;;
  50809. -
  50810. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  50811. - # PIC is the default for these OSes.
  50812. - ;;
  50813. -
  50814. - mingw* | pw32* | os2*)
  50815. - # This hack is so that the source file can tell whether it is being
  50816. - # built for inclusion in a dll (and should export symbols for example).
  50817. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  50818. - ;;
  50819. -
  50820. - darwin* | rhapsody*)
  50821. - # PIC is the default on this platform
  50822. - # Common symbols not allowed in MH_DYLIB files
  50823. - lt_prog_compiler_pic_GCJ='-fno-common'
  50824. - ;;
  50825. -
  50826. - msdosdjgpp*)
  50827. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  50828. - # on systems that don't support them.
  50829. - lt_prog_compiler_can_build_shared_GCJ=no
  50830. - enable_shared=no
  50831. - ;;
  50832. -
  50833. - sysv4*MP*)
  50834. - if test -d /usr/nec; then
  50835. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  50836. - fi
  50837. - ;;
  50838. -
  50839. - hpux*)
  50840. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  50841. - # not for PA HP-UX.
  50842. - case "$host_cpu" in
  50843. - hppa*64*|ia64*)
  50844. - # +Z the default
  50845. - ;;
  50846. - *)
  50847. - lt_prog_compiler_pic_GCJ='-fPIC'
  50848. - ;;
  50849. - esac
  50850. - ;;
  50851. -
  50852. - *)
  50853. - lt_prog_compiler_pic_GCJ='-fPIC'
  50854. - ;;
  50855. - esac
  50856. - else
  50857. - # PORTME Check for flag to pass linker flags through the system compiler.
  50858. - case $host_os in
  50859. - aix*)
  50860. - lt_prog_compiler_wl_GCJ='-Wl,'
  50861. - if test "$host_cpu" = ia64; then
  50862. - # AIX 5 now supports IA64 processor
  50863. - lt_prog_compiler_static_GCJ='-Bstatic'
  50864. - else
  50865. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  50866. - fi
  50867. - ;;
  50868. -
  50869. - mingw* | pw32* | os2*)
  50870. - # This hack is so that the source file can tell whether it is being
  50871. - # built for inclusion in a dll (and should export symbols for example).
  50872. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  50873. - ;;
  50874. -
  50875. - hpux9* | hpux10* | hpux11*)
  50876. - lt_prog_compiler_wl_GCJ='-Wl,'
  50877. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  50878. - # not for PA HP-UX.
  50879. - case "$host_cpu" in
  50880. - hppa*64*|ia64*)
  50881. - # +Z the default
  50882. - ;;
  50883. - *)
  50884. - lt_prog_compiler_pic_GCJ='+Z'
  50885. - ;;
  50886. - esac
  50887. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  50888. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  50889. - ;;
  50890. -
  50891. - irix5* | irix6* | nonstopux*)
  50892. - lt_prog_compiler_wl_GCJ='-Wl,'
  50893. - # PIC (with -KPIC) is the default.
  50894. - lt_prog_compiler_static_GCJ='-non_shared'
  50895. - ;;
  50896. -
  50897. - newsos6)
  50898. - lt_prog_compiler_pic_GCJ='-KPIC'
  50899. - lt_prog_compiler_static_GCJ='-Bstatic'
  50900. - ;;
  50901. -
  50902. - linux*)
  50903. - case $CC in
  50904. - icc|ecc)
  50905. - lt_prog_compiler_wl_GCJ='-Wl,'
  50906. - lt_prog_compiler_pic_GCJ='-KPIC'
  50907. - lt_prog_compiler_static_GCJ='-static'
  50908. - ;;
  50909. - ccc)
  50910. - lt_prog_compiler_wl_GCJ='-Wl,'
  50911. - # All Alpha code is PIC.
  50912. - lt_prog_compiler_static_GCJ='-non_shared'
  50913. - ;;
  50914. - esac
  50915. - ;;
  50916. -
  50917. - osf3* | osf4* | osf5*)
  50918. - lt_prog_compiler_wl_GCJ='-Wl,'
  50919. - # All OSF/1 code is PIC.
  50920. - lt_prog_compiler_static_GCJ='-non_shared'
  50921. - ;;
  50922. -
  50923. - sco3.2v5*)
  50924. - lt_prog_compiler_pic_GCJ='-Kpic'
  50925. - lt_prog_compiler_static_GCJ='-dn'
  50926. - ;;
  50927. -
  50928. - solaris*)
  50929. - lt_prog_compiler_wl_GCJ='-Wl,'
  50930. - lt_prog_compiler_pic_GCJ='-KPIC'
  50931. - lt_prog_compiler_static_GCJ='-Bstatic'
  50932. - ;;
  50933. -
  50934. - sunos4*)
  50935. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  50936. - lt_prog_compiler_pic_GCJ='-PIC'
  50937. - lt_prog_compiler_static_GCJ='-Bstatic'
  50938. - ;;
  50939. -
  50940. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  50941. - lt_prog_compiler_wl_GCJ='-Wl,'
  50942. - lt_prog_compiler_pic_GCJ='-KPIC'
  50943. - lt_prog_compiler_static_GCJ='-Bstatic'
  50944. - ;;
  50945. -
  50946. - sysv4*MP*)
  50947. - if test -d /usr/nec ;then
  50948. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  50949. - lt_prog_compiler_static_GCJ='-Bstatic'
  50950. - fi
  50951. - ;;
  50952. -
  50953. - uts4*)
  50954. - lt_prog_compiler_pic_GCJ='-pic'
  50955. - lt_prog_compiler_static_GCJ='-Bstatic'
  50956. - ;;
  50957. -
  50958. - *)
  50959. - lt_prog_compiler_can_build_shared_GCJ=no
  50960. - ;;
  50961. - esac
  50962. - fi
  50963. -
  50964. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  50965. -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  50966. -
  50967. -#
  50968. -# Check to make sure the PIC flag actually works.
  50969. -#
  50970. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  50971. - echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  50972. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  50973. -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  50974. - echo $ECHO_N "(cached) $ECHO_C" >&6
  50975. -else
  50976. - lt_prog_compiler_pic_works_GCJ=no
  50977. - ac_outfile=conftest.$ac_objext
  50978. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  50979. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  50980. - # Insert the option either (1) after the last *FLAGS variable, or
  50981. - # (2) before a word containing "conftest.", or (3) at the end.
  50982. - # Note that $ac_compile itself does not contain backslashes and begins
  50983. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  50984. - # The option is referenced via a variable to avoid confusing sed.
  50985. - lt_compile=`echo "$ac_compile" | $SED \
  50986. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  50987. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  50988. - -e 's:$: $lt_compiler_flag:'`
  50989. - (eval echo "\"\$as_me:15576: $lt_compile\"" >&5)
  50990. - (eval "$lt_compile" 2>conftest.err)
  50991. - ac_status=$?
  50992. - cat conftest.err >&5
  50993. - echo "$as_me:15580: \$? = $ac_status" >&5
  50994. - if (exit $ac_status) && test -s "$ac_outfile"; then
  50995. - # The compiler can only warn and ignore the option if not recognized
  50996. - # So say no if there are warnings
  50997. - if test ! -s conftest.err; then
  50998. - lt_prog_compiler_pic_works_GCJ=yes
  50999. - fi
  51000. - fi
  51001. - $rm conftest*
  51002. -
  51003. -fi
  51004. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  51005. -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  51006. -
  51007. -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  51008. - case $lt_prog_compiler_pic_GCJ in
  51009. - "" | " "*) ;;
  51010. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  51011. - esac
  51012. -else
  51013. - lt_prog_compiler_pic_GCJ=
  51014. - lt_prog_compiler_can_build_shared_GCJ=no
  51015. -fi
  51016. -
  51017. -fi
  51018. -case "$host_os" in
  51019. - # For platforms which do not support PIC, -DPIC is meaningless:
  51020. - *djgpp*)
  51021. - lt_prog_compiler_pic_GCJ=
  51022. - ;;
  51023. - *)
  51024. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  51025. - ;;
  51026. -esac
  51027. -
  51028. -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  51029. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  51030. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  51031. - echo $ECHO_N "(cached) $ECHO_C" >&6
  51032. -else
  51033. - lt_cv_prog_compiler_c_o_GCJ=no
  51034. - $rm -r conftest 2>/dev/null
  51035. - mkdir conftest
  51036. - cd conftest
  51037. - mkdir out
  51038. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  51039. -
  51040. - # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  51041. - # that will create temporary files in the current directory regardless of
  51042. - # the output directory. Thus, making CWD read-only will cause this test
  51043. - # to fail, enabling locking or at least warning the user not to do parallel
  51044. - # builds.
  51045. - chmod -w .
  51046. -
  51047. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  51048. - # Insert the option either (1) after the last *FLAGS variable, or
  51049. - # (2) before a word containing "conftest.", or (3) at the end.
  51050. - # Note that $ac_compile itself does not contain backslashes and begins
  51051. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  51052. - lt_compile=`echo "$ac_compile" | $SED \
  51053. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  51054. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  51055. - -e 's:$: $lt_compiler_flag:'`
  51056. - (eval echo "\"\$as_me:15643: $lt_compile\"" >&5)
  51057. - (eval "$lt_compile" 2>out/conftest.err)
  51058. - ac_status=$?
  51059. - cat out/conftest.err >&5
  51060. - echo "$as_me:15647: \$? = $ac_status" >&5
  51061. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  51062. - then
  51063. - # The compiler can only warn and ignore the option if not recognized
  51064. - # So say no if there are warnings
  51065. - if test ! -s out/conftest.err; then
  51066. - lt_cv_prog_compiler_c_o_GCJ=yes
  51067. - fi
  51068. - fi
  51069. - chmod u+w .
  51070. - $rm conftest* out/*
  51071. - rmdir out
  51072. - cd ..
  51073. - rmdir conftest
  51074. - $rm conftest*
  51075. -
  51076. -fi
  51077. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  51078. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  51079. -
  51080. -
  51081. -hard_links="nottested"
  51082. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  51083. - # do not overwrite the value of need_locks provided by the user
  51084. - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  51085. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  51086. - hard_links=yes
  51087. - $rm conftest*
  51088. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  51089. - touch conftest.a
  51090. - ln conftest.a conftest.b 2>&5 || hard_links=no
  51091. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  51092. - echo "$as_me:$LINENO: result: $hard_links" >&5
  51093. -echo "${ECHO_T}$hard_links" >&6
  51094. - if test "$hard_links" = no; then
  51095. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  51096. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  51097. - need_locks=warn
  51098. - fi
  51099. -else
  51100. - need_locks=no
  51101. -fi
  51102. -
  51103. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  51104. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  51105. -
  51106. - runpath_var=
  51107. - allow_undefined_flag_GCJ=
  51108. - enable_shared_with_static_runtimes_GCJ=no
  51109. - archive_cmds_GCJ=
  51110. - archive_expsym_cmds_GCJ=
  51111. - old_archive_From_new_cmds_GCJ=
  51112. - old_archive_from_expsyms_cmds_GCJ=
  51113. - export_dynamic_flag_spec_GCJ=
  51114. - whole_archive_flag_spec_GCJ=
  51115. - thread_safe_flag_spec_GCJ=
  51116. - hardcode_libdir_flag_spec_GCJ=
  51117. - hardcode_libdir_flag_spec_ld_GCJ=
  51118. - hardcode_libdir_separator_GCJ=
  51119. - hardcode_direct_GCJ=no
  51120. - hardcode_minus_L_GCJ=no
  51121. - hardcode_shlibpath_var_GCJ=unsupported
  51122. - link_all_deplibs_GCJ=unknown
  51123. - hardcode_automatic_GCJ=no
  51124. - module_cmds_GCJ=
  51125. - module_expsym_cmds_GCJ=
  51126. - always_export_symbols_GCJ=no
  51127. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  51128. - # include_expsyms should be a list of space-separated symbols to be *always*
  51129. - # included in the symbol list
  51130. - include_expsyms_GCJ=
  51131. - # exclude_expsyms can be an extended regexp of symbols to exclude
  51132. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  51133. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  51134. - # as well as any symbol that contains `d'.
  51135. - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  51136. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  51137. - # platforms (ab)use it in PIC code, but their linkers get confused if
  51138. - # the symbol is explicitly referenced. Since portable code cannot
  51139. - # rely on this symbol name, it's probably fine to never include it in
  51140. - # preloaded symbol tables.
  51141. - extract_expsyms_cmds=
  51142. -
  51143. - case $host_os in
  51144. - cygwin* | mingw* | pw32*)
  51145. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  51146. - # When not using gcc, we currently assume that we are using
  51147. - # Microsoft Visual C++.
  51148. - if test "$GCC" != yes; then
  51149. - with_gnu_ld=no
  51150. - fi
  51151. - ;;
  51152. - openbsd*)
  51153. - with_gnu_ld=no
  51154. - ;;
  51155. - esac
  51156. -
  51157. - ld_shlibs_GCJ=yes
  51158. - if test "$with_gnu_ld" = yes; then
  51159. - # If archive_cmds runs LD, not CC, wlarc should be empty
  51160. - wlarc='${wl}'
  51161. -
  51162. - # See if GNU ld supports shared libraries.
  51163. - case $host_os in
  51164. - aix3* | aix4* | aix5*)
  51165. - # On AIX/PPC, the GNU linker is very broken
  51166. - if test "$host_cpu" != ia64; then
  51167. - ld_shlibs_GCJ=no
  51168. - cat <<EOF 1>&2
  51169. -
  51170. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  51171. -*** to be unable to reliably create shared libraries on AIX.
  51172. -*** Therefore, libtool is disabling shared libraries support. If you
  51173. -*** really care for shared libraries, you may want to modify your PATH
  51174. -*** so that a non-GNU linker is found, and then restart.
  51175. -
  51176. -EOF
  51177. - fi
  51178. - ;;
  51179. -
  51180. - amigaos*)
  51181. - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
  51182. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  51183. - hardcode_minus_L_GCJ=yes
  51184. -
  51185. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  51186. - # that the semantics of dynamic libraries on AmigaOS, at least up
  51187. - # to version 4, is to share data among multiple programs linked
  51188. - # with the same dynamic library. Since this doesn't match the
  51189. - # behavior of shared libraries on other platforms, we can't use
  51190. - # them.
  51191. - ld_shlibs_GCJ=no
  51192. - ;;
  51193. -
  51194. - beos*)
  51195. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  51196. - allow_undefined_flag_GCJ=unsupported
  51197. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  51198. - # support --undefined. This deserves some investigation. FIXME
  51199. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  51200. - else
  51201. - ld_shlibs_GCJ=no
  51202. - fi
  51203. - ;;
  51204. -
  51205. - cygwin* | mingw* | pw32*)
  51206. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  51207. - # as there is no search path for DLLs.
  51208. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  51209. - allow_undefined_flag_GCJ=unsupported
  51210. - always_export_symbols_GCJ=no
  51211. - enable_shared_with_static_runtimes_GCJ=yes
  51212. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  51213. -
  51214. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  51215. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  51216. - # If the export-symbols file already is a .def file (1st line
  51217. - # is EXPORTS), use it as is; otherwise, prepend...
  51218. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  51219. - cp $export_symbols $output_objdir/$soname.def;
  51220. - else
  51221. - echo EXPORTS > $output_objdir/$soname.def;
  51222. - cat $export_symbols >> $output_objdir/$soname.def;
  51223. - fi${_S_}
  51224. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  51225. - else
  51226. - ld_shlibs=no
  51227. - fi
  51228. - ;;
  51229. -
  51230. - netbsd*)
  51231. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  51232. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  51233. - wlarc=
  51234. - else
  51235. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  51236. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  51237. - fi
  51238. - ;;
  51239. -
  51240. - solaris* | sysv5*)
  51241. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  51242. - ld_shlibs_GCJ=no
  51243. - cat <<EOF 1>&2
  51244. -
  51245. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  51246. -*** create shared libraries on Solaris systems. Therefore, libtool
  51247. -*** is disabling shared libraries support. We urge you to upgrade GNU
  51248. -*** binutils to release 2.9.1 or newer. Another option is to modify
  51249. -*** your PATH or compiler configuration so that the native linker is
  51250. -*** used, and then restart.
  51251. -
  51252. -EOF
  51253. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  51254. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  51255. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  51256. - else
  51257. - ld_shlibs_GCJ=no
  51258. - fi
  51259. - ;;
  51260. -
  51261. - sunos4*)
  51262. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  51263. - wlarc=
  51264. - hardcode_direct_GCJ=yes
  51265. - hardcode_shlibpath_var_GCJ=no
  51266. - ;;
  51267. -
  51268. - *)
  51269. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  51270. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  51271. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  51272. - else
  51273. - ld_shlibs_GCJ=no
  51274. - fi
  51275. - ;;
  51276. - esac
  51277. -
  51278. - if test "$ld_shlibs_GCJ" = yes; then
  51279. - runpath_var=LD_RUN_PATH
  51280. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  51281. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  51282. - # ancient GNU ld didn't support --whole-archive et. al.
  51283. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  51284. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  51285. - else
  51286. - whole_archive_flag_spec_GCJ=
  51287. - fi
  51288. - fi
  51289. - else
  51290. - # PORTME fill in a description of your system's linker (not GNU ld)
  51291. - case $host_os in
  51292. - aix3*)
  51293. - allow_undefined_flag_GCJ=unsupported
  51294. - always_export_symbols_GCJ=yes
  51295. - archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE${_S_}$AR $AR_FLAGS $lib $output_objdir/$soname'
  51296. - # Note: this linker hardcodes the directories in LIBPATH if there
  51297. - # are no directories specified by -L.
  51298. - hardcode_minus_L_GCJ=yes
  51299. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  51300. - # Neither direct hardcoding nor static linking is supported with a
  51301. - # broken collect2.
  51302. - hardcode_direct_GCJ=unsupported
  51303. - fi
  51304. - ;;
  51305. -
  51306. - aix4* | aix5*)
  51307. - if test "$host_cpu" = ia64; then
  51308. - # On IA64, the linker does run time linking by default, so we don't
  51309. - # have to do anything special.
  51310. - aix_use_runtimelinking=no
  51311. - exp_sym_flag='-Bexport'
  51312. - no_entry_flag=""
  51313. - else
  51314. - # If we're using GNU nm, then we don't want the "-C" option.
  51315. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  51316. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  51317. - 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'
  51318. - else
  51319. - 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'
  51320. - fi
  51321. - aix_use_runtimelinking=no
  51322. -
  51323. - # Test if we are trying to use run time linking or normal
  51324. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  51325. - # need to do runtime linking.
  51326. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  51327. - for ld_flag in $LDFLAGS; do
  51328. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  51329. - aix_use_runtimelinking=yes
  51330. - break
  51331. - fi
  51332. - done
  51333. - esac
  51334. -
  51335. - exp_sym_flag='-bexport'
  51336. - no_entry_flag='-bnoentry'
  51337. - fi
  51338. -
  51339. - # When large executables or shared objects are built, AIX ld can
  51340. - # have problems creating the table of contents. If linking a library
  51341. - # or program results in "error TOC overflow" add -mminimal-toc to
  51342. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  51343. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  51344. -
  51345. - archive_cmds_GCJ=''
  51346. - hardcode_direct_GCJ=yes
  51347. - hardcode_libdir_separator_GCJ=':'
  51348. - link_all_deplibs_GCJ=yes
  51349. -
  51350. - if test "$GCC" = yes; then
  51351. - case $host_os in aix4.012|aix4.012.*)
  51352. - # We only want to do this on AIX 4.2 and lower, the check
  51353. - # below for broken collect2 doesn't work under 4.3+
  51354. - collect2name=`${CC} -print-prog-name=collect2`
  51355. - if test -f "$collect2name" && \
  51356. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  51357. - then
  51358. - # We have reworked collect2
  51359. - hardcode_direct_GCJ=yes
  51360. - else
  51361. - # We have old collect2
  51362. - hardcode_direct_GCJ=unsupported
  51363. - # It fails to find uninstalled libraries when the uninstalled
  51364. - # path is not listed in the libpath. Setting hardcode_minus_L
  51365. - # to unsupported forces relinking
  51366. - hardcode_minus_L_GCJ=yes
  51367. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  51368. - hardcode_libdir_separator_GCJ=
  51369. - fi
  51370. - esac
  51371. - shared_flag='-shared'
  51372. - else
  51373. - # not using gcc
  51374. - if test "$host_cpu" = ia64; then
  51375. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  51376. - # chokes on -Wl,-G. The following line is correct:
  51377. - shared_flag='-G'
  51378. - else
  51379. - if test "$aix_use_runtimelinking" = yes; then
  51380. - shared_flag='${wl}-G'
  51381. - else
  51382. - shared_flag='${wl}-bM:SRE'
  51383. - fi
  51384. - fi
  51385. - fi
  51386. -
  51387. - # It seems that -bexpall does not export symbols beginning with
  51388. - # underscore (_), so it is better to generate a list of symbols to export.
  51389. - always_export_symbols_GCJ=yes
  51390. - if test "$aix_use_runtimelinking" = yes; then
  51391. - # Warning - without using the other runtime loading flags (-brtl),
  51392. - # -berok will link without error, but may produce a broken library.
  51393. - allow_undefined_flag_GCJ='-berok'
  51394. - # Determine the default libpath from the value encoded in an empty executable.
  51395. - cat >conftest.$ac_ext <<_ACEOF
  51396. -/* confdefs.h. */
  51397. -_ACEOF
  51398. -cat confdefs.h >>conftest.$ac_ext
  51399. -cat >>conftest.$ac_ext <<_ACEOF
  51400. -/* end confdefs.h. */
  51401. -
  51402. -int
  51403. -main ()
  51404. -{
  51405. -
  51406. - ;
  51407. - return 0;
  51408. -}
  51409. -_ACEOF
  51410. -rm -f conftest.$ac_objext conftest$ac_exeext
  51411. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  51412. - (eval $ac_link) 2>conftest.er1
  51413. - ac_status=$?
  51414. - grep -v '^ *+' conftest.er1 >conftest.err
  51415. - rm -f conftest.er1
  51416. - cat conftest.err >&5
  51417. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51418. - (exit $ac_status); } &&
  51419. - { ac_try='test -z "$ac_c_werror_flag"
  51420. - || test ! -s conftest.err'
  51421. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  51422. - (eval $ac_try) 2>&5
  51423. - ac_status=$?
  51424. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51425. - (exit $ac_status); }; } &&
  51426. - { ac_try='test -s conftest$ac_exeext'
  51427. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  51428. - (eval $ac_try) 2>&5
  51429. - ac_status=$?
  51430. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51431. - (exit $ac_status); }; }; then
  51432. -
  51433. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  51434. -}'`
  51435. -# Check for a 64-bit object if we didn't find anything.
  51436. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  51437. -}'`; fi
  51438. -else
  51439. - echo "$as_me: failed program was:" >&5
  51440. -sed 's/^/| /' conftest.$ac_ext >&5
  51441. -
  51442. -fi
  51443. -rm -f conftest.err conftest.$ac_objext \
  51444. - conftest$ac_exeext conftest.$ac_ext
  51445. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  51446. -
  51447. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  51448. - archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  51449. - else
  51450. - if test "$host_cpu" = ia64; then
  51451. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  51452. - allow_undefined_flag_GCJ="-z nodefs"
  51453. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  51454. - else
  51455. - # Determine the default libpath from the value encoded in an empty executable.
  51456. - cat >conftest.$ac_ext <<_ACEOF
  51457. -/* confdefs.h. */
  51458. -_ACEOF
  51459. -cat confdefs.h >>conftest.$ac_ext
  51460. -cat >>conftest.$ac_ext <<_ACEOF
  51461. -/* end confdefs.h. */
  51462. -
  51463. -int
  51464. -main ()
  51465. -{
  51466. -
  51467. - ;
  51468. - return 0;
  51469. -}
  51470. -_ACEOF
  51471. -rm -f conftest.$ac_objext conftest$ac_exeext
  51472. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  51473. - (eval $ac_link) 2>conftest.er1
  51474. - ac_status=$?
  51475. - grep -v '^ *+' conftest.er1 >conftest.err
  51476. - rm -f conftest.er1
  51477. - cat conftest.err >&5
  51478. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51479. - (exit $ac_status); } &&
  51480. - { ac_try='test -z "$ac_c_werror_flag"
  51481. - || test ! -s conftest.err'
  51482. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  51483. - (eval $ac_try) 2>&5
  51484. - ac_status=$?
  51485. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51486. - (exit $ac_status); }; } &&
  51487. - { ac_try='test -s conftest$ac_exeext'
  51488. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  51489. - (eval $ac_try) 2>&5
  51490. - ac_status=$?
  51491. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51492. - (exit $ac_status); }; }; then
  51493. -
  51494. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  51495. -}'`
  51496. -# Check for a 64-bit object if we didn't find anything.
  51497. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  51498. -}'`; fi
  51499. -else
  51500. - echo "$as_me: failed program was:" >&5
  51501. -sed 's/^/| /' conftest.$ac_ext >&5
  51502. -
  51503. -fi
  51504. -rm -f conftest.err conftest.$ac_objext \
  51505. - conftest$ac_exeext conftest.$ac_ext
  51506. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  51507. -
  51508. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  51509. - # Warning - without using the other run time loading flags,
  51510. - # -berok will link without error, but may produce a broken library.
  51511. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  51512. - allow_undefined_flag_GCJ=' ${wl}-berok'
  51513. - # -bexpall does not export symbols beginning with underscore (_)
  51514. - always_export_symbols_GCJ=yes
  51515. - # Exported symbols can be pulled into shared objects from archives
  51516. - whole_archive_flag_spec_GCJ=' '
  51517. - archive_cmds_need_lc_GCJ=yes
  51518. - # This is similar to how AIX traditionally builds it's shared libraries.
  51519. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  51520. - fi
  51521. - fi
  51522. - ;;
  51523. -
  51524. - amigaos*)
  51525. - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
  51526. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  51527. - hardcode_minus_L_GCJ=yes
  51528. - # see comment about different semantics on the GNU ld section
  51529. - ld_shlibs_GCJ=no
  51530. - ;;
  51531. -
  51532. - bsdi4*)
  51533. - export_dynamic_flag_spec_GCJ=-rdynamic
  51534. - ;;
  51535. -
  51536. - cygwin* | mingw* | pw32*)
  51537. - # When not using gcc, we currently assume that we are using
  51538. - # Microsoft Visual C++.
  51539. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  51540. - # no search path for DLLs.
  51541. - hardcode_libdir_flag_spec_GCJ=' '
  51542. - allow_undefined_flag_GCJ=unsupported
  51543. - # Tell ltmain to make .lib files, not .a files.
  51544. - libext=lib
  51545. - # Tell ltmain to make .dll files, not .so files.
  51546. - shrext=".dll"
  51547. - # FIXME: Setting linknames here is a bad hack.
  51548. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll${_S_}linknames='
  51549. - # The linker will automatically build a .lib file if we build a DLL.
  51550. - old_archive_From_new_cmds_GCJ='true'
  51551. - # FIXME: Should let the user specify the lib program.
  51552. - old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  51553. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  51554. - enable_shared_with_static_runtimes_GCJ=yes
  51555. - ;;
  51556. -
  51557. - darwin* | rhapsody*)
  51558. - if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
  51559. - archive_cmds_need_lc_GCJ=no
  51560. - case "$host_os" in
  51561. - rhapsody* | darwin1.[012])
  51562. - allow_undefined_flag_GCJ='-undefined suppress'
  51563. - ;;
  51564. - darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
  51565. - test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
  51566. - ;;
  51567. - *) # Darwin 7.0 on
  51568. - case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
  51569. - 10.[012])
  51570. - test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
  51571. - ;;
  51572. - *) # 10.3 on
  51573. - if test -z ${LD_TWOLEVEL_NAMESPACE}; then
  51574. - allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
  51575. - else
  51576. - allow_undefined_flag_GCJ='-undefined dynamic_lookup'
  51577. - fi
  51578. - ;;
  51579. - esac
  51580. - ;;
  51581. - esac
  51582. - # FIXME: Relying on posixy $() will cause problems for
  51583. - # cross-compilation, but unfortunately the echo tests do not
  51584. - # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  51585. - # `"' quotes if we put them in here... so don't!
  51586. - lt_int_apple_cc_single_mod=no
  51587. - output_verbose_link_cmd='echo'
  51588. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  51589. - lt_int_apple_cc_single_mod=yes
  51590. - fi
  51591. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  51592. - archive_cmds_GCJ='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  51593. - else
  51594. - archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  51595. - fi
  51596. - module_cmds_GCJ='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
  51597. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  51598. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  51599. - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  51600. - else
  51601. - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  51602. - fi
  51603. - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  51604. - hardcode_direct_GCJ=no
  51605. - hardcode_automatic_GCJ=yes
  51606. - hardcode_shlibpath_var_GCJ=unsupported
  51607. - whole_archive_flag_spec_GCJ='-all_load $convenience'
  51608. - link_all_deplibs_GCJ=yes
  51609. - fi
  51610. - ;;
  51611. -
  51612. - dgux*)
  51613. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  51614. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  51615. - hardcode_shlibpath_var_GCJ=no
  51616. - ;;
  51617. -
  51618. - freebsd1*)
  51619. - ld_shlibs_GCJ=no
  51620. - ;;
  51621. -
  51622. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  51623. - # support. Future versions do this automatically, but an explicit c++rt0.o
  51624. - # does not break anything, and helps significantly (at the cost of a little
  51625. - # extra space).
  51626. - freebsd2.2*)
  51627. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  51628. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  51629. - hardcode_direct_GCJ=yes
  51630. - hardcode_shlibpath_var_GCJ=no
  51631. - ;;
  51632. -
  51633. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  51634. - freebsd2*)
  51635. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  51636. - hardcode_direct_GCJ=yes
  51637. - hardcode_minus_L_GCJ=yes
  51638. - hardcode_shlibpath_var_GCJ=no
  51639. - ;;
  51640. -
  51641. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  51642. - freebsd*)
  51643. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  51644. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  51645. - hardcode_direct_GCJ=yes
  51646. - hardcode_shlibpath_var_GCJ=no
  51647. - ;;
  51648. -
  51649. - hpux9*)
  51650. - if test "$GCC" = yes; then
  51651. - archive_cmds_GCJ='$rm $output_objdir/$soname${_S_}$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  51652. - else
  51653. - archive_cmds_GCJ='$rm $output_objdir/$soname${_S_}$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  51654. - fi
  51655. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  51656. - hardcode_libdir_separator_GCJ=:
  51657. - hardcode_direct_GCJ=yes
  51658. -
  51659. - # hardcode_minus_L: Not really in the search PATH,
  51660. - # but as the default location of the library.
  51661. - hardcode_minus_L_GCJ=yes
  51662. - export_dynamic_flag_spec_GCJ='${wl}-E'
  51663. - ;;
  51664. -
  51665. - hpux10* | hpux11*)
  51666. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  51667. - case "$host_cpu" in
  51668. - hppa*64*|ia64*)
  51669. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  51670. - ;;
  51671. - *)
  51672. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  51673. - ;;
  51674. - esac
  51675. - else
  51676. - case "$host_cpu" in
  51677. - hppa*64*|ia64*)
  51678. - archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  51679. - ;;
  51680. - *)
  51681. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  51682. - ;;
  51683. - esac
  51684. - fi
  51685. - if test "$with_gnu_ld" = no; then
  51686. - case "$host_cpu" in
  51687. - hppa*64*)
  51688. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  51689. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  51690. - hardcode_libdir_separator_GCJ=:
  51691. - hardcode_direct_GCJ=no
  51692. - hardcode_shlibpath_var_GCJ=no
  51693. - ;;
  51694. - ia64*)
  51695. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  51696. - hardcode_direct_GCJ=no
  51697. - hardcode_shlibpath_var_GCJ=no
  51698. -
  51699. - # hardcode_minus_L: Not really in the search PATH,
  51700. - # but as the default location of the library.
  51701. - hardcode_minus_L_GCJ=yes
  51702. - ;;
  51703. - *)
  51704. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  51705. - hardcode_libdir_separator_GCJ=:
  51706. - hardcode_direct_GCJ=yes
  51707. - export_dynamic_flag_spec_GCJ='${wl}-E'
  51708. -
  51709. - # hardcode_minus_L: Not really in the search PATH,
  51710. - # but as the default location of the library.
  51711. - hardcode_minus_L_GCJ=yes
  51712. - ;;
  51713. - esac
  51714. - fi
  51715. - ;;
  51716. -
  51717. - irix5* | irix6* | nonstopux*)
  51718. - if test "$GCC" = yes; then
  51719. - 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'
  51720. - else
  51721. - 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'
  51722. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  51723. - fi
  51724. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  51725. - hardcode_libdir_separator_GCJ=:
  51726. - link_all_deplibs_GCJ=yes
  51727. - ;;
  51728. -
  51729. - netbsd*)
  51730. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  51731. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  51732. - else
  51733. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  51734. - fi
  51735. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  51736. - hardcode_direct_GCJ=yes
  51737. - hardcode_shlibpath_var_GCJ=no
  51738. - ;;
  51739. -
  51740. - newsos6)
  51741. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  51742. - hardcode_direct_GCJ=yes
  51743. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  51744. - hardcode_libdir_separator_GCJ=:
  51745. - hardcode_shlibpath_var_GCJ=no
  51746. - ;;
  51747. -
  51748. - openbsd*)
  51749. - hardcode_direct_GCJ=yes
  51750. - hardcode_shlibpath_var_GCJ=no
  51751. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  51752. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  51753. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  51754. - export_dynamic_flag_spec_GCJ='${wl}-E'
  51755. - else
  51756. - case $host_os in
  51757. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  51758. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  51759. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  51760. - ;;
  51761. - *)
  51762. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  51763. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  51764. - ;;
  51765. - esac
  51766. - fi
  51767. - ;;
  51768. -
  51769. - os2*)
  51770. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  51771. - hardcode_minus_L_GCJ=yes
  51772. - allow_undefined_flag_GCJ=unsupported
  51773. - archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def${_S_}$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def${_S_}$echo DATA >> $output_objdir/$libname.def${_S_}$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def${_S_}$echo EXPORTS >> $output_objdir/$libname.def${_S_}emxexp $libobjs >> $output_objdir/$libname.def${_S_}$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  51774. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  51775. - ;;
  51776. -
  51777. - osf3*)
  51778. - if test "$GCC" = yes; then
  51779. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  51780. - 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'
  51781. - else
  51782. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  51783. - 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'
  51784. - fi
  51785. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  51786. - hardcode_libdir_separator_GCJ=:
  51787. - ;;
  51788. -
  51789. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  51790. - if test "$GCC" = yes; then
  51791. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  51792. - 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'
  51793. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  51794. - else
  51795. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  51796. - 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'
  51797. - 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${_S_}
  51798. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib${_S_}$rm $lib.exp'
  51799. -
  51800. - # Both c and cxx compiler support -rpath directly
  51801. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  51802. - fi
  51803. - hardcode_libdir_separator_GCJ=:
  51804. - ;;
  51805. -
  51806. - sco3.2v5*)
  51807. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  51808. - hardcode_shlibpath_var_GCJ=no
  51809. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  51810. - runpath_var=LD_RUN_PATH
  51811. - hardcode_runpath_var=yes
  51812. - ;;
  51813. -
  51814. - solaris*)
  51815. - no_undefined_flag_GCJ=' -z text'
  51816. - if test "$GCC" = yes; then
  51817. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  51818. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
  51819. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags${_S_}$rm $lib.exp'
  51820. - else
  51821. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  51822. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
  51823. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
  51824. - fi
  51825. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  51826. - hardcode_shlibpath_var_GCJ=no
  51827. - case $host_os in
  51828. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  51829. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  51830. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  51831. - esac
  51832. - link_all_deplibs_GCJ=yes
  51833. - ;;
  51834. -
  51835. - sunos4*)
  51836. - if test "x$host_vendor" = xsequent; then
  51837. - # Use $CC to link under sequent, because it throws in some extra .o
  51838. - # files that make .init and .fini sections work.
  51839. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  51840. - else
  51841. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  51842. - fi
  51843. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  51844. - hardcode_direct_GCJ=yes
  51845. - hardcode_minus_L_GCJ=yes
  51846. - hardcode_shlibpath_var_GCJ=no
  51847. - ;;
  51848. -
  51849. - sysv4)
  51850. - case $host_vendor in
  51851. - sni)
  51852. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  51853. - hardcode_direct_GCJ=yes # is this really true???
  51854. - ;;
  51855. - siemens)
  51856. - ## LD is ld it makes a PLAMLIB
  51857. - ## CC just makes a GrossModule.
  51858. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  51859. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  51860. - hardcode_direct_GCJ=no
  51861. - ;;
  51862. - motorola)
  51863. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  51864. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  51865. - ;;
  51866. - esac
  51867. - runpath_var='LD_RUN_PATH'
  51868. - hardcode_shlibpath_var_GCJ=no
  51869. - ;;
  51870. -
  51871. - sysv4.3*)
  51872. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  51873. - hardcode_shlibpath_var_GCJ=no
  51874. - export_dynamic_flag_spec_GCJ='-Bexport'
  51875. - ;;
  51876. -
  51877. - sysv4*MP*)
  51878. - if test -d /usr/nec; then
  51879. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  51880. - hardcode_shlibpath_var_GCJ=no
  51881. - runpath_var=LD_RUN_PATH
  51882. - hardcode_runpath_var=yes
  51883. - ld_shlibs_GCJ=yes
  51884. - fi
  51885. - ;;
  51886. -
  51887. - sysv4.2uw2*)
  51888. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  51889. - hardcode_direct_GCJ=yes
  51890. - hardcode_minus_L_GCJ=no
  51891. - hardcode_shlibpath_var_GCJ=no
  51892. - hardcode_runpath_var=yes
  51893. - runpath_var=LD_RUN_PATH
  51894. - ;;
  51895. -
  51896. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  51897. - no_undefined_flag_GCJ='${wl}-z ${wl}text'
  51898. - if test "$GCC" = yes; then
  51899. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  51900. - else
  51901. - archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  51902. - fi
  51903. - runpath_var='LD_RUN_PATH'
  51904. - hardcode_shlibpath_var_GCJ=no
  51905. - ;;
  51906. -
  51907. - sysv5*)
  51908. - no_undefined_flag_GCJ=' -z text'
  51909. - # $CC -shared without GNU ld will not create a library from C++
  51910. - # object files and a static libstdc++, better avoid it by now
  51911. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  51912. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
  51913. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
  51914. - hardcode_libdir_flag_spec_GCJ=
  51915. - hardcode_shlibpath_var_GCJ=no
  51916. - runpath_var='LD_RUN_PATH'
  51917. - ;;
  51918. -
  51919. - uts4*)
  51920. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  51921. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  51922. - hardcode_shlibpath_var_GCJ=no
  51923. - ;;
  51924. -
  51925. - *)
  51926. - ld_shlibs_GCJ=no
  51927. - ;;
  51928. - esac
  51929. - fi
  51930. -
  51931. -echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  51932. -echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  51933. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  51934. -
  51935. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  51936. -if test "$GCC" = yes; then
  51937. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  51938. -fi
  51939. -
  51940. -#
  51941. -# Do we need to explicitly link libc?
  51942. -#
  51943. -case "x$archive_cmds_need_lc_GCJ" in
  51944. -x|xyes)
  51945. - # Assume -lc should be added
  51946. - archive_cmds_need_lc_GCJ=yes
  51947. -
  51948. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  51949. - case $archive_cmds_GCJ in
  51950. - *"$_S_"*)
  51951. - # FIXME: we may have to deal with multi-command sequences.
  51952. - ;;
  51953. - '$CC '*)
  51954. - # Test whether the compiler implicitly links with -lc since on some
  51955. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  51956. - # to ld, don't add -lc before -lgcc.
  51957. - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  51958. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  51959. - $rm conftest*
  51960. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  51961. -
  51962. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  51963. - (eval $ac_compile) 2>&5
  51964. - ac_status=$?
  51965. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51966. - (exit $ac_status); } 2>conftest.err; then
  51967. - soname=conftest
  51968. - lib=conftest
  51969. - libobjs=conftest.$ac_objext
  51970. - deplibs=
  51971. - wl=$lt_prog_compiler_wl_GCJ
  51972. - compiler_flags=-v
  51973. - linker_flags=-v
  51974. - verstring=
  51975. - output_objdir=.
  51976. - libname=conftest
  51977. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  51978. - allow_undefined_flag_GCJ=
  51979. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  51980. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  51981. - ac_status=$?
  51982. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  51983. - (exit $ac_status); }
  51984. - then
  51985. - archive_cmds_need_lc_GCJ=no
  51986. - else
  51987. - archive_cmds_need_lc_GCJ=yes
  51988. - fi
  51989. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  51990. - else
  51991. - cat conftest.err 1>&5
  51992. - fi
  51993. - $rm conftest*
  51994. - echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  51995. -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  51996. - ;;
  51997. - esac
  51998. - fi
  51999. - ;;
  52000. -esac
  52001. -
  52002. -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  52003. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  52004. -hardcode_action_GCJ=
  52005. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  52006. - test -n "$runpath_var GCJ" || \
  52007. - test "X$hardcode_automatic_GCJ"="Xyes" ; then
  52008. -
  52009. - # We can hardcode non-existant directories.
  52010. - if test "$hardcode_direct_GCJ" != no &&
  52011. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  52012. - # have to relink, otherwise we might link with an installed library
  52013. - # when we should be linking with a yet-to-be-installed one
  52014. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  52015. - test "$hardcode_minus_L_GCJ" != no; then
  52016. - # Linking always hardcodes the temporary library directory.
  52017. - hardcode_action_GCJ=relink
  52018. - else
  52019. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  52020. - hardcode_action_GCJ=immediate
  52021. - fi
  52022. -else
  52023. - # We cannot hardcode anything, or else we can only hardcode existing
  52024. - # directories.
  52025. - hardcode_action_GCJ=unsupported
  52026. -fi
  52027. -echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  52028. -echo "${ECHO_T}$hardcode_action_GCJ" >&6
  52029. -
  52030. -if test "$hardcode_action_GCJ" = relink; then
  52031. - # Fast installation is not supported
  52032. - enable_fast_install=no
  52033. -elif test "$shlibpath_overrides_runpath" = yes ||
  52034. - test "$enable_shared" = no; then
  52035. - # Fast installation is not necessary
  52036. - enable_fast_install=needless
  52037. -fi
  52038. -
  52039. -striplib=
  52040. -old_striplib=
  52041. -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  52042. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  52043. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  52044. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  52045. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  52046. - echo "$as_me:$LINENO: result: yes" >&5
  52047. -echo "${ECHO_T}yes" >&6
  52048. -else
  52049. -# FIXME - insert some real tests, host_os isn't really good enough
  52050. - case $host_os in
  52051. - NOT-darwin*)
  52052. - if test -n "$STRIP" ; then
  52053. - striplib="$STRIP -x"
  52054. - echo "$as_me:$LINENO: result: yes" >&5
  52055. -echo "${ECHO_T}yes" >&6
  52056. - else
  52057. - echo "$as_me:$LINENO: result: no" >&5
  52058. -echo "${ECHO_T}no" >&6
  52059. -fi
  52060. - ;;
  52061. - *)
  52062. - echo "$as_me:$LINENO: result: no" >&5
  52063. -echo "${ECHO_T}no" >&6
  52064. - ;;
  52065. - esac
  52066. -fi
  52067. -
  52068. -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  52069. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  52070. -library_names_spec=
  52071. -libname_spec='lib$name'
  52072. -soname_spec=
  52073. -shrext=".so"
  52074. -postinstall_cmds=
  52075. -postuninstall_cmds=
  52076. -finish_cmds=
  52077. -finish_eval=
  52078. -shlibpath_var=
  52079. -shlibpath_overrides_runpath=unknown
  52080. -version_type=none
  52081. -dynamic_linker="$host_os ld.so"
  52082. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  52083. -if test "$GCC" = yes; then
  52084. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  52085. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  52086. - # if the path contains ";" then we assume it to be the separator
  52087. - # otherwise default to the standard path separator (i.e. ":") - it is
  52088. - # assumed that no part of a normal pathname contains ";" but that should
  52089. - # okay in the real world where ";" in dirpaths is itself problematic.
  52090. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  52091. - else
  52092. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  52093. - fi
  52094. -else
  52095. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  52096. -fi
  52097. -need_lib_prefix=unknown
  52098. -hardcode_into_libs=no
  52099. -
  52100. -# when you set need_version to no, make sure it does not cause -set_version
  52101. -# flags to be left without arguments
  52102. -need_version=unknown
  52103. -
  52104. -case $host_os in
  52105. -aix3*)
  52106. - version_type=linux
  52107. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  52108. - shlibpath_var=LIBPATH
  52109. -
  52110. - # AIX 3 has no versioning support, so we append a major version to the name.
  52111. - soname_spec='${libname}${release}${shared_ext}$major'
  52112. - ;;
  52113. -
  52114. -aix4* | aix5*)
  52115. - version_type=linux
  52116. - need_lib_prefix=no
  52117. - need_version=no
  52118. - hardcode_into_libs=yes
  52119. - if test "$host_cpu" = ia64; then
  52120. - # AIX 5 supports IA64
  52121. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  52122. - shlibpath_var=LD_LIBRARY_PATH
  52123. - else
  52124. - # With GCC up to 2.95.x, collect2 would create an import file
  52125. - # for dependence libraries. The import file would start with
  52126. - # the line `#! .'. This would cause the generated library to
  52127. - # depend on `.', always an invalid library. This was fixed in
  52128. - # development snapshots of GCC prior to 3.0.
  52129. - case $host_os in
  52130. - aix4 | aix4.[01] | aix4.[01].*)
  52131. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  52132. - echo ' yes '
  52133. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  52134. - :
  52135. - else
  52136. - can_build_shared=no
  52137. - fi
  52138. - ;;
  52139. - esac
  52140. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  52141. - # soname into executable. Probably we can add versioning support to
  52142. - # collect2, so additional links can be useful in future.
  52143. - if test "$aix_use_runtimelinking" = yes; then
  52144. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  52145. - # instead of lib<name>.a to let people know that these are not
  52146. - # typical AIX shared libraries.
  52147. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52148. - else
  52149. - # We preserve .a as extension for shared libraries through AIX4.2
  52150. - # and later when we are not doing run time linking.
  52151. - library_names_spec='${libname}${release}.a $libname.a'
  52152. - soname_spec='${libname}${release}${shared_ext}$major'
  52153. - fi
  52154. - shlibpath_var=LIBPATH
  52155. - fi
  52156. - ;;
  52157. -
  52158. -amigaos*)
  52159. - library_names_spec='$libname.ixlibrary $libname.a'
  52160. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  52161. - 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'
  52162. - ;;
  52163. -
  52164. -beos*)
  52165. - library_names_spec='${libname}${shared_ext}'
  52166. - dynamic_linker="$host_os ld.so"
  52167. - shlibpath_var=LIBRARY_PATH
  52168. - ;;
  52169. -
  52170. -bsdi4*)
  52171. - version_type=linux
  52172. - need_version=no
  52173. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52174. - soname_spec='${libname}${release}${shared_ext}$major'
  52175. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  52176. - shlibpath_var=LD_LIBRARY_PATH
  52177. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  52178. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  52179. - # the default ld.so.conf also contains /usr/contrib/lib and
  52180. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  52181. - # libtool to hard-code these into programs
  52182. - ;;
  52183. -
  52184. -cygwin* | mingw* | pw32*)
  52185. - version_type=windows
  52186. - shrext=".dll"
  52187. - need_version=no
  52188. - need_lib_prefix=no
  52189. -
  52190. - case $GCC,$host_os in
  52191. - yes,cygwin* | yes,mingw* | yes,pw32*)
  52192. - library_names_spec='$libname.dll.a'
  52193. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  52194. - postinstall_cmds='base_file=`basename \${file}`${_S_}
  52195. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
  52196. - dldir=$destdir/`dirname \$dlpath`${_S_}
  52197. - test -d \$dldir || mkdir -p \$dldir${_S_}
  52198. - $install_prog $dir/$dlname \$dldir/$dlname'
  52199. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
  52200. - dlpath=$dir/\$dldll${_S_}
  52201. - $rm \$dlpath'
  52202. - shlibpath_overrides_runpath=yes
  52203. -
  52204. - case $host_os in
  52205. - cygwin*)
  52206. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  52207. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  52208. - sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
  52209. - ;;
  52210. - mingw*)
  52211. - # MinGW DLLs use traditional 'lib' prefix
  52212. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  52213. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  52214. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  52215. - # It is most probably a Windows format PATH printed by
  52216. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  52217. - # path with ; separators, and with drive letters. We can handle the
  52218. - # drive letters (cygwin fileutils understands them), so leave them,
  52219. - # especially as we might pass files found there to a mingw objdump,
  52220. - # which wouldn't understand a cygwinified path. Ahh.
  52221. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  52222. - else
  52223. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  52224. - fi
  52225. - ;;
  52226. - pw32*)
  52227. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  52228. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  52229. - ;;
  52230. - esac
  52231. - ;;
  52232. -
  52233. - *)
  52234. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  52235. - ;;
  52236. - esac
  52237. - dynamic_linker='Win32 ld.exe'
  52238. - # FIXME: first we should search . and the directory the executable is in
  52239. - shlibpath_var=PATH
  52240. - ;;
  52241. -
  52242. -darwin* | rhapsody*)
  52243. - dynamic_linker="$host_os dyld"
  52244. - version_type=darwin
  52245. - need_lib_prefix=no
  52246. - need_version=no
  52247. - # FIXME: Relying on posixy $() will cause problems for
  52248. - # cross-compilation, but unfortunately the echo tests do not
  52249. - # yet detect zsh echo's removal of \ escapes.
  52250. - library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
  52251. - soname_spec='${libname}${release}${major}$shared_ext'
  52252. - shlibpath_overrides_runpath=yes
  52253. - shlibpath_var=DYLD_LIBRARY_PATH
  52254. - shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  52255. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  52256. - if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
  52257. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  52258. - fi
  52259. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  52260. - ;;
  52261. -
  52262. -dgux*)
  52263. - version_type=linux
  52264. - need_lib_prefix=no
  52265. - need_version=no
  52266. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  52267. - soname_spec='${libname}${release}${shared_ext}$major'
  52268. - shlibpath_var=LD_LIBRARY_PATH
  52269. - ;;
  52270. -
  52271. -freebsd1*)
  52272. - dynamic_linker=no
  52273. - ;;
  52274. -
  52275. -freebsd*)
  52276. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  52277. - version_type=freebsd-$objformat
  52278. - case $version_type in
  52279. - freebsd-elf*)
  52280. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  52281. - need_version=no
  52282. - need_lib_prefix=no
  52283. - ;;
  52284. - freebsd-*)
  52285. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  52286. - need_version=yes
  52287. - ;;
  52288. - esac
  52289. - shlibpath_var=LD_LIBRARY_PATH
  52290. - case $host_os in
  52291. - freebsd2*)
  52292. - shlibpath_overrides_runpath=yes
  52293. - ;;
  52294. - freebsd3.01* | freebsdelf3.01*)
  52295. - shlibpath_overrides_runpath=yes
  52296. - hardcode_into_libs=yes
  52297. - ;;
  52298. - *) # from 3.2 on
  52299. - shlibpath_overrides_runpath=no
  52300. - hardcode_into_libs=yes
  52301. - ;;
  52302. - esac
  52303. - ;;
  52304. -
  52305. -gnu*)
  52306. - version_type=linux
  52307. - need_lib_prefix=no
  52308. - need_version=no
  52309. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  52310. - soname_spec='${libname}${release}${shared_ext}$major'
  52311. - shlibpath_var=LD_LIBRARY_PATH
  52312. - hardcode_into_libs=yes
  52313. - ;;
  52314. -
  52315. -hpux9* | hpux10* | hpux11*)
  52316. - # Give a soname corresponding to the major version so that dld.sl refuses to
  52317. - # link against other versions.
  52318. - version_type=sunos
  52319. - need_lib_prefix=no
  52320. - need_version=no
  52321. - case "$host_cpu" in
  52322. - ia64*)
  52323. - shrext='.so'
  52324. - hardcode_into_libs=yes
  52325. - dynamic_linker="$host_os dld.so"
  52326. - shlibpath_var=LD_LIBRARY_PATH
  52327. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  52328. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52329. - soname_spec='${libname}${release}${shared_ext}$major'
  52330. - if test "X$HPUX_IA64_MODE" = X32; then
  52331. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  52332. - else
  52333. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  52334. - fi
  52335. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  52336. - ;;
  52337. - hppa*64*)
  52338. - shrext='.sl'
  52339. - hardcode_into_libs=yes
  52340. - dynamic_linker="$host_os dld.sl"
  52341. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  52342. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  52343. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52344. - soname_spec='${libname}${release}${shared_ext}$major'
  52345. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  52346. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  52347. - ;;
  52348. - *)
  52349. - shrext='.sl'
  52350. - dynamic_linker="$host_os dld.sl"
  52351. - shlibpath_var=SHLIB_PATH
  52352. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  52353. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52354. - soname_spec='${libname}${release}${shared_ext}$major'
  52355. - ;;
  52356. - esac
  52357. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  52358. - postinstall_cmds='chmod 555 $lib'
  52359. - ;;
  52360. -
  52361. -irix5* | irix6* | nonstopux*)
  52362. - case $host_os in
  52363. - nonstopux*) version_type=nonstopux ;;
  52364. - *)
  52365. - if test "$lt_cv_prog_gnu_ld" = yes; then
  52366. - version_type=linux
  52367. - else
  52368. - version_type=irix
  52369. - fi ;;
  52370. - esac
  52371. - need_lib_prefix=no
  52372. - need_version=no
  52373. - soname_spec='${libname}${release}${shared_ext}$major'
  52374. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  52375. - case $host_os in
  52376. - irix5* | nonstopux*)
  52377. - libsuff= shlibsuff=
  52378. - ;;
  52379. - *)
  52380. - case $LD in # libtool.m4 will add one of these switches to LD
  52381. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  52382. - libsuff= shlibsuff= libmagic=32-bit;;
  52383. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  52384. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  52385. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  52386. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  52387. - *) libsuff= shlibsuff= libmagic=never-match;;
  52388. - esac
  52389. - ;;
  52390. - esac
  52391. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  52392. - shlibpath_overrides_runpath=no
  52393. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  52394. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  52395. - hardcode_into_libs=yes
  52396. - ;;
  52397. -
  52398. -# No shared lib support for Linux oldld, aout, or coff.
  52399. -linux*oldld* | linux*aout* | linux*coff*)
  52400. - dynamic_linker=no
  52401. - ;;
  52402. -
  52403. -# This must be Linux ELF.
  52404. -linux*)
  52405. - version_type=linux
  52406. - need_lib_prefix=no
  52407. - need_version=no
  52408. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52409. - soname_spec='${libname}${release}${shared_ext}$major'
  52410. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  52411. - shlibpath_var=LD_LIBRARY_PATH
  52412. - shlibpath_overrides_runpath=no
  52413. - # This implies no fast_install, which is unacceptable.
  52414. - # Some rework will be needed to allow for fast_install
  52415. - # before this can be enabled.
  52416. - hardcode_into_libs=yes
  52417. -
  52418. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  52419. - # powerpc, because MkLinux only supported shared libraries with the
  52420. - # GNU dynamic linker. Since this was broken with cross compilers,
  52421. - # most powerpc-linux boxes support dynamic linking these days and
  52422. - # people can always --disable-shared, the test was removed, and we
  52423. - # assume the GNU/Linux dynamic linker is in use.
  52424. - dynamic_linker='GNU/Linux ld.so'
  52425. - ;;
  52426. -
  52427. -netbsd*)
  52428. - version_type=sunos
  52429. - need_lib_prefix=no
  52430. - need_version=no
  52431. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  52432. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  52433. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  52434. - dynamic_linker='NetBSD (a.out) ld.so'
  52435. - else
  52436. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
  52437. - soname_spec='${libname}${release}${shared_ext}$major'
  52438. - dynamic_linker='NetBSD ld.elf_so'
  52439. - fi
  52440. - shlibpath_var=LD_LIBRARY_PATH
  52441. - shlibpath_overrides_runpath=yes
  52442. - hardcode_into_libs=yes
  52443. - ;;
  52444. -
  52445. -newsos6)
  52446. - version_type=linux
  52447. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52448. - shlibpath_var=LD_LIBRARY_PATH
  52449. - shlibpath_overrides_runpath=yes
  52450. - ;;
  52451. -
  52452. -nto-qnx)
  52453. - version_type=linux
  52454. - need_lib_prefix=no
  52455. - need_version=no
  52456. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52457. - soname_spec='${libname}${release}${shared_ext}$major'
  52458. - shlibpath_var=LD_LIBRARY_PATH
  52459. - shlibpath_overrides_runpath=yes
  52460. - ;;
  52461. -
  52462. -openbsd*)
  52463. - version_type=sunos
  52464. - need_lib_prefix=no
  52465. - need_version=no
  52466. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  52467. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  52468. - shlibpath_var=LD_LIBRARY_PATH
  52469. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  52470. - case $host_os in
  52471. - openbsd2.[89] | openbsd2.[89].*)
  52472. - shlibpath_overrides_runpath=no
  52473. - ;;
  52474. - *)
  52475. - shlibpath_overrides_runpath=yes
  52476. - ;;
  52477. - esac
  52478. - else
  52479. - shlibpath_overrides_runpath=yes
  52480. - fi
  52481. - ;;
  52482. -
  52483. -os2*)
  52484. - libname_spec='$name'
  52485. - shrext=".dll"
  52486. - need_lib_prefix=no
  52487. - library_names_spec='$libname${shared_ext} $libname.a'
  52488. - dynamic_linker='OS/2 ld.exe'
  52489. - shlibpath_var=LIBPATH
  52490. - ;;
  52491. -
  52492. -osf3* | osf4* | osf5*)
  52493. - version_type=osf
  52494. - need_lib_prefix=no
  52495. - need_version=no
  52496. - soname_spec='${libname}${release}${shared_ext}$major'
  52497. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52498. - shlibpath_var=LD_LIBRARY_PATH
  52499. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  52500. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  52501. - ;;
  52502. -
  52503. -sco3.2v5*)
  52504. - version_type=osf
  52505. - soname_spec='${libname}${release}${shared_ext}$major'
  52506. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52507. - shlibpath_var=LD_LIBRARY_PATH
  52508. - ;;
  52509. -
  52510. -solaris*)
  52511. - version_type=linux
  52512. - need_lib_prefix=no
  52513. - need_version=no
  52514. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52515. - soname_spec='${libname}${release}${shared_ext}$major'
  52516. - shlibpath_var=LD_LIBRARY_PATH
  52517. - shlibpath_overrides_runpath=yes
  52518. - hardcode_into_libs=yes
  52519. - # ldd complains unless libraries are executable
  52520. - postinstall_cmds='chmod +x $lib'
  52521. - ;;
  52522. -
  52523. -sunos4*)
  52524. - version_type=sunos
  52525. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  52526. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  52527. - shlibpath_var=LD_LIBRARY_PATH
  52528. - shlibpath_overrides_runpath=yes
  52529. - if test "$with_gnu_ld" = yes; then
  52530. - need_lib_prefix=no
  52531. - fi
  52532. - need_version=yes
  52533. - ;;
  52534. -
  52535. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  52536. - version_type=linux
  52537. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52538. - soname_spec='${libname}${release}${shared_ext}$major'
  52539. - shlibpath_var=LD_LIBRARY_PATH
  52540. - case $host_vendor in
  52541. - sni)
  52542. - shlibpath_overrides_runpath=no
  52543. - need_lib_prefix=no
  52544. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  52545. - runpath_var=LD_RUN_PATH
  52546. - ;;
  52547. - siemens)
  52548. - need_lib_prefix=no
  52549. - ;;
  52550. - motorola)
  52551. - need_lib_prefix=no
  52552. - need_version=no
  52553. - shlibpath_overrides_runpath=no
  52554. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  52555. - ;;
  52556. - esac
  52557. - ;;
  52558. -
  52559. -sysv4*MP*)
  52560. - if test -d /usr/nec ;then
  52561. - version_type=linux
  52562. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  52563. - soname_spec='$libname${shared_ext}.$major'
  52564. - shlibpath_var=LD_LIBRARY_PATH
  52565. - fi
  52566. - ;;
  52567. -
  52568. -uts4*)
  52569. - version_type=linux
  52570. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52571. - soname_spec='${libname}${release}${shared_ext}$major'
  52572. - shlibpath_var=LD_LIBRARY_PATH
  52573. - ;;
  52574. -
  52575. -*)
  52576. - dynamic_linker=no
  52577. - ;;
  52578. -esac
  52579. -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  52580. -echo "${ECHO_T}$dynamic_linker" >&6
  52581. -test "$dynamic_linker" = no && can_build_shared=no
  52582. -
  52583. -if test "x$enable_dlopen" != xyes; then
  52584. - enable_dlopen=unknown
  52585. - enable_dlopen_self=unknown
  52586. - enable_dlopen_self_static=unknown
  52587. -else
  52588. - lt_cv_dlopen=no
  52589. - lt_cv_dlopen_libs=
  52590. -
  52591. - case $host_os in
  52592. - beos*)
  52593. - lt_cv_dlopen="load_add_on"
  52594. - lt_cv_dlopen_libs=
  52595. - lt_cv_dlopen_self=yes
  52596. - ;;
  52597. -
  52598. - mingw* | pw32*)
  52599. - lt_cv_dlopen="LoadLibrary"
  52600. - lt_cv_dlopen_libs=
  52601. - ;;
  52602. -
  52603. - cygwin*)
  52604. - lt_cv_dlopen="dlopen"
  52605. - lt_cv_dlopen_libs=
  52606. - ;;
  52607. -
  52608. - darwin*)
  52609. - # if libdl is installed we need to link against it
  52610. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  52611. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  52612. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  52613. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52614. -else
  52615. - ac_check_lib_save_LIBS=$LIBS
  52616. -LIBS="-ldl $LIBS"
  52617. -cat >conftest.$ac_ext <<_ACEOF
  52618. -/* confdefs.h. */
  52619. -_ACEOF
  52620. -cat confdefs.h >>conftest.$ac_ext
  52621. -cat >>conftest.$ac_ext <<_ACEOF
  52622. -/* end confdefs.h. */
  52623. -
  52624. -/* Override any gcc2 internal prototype to avoid an error. */
  52625. -#ifdef __cplusplus
  52626. -extern "C"
  52627. -#endif
  52628. -/* We use char because int might match the return type of a gcc2
  52629. - builtin and then its argument prototype would still apply. */
  52630. -char dlopen ();
  52631. -int
  52632. -main ()
  52633. -{
  52634. -dlopen ();
  52635. - ;
  52636. - return 0;
  52637. -}
  52638. -_ACEOF
  52639. -rm -f conftest.$ac_objext conftest$ac_exeext
  52640. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  52641. - (eval $ac_link) 2>conftest.er1
  52642. - ac_status=$?
  52643. - grep -v '^ *+' conftest.er1 >conftest.err
  52644. - rm -f conftest.er1
  52645. - cat conftest.err >&5
  52646. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52647. - (exit $ac_status); } &&
  52648. - { ac_try='test -z "$ac_c_werror_flag"
  52649. - || test ! -s conftest.err'
  52650. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  52651. - (eval $ac_try) 2>&5
  52652. - ac_status=$?
  52653. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52654. - (exit $ac_status); }; } &&
  52655. - { ac_try='test -s conftest$ac_exeext'
  52656. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  52657. - (eval $ac_try) 2>&5
  52658. - ac_status=$?
  52659. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52660. - (exit $ac_status); }; }; then
  52661. - ac_cv_lib_dl_dlopen=yes
  52662. -else
  52663. - echo "$as_me: failed program was:" >&5
  52664. -sed 's/^/| /' conftest.$ac_ext >&5
  52665. -
  52666. -ac_cv_lib_dl_dlopen=no
  52667. -fi
  52668. -rm -f conftest.err conftest.$ac_objext \
  52669. - conftest$ac_exeext conftest.$ac_ext
  52670. -LIBS=$ac_check_lib_save_LIBS
  52671. -fi
  52672. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  52673. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  52674. -if test $ac_cv_lib_dl_dlopen = yes; then
  52675. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  52676. -else
  52677. -
  52678. - lt_cv_dlopen="dyld"
  52679. - lt_cv_dlopen_libs=
  52680. - lt_cv_dlopen_self=yes
  52681. -
  52682. -fi
  52683. -
  52684. - ;;
  52685. -
  52686. - *)
  52687. - echo "$as_me:$LINENO: checking for shl_load" >&5
  52688. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  52689. -if test "${ac_cv_func_shl_load+set}" = set; then
  52690. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52691. -else
  52692. - cat >conftest.$ac_ext <<_ACEOF
  52693. -/* confdefs.h. */
  52694. -_ACEOF
  52695. -cat confdefs.h >>conftest.$ac_ext
  52696. -cat >>conftest.$ac_ext <<_ACEOF
  52697. -/* end confdefs.h. */
  52698. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  52699. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  52700. -#define shl_load innocuous_shl_load
  52701. -
  52702. -/* System header to define __stub macros and hopefully few prototypes,
  52703. - which can conflict with char shl_load (); below.
  52704. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  52705. - <limits.h> exists even on freestanding compilers. */
  52706. -
  52707. -#ifdef __STDC__
  52708. -# include <limits.h>
  52709. -#else
  52710. -# include <assert.h>
  52711. -#endif
  52712. -
  52713. -#undef shl_load
  52714. -
  52715. -/* Override any gcc2 internal prototype to avoid an error. */
  52716. -#ifdef __cplusplus
  52717. -extern "C"
  52718. -{
  52719. -#endif
  52720. -/* We use char because int might match the return type of a gcc2
  52721. - builtin and then its argument prototype would still apply. */
  52722. -char shl_load ();
  52723. -/* The GNU C library defines this for functions which it implements
  52724. - to always fail with ENOSYS. Some functions are actually named
  52725. - something starting with __ and the normal name is an alias. */
  52726. -#if defined (__stub_shl_load) || defined (__stub___shl_load)
  52727. -choke me
  52728. -#else
  52729. -char (*f) () = shl_load;
  52730. -#endif
  52731. -#ifdef __cplusplus
  52732. -}
  52733. -#endif
  52734. -
  52735. -int
  52736. -main ()
  52737. -{
  52738. -return f != shl_load;
  52739. - ;
  52740. - return 0;
  52741. -}
  52742. -_ACEOF
  52743. -rm -f conftest.$ac_objext conftest$ac_exeext
  52744. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  52745. - (eval $ac_link) 2>conftest.er1
  52746. - ac_status=$?
  52747. - grep -v '^ *+' conftest.er1 >conftest.err
  52748. - rm -f conftest.er1
  52749. - cat conftest.err >&5
  52750. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52751. - (exit $ac_status); } &&
  52752. - { ac_try='test -z "$ac_c_werror_flag"
  52753. - || test ! -s conftest.err'
  52754. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  52755. - (eval $ac_try) 2>&5
  52756. - ac_status=$?
  52757. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52758. - (exit $ac_status); }; } &&
  52759. - { ac_try='test -s conftest$ac_exeext'
  52760. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  52761. - (eval $ac_try) 2>&5
  52762. - ac_status=$?
  52763. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52764. - (exit $ac_status); }; }; then
  52765. - ac_cv_func_shl_load=yes
  52766. -else
  52767. - echo "$as_me: failed program was:" >&5
  52768. -sed 's/^/| /' conftest.$ac_ext >&5
  52769. -
  52770. -ac_cv_func_shl_load=no
  52771. -fi
  52772. -rm -f conftest.err conftest.$ac_objext \
  52773. - conftest$ac_exeext conftest.$ac_ext
  52774. -fi
  52775. -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  52776. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  52777. -if test $ac_cv_func_shl_load = yes; then
  52778. - lt_cv_dlopen="shl_load"
  52779. -else
  52780. - echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  52781. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  52782. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  52783. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52784. -else
  52785. - ac_check_lib_save_LIBS=$LIBS
  52786. -LIBS="-ldld $LIBS"
  52787. -cat >conftest.$ac_ext <<_ACEOF
  52788. -/* confdefs.h. */
  52789. -_ACEOF
  52790. -cat confdefs.h >>conftest.$ac_ext
  52791. -cat >>conftest.$ac_ext <<_ACEOF
  52792. -/* end confdefs.h. */
  52793. -
  52794. -/* Override any gcc2 internal prototype to avoid an error. */
  52795. -#ifdef __cplusplus
  52796. -extern "C"
  52797. -#endif
  52798. -/* We use char because int might match the return type of a gcc2
  52799. - builtin and then its argument prototype would still apply. */
  52800. -char shl_load ();
  52801. -int
  52802. -main ()
  52803. -{
  52804. -shl_load ();
  52805. - ;
  52806. - return 0;
  52807. -}
  52808. -_ACEOF
  52809. -rm -f conftest.$ac_objext conftest$ac_exeext
  52810. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  52811. - (eval $ac_link) 2>conftest.er1
  52812. - ac_status=$?
  52813. - grep -v '^ *+' conftest.er1 >conftest.err
  52814. - rm -f conftest.er1
  52815. - cat conftest.err >&5
  52816. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52817. - (exit $ac_status); } &&
  52818. - { ac_try='test -z "$ac_c_werror_flag"
  52819. - || test ! -s conftest.err'
  52820. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  52821. - (eval $ac_try) 2>&5
  52822. - ac_status=$?
  52823. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52824. - (exit $ac_status); }; } &&
  52825. - { ac_try='test -s conftest$ac_exeext'
  52826. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  52827. - (eval $ac_try) 2>&5
  52828. - ac_status=$?
  52829. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52830. - (exit $ac_status); }; }; then
  52831. - ac_cv_lib_dld_shl_load=yes
  52832. -else
  52833. - echo "$as_me: failed program was:" >&5
  52834. -sed 's/^/| /' conftest.$ac_ext >&5
  52835. -
  52836. -ac_cv_lib_dld_shl_load=no
  52837. -fi
  52838. -rm -f conftest.err conftest.$ac_objext \
  52839. - conftest$ac_exeext conftest.$ac_ext
  52840. -LIBS=$ac_check_lib_save_LIBS
  52841. -fi
  52842. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  52843. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  52844. -if test $ac_cv_lib_dld_shl_load = yes; then
  52845. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  52846. -else
  52847. - echo "$as_me:$LINENO: checking for dlopen" >&5
  52848. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  52849. -if test "${ac_cv_func_dlopen+set}" = set; then
  52850. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52851. -else
  52852. - cat >conftest.$ac_ext <<_ACEOF
  52853. -/* confdefs.h. */
  52854. -_ACEOF
  52855. -cat confdefs.h >>conftest.$ac_ext
  52856. -cat >>conftest.$ac_ext <<_ACEOF
  52857. -/* end confdefs.h. */
  52858. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  52859. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  52860. -#define dlopen innocuous_dlopen
  52861. -
  52862. -/* System header to define __stub macros and hopefully few prototypes,
  52863. - which can conflict with char dlopen (); below.
  52864. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  52865. - <limits.h> exists even on freestanding compilers. */
  52866. -
  52867. -#ifdef __STDC__
  52868. -# include <limits.h>
  52869. -#else
  52870. -# include <assert.h>
  52871. -#endif
  52872. -
  52873. -#undef dlopen
  52874. -
  52875. -/* Override any gcc2 internal prototype to avoid an error. */
  52876. -#ifdef __cplusplus
  52877. -extern "C"
  52878. -{
  52879. -#endif
  52880. -/* We use char because int might match the return type of a gcc2
  52881. - builtin and then its argument prototype would still apply. */
  52882. -char dlopen ();
  52883. -/* The GNU C library defines this for functions which it implements
  52884. - to always fail with ENOSYS. Some functions are actually named
  52885. - something starting with __ and the normal name is an alias. */
  52886. -#if defined (__stub_dlopen) || defined (__stub___dlopen)
  52887. -choke me
  52888. -#else
  52889. -char (*f) () = dlopen;
  52890. -#endif
  52891. -#ifdef __cplusplus
  52892. -}
  52893. -#endif
  52894. -
  52895. -int
  52896. -main ()
  52897. -{
  52898. -return f != dlopen;
  52899. - ;
  52900. - return 0;
  52901. -}
  52902. -_ACEOF
  52903. -rm -f conftest.$ac_objext conftest$ac_exeext
  52904. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  52905. - (eval $ac_link) 2>conftest.er1
  52906. - ac_status=$?
  52907. - grep -v '^ *+' conftest.er1 >conftest.err
  52908. - rm -f conftest.er1
  52909. - cat conftest.err >&5
  52910. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52911. - (exit $ac_status); } &&
  52912. - { ac_try='test -z "$ac_c_werror_flag"
  52913. - || test ! -s conftest.err'
  52914. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  52915. - (eval $ac_try) 2>&5
  52916. - ac_status=$?
  52917. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52918. - (exit $ac_status); }; } &&
  52919. - { ac_try='test -s conftest$ac_exeext'
  52920. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  52921. - (eval $ac_try) 2>&5
  52922. - ac_status=$?
  52923. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52924. - (exit $ac_status); }; }; then
  52925. - ac_cv_func_dlopen=yes
  52926. -else
  52927. - echo "$as_me: failed program was:" >&5
  52928. -sed 's/^/| /' conftest.$ac_ext >&5
  52929. -
  52930. -ac_cv_func_dlopen=no
  52931. -fi
  52932. -rm -f conftest.err conftest.$ac_objext \
  52933. - conftest$ac_exeext conftest.$ac_ext
  52934. -fi
  52935. -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  52936. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  52937. -if test $ac_cv_func_dlopen = yes; then
  52938. - lt_cv_dlopen="dlopen"
  52939. -else
  52940. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  52941. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  52942. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  52943. - echo $ECHO_N "(cached) $ECHO_C" >&6
  52944. -else
  52945. - ac_check_lib_save_LIBS=$LIBS
  52946. -LIBS="-ldl $LIBS"
  52947. -cat >conftest.$ac_ext <<_ACEOF
  52948. -/* confdefs.h. */
  52949. -_ACEOF
  52950. -cat confdefs.h >>conftest.$ac_ext
  52951. -cat >>conftest.$ac_ext <<_ACEOF
  52952. -/* end confdefs.h. */
  52953. -
  52954. -/* Override any gcc2 internal prototype to avoid an error. */
  52955. -#ifdef __cplusplus
  52956. -extern "C"
  52957. -#endif
  52958. -/* We use char because int might match the return type of a gcc2
  52959. - builtin and then its argument prototype would still apply. */
  52960. -char dlopen ();
  52961. -int
  52962. -main ()
  52963. -{
  52964. -dlopen ();
  52965. - ;
  52966. - return 0;
  52967. -}
  52968. -_ACEOF
  52969. -rm -f conftest.$ac_objext conftest$ac_exeext
  52970. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  52971. - (eval $ac_link) 2>conftest.er1
  52972. - ac_status=$?
  52973. - grep -v '^ *+' conftest.er1 >conftest.err
  52974. - rm -f conftest.er1
  52975. - cat conftest.err >&5
  52976. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52977. - (exit $ac_status); } &&
  52978. - { ac_try='test -z "$ac_c_werror_flag"
  52979. - || test ! -s conftest.err'
  52980. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  52981. - (eval $ac_try) 2>&5
  52982. - ac_status=$?
  52983. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52984. - (exit $ac_status); }; } &&
  52985. - { ac_try='test -s conftest$ac_exeext'
  52986. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  52987. - (eval $ac_try) 2>&5
  52988. - ac_status=$?
  52989. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52990. - (exit $ac_status); }; }; then
  52991. - ac_cv_lib_dl_dlopen=yes
  52992. -else
  52993. - echo "$as_me: failed program was:" >&5
  52994. -sed 's/^/| /' conftest.$ac_ext >&5
  52995. -
  52996. -ac_cv_lib_dl_dlopen=no
  52997. -fi
  52998. -rm -f conftest.err conftest.$ac_objext \
  52999. - conftest$ac_exeext conftest.$ac_ext
  53000. -LIBS=$ac_check_lib_save_LIBS
  53001. -fi
  53002. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  53003. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  53004. -if test $ac_cv_lib_dl_dlopen = yes; then
  53005. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  53006. -else
  53007. - echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  53008. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  53009. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  53010. - echo $ECHO_N "(cached) $ECHO_C" >&6
  53011. -else
  53012. - ac_check_lib_save_LIBS=$LIBS
  53013. -LIBS="-lsvld $LIBS"
  53014. -cat >conftest.$ac_ext <<_ACEOF
  53015. -/* confdefs.h. */
  53016. -_ACEOF
  53017. -cat confdefs.h >>conftest.$ac_ext
  53018. -cat >>conftest.$ac_ext <<_ACEOF
  53019. -/* end confdefs.h. */
  53020. -
  53021. -/* Override any gcc2 internal prototype to avoid an error. */
  53022. -#ifdef __cplusplus
  53023. -extern "C"
  53024. -#endif
  53025. -/* We use char because int might match the return type of a gcc2
  53026. - builtin and then its argument prototype would still apply. */
  53027. -char dlopen ();
  53028. -int
  53029. -main ()
  53030. -{
  53031. -dlopen ();
  53032. - ;
  53033. - return 0;
  53034. -}
  53035. -_ACEOF
  53036. -rm -f conftest.$ac_objext conftest$ac_exeext
  53037. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  53038. - (eval $ac_link) 2>conftest.er1
  53039. - ac_status=$?
  53040. - grep -v '^ *+' conftest.er1 >conftest.err
  53041. - rm -f conftest.er1
  53042. - cat conftest.err >&5
  53043. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  53044. - (exit $ac_status); } &&
  53045. - { ac_try='test -z "$ac_c_werror_flag"
  53046. - || test ! -s conftest.err'
  53047. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  53048. - (eval $ac_try) 2>&5
  53049. - ac_status=$?
  53050. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  53051. - (exit $ac_status); }; } &&
  53052. - { ac_try='test -s conftest$ac_exeext'
  53053. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  53054. - (eval $ac_try) 2>&5
  53055. - ac_status=$?
  53056. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  53057. - (exit $ac_status); }; }; then
  53058. - ac_cv_lib_svld_dlopen=yes
  53059. -else
  53060. - echo "$as_me: failed program was:" >&5
  53061. -sed 's/^/| /' conftest.$ac_ext >&5
  53062. -
  53063. -ac_cv_lib_svld_dlopen=no
  53064. -fi
  53065. -rm -f conftest.err conftest.$ac_objext \
  53066. - conftest$ac_exeext conftest.$ac_ext
  53067. -LIBS=$ac_check_lib_save_LIBS
  53068. -fi
  53069. -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  53070. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  53071. -if test $ac_cv_lib_svld_dlopen = yes; then
  53072. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  53073. -else
  53074. - echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  53075. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  53076. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  53077. - echo $ECHO_N "(cached) $ECHO_C" >&6
  53078. -else
  53079. - ac_check_lib_save_LIBS=$LIBS
  53080. -LIBS="-ldld $LIBS"
  53081. -cat >conftest.$ac_ext <<_ACEOF
  53082. -/* confdefs.h. */
  53083. -_ACEOF
  53084. -cat confdefs.h >>conftest.$ac_ext
  53085. -cat >>conftest.$ac_ext <<_ACEOF
  53086. -/* end confdefs.h. */
  53087. -
  53088. -/* Override any gcc2 internal prototype to avoid an error. */
  53089. -#ifdef __cplusplus
  53090. -extern "C"
  53091. -#endif
  53092. -/* We use char because int might match the return type of a gcc2
  53093. - builtin and then its argument prototype would still apply. */
  53094. -char dld_link ();
  53095. -int
  53096. -main ()
  53097. -{
  53098. -dld_link ();
  53099. - ;
  53100. - return 0;
  53101. -}
  53102. -_ACEOF
  53103. -rm -f conftest.$ac_objext conftest$ac_exeext
  53104. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  53105. - (eval $ac_link) 2>conftest.er1
  53106. - ac_status=$?
  53107. - grep -v '^ *+' conftest.er1 >conftest.err
  53108. - rm -f conftest.er1
  53109. - cat conftest.err >&5
  53110. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  53111. - (exit $ac_status); } &&
  53112. - { ac_try='test -z "$ac_c_werror_flag"
  53113. - || test ! -s conftest.err'
  53114. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  53115. - (eval $ac_try) 2>&5
  53116. - ac_status=$?
  53117. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  53118. - (exit $ac_status); }; } &&
  53119. - { ac_try='test -s conftest$ac_exeext'
  53120. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  53121. - (eval $ac_try) 2>&5
  53122. - ac_status=$?
  53123. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  53124. - (exit $ac_status); }; }; then
  53125. - ac_cv_lib_dld_dld_link=yes
  53126. -else
  53127. - echo "$as_me: failed program was:" >&5
  53128. -sed 's/^/| /' conftest.$ac_ext >&5
  53129. -
  53130. -ac_cv_lib_dld_dld_link=no
  53131. -fi
  53132. -rm -f conftest.err conftest.$ac_objext \
  53133. - conftest$ac_exeext conftest.$ac_ext
  53134. -LIBS=$ac_check_lib_save_LIBS
  53135. -fi
  53136. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  53137. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  53138. -if test $ac_cv_lib_dld_dld_link = yes; then
  53139. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  53140. -fi
  53141. -
  53142. -
  53143. -fi
  53144. -
  53145. -
  53146. -fi
  53147. -
  53148. -
  53149. -fi
  53150. -
  53151. -
  53152. -fi
  53153. -
  53154. -
  53155. -fi
  53156. -
  53157. - ;;
  53158. - esac
  53159. -
  53160. - if test "x$lt_cv_dlopen" != xno; then
  53161. - enable_dlopen=yes
  53162. + shlibpath_overrides_runpath=yes
  53163. + hardcode_into_libs=yes
  53164. + if test "$with_gnu_ld" = yes; then
  53165. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  53166. else
  53167. - enable_dlopen=no
  53168. - fi
  53169. -
  53170. - case $lt_cv_dlopen in
  53171. - dlopen)
  53172. - save_CPPFLAGS="$CPPFLAGS"
  53173. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  53174. -
  53175. - save_LDFLAGS="$LDFLAGS"
  53176. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  53177. -
  53178. - save_LIBS="$LIBS"
  53179. - LIBS="$lt_cv_dlopen_libs $LIBS"
  53180. -
  53181. - echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  53182. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  53183. -if test "${lt_cv_dlopen_self+set}" = set; then
  53184. - echo $ECHO_N "(cached) $ECHO_C" >&6
  53185. -else
  53186. - if test "$cross_compiling" = yes; then :
  53187. - lt_cv_dlopen_self=cross
  53188. -else
  53189. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  53190. - lt_status=$lt_dlunknown
  53191. - cat > conftest.$ac_ext <<EOF
  53192. -#line 17775 "configure"
  53193. -#include "confdefs.h"
  53194. -
  53195. -#if HAVE_DLFCN_H
  53196. -#include <dlfcn.h>
  53197. -#endif
  53198. -
  53199. -#include <stdio.h>
  53200. -
  53201. -#ifdef RTLD_GLOBAL
  53202. -# define LT_DLGLOBAL RTLD_GLOBAL
  53203. -#else
  53204. -# ifdef DL_GLOBAL
  53205. -# define LT_DLGLOBAL DL_GLOBAL
  53206. -# else
  53207. -# define LT_DLGLOBAL 0
  53208. -# endif
  53209. -#endif
  53210. -
  53211. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  53212. - find out it does not work in some platform. */
  53213. -#ifndef LT_DLLAZY_OR_NOW
  53214. -# ifdef RTLD_LAZY
  53215. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  53216. -# else
  53217. -# ifdef DL_LAZY
  53218. -# define LT_DLLAZY_OR_NOW DL_LAZY
  53219. -# else
  53220. -# ifdef RTLD_NOW
  53221. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  53222. -# else
  53223. -# ifdef DL_NOW
  53224. -# define LT_DLLAZY_OR_NOW DL_NOW
  53225. -# else
  53226. -# define LT_DLLAZY_OR_NOW 0
  53227. -# endif
  53228. -# endif
  53229. -# endif
  53230. -# endif
  53231. -#endif
  53232. -
  53233. -#ifdef __cplusplus
  53234. -extern "C" void exit (int);
  53235. -#endif
  53236. -
  53237. -void fnord() { int i=42;}
  53238. -int main ()
  53239. -{
  53240. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  53241. - int status = $lt_dlunknown;
  53242. -
  53243. - if (self)
  53244. - {
  53245. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  53246. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  53247. - /* dlclose (self); */
  53248. - }
  53249. -
  53250. - exit (status);
  53251. -}
  53252. -EOF
  53253. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  53254. - (eval $ac_link) 2>&5
  53255. - ac_status=$?
  53256. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  53257. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  53258. - (./conftest; exit; ) 2>/dev/null
  53259. - lt_status=$?
  53260. - case x$lt_status in
  53261. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  53262. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  53263. - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  53264. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  53265. + case $host_os in
  53266. + sco3.2v5*)
  53267. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  53268. + ;;
  53269. esac
  53270. - else :
  53271. - # compilation failed
  53272. - lt_cv_dlopen_self=no
  53273. - fi
  53274. -fi
  53275. -rm -fr conftest*
  53276. -
  53277. + fi
  53278. + sys_lib_dlsearch_path_spec='/usr/lib'
  53279. + ;;
  53280. -fi
  53281. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  53282. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  53283. +tpf*)
  53284. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  53285. + version_type=linux
  53286. + need_lib_prefix=no
  53287. + need_version=no
  53288. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  53289. + shlibpath_var=LD_LIBRARY_PATH
  53290. + shlibpath_overrides_runpath=no
  53291. + hardcode_into_libs=yes
  53292. + ;;
  53293. - if test "x$lt_cv_dlopen_self" = xyes; then
  53294. - LDFLAGS="$LDFLAGS $link_static_flag"
  53295. - echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  53296. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  53297. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  53298. - echo $ECHO_N "(cached) $ECHO_C" >&6
  53299. -else
  53300. - if test "$cross_compiling" = yes; then :
  53301. - lt_cv_dlopen_self_static=cross
  53302. -else
  53303. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  53304. - lt_status=$lt_dlunknown
  53305. - cat > conftest.$ac_ext <<EOF
  53306. -#line 17873 "configure"
  53307. -#include "confdefs.h"
  53308. +uts4*)
  53309. + version_type=linux
  53310. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  53311. + soname_spec='${libname}${release}${shared_ext}$major'
  53312. + shlibpath_var=LD_LIBRARY_PATH
  53313. + ;;
  53314. -#if HAVE_DLFCN_H
  53315. -#include <dlfcn.h>
  53316. -#endif
  53317. +*)
  53318. + dynamic_linker=no
  53319. + ;;
  53320. +esac
  53321. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  53322. +$as_echo "$dynamic_linker" >&6; }
  53323. +test "$dynamic_linker" = no && can_build_shared=no
  53324. -#include <stdio.h>
  53325. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  53326. +if test "$GCC" = yes; then
  53327. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  53328. +fi
  53329. -#ifdef RTLD_GLOBAL
  53330. -# define LT_DLGLOBAL RTLD_GLOBAL
  53331. -#else
  53332. -# ifdef DL_GLOBAL
  53333. -# define LT_DLGLOBAL DL_GLOBAL
  53334. -# else
  53335. -# define LT_DLGLOBAL 0
  53336. -# endif
  53337. -#endif
  53338. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  53339. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  53340. +fi
  53341. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  53342. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  53343. +fi
  53344. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  53345. - find out it does not work in some platform. */
  53346. -#ifndef LT_DLLAZY_OR_NOW
  53347. -# ifdef RTLD_LAZY
  53348. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  53349. -# else
  53350. -# ifdef DL_LAZY
  53351. -# define LT_DLLAZY_OR_NOW DL_LAZY
  53352. -# else
  53353. -# ifdef RTLD_NOW
  53354. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  53355. -# else
  53356. -# ifdef DL_NOW
  53357. -# define LT_DLLAZY_OR_NOW DL_NOW
  53358. -# else
  53359. -# define LT_DLLAZY_OR_NOW 0
  53360. -# endif
  53361. -# endif
  53362. -# endif
  53363. -# endif
  53364. -#endif
  53365. -#ifdef __cplusplus
  53366. -extern "C" void exit (int);
  53367. -#endif
  53368. -void fnord() { int i=42;}
  53369. -int main ()
  53370. -{
  53371. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  53372. - int status = $lt_dlunknown;
  53373. - if (self)
  53374. - {
  53375. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  53376. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  53377. - /* dlclose (self); */
  53378. - }
  53379. - exit (status);
  53380. -}
  53381. -EOF
  53382. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  53383. - (eval $ac_link) 2>&5
  53384. - ac_status=$?
  53385. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  53386. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  53387. - (./conftest; exit; ) 2>/dev/null
  53388. - lt_status=$?
  53389. - case x$lt_status in
  53390. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  53391. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  53392. - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  53393. - esac
  53394. - else :
  53395. - # compilation failed
  53396. - lt_cv_dlopen_self_static=no
  53397. - fi
  53398. -fi
  53399. -rm -fr conftest*
  53400. -fi
  53401. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  53402. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  53403. - fi
  53404. - CPPFLAGS="$save_CPPFLAGS"
  53405. - LDFLAGS="$save_LDFLAGS"
  53406. - LIBS="$save_LIBS"
  53407. - ;;
  53408. - esac
  53409. - case $lt_cv_dlopen_self in
  53410. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  53411. - *) enable_dlopen_self=unknown ;;
  53412. - esac
  53413. - case $lt_cv_dlopen_self_static in
  53414. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  53415. - *) enable_dlopen_self_static=unknown ;;
  53416. - esac
  53417. -fi
  53418. -# The else clause should only fire when bootstrapping the
  53419. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  53420. -# with your package, and you will get complaints that there are
  53421. -# no rules to generate ltmain.sh.
  53422. -if test -f "$ltmain"; then
  53423. - # See if we are running on zsh, and set the options which allow our commands through
  53424. - # without removal of \ escapes.
  53425. - if test -n "${ZSH_VERSION+set}" ; then
  53426. - setopt NO_GLOB_SUBST
  53427. - fi
  53428. - # Now quote all the things that may contain metacharacters while being
  53429. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  53430. - # variables and quote the copies for generation of the libtool script.
  53431. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
  53432. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  53433. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  53434. - deplibs_check_method reload_flag reload_cmds need_locks \
  53435. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  53436. - lt_cv_sys_global_symbol_to_c_name_address \
  53437. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  53438. - old_postinstall_cmds old_postuninstall_cmds \
  53439. - compiler_GCJ \
  53440. - CC_GCJ \
  53441. - LD_GCJ \
  53442. - lt_prog_compiler_wl_GCJ \
  53443. - lt_prog_compiler_pic_GCJ \
  53444. - lt_prog_compiler_static_GCJ \
  53445. - lt_prog_compiler_no_builtin_flag_GCJ \
  53446. - export_dynamic_flag_spec_GCJ \
  53447. - thread_safe_flag_spec_GCJ \
  53448. - whole_archive_flag_spec_GCJ \
  53449. - enable_shared_with_static_runtimes_GCJ \
  53450. - old_archive_cmds_GCJ \
  53451. - old_archive_from_new_cmds_GCJ \
  53452. - predep_objects_GCJ \
  53453. - postdep_objects_GCJ \
  53454. - predeps_GCJ \
  53455. - postdeps_GCJ \
  53456. - compiler_lib_search_path_GCJ \
  53457. - archive_cmds_GCJ \
  53458. - archive_expsym_cmds_GCJ \
  53459. - postinstall_cmds_GCJ \
  53460. - postuninstall_cmds_GCJ \
  53461. - old_archive_from_expsyms_cmds_GCJ \
  53462. - allow_undefined_flag_GCJ \
  53463. - no_undefined_flag_GCJ \
  53464. - export_symbols_cmds_GCJ \
  53465. - hardcode_libdir_flag_spec_GCJ \
  53466. - hardcode_libdir_flag_spec_ld_GCJ \
  53467. - hardcode_libdir_separator_GCJ \
  53468. - hardcode_automatic_GCJ \
  53469. - module_cmds_GCJ \
  53470. - module_expsym_cmds_GCJ \
  53471. - lt_cv_prog_compiler_c_o_GCJ \
  53472. - exclude_expsyms_GCJ \
  53473. - include_expsyms_GCJ; do
  53474. -
  53475. - case $var in
  53476. - old_archive_cmds_GCJ | \
  53477. - old_archive_from_new_cmds_GCJ | \
  53478. - archive_cmds_GCJ | \
  53479. - archive_expsym_cmds_GCJ | \
  53480. - module_cmds_GCJ | \
  53481. - module_expsym_cmds_GCJ | \
  53482. - old_archive_from_expsyms_cmds_GCJ | \
  53483. - export_symbols_cmds_GCJ | \
  53484. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  53485. - postinstall_cmds | postuninstall_cmds | \
  53486. - old_postinstall_cmds | old_postuninstall_cmds | \
  53487. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  53488. - # Double-quote double-evaled strings.
  53489. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
  53490. - ;;
  53491. - *)
  53492. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  53493. - ;;
  53494. - esac
  53495. - done
  53496. - case $lt_echo in
  53497. - *'\$0 --fallback-echo"')
  53498. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  53499. - ;;
  53500. - esac
  53501. -cfgfile="$ofile"
  53502. - cat <<__EOF__ >> "$cfgfile"
  53503. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  53504. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  53505. -# Set the command separator (default: ~)
  53506. -_S_=\${LIBTOOL_CMD_SEP-\~}
  53507. -# Shell to use when invoking shell scripts.
  53508. -SHELL=$lt_SHELL
  53509. -# Whether or not to build shared libraries.
  53510. -build_libtool_libs=$enable_shared
  53511. -# Whether or not to build static libraries.
  53512. -build_old_libs=$enable_static
  53513. -# Whether or not to add -lc for building shared libraries.
  53514. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  53515. -# Whether or not to disallow shared libs when runtime libs are static
  53516. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  53517. -# Whether or not to optimize for fast installation.
  53518. -fast_install=$enable_fast_install
  53519. -# The host system.
  53520. -host_alias=$host_alias
  53521. -host=$host
  53522. -# An echo program that does not interpret backslashes.
  53523. -echo=$lt_echo
  53524. -# The archiver.
  53525. -AR=$lt_AR
  53526. -AR_FLAGS=$lt_AR_FLAGS
  53527. -# A C compiler.
  53528. -LTCC=$lt_LTCC
  53529. -# A language-specific compiler.
  53530. -CC=$lt_compiler_GCJ
  53531. -# Is the compiler the GNU C compiler?
  53532. -with_gcc=$GCC_GCJ
  53533. -# An ERE matcher.
  53534. -EGREP=$lt_EGREP
  53535. -# The linker used to build libraries.
  53536. -LD=$lt_LD_GCJ
  53537. -# Whether we need hard or soft links.
  53538. -LN_S=$lt_LN_S
  53539. -# A BSD-compatible nm program.
  53540. -NM=$lt_NM
  53541. -# A symbol stripping program
  53542. -STRIP=$STRIP
  53543. -# Used to examine libraries when file_magic_cmd begins "file"
  53544. -MAGIC_CMD=$MAGIC_CMD
  53545. -# Used on cygwin: DLL creation program.
  53546. -DLLTOOL="$DLLTOOL"
  53547. -# Used on cygwin: object dumper.
  53548. -OBJDUMP="$OBJDUMP"
  53549. -# Used on cygwin: assembler.
  53550. -AS="$AS"
  53551. -# The name of the directory that contains temporary libtool files.
  53552. -objdir=$objdir
  53553. -# How to create reloadable object files.
  53554. -reload_flag=$lt_reload_flag
  53555. -reload_cmds=$lt_reload_cmds
  53556. -# How to pass a linker flag through the compiler.
  53557. -wl=$lt_lt_prog_compiler_wl_GCJ
  53558. -# Object file suffix (normally "o").
  53559. -objext="$ac_objext"
  53560. -# Old archive suffix (normally "a").
  53561. -libext="$libext"
  53562. -# Shared library suffix (normally ".so").
  53563. -shrext='$shrext'
  53564. -# Executable file suffix (normally "").
  53565. -exeext="$exeext"
  53566. -# Additional compiler flags for building library objects.
  53567. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  53568. -pic_mode=$pic_mode
  53569. -# What is the maximum length of a command?
  53570. -max_cmd_len=$lt_cv_sys_max_cmd_len
  53571. -# Does compiler simultaneously support -c and -o options?
  53572. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  53573. -# Must we lock files when doing compilation ?
  53574. -need_locks=$lt_need_locks
  53575. -# Do we need the lib prefix for modules?
  53576. -need_lib_prefix=$need_lib_prefix
  53577. -# Do we need a version for libraries?
  53578. -need_version=$need_version
  53579. -# Whether dlopen is supported.
  53580. -dlopen_support=$enable_dlopen
  53581. -# Whether dlopen of programs is supported.
  53582. -dlopen_self=$enable_dlopen_self
  53583. -# Whether dlopen of statically linked programs is supported.
  53584. -dlopen_self_static=$enable_dlopen_self_static
  53585. -# Compiler flag to prevent dynamic linking.
  53586. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  53587. -# Compiler flag to turn off builtin functions.
  53588. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  53589. -# Compiler flag to allow reflexive dlopens.
  53590. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  53591. -# Compiler flag to generate shared objects directly from archives.
  53592. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  53593. -# Compiler flag to generate thread-safe objects.
  53594. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  53595. -# Library versioning type.
  53596. -version_type=$version_type
  53597. -# Format of library name prefix.
  53598. -libname_spec=$lt_libname_spec
  53599. -# List of archive names. First name is the real one, the rest are links.
  53600. -# The last name is the one that the linker finds with -lNAME.
  53601. -library_names_spec=$lt_library_names_spec
  53602. -# The coded name of the library, if different from the real name.
  53603. -soname_spec=$lt_soname_spec
  53604. -# Commands used to build and install an old-style archive.
  53605. -RANLIB=$lt_RANLIB
  53606. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  53607. -old_postinstall_cmds=$lt_old_postinstall_cmds
  53608. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  53609. -# Create an old-style archive from a shared archive.
  53610. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  53611. -# Create a temporary old-style archive to link instead of a shared archive.
  53612. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  53613. -# Commands used to build and install a shared archive.
  53614. -archive_cmds=$lt_archive_cmds_GCJ
  53615. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  53616. -postinstall_cmds=$lt_postinstall_cmds
  53617. -postuninstall_cmds=$lt_postuninstall_cmds
  53618. -# Commands used to build a loadable module (assumed same as above if empty)
  53619. -module_cmds=$lt_module_cmds_GCJ
  53620. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  53621. -# Commands to strip libraries.
  53622. -old_striplib=$lt_old_striplib
  53623. -striplib=$lt_striplib
  53624. -# Dependencies to place before the objects being linked to create a
  53625. -# shared library.
  53626. -predep_objects=$lt_predep_objects_GCJ
  53627. -
  53628. -# Dependencies to place after the objects being linked to create a
  53629. -# shared library.
  53630. -postdep_objects=$lt_postdep_objects_GCJ
  53631. -
  53632. -# Dependencies to place before the objects being linked to create a
  53633. -# shared library.
  53634. -predeps=$lt_predeps_GCJ
  53635. -
  53636. -# Dependencies to place after the objects being linked to create a
  53637. -# shared library.
  53638. -postdeps=$lt_postdeps_GCJ
  53639. -
  53640. -# The library search path used internally by the compiler when linking
  53641. -# a shared library.
  53642. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  53643. -# Method to check whether dependent libraries are shared objects.
  53644. -deplibs_check_method=$lt_deplibs_check_method
  53645. -# Command to use when deplibs_check_method == file_magic.
  53646. -file_magic_cmd=$lt_file_magic_cmd
  53647. -# Flag that allows shared libraries with undefined symbols to be built.
  53648. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  53649. -# Flag that forces no undefined symbols.
  53650. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  53651. -# Commands used to finish a libtool library installation in a directory.
  53652. -finish_cmds=$lt_finish_cmds
  53653. -# Same as above, but a single script fragment to be evaled but not shown.
  53654. -finish_eval=$lt_finish_eval
  53655. -# Take the output of nm and produce a listing of raw symbols and C names.
  53656. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  53657. -# Transform the output of nm in a proper C declaration
  53658. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  53659. -# Transform the output of nm in a C name address pair
  53660. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  53661. -# This is the shared library runtime path variable.
  53662. -runpath_var=$runpath_var
  53663. -# This is the shared library path variable.
  53664. -shlibpath_var=$shlibpath_var
  53665. -# Is shlibpath searched before the hard-coded library search path?
  53666. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  53667. -# How to hardcode a shared library path into an executable.
  53668. -hardcode_action=$hardcode_action_GCJ
  53669. -# Whether we should hardcode library paths into libraries.
  53670. -hardcode_into_libs=$hardcode_into_libs
  53671. -# Flag to hardcode \$libdir into a binary during linking.
  53672. -# This must work even if \$libdir does not exist.
  53673. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  53674. -# If ld is used when linking, flag to hardcode \$libdir into
  53675. -# a binary during linking. This must work even if \$libdir does
  53676. -# not exist.
  53677. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  53678. -
  53679. -# Whether we need a single -rpath flag with a separated argument.
  53680. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  53681. -
  53682. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  53683. -# resulting binary.
  53684. -hardcode_direct=$hardcode_direct_GCJ
  53685. -
  53686. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  53687. -# resulting binary.
  53688. -hardcode_minus_L=$hardcode_minus_L_GCJ
  53689. -
  53690. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  53691. -# the resulting binary.
  53692. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  53693. -
  53694. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  53695. -# and all subsequent libraries and executables linked against it.
  53696. -hardcode_automatic=$hardcode_automatic_GCJ
  53697. -# Variables whose values should be saved in libtool wrapper scripts and
  53698. -# restored at relink time.
  53699. -variables_saved_for_relink="$variables_saved_for_relink"
  53700. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  53701. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  53702. +hardcode_action=
  53703. +if test -n "$hardcode_libdir_flag_spec" ||
  53704. + test -n "$runpath_var" ||
  53705. + test "X$hardcode_automatic" = "Xyes" ; then
  53706. -# Whether libtool must link a program against all its dependency libraries.
  53707. -link_all_deplibs=$link_all_deplibs_GCJ
  53708. + # We can hardcode non-existent directories.
  53709. + if test "$hardcode_direct" != no &&
  53710. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  53711. + # have to relink, otherwise we might link with an installed library
  53712. + # when we should be linking with a yet-to-be-installed one
  53713. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  53714. + test "$hardcode_minus_L" != no; then
  53715. + # Linking always hardcodes the temporary library directory.
  53716. + hardcode_action=relink
  53717. + else
  53718. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  53719. + hardcode_action=immediate
  53720. + fi
  53721. +else
  53722. + # We cannot hardcode anything, or else we can only hardcode existing
  53723. + # directories.
  53724. + hardcode_action=unsupported
  53725. +fi
  53726. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  53727. +$as_echo "$hardcode_action" >&6; }
  53728. -# Compile-time system search path for libraries
  53729. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  53730. +if test "$hardcode_action" = relink ||
  53731. + test "$inherit_rpath" = yes; then
  53732. + # Fast installation is not supported
  53733. + enable_fast_install=no
  53734. +elif test "$shlibpath_overrides_runpath" = yes ||
  53735. + test "$enable_shared" = no; then
  53736. + # Fast installation is not necessary
  53737. + enable_fast_install=needless
  53738. +fi
  53739. -# Run-time system search path for libraries
  53740. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  53741. -# Fix the shell variable \$srcfile for the compiler.
  53742. -fix_srcfile_path="$fix_srcfile_path_GCJ"
  53743. -# Set to yes if exported symbols are required.
  53744. -always_export_symbols=$always_export_symbols_GCJ
  53745. -# The commands to list exported symbols.
  53746. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  53747. -# The commands to extract the exported symbol list from a shared archive.
  53748. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  53749. -# Symbols that should not be listed in the preloaded symbols.
  53750. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  53751. + if test "x$enable_dlopen" != xyes; then
  53752. + enable_dlopen=unknown
  53753. + enable_dlopen_self=unknown
  53754. + enable_dlopen_self_static=unknown
  53755. +else
  53756. + lt_cv_dlopen=no
  53757. + lt_cv_dlopen_libs=
  53758. -# Symbols that must always be exported.
  53759. -include_expsyms=$lt_include_expsyms_GCJ
  53760. + case $host_os in
  53761. + beos*)
  53762. + lt_cv_dlopen="load_add_on"
  53763. + lt_cv_dlopen_libs=
  53764. + lt_cv_dlopen_self=yes
  53765. + ;;
  53766. -# ### END LIBTOOL TAG CONFIG: $tagname
  53767. + mingw* | pw32* | cegcc*)
  53768. + lt_cv_dlopen="LoadLibrary"
  53769. + lt_cv_dlopen_libs=
  53770. + ;;
  53771. -__EOF__
  53772. + cygwin*)
  53773. + lt_cv_dlopen="dlopen"
  53774. + lt_cv_dlopen_libs=
  53775. + ;;
  53776. + darwin*)
  53777. + # if libdl is installed we need to link against it
  53778. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  53779. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  53780. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  53781. + $as_echo_n "(cached) " >&6
  53782. +else
  53783. + ac_check_lib_save_LIBS=$LIBS
  53784. +LIBS="-ldl $LIBS"
  53785. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53786. +/* end confdefs.h. */
  53787. +/* Override any GCC internal prototype to avoid an error.
  53788. + Use char because int might match the return type of a GCC
  53789. + builtin and then its argument prototype would still apply. */
  53790. +#ifdef __cplusplus
  53791. +extern "C"
  53792. +#endif
  53793. +char dlopen ();
  53794. +int
  53795. +main ()
  53796. +{
  53797. +return dlopen ();
  53798. + ;
  53799. + return 0;
  53800. +}
  53801. +_ACEOF
  53802. +if ac_fn_c_try_link "$LINENO"; then :
  53803. + ac_cv_lib_dl_dlopen=yes
  53804. else
  53805. - # If there is no Makefile yet, we rely on a make rule to execute
  53806. - # `config.status --recheck' to rerun these tests and create the
  53807. - # libtool script then.
  53808. - test -f Makefile && make "$ltmain"
  53809. + ac_cv_lib_dl_dlopen=no
  53810. +fi
  53811. +rm -f core conftest.err conftest.$ac_objext \
  53812. + conftest$ac_exeext conftest.$ac_ext
  53813. +LIBS=$ac_check_lib_save_LIBS
  53814. fi
  53815. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  53816. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  53817. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  53818. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  53819. +else
  53820. +
  53821. + lt_cv_dlopen="dyld"
  53822. + lt_cv_dlopen_libs=
  53823. + lt_cv_dlopen_self=yes
  53824. +fi
  53825. -ac_ext=c
  53826. -ac_cpp='$CPP $CPPFLAGS'
  53827. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53828. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53829. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  53830. + ;;
  53831. -CC="$lt_save_CC"
  53832. + *)
  53833. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  53834. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  53835. + lt_cv_dlopen="shl_load"
  53836. +else
  53837. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  53838. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  53839. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  53840. + $as_echo_n "(cached) " >&6
  53841. +else
  53842. + ac_check_lib_save_LIBS=$LIBS
  53843. +LIBS="-ldld $LIBS"
  53844. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53845. +/* end confdefs.h. */
  53846. - else
  53847. - tagname=""
  53848. - fi
  53849. - ;;
  53850. +/* Override any GCC internal prototype to avoid an error.
  53851. + Use char because int might match the return type of a GCC
  53852. + builtin and then its argument prototype would still apply. */
  53853. +#ifdef __cplusplus
  53854. +extern "C"
  53855. +#endif
  53856. +char shl_load ();
  53857. +int
  53858. +main ()
  53859. +{
  53860. +return shl_load ();
  53861. + ;
  53862. + return 0;
  53863. +}
  53864. +_ACEOF
  53865. +if ac_fn_c_try_link "$LINENO"; then :
  53866. + ac_cv_lib_dld_shl_load=yes
  53867. +else
  53868. + ac_cv_lib_dld_shl_load=no
  53869. +fi
  53870. +rm -f core conftest.err conftest.$ac_objext \
  53871. + conftest$ac_exeext conftest.$ac_ext
  53872. +LIBS=$ac_check_lib_save_LIBS
  53873. +fi
  53874. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  53875. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  53876. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  53877. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  53878. +else
  53879. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  53880. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  53881. + lt_cv_dlopen="dlopen"
  53882. +else
  53883. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  53884. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  53885. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  53886. + $as_echo_n "(cached) " >&6
  53887. +else
  53888. + ac_check_lib_save_LIBS=$LIBS
  53889. +LIBS="-ldl $LIBS"
  53890. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53891. +/* end confdefs.h. */
  53892. - RC)
  53893. +/* Override any GCC internal prototype to avoid an error.
  53894. + Use char because int might match the return type of a GCC
  53895. + builtin and then its argument prototype would still apply. */
  53896. +#ifdef __cplusplus
  53897. +extern "C"
  53898. +#endif
  53899. +char dlopen ();
  53900. +int
  53901. +main ()
  53902. +{
  53903. +return dlopen ();
  53904. + ;
  53905. + return 0;
  53906. +}
  53907. +_ACEOF
  53908. +if ac_fn_c_try_link "$LINENO"; then :
  53909. + ac_cv_lib_dl_dlopen=yes
  53910. +else
  53911. + ac_cv_lib_dl_dlopen=no
  53912. +fi
  53913. +rm -f core conftest.err conftest.$ac_objext \
  53914. + conftest$ac_exeext conftest.$ac_ext
  53915. +LIBS=$ac_check_lib_save_LIBS
  53916. +fi
  53917. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  53918. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  53919. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  53920. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  53921. +else
  53922. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  53923. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  53924. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  53925. + $as_echo_n "(cached) " >&6
  53926. +else
  53927. + ac_check_lib_save_LIBS=$LIBS
  53928. +LIBS="-lsvld $LIBS"
  53929. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53930. +/* end confdefs.h. */
  53931. +/* Override any GCC internal prototype to avoid an error.
  53932. + Use char because int might match the return type of a GCC
  53933. + builtin and then its argument prototype would still apply. */
  53934. +#ifdef __cplusplus
  53935. +extern "C"
  53936. +#endif
  53937. +char dlopen ();
  53938. +int
  53939. +main ()
  53940. +{
  53941. +return dlopen ();
  53942. + ;
  53943. + return 0;
  53944. +}
  53945. +_ACEOF
  53946. +if ac_fn_c_try_link "$LINENO"; then :
  53947. + ac_cv_lib_svld_dlopen=yes
  53948. +else
  53949. + ac_cv_lib_svld_dlopen=no
  53950. +fi
  53951. +rm -f core conftest.err conftest.$ac_objext \
  53952. + conftest$ac_exeext conftest.$ac_ext
  53953. +LIBS=$ac_check_lib_save_LIBS
  53954. +fi
  53955. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  53956. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  53957. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  53958. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  53959. +else
  53960. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  53961. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  53962. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  53963. + $as_echo_n "(cached) " >&6
  53964. +else
  53965. + ac_check_lib_save_LIBS=$LIBS
  53966. +LIBS="-ldld $LIBS"
  53967. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53968. +/* end confdefs.h. */
  53969. +/* Override any GCC internal prototype to avoid an error.
  53970. + Use char because int might match the return type of a GCC
  53971. + builtin and then its argument prototype would still apply. */
  53972. +#ifdef __cplusplus
  53973. +extern "C"
  53974. +#endif
  53975. +char dld_link ();
  53976. +int
  53977. +main ()
  53978. +{
  53979. +return dld_link ();
  53980. + ;
  53981. + return 0;
  53982. +}
  53983. +_ACEOF
  53984. +if ac_fn_c_try_link "$LINENO"; then :
  53985. + ac_cv_lib_dld_dld_link=yes
  53986. +else
  53987. + ac_cv_lib_dld_dld_link=no
  53988. +fi
  53989. +rm -f core conftest.err conftest.$ac_objext \
  53990. + conftest$ac_exeext conftest.$ac_ext
  53991. +LIBS=$ac_check_lib_save_LIBS
  53992. +fi
  53993. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  53994. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  53995. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  53996. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  53997. +fi
  53998. -# Source file extension for RC test sources.
  53999. -ac_ext=rc
  54000. -# Object file extension for compiled RC test sources.
  54001. -objext=o
  54002. -objext_RC=$objext
  54003. +fi
  54004. -# Code to be used in simple compile tests
  54005. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  54006. -# Code to be used in simple link tests
  54007. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  54008. +fi
  54009. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  54010. -# If no C compiler was specified, use CC.
  54011. -LTCC=${LTCC-"$CC"}
  54012. +fi
  54013. -# Allow CC to be a program name with arguments.
  54014. -compiler=$CC
  54015. +fi
  54016. -# Allow CC to be a program name with arguments.
  54017. -lt_save_CC="$CC"
  54018. -CC=${RC-"windres"}
  54019. -compiler=$CC
  54020. -compiler_RC=$CC
  54021. -lt_cv_prog_compiler_c_o_RC=yes
  54022. -# The else clause should only fire when bootstrapping the
  54023. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  54024. -# with your package, and you will get complaints that there are
  54025. -# no rules to generate ltmain.sh.
  54026. -if test -f "$ltmain"; then
  54027. - # See if we are running on zsh, and set the options which allow our commands through
  54028. - # without removal of \ escapes.
  54029. - if test -n "${ZSH_VERSION+set}" ; then
  54030. - setopt NO_GLOB_SUBST
  54031. - fi
  54032. - # Now quote all the things that may contain metacharacters while being
  54033. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  54034. - # variables and quote the copies for generation of the libtool script.
  54035. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
  54036. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  54037. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  54038. - deplibs_check_method reload_flag reload_cmds need_locks \
  54039. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  54040. - lt_cv_sys_global_symbol_to_c_name_address \
  54041. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  54042. - old_postinstall_cmds old_postuninstall_cmds \
  54043. - compiler_RC \
  54044. - CC_RC \
  54045. - LD_RC \
  54046. - lt_prog_compiler_wl_RC \
  54047. - lt_prog_compiler_pic_RC \
  54048. - lt_prog_compiler_static_RC \
  54049. - lt_prog_compiler_no_builtin_flag_RC \
  54050. - export_dynamic_flag_spec_RC \
  54051. - thread_safe_flag_spec_RC \
  54052. - whole_archive_flag_spec_RC \
  54053. - enable_shared_with_static_runtimes_RC \
  54054. - old_archive_cmds_RC \
  54055. - old_archive_from_new_cmds_RC \
  54056. - predep_objects_RC \
  54057. - postdep_objects_RC \
  54058. - predeps_RC \
  54059. - postdeps_RC \
  54060. - compiler_lib_search_path_RC \
  54061. - archive_cmds_RC \
  54062. - archive_expsym_cmds_RC \
  54063. - postinstall_cmds_RC \
  54064. - postuninstall_cmds_RC \
  54065. - old_archive_from_expsyms_cmds_RC \
  54066. - allow_undefined_flag_RC \
  54067. - no_undefined_flag_RC \
  54068. - export_symbols_cmds_RC \
  54069. - hardcode_libdir_flag_spec_RC \
  54070. - hardcode_libdir_flag_spec_ld_RC \
  54071. - hardcode_libdir_separator_RC \
  54072. - hardcode_automatic_RC \
  54073. - module_cmds_RC \
  54074. - module_expsym_cmds_RC \
  54075. - lt_cv_prog_compiler_c_o_RC \
  54076. - exclude_expsyms_RC \
  54077. - include_expsyms_RC; do
  54078. -
  54079. - case $var in
  54080. - old_archive_cmds_RC | \
  54081. - old_archive_from_new_cmds_RC | \
  54082. - archive_cmds_RC | \
  54083. - archive_expsym_cmds_RC | \
  54084. - module_cmds_RC | \
  54085. - module_expsym_cmds_RC | \
  54086. - old_archive_from_expsyms_cmds_RC | \
  54087. - export_symbols_cmds_RC | \
  54088. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  54089. - postinstall_cmds | postuninstall_cmds | \
  54090. - old_postinstall_cmds | old_postuninstall_cmds | \
  54091. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  54092. - # Double-quote double-evaled strings.
  54093. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
  54094. - ;;
  54095. - *)
  54096. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  54097. - ;;
  54098. - esac
  54099. - done
  54100. +fi
  54101. - case $lt_echo in
  54102. - *'\$0 --fallback-echo"')
  54103. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  54104. ;;
  54105. esac
  54106. -cfgfile="$ofile"
  54107. + if test "x$lt_cv_dlopen" != xno; then
  54108. + enable_dlopen=yes
  54109. + else
  54110. + enable_dlopen=no
  54111. + fi
  54112. - cat <<__EOF__ >> "$cfgfile"
  54113. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  54114. + case $lt_cv_dlopen in
  54115. + dlopen)
  54116. + save_CPPFLAGS="$CPPFLAGS"
  54117. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  54118. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  54119. + save_LDFLAGS="$LDFLAGS"
  54120. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  54121. -# Set the command separator (default: ~)
  54122. -_S_=\${LIBTOOL_CMD_SEP-\~}
  54123. + save_LIBS="$LIBS"
  54124. + LIBS="$lt_cv_dlopen_libs $LIBS"
  54125. -# Shell to use when invoking shell scripts.
  54126. -SHELL=$lt_SHELL
  54127. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  54128. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  54129. +if test "${lt_cv_dlopen_self+set}" = set; then :
  54130. + $as_echo_n "(cached) " >&6
  54131. +else
  54132. + if test "$cross_compiling" = yes; then :
  54133. + lt_cv_dlopen_self=cross
  54134. +else
  54135. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  54136. + lt_status=$lt_dlunknown
  54137. + cat > conftest.$ac_ext <<_LT_EOF
  54138. +#line 10193 "configure"
  54139. +#include "confdefs.h"
  54140. -# Whether or not to build shared libraries.
  54141. -build_libtool_libs=$enable_shared
  54142. +#if HAVE_DLFCN_H
  54143. +#include <dlfcn.h>
  54144. +#endif
  54145. -# Whether or not to build static libraries.
  54146. -build_old_libs=$enable_static
  54147. +#include <stdio.h>
  54148. -# Whether or not to add -lc for building shared libraries.
  54149. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  54150. +#ifdef RTLD_GLOBAL
  54151. +# define LT_DLGLOBAL RTLD_GLOBAL
  54152. +#else
  54153. +# ifdef DL_GLOBAL
  54154. +# define LT_DLGLOBAL DL_GLOBAL
  54155. +# else
  54156. +# define LT_DLGLOBAL 0
  54157. +# endif
  54158. +#endif
  54159. -# Whether or not to disallow shared libs when runtime libs are static
  54160. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  54161. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  54162. + find out it does not work in some platform. */
  54163. +#ifndef LT_DLLAZY_OR_NOW
  54164. +# ifdef RTLD_LAZY
  54165. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  54166. +# else
  54167. +# ifdef DL_LAZY
  54168. +# define LT_DLLAZY_OR_NOW DL_LAZY
  54169. +# else
  54170. +# ifdef RTLD_NOW
  54171. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  54172. +# else
  54173. +# ifdef DL_NOW
  54174. +# define LT_DLLAZY_OR_NOW DL_NOW
  54175. +# else
  54176. +# define LT_DLLAZY_OR_NOW 0
  54177. +# endif
  54178. +# endif
  54179. +# endif
  54180. +# endif
  54181. +#endif
  54182. -# Whether or not to optimize for fast installation.
  54183. -fast_install=$enable_fast_install
  54184. +void fnord() { int i=42;}
  54185. +int main ()
  54186. +{
  54187. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  54188. + int status = $lt_dlunknown;
  54189. -# The host system.
  54190. -host_alias=$host_alias
  54191. -host=$host
  54192. + if (self)
  54193. + {
  54194. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  54195. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  54196. + /* dlclose (self); */
  54197. + }
  54198. + else
  54199. + puts (dlerror ());
  54200. +
  54201. + return status;
  54202. +}
  54203. +_LT_EOF
  54204. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  54205. + (eval $ac_link) 2>&5
  54206. + ac_status=$?
  54207. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  54208. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  54209. + (./conftest; exit; ) >&5 2>/dev/null
  54210. + lt_status=$?
  54211. + case x$lt_status in
  54212. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  54213. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  54214. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  54215. + esac
  54216. + else :
  54217. + # compilation failed
  54218. + lt_cv_dlopen_self=no
  54219. + fi
  54220. +fi
  54221. +rm -fr conftest*
  54222. +
  54223. +
  54224. +fi
  54225. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  54226. +$as_echo "$lt_cv_dlopen_self" >&6; }
  54227. -# An echo program that does not interpret backslashes.
  54228. -echo=$lt_echo
  54229. + if test "x$lt_cv_dlopen_self" = xyes; then
  54230. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  54231. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  54232. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  54233. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  54234. + $as_echo_n "(cached) " >&6
  54235. +else
  54236. + if test "$cross_compiling" = yes; then :
  54237. + lt_cv_dlopen_self_static=cross
  54238. +else
  54239. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  54240. + lt_status=$lt_dlunknown
  54241. + cat > conftest.$ac_ext <<_LT_EOF
  54242. +#line 10289 "configure"
  54243. +#include "confdefs.h"
  54244. -# The archiver.
  54245. -AR=$lt_AR
  54246. -AR_FLAGS=$lt_AR_FLAGS
  54247. +#if HAVE_DLFCN_H
  54248. +#include <dlfcn.h>
  54249. +#endif
  54250. -# A C compiler.
  54251. -LTCC=$lt_LTCC
  54252. +#include <stdio.h>
  54253. -# A language-specific compiler.
  54254. -CC=$lt_compiler_RC
  54255. +#ifdef RTLD_GLOBAL
  54256. +# define LT_DLGLOBAL RTLD_GLOBAL
  54257. +#else
  54258. +# ifdef DL_GLOBAL
  54259. +# define LT_DLGLOBAL DL_GLOBAL
  54260. +# else
  54261. +# define LT_DLGLOBAL 0
  54262. +# endif
  54263. +#endif
  54264. -# Is the compiler the GNU C compiler?
  54265. -with_gcc=$GCC_RC
  54266. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  54267. + find out it does not work in some platform. */
  54268. +#ifndef LT_DLLAZY_OR_NOW
  54269. +# ifdef RTLD_LAZY
  54270. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  54271. +# else
  54272. +# ifdef DL_LAZY
  54273. +# define LT_DLLAZY_OR_NOW DL_LAZY
  54274. +# else
  54275. +# ifdef RTLD_NOW
  54276. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  54277. +# else
  54278. +# ifdef DL_NOW
  54279. +# define LT_DLLAZY_OR_NOW DL_NOW
  54280. +# else
  54281. +# define LT_DLLAZY_OR_NOW 0
  54282. +# endif
  54283. +# endif
  54284. +# endif
  54285. +# endif
  54286. +#endif
  54287. -# An ERE matcher.
  54288. -EGREP=$lt_EGREP
  54289. +void fnord() { int i=42;}
  54290. +int main ()
  54291. +{
  54292. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  54293. + int status = $lt_dlunknown;
  54294. -# The linker used to build libraries.
  54295. -LD=$lt_LD_RC
  54296. + if (self)
  54297. + {
  54298. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  54299. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  54300. + /* dlclose (self); */
  54301. + }
  54302. + else
  54303. + puts (dlerror ());
  54304. -# Whether we need hard or soft links.
  54305. -LN_S=$lt_LN_S
  54306. + return status;
  54307. +}
  54308. +_LT_EOF
  54309. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  54310. + (eval $ac_link) 2>&5
  54311. + ac_status=$?
  54312. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  54313. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  54314. + (./conftest; exit; ) >&5 2>/dev/null
  54315. + lt_status=$?
  54316. + case x$lt_status in
  54317. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  54318. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  54319. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  54320. + esac
  54321. + else :
  54322. + # compilation failed
  54323. + lt_cv_dlopen_self_static=no
  54324. + fi
  54325. +fi
  54326. +rm -fr conftest*
  54327. -# A BSD-compatible nm program.
  54328. -NM=$lt_NM
  54329. -# A symbol stripping program
  54330. -STRIP=$STRIP
  54331. +fi
  54332. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  54333. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  54334. + fi
  54335. -# Used to examine libraries when file_magic_cmd begins "file"
  54336. -MAGIC_CMD=$MAGIC_CMD
  54337. + CPPFLAGS="$save_CPPFLAGS"
  54338. + LDFLAGS="$save_LDFLAGS"
  54339. + LIBS="$save_LIBS"
  54340. + ;;
  54341. + esac
  54342. -# Used on cygwin: DLL creation program.
  54343. -DLLTOOL="$DLLTOOL"
  54344. + case $lt_cv_dlopen_self in
  54345. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  54346. + *) enable_dlopen_self=unknown ;;
  54347. + esac
  54348. -# Used on cygwin: object dumper.
  54349. -OBJDUMP="$OBJDUMP"
  54350. + case $lt_cv_dlopen_self_static in
  54351. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  54352. + *) enable_dlopen_self_static=unknown ;;
  54353. + esac
  54354. +fi
  54355. -# Used on cygwin: assembler.
  54356. -AS="$AS"
  54357. -# The name of the directory that contains temporary libtool files.
  54358. -objdir=$objdir
  54359. -# How to create reloadable object files.
  54360. -reload_flag=$lt_reload_flag
  54361. -reload_cmds=$lt_reload_cmds
  54362. -# How to pass a linker flag through the compiler.
  54363. -wl=$lt_lt_prog_compiler_wl_RC
  54364. -# Object file suffix (normally "o").
  54365. -objext="$ac_objext"
  54366. -# Old archive suffix (normally "a").
  54367. -libext="$libext"
  54368. -# Shared library suffix (normally ".so").
  54369. -shrext='$shrext'
  54370. -# Executable file suffix (normally "").
  54371. -exeext="$exeext"
  54372. -# Additional compiler flags for building library objects.
  54373. -pic_flag=$lt_lt_prog_compiler_pic_RC
  54374. -pic_mode=$pic_mode
  54375. -# What is the maximum length of a command?
  54376. -max_cmd_len=$lt_cv_sys_max_cmd_len
  54377. -# Does compiler simultaneously support -c and -o options?
  54378. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  54379. -# Must we lock files when doing compilation ?
  54380. -need_locks=$lt_need_locks
  54381. -# Do we need the lib prefix for modules?
  54382. -need_lib_prefix=$need_lib_prefix
  54383. -# Do we need a version for libraries?
  54384. -need_version=$need_version
  54385. -# Whether dlopen is supported.
  54386. -dlopen_support=$enable_dlopen
  54387. -# Whether dlopen of programs is supported.
  54388. -dlopen_self=$enable_dlopen_self
  54389. -# Whether dlopen of statically linked programs is supported.
  54390. -dlopen_self_static=$enable_dlopen_self_static
  54391. +striplib=
  54392. +old_striplib=
  54393. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  54394. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  54395. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  54396. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  54397. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  54398. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  54399. +$as_echo "yes" >&6; }
  54400. +else
  54401. +# FIXME - insert some real tests, host_os isn't really good enough
  54402. + case $host_os in
  54403. + darwin*)
  54404. + if test -n "$STRIP" ; then
  54405. + striplib="$STRIP -x"
  54406. + old_striplib="$STRIP -S"
  54407. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  54408. +$as_echo "yes" >&6; }
  54409. + else
  54410. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  54411. +$as_echo "no" >&6; }
  54412. + fi
  54413. + ;;
  54414. + *)
  54415. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  54416. +$as_echo "no" >&6; }
  54417. + ;;
  54418. + esac
  54419. +fi
  54420. -# Compiler flag to prevent dynamic linking.
  54421. -link_static_flag=$lt_lt_prog_compiler_static_RC
  54422. -# Compiler flag to turn off builtin functions.
  54423. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  54424. -# Compiler flag to allow reflexive dlopens.
  54425. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  54426. -# Compiler flag to generate shared objects directly from archives.
  54427. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  54428. -# Compiler flag to generate thread-safe objects.
  54429. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  54430. -# Library versioning type.
  54431. -version_type=$version_type
  54432. -# Format of library name prefix.
  54433. -libname_spec=$lt_libname_spec
  54434. -# List of archive names. First name is the real one, the rest are links.
  54435. -# The last name is the one that the linker finds with -lNAME.
  54436. -library_names_spec=$lt_library_names_spec
  54437. -# The coded name of the library, if different from the real name.
  54438. -soname_spec=$lt_soname_spec
  54439. -# Commands used to build and install an old-style archive.
  54440. -RANLIB=$lt_RANLIB
  54441. -old_archive_cmds=$lt_old_archive_cmds_RC
  54442. -old_postinstall_cmds=$lt_old_postinstall_cmds
  54443. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  54444. -# Create an old-style archive from a shared archive.
  54445. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  54446. -# Create a temporary old-style archive to link instead of a shared archive.
  54447. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  54448. + # Report which library types will actually be built
  54449. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  54450. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  54451. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  54452. +$as_echo "$can_build_shared" >&6; }
  54453. -# Commands used to build and install a shared archive.
  54454. -archive_cmds=$lt_archive_cmds_RC
  54455. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  54456. -postinstall_cmds=$lt_postinstall_cmds
  54457. -postuninstall_cmds=$lt_postuninstall_cmds
  54458. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  54459. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  54460. + test "$can_build_shared" = "no" && enable_shared=no
  54461. -# Commands used to build a loadable module (assumed same as above if empty)
  54462. -module_cmds=$lt_module_cmds_RC
  54463. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  54464. + # On AIX, shared libraries and static libraries use the same namespace, and
  54465. + # are all built from PIC.
  54466. + case $host_os in
  54467. + aix3*)
  54468. + test "$enable_shared" = yes && enable_static=no
  54469. + if test -n "$RANLIB"; then
  54470. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  54471. + postinstall_cmds='$RANLIB $lib'
  54472. + fi
  54473. + ;;
  54474. -# Commands to strip libraries.
  54475. -old_striplib=$lt_old_striplib
  54476. -striplib=$lt_striplib
  54477. + aix[4-9]*)
  54478. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  54479. + test "$enable_shared" = yes && enable_static=no
  54480. + fi
  54481. + ;;
  54482. + esac
  54483. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  54484. +$as_echo "$enable_shared" >&6; }
  54485. -# Dependencies to place before the objects being linked to create a
  54486. -# shared library.
  54487. -predep_objects=$lt_predep_objects_RC
  54488. -
  54489. -# Dependencies to place after the objects being linked to create a
  54490. -# shared library.
  54491. -postdep_objects=$lt_postdep_objects_RC
  54492. -
  54493. -# Dependencies to place before the objects being linked to create a
  54494. -# shared library.
  54495. -predeps=$lt_predeps_RC
  54496. -
  54497. -# Dependencies to place after the objects being linked to create a
  54498. -# shared library.
  54499. -postdeps=$lt_postdeps_RC
  54500. -
  54501. -# The library search path used internally by the compiler when linking
  54502. -# a shared library.
  54503. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  54504. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  54505. +$as_echo_n "checking whether to build static libraries... " >&6; }
  54506. + # Make sure either enable_shared or enable_static is yes.
  54507. + test "$enable_shared" = yes || enable_static=yes
  54508. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  54509. +$as_echo "$enable_static" >&6; }
  54510. -# Method to check whether dependent libraries are shared objects.
  54511. -deplibs_check_method=$lt_deplibs_check_method
  54512. -# Command to use when deplibs_check_method == file_magic.
  54513. -file_magic_cmd=$lt_file_magic_cmd
  54514. -# Flag that allows shared libraries with undefined symbols to be built.
  54515. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  54516. -# Flag that forces no undefined symbols.
  54517. -no_undefined_flag=$lt_no_undefined_flag_RC
  54518. +fi
  54519. +ac_ext=c
  54520. +ac_cpp='$CPP $CPPFLAGS'
  54521. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54522. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54523. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54524. -# Commands used to finish a libtool library installation in a directory.
  54525. -finish_cmds=$lt_finish_cmds
  54526. +CC="$lt_save_CC"
  54527. -# Same as above, but a single script fragment to be evaled but not shown.
  54528. -finish_eval=$lt_finish_eval
  54529. -# Take the output of nm and produce a listing of raw symbols and C names.
  54530. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  54531. -# Transform the output of nm in a proper C declaration
  54532. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  54533. -# Transform the output of nm in a C name address pair
  54534. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  54535. -# This is the shared library runtime path variable.
  54536. -runpath_var=$runpath_var
  54537. -# This is the shared library path variable.
  54538. -shlibpath_var=$shlibpath_var
  54539. -# Is shlibpath searched before the hard-coded library search path?
  54540. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  54541. -# How to hardcode a shared library path into an executable.
  54542. -hardcode_action=$hardcode_action_RC
  54543. -# Whether we should hardcode library paths into libraries.
  54544. -hardcode_into_libs=$hardcode_into_libs
  54545. -# Flag to hardcode \$libdir into a binary during linking.
  54546. -# This must work even if \$libdir does not exist.
  54547. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  54548. -# If ld is used when linking, flag to hardcode \$libdir into
  54549. -# a binary during linking. This must work even if \$libdir does
  54550. -# not exist.
  54551. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  54552. -
  54553. -# Whether we need a single -rpath flag with a separated argument.
  54554. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  54555. -
  54556. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  54557. -# resulting binary.
  54558. -hardcode_direct=$hardcode_direct_RC
  54559. -
  54560. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  54561. -# resulting binary.
  54562. -hardcode_minus_L=$hardcode_minus_L_RC
  54563. -
  54564. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  54565. -# the resulting binary.
  54566. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  54567. -
  54568. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  54569. -# and all subsequent libraries and executables linked against it.
  54570. -hardcode_automatic=$hardcode_automatic_RC
  54571. -# Variables whose values should be saved in libtool wrapper scripts and
  54572. -# restored at relink time.
  54573. -variables_saved_for_relink="$variables_saved_for_relink"
  54574. -# Whether libtool must link a program against all its dependency libraries.
  54575. -link_all_deplibs=$link_all_deplibs_RC
  54576. + ac_config_commands="$ac_config_commands libtool"
  54577. -# Compile-time system search path for libraries
  54578. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  54579. -# Run-time system search path for libraries
  54580. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  54581. -# Fix the shell variable \$srcfile for the compiler.
  54582. -fix_srcfile_path="$fix_srcfile_path_RC"
  54583. -# Set to yes if exported symbols are required.
  54584. -always_export_symbols=$always_export_symbols_RC
  54585. +# Only expand once:
  54586. -# The commands to list exported symbols.
  54587. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  54588. -# The commands to extract the exported symbol list from a shared archive.
  54589. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  54590. -# Symbols that should not be listed in the preloaded symbols.
  54591. -exclude_expsyms=$lt_exclude_expsyms_RC
  54592. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python" >&5
  54593. +$as_echo_n "checking for Python... " >&6; }
  54594. -# Symbols that must always be exported.
  54595. -include_expsyms=$lt_include_expsyms_RC
  54596. +# Check whether --with-python was given.
  54597. +if test "${with_python+set}" = set; then :
  54598. + withval=$with_python; case "$withval" in
  54599. + yes)
  54600. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  54601. +$as_echo "yes" >&6; }
  54602. + PYTHON="python"
  54603. + ;;
  54604. + no)
  54605. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  54606. +$as_echo "no" >&6; }
  54607. + ;;
  54608. + *)
  54609. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  54610. +$as_echo "$withval" >&6; }
  54611. + for subdir in . bin; do
  54612. + if test -x $withval/$subdir/python; then
  54613. + owd=`pwd`
  54614. + if cd $withval/$subdir; then withval=`pwd`; cd $owd; fi
  54615. + PYTHON="$withval/python"
  54616. + break
  54617. + fi
  54618. + done
  54619. + if test "x$PYTHON" = "x"; then
  54620. + as_fn_error "python not found in $withval" "$LINENO" 5
  54621. + fi
  54622. + ;;
  54623. + esac
  54624. +
  54625. +fi
  54626. -# ### END LIBTOOL TAG CONFIG: $tagname
  54627. -__EOF__
  54628. + if test "x$PYTHON" != "x"; then
  54629. + PYTHON_TRUE=
  54630. + PYTHON_FALSE='#'
  54631. else
  54632. - # If there is no Makefile yet, we rely on a make rule to execute
  54633. - # `config.status --recheck' to rerun these tests and create the
  54634. - # libtool script then.
  54635. - test -f Makefile && make "$ltmain"
  54636. + PYTHON_TRUE='#'
  54637. + PYTHON_FALSE=
  54638. fi
  54639. + if test "x$TCLINC" != "x"; then
  54640. + TCL_TRUE=
  54641. + TCL_FALSE='#'
  54642. +else
  54643. + TCL_TRUE='#'
  54644. + TCL_FALSE=
  54645. +fi
  54646. -ac_ext=c
  54647. -ac_cpp='$CPP $CPPFLAGS'
  54648. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54649. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54650. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54651. -
  54652. -CC="$lt_save_CC"
  54653. - ;;
  54654. +if test -r /usr/include/sgidefs.h ; then
  54655. + CPPFLAGS="$CPPFLAGS -D__sgi"
  54656. +fi
  54657. +if test "$CYGWIN" = yes ; then
  54658. + if test -d /usr/include/mingw ; then
  54659. + CPPFLAGS="$CPPFLAGS -mno-cygwin"
  54660. + CFLAGS="$CFLAGS -mno-cygwin"
  54661. - *)
  54662. - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  54663. -echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  54664. - { (exit 1); exit 1; }; }
  54665. - ;;
  54666. - esac
  54667. +$as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
  54668. - # Append the new tag name to the list of available tags.
  54669. - if test -n "$tagname" ; then
  54670. - available_tags="$available_tags $tagname"
  54671. - fi
  54672. - fi
  54673. - done
  54674. - IFS="$lt_save_ifs"
  54675. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
  54676. +$as_echo_n "checking for main in -lws2_32... " >&6; }
  54677. +if test "${ac_cv_lib_ws2_32_main+set}" = set; then :
  54678. + $as_echo_n "(cached) " >&6
  54679. +else
  54680. + ac_check_lib_save_LIBS=$LIBS
  54681. +LIBS="-lws2_32 $LIBS"
  54682. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54683. +/* end confdefs.h. */
  54684. - # Now substitute the updated list of available tags.
  54685. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  54686. - mv "${ofile}T" "$ofile"
  54687. - chmod +x "$ofile"
  54688. - else
  54689. - rm -f "${ofile}T"
  54690. - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  54691. -echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  54692. - { (exit 1); exit 1; }; }
  54693. - fi
  54694. -fi
  54695. +int
  54696. +main ()
  54697. +{
  54698. +return main ();
  54699. + ;
  54700. + return 0;
  54701. +}
  54702. +_ACEOF
  54703. +if ac_fn_c_try_link "$LINENO"; then :
  54704. + ac_cv_lib_ws2_32_main=yes
  54705. +else
  54706. + ac_cv_lib_ws2_32_main=no
  54707. +fi
  54708. +rm -f core conftest.err conftest.$ac_objext \
  54709. + conftest$ac_exeext conftest.$ac_ext
  54710. +LIBS=$ac_check_lib_save_LIBS
  54711. +fi
  54712. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
  54713. +$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
  54714. +if test "x$ac_cv_lib_ws2_32_main" = x""yes; then :
  54715. + cat >>confdefs.h <<_ACEOF
  54716. +#define HAVE_LIBWS2_32 1
  54717. +_ACEOF
  54718. + LIBS="-lws2_32 $LIBS"
  54719. -# This can be used to rebuild libtool when needed
  54720. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  54721. +fi
  54722. -# Always use our own libtool.
  54723. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  54724. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -liphlpapi" >&5
  54725. +$as_echo_n "checking for main in -liphlpapi... " >&6; }
  54726. +if test "${ac_cv_lib_iphlpapi_main+set}" = set; then :
  54727. + $as_echo_n "(cached) " >&6
  54728. +else
  54729. + ac_check_lib_save_LIBS=$LIBS
  54730. +LIBS="-liphlpapi $LIBS"
  54731. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54732. +/* end confdefs.h. */
  54733. -# Prevent multiple expansion
  54734. +int
  54735. +main ()
  54736. +{
  54737. +return main ();
  54738. + ;
  54739. + return 0;
  54740. +}
  54741. +_ACEOF
  54742. +if ac_fn_c_try_link "$LINENO"; then :
  54743. + ac_cv_lib_iphlpapi_main=yes
  54744. +else
  54745. + ac_cv_lib_iphlpapi_main=no
  54746. +fi
  54747. +rm -f core conftest.err conftest.$ac_objext \
  54748. + conftest$ac_exeext conftest.$ac_ext
  54749. +LIBS=$ac_check_lib_save_LIBS
  54750. +fi
  54751. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iphlpapi_main" >&5
  54752. +$as_echo "$ac_cv_lib_iphlpapi_main" >&6; }
  54753. +if test "x$ac_cv_lib_iphlpapi_main" = x""yes; then :
  54754. + cat >>confdefs.h <<_ACEOF
  54755. +#define HAVE_LIBIPHLPAPI 1
  54756. +_ACEOF
  54757. + LIBS="-liphlpapi $LIBS"
  54758. +fi
  54759. +$as_echo "#define snprintf _snprintf" >>confdefs.h
  54760. + else
  54761. + as_fn_error "need MingW32 package to build under Cygwin" "$LINENO" 5
  54762. + fi
  54763. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinPcap developer's pack" >&5
  54764. +$as_echo_n "checking for WinPcap developer's pack... " >&6; }
  54765. +# Check whether --with-wpdpack was given.
  54766. +if test "${with_wpdpack+set}" = set; then :
  54767. + withval=$with_wpdpack; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  54768. +$as_echo "$withval" >&6; }
  54769. + if test -f $withval/include/packet32.h -a -f $withval/lib/packet.lib; then
  54770. + owd=`pwd`
  54771. + if cd $withval; then withval=`pwd`; cd $owd; fi
  54772. + CFLAGS="$CFLAGS -I$withval/include"
  54773. + LIBS="$LIBS -L$withval/lib -lpacket"
  54774. + else
  54775. + as_fn_error "packet32.h or packet.lib not found in $withval" "$LINENO" 5
  54776. + fi
  54777. +else
  54778. + for dir in ${prefix} ${HOME}/WPdpack ; do
  54779. + if test -f ${dir}/include/packet32.h -a -f ${dir}/lib/packet.lib; then
  54780. + CFLAGS="$CFLAGS -I${dir}/include"
  54781. + LIBS="$LIBS -L${dir}/lib -lpacket"
  54782. + have_pcap=yes
  54783. + break;
  54784. + fi
  54785. + done
  54786. + if test "$have_pcap" != yes; then
  54787. + as_fn_error "WinPcap developer's pack not found" "$LINENO" 5
  54788. + fi
  54789. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  54790. +$as_echo "yes" >&6; }
  54791. +fi
  54792. +fi
  54793. +if test "$CYGWIN" != yes ; then
  54794. + # Most operating systems have gethostbyname() in the default searched
  54795. + # libraries (i.e. libc):
  54796. + ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  54797. +if test "x$ac_cv_func_gethostbyname" = x""yes; then :
  54798. +else
  54799. + # Some OSes (eg. Solaris) place it in libnsl:
  54800. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  54801. +$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  54802. +if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
  54803. + $as_echo_n "(cached) " >&6
  54804. +else
  54805. + ac_check_lib_save_LIBS=$LIBS
  54806. +LIBS="-lnsl $LIBS"
  54807. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54808. +/* end confdefs.h. */
  54809. +/* Override any GCC internal prototype to avoid an error.
  54810. + Use char because int might match the return type of a GCC
  54811. + builtin and then its argument prototype would still apply. */
  54812. +#ifdef __cplusplus
  54813. +extern "C"
  54814. +#endif
  54815. +char gethostbyname ();
  54816. +int
  54817. +main ()
  54818. +{
  54819. +return gethostbyname ();
  54820. + ;
  54821. + return 0;
  54822. +}
  54823. +_ACEOF
  54824. +if ac_fn_c_try_link "$LINENO"; then :
  54825. + ac_cv_lib_nsl_gethostbyname=yes
  54826. +else
  54827. + ac_cv_lib_nsl_gethostbyname=no
  54828. +fi
  54829. +rm -f core conftest.err conftest.$ac_objext \
  54830. + conftest$ac_exeext conftest.$ac_ext
  54831. +LIBS=$ac_check_lib_save_LIBS
  54832. +fi
  54833. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  54834. +$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  54835. +if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
  54836. + cat >>confdefs.h <<_ACEOF
  54837. +#define HAVE_LIBNSL 1
  54838. +_ACEOF
  54839. + LIBS="-lnsl $LIBS"
  54840. +else
  54841. + # Some strange OSes (SINIX) have it in libsocket:
  54842. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
  54843. +$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
  54844. +if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then :
  54845. + $as_echo_n "(cached) " >&6
  54846. +else
  54847. + ac_check_lib_save_LIBS=$LIBS
  54848. +LIBS="-lsocket $LIBS"
  54849. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54850. +/* end confdefs.h. */
  54851. +/* Override any GCC internal prototype to avoid an error.
  54852. + Use char because int might match the return type of a GCC
  54853. + builtin and then its argument prototype would still apply. */
  54854. +#ifdef __cplusplus
  54855. +extern "C"
  54856. +#endif
  54857. +char gethostbyname ();
  54858. +int
  54859. +main ()
  54860. +{
  54861. +return gethostbyname ();
  54862. + ;
  54863. + return 0;
  54864. +}
  54865. +_ACEOF
  54866. +if ac_fn_c_try_link "$LINENO"; then :
  54867. + ac_cv_lib_socket_gethostbyname=yes
  54868. +else
  54869. + ac_cv_lib_socket_gethostbyname=no
  54870. +fi
  54871. +rm -f core conftest.err conftest.$ac_objext \
  54872. + conftest$ac_exeext conftest.$ac_ext
  54873. +LIBS=$ac_check_lib_save_LIBS
  54874. +fi
  54875. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
  54876. +$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
  54877. +if test "x$ac_cv_lib_socket_gethostbyname" = x""yes; then :
  54878. + cat >>confdefs.h <<_ACEOF
  54879. +#define HAVE_LIBSOCKET 1
  54880. +_ACEOF
  54881. + LIBS="-lsocket $LIBS"
  54882. +else
  54883. + # Unfortunately libsocket sometimes depends on libnsl.
  54884. + # AC_CHECK_LIB's API is essentially broken so the
  54885. + # following ugliness is necessary:
  54886. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
  54887. +$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
  54888. +if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then :
  54889. + $as_echo_n "(cached) " >&6
  54890. +else
  54891. + ac_check_lib_save_LIBS=$LIBS
  54892. +LIBS="-lsocket -lnsl $LIBS"
  54893. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54894. +/* end confdefs.h. */
  54895. +/* Override any GCC internal prototype to avoid an error.
  54896. + Use char because int might match the return type of a GCC
  54897. + builtin and then its argument prototype would still apply. */
  54898. +#ifdef __cplusplus
  54899. +extern "C"
  54900. +#endif
  54901. +char gethostbyname ();
  54902. +int
  54903. +main ()
  54904. +{
  54905. +return gethostbyname ();
  54906. + ;
  54907. + return 0;
  54908. +}
  54909. +_ACEOF
  54910. +if ac_fn_c_try_link "$LINENO"; then :
  54911. + ac_cv_lib_socket_gethostbyname=yes
  54912. +else
  54913. + ac_cv_lib_socket_gethostbyname=no
  54914. +fi
  54915. +rm -f core conftest.err conftest.$ac_objext \
  54916. + conftest$ac_exeext conftest.$ac_ext
  54917. +LIBS=$ac_check_lib_save_LIBS
  54918. +fi
  54919. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
  54920. +$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
  54921. +if test "x$ac_cv_lib_socket_gethostbyname" = x""yes; then :
  54922. + LIBS="-lsocket -lnsl $LIBS"
  54923. +else
  54924. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5
  54925. +$as_echo_n "checking for gethostbyname in -lresolv... " >&6; }
  54926. +if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then :
  54927. + $as_echo_n "(cached) " >&6
  54928. +else
  54929. + ac_check_lib_save_LIBS=$LIBS
  54930. +LIBS="-lresolv $LIBS"
  54931. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54932. +/* end confdefs.h. */
  54933. +/* Override any GCC internal prototype to avoid an error.
  54934. + Use char because int might match the return type of a GCC
  54935. + builtin and then its argument prototype would still apply. */
  54936. +#ifdef __cplusplus
  54937. +extern "C"
  54938. +#endif
  54939. +char gethostbyname ();
  54940. +int
  54941. +main ()
  54942. +{
  54943. +return gethostbyname ();
  54944. + ;
  54945. + return 0;
  54946. +}
  54947. +_ACEOF
  54948. +if ac_fn_c_try_link "$LINENO"; then :
  54949. + ac_cv_lib_resolv_gethostbyname=yes
  54950. +else
  54951. + ac_cv_lib_resolv_gethostbyname=no
  54952. +fi
  54953. +rm -f core conftest.err conftest.$ac_objext \
  54954. + conftest$ac_exeext conftest.$ac_ext
  54955. +LIBS=$ac_check_lib_save_LIBS
  54956. +fi
  54957. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname" >&5
  54958. +$as_echo "$ac_cv_lib_resolv_gethostbyname" >&6; }
  54959. +if test "x$ac_cv_lib_resolv_gethostbyname" = x""yes; then :
  54960. + cat >>confdefs.h <<_ACEOF
  54961. +#define HAVE_LIBRESOLV 1
  54962. +_ACEOF
  54963. + LIBS="-lresolv $LIBS"
  54964. -echo "$as_me:$LINENO: checking for Python" >&5
  54965. -echo $ECHO_N "checking for Python... $ECHO_C" >&6
  54966. +fi
  54967. -# Check whether --with-python or --without-python was given.
  54968. -if test "${with_python+set}" = set; then
  54969. - withval="$with_python"
  54970. - case "$withval" in
  54971. - yes)
  54972. - echo "$as_me:$LINENO: result: yes" >&5
  54973. -echo "${ECHO_T}yes" >&6
  54974. - PYTHON="python"
  54975. - ;;
  54976. - no)
  54977. - echo "$as_me:$LINENO: result: no" >&5
  54978. -echo "${ECHO_T}no" >&6
  54979. - ;;
  54980. - *)
  54981. - echo "$as_me:$LINENO: result: $withval" >&5
  54982. -echo "${ECHO_T}$withval" >&6
  54983. - for subdir in . bin; do
  54984. - if test -x $withval/$subdir/python; then
  54985. - owd=`pwd`
  54986. - if cd $withval/$subdir; then withval=`pwd`; cd $owd; fi
  54987. - PYTHON="$withval/python"
  54988. - break
  54989. - fi
  54990. - done
  54991. - if test "x$PYTHON" = "x"; then
  54992. - { { echo "$as_me:$LINENO: error: python not found in $withval" >&5
  54993. -echo "$as_me: error: python not found in $withval" >&2;}
  54994. - { (exit 1); exit 1; }; }
  54995. - fi
  54996. - ;;
  54997. - esac
  54998. +fi
  54999. -fi;
  55000. +fi
  55001. +fi
  55002. +fi
  55003. + ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
  55004. +if test "x$ac_cv_func_socket" = x""yes; then :
  55005. +else
  55006. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  55007. +$as_echo_n "checking for socket in -lsocket... " >&6; }
  55008. +if test "${ac_cv_lib_socket_socket+set}" = set; then :
  55009. + $as_echo_n "(cached) " >&6
  55010. +else
  55011. + ac_check_lib_save_LIBS=$LIBS
  55012. +LIBS="-lsocket $LIBS"
  55013. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55014. +/* end confdefs.h. */
  55015. -if test "x$PYTHON" != "x"; then
  55016. - PYTHON_TRUE=
  55017. - PYTHON_FALSE='#'
  55018. +/* Override any GCC internal prototype to avoid an error.
  55019. + Use char because int might match the return type of a GCC
  55020. + builtin and then its argument prototype would still apply. */
  55021. +#ifdef __cplusplus
  55022. +extern "C"
  55023. +#endif
  55024. +char socket ();
  55025. +int
  55026. +main ()
  55027. +{
  55028. +return socket ();
  55029. + ;
  55030. + return 0;
  55031. +}
  55032. +_ACEOF
  55033. +if ac_fn_c_try_link "$LINENO"; then :
  55034. + ac_cv_lib_socket_socket=yes
  55035. else
  55036. - PYTHON_TRUE='#'
  55037. - PYTHON_FALSE=
  55038. + ac_cv_lib_socket_socket=no
  55039. +fi
  55040. +rm -f core conftest.err conftest.$ac_objext \
  55041. + conftest$ac_exeext conftest.$ac_ext
  55042. +LIBS=$ac_check_lib_save_LIBS
  55043. fi
  55044. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  55045. +$as_echo "$ac_cv_lib_socket_socket" >&6; }
  55046. +if test "x$ac_cv_lib_socket_socket" = x""yes; then :
  55047. + cat >>confdefs.h <<_ACEOF
  55048. +#define HAVE_LIBSOCKET 1
  55049. +_ACEOF
  55050. + LIBS="-lsocket $LIBS"
  55051. +else
  55052. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  55053. +$as_echo_n "checking for socket in -lsocket... " >&6; }
  55054. +if test "${ac_cv_lib_socket_socket+set}" = set; then :
  55055. + $as_echo_n "(cached) " >&6
  55056. +else
  55057. + ac_check_lib_save_LIBS=$LIBS
  55058. +LIBS="-lsocket -lnsl $LIBS"
  55059. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55060. +/* end confdefs.h. */
  55061. -if test "x$TCLINC" != "x"; then
  55062. - TCL_TRUE=
  55063. - TCL_FALSE='#'
  55064. +/* Override any GCC internal prototype to avoid an error.
  55065. + Use char because int might match the return type of a GCC
  55066. + builtin and then its argument prototype would still apply. */
  55067. +#ifdef __cplusplus
  55068. +extern "C"
  55069. +#endif
  55070. +char socket ();
  55071. +int
  55072. +main ()
  55073. +{
  55074. +return socket ();
  55075. + ;
  55076. + return 0;
  55077. +}
  55078. +_ACEOF
  55079. +if ac_fn_c_try_link "$LINENO"; then :
  55080. + ac_cv_lib_socket_socket=yes
  55081. else
  55082. - TCL_TRUE='#'
  55083. - TCL_FALSE=
  55084. + ac_cv_lib_socket_socket=no
  55085. fi
  55086. -
  55087. -
  55088. -if test -r /usr/include/sgidefs.h ; then
  55089. - CPPFLAGS="$CPPFLAGS -D__sgi"
  55090. +rm -f core conftest.err conftest.$ac_objext \
  55091. + conftest$ac_exeext conftest.$ac_ext
  55092. +LIBS=$ac_check_lib_save_LIBS
  55093. +fi
  55094. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  55095. +$as_echo "$ac_cv_lib_socket_socket" >&6; }
  55096. +if test "x$ac_cv_lib_socket_socket" = x""yes; then :
  55097. + LIBS="-lsocket -lnsl $LIBS"
  55098. fi
  55099. -if test "$CYGWIN" = yes ; then
  55100. - if test -d /usr/include/mingw ; then
  55101. - CPPFLAGS="$CPPFLAGS -mno-cygwin"
  55102. - CFLAGS="$CFLAGS -mno-cygwin"
  55103. -cat >>confdefs.h <<\_ACEOF
  55104. -#define WIN32_LEAN_AND_MEAN 1
  55105. -_ACEOF
  55106. +fi
  55107. +fi
  55108. -echo "$as_me:$LINENO: checking for main in -lws2_32" >&5
  55109. -echo $ECHO_N "checking for main in -lws2_32... $ECHO_C" >&6
  55110. -if test "${ac_cv_lib_ws2_32_main+set}" = set; then
  55111. - echo $ECHO_N "(cached) $ECHO_C" >&6
  55112. + # DLPI needs putmsg under HPUX so test for -lstr while we're at it
  55113. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putmsg in -lstr" >&5
  55114. +$as_echo_n "checking for putmsg in -lstr... " >&6; }
  55115. +if test "${ac_cv_lib_str_putmsg+set}" = set; then :
  55116. + $as_echo_n "(cached) " >&6
  55117. else
  55118. ac_check_lib_save_LIBS=$LIBS
  55119. -LIBS="-lws2_32 $LIBS"
  55120. -cat >conftest.$ac_ext <<_ACEOF
  55121. -/* confdefs.h. */
  55122. -_ACEOF
  55123. -cat confdefs.h >>conftest.$ac_ext
  55124. -cat >>conftest.$ac_ext <<_ACEOF
  55125. +LIBS="-lstr $LIBS"
  55126. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55127. /* end confdefs.h. */
  55128. -
  55129. +/* Override any GCC internal prototype to avoid an error.
  55130. + Use char because int might match the return type of a GCC
  55131. + builtin and then its argument prototype would still apply. */
  55132. +#ifdef __cplusplus
  55133. +extern "C"
  55134. +#endif
  55135. +char putmsg ();
  55136. int
  55137. main ()
  55138. {
  55139. -main ();
  55140. +return putmsg ();
  55141. ;
  55142. return 0;
  55143. }
  55144. _ACEOF
  55145. -rm -f conftest.$ac_objext conftest$ac_exeext
  55146. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  55147. - (eval $ac_link) 2>conftest.er1
  55148. - ac_status=$?
  55149. - grep -v '^ *+' conftest.er1 >conftest.err
  55150. - rm -f conftest.er1
  55151. - cat conftest.err >&5
  55152. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55153. - (exit $ac_status); } &&
  55154. - { ac_try='test -z "$ac_c_werror_flag"
  55155. - || test ! -s conftest.err'
  55156. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  55157. - (eval $ac_try) 2>&5
  55158. - ac_status=$?
  55159. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55160. - (exit $ac_status); }; } &&
  55161. - { ac_try='test -s conftest$ac_exeext'
  55162. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  55163. - (eval $ac_try) 2>&5
  55164. - ac_status=$?
  55165. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55166. - (exit $ac_status); }; }; then
  55167. - ac_cv_lib_ws2_32_main=yes
  55168. +if ac_fn_c_try_link "$LINENO"; then :
  55169. + ac_cv_lib_str_putmsg=yes
  55170. else
  55171. - echo "$as_me: failed program was:" >&5
  55172. -sed 's/^/| /' conftest.$ac_ext >&5
  55173. -
  55174. -ac_cv_lib_ws2_32_main=no
  55175. + ac_cv_lib_str_putmsg=no
  55176. fi
  55177. -rm -f conftest.err conftest.$ac_objext \
  55178. - conftest$ac_exeext conftest.$ac_ext
  55179. +rm -f core conftest.err conftest.$ac_objext \
  55180. + conftest$ac_exeext conftest.$ac_ext
  55181. LIBS=$ac_check_lib_save_LIBS
  55182. fi
  55183. -echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_main" >&5
  55184. -echo "${ECHO_T}$ac_cv_lib_ws2_32_main" >&6
  55185. -if test $ac_cv_lib_ws2_32_main = yes; then
  55186. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_str_putmsg" >&5
  55187. +$as_echo "$ac_cv_lib_str_putmsg" >&6; }
  55188. +if test "x$ac_cv_lib_str_putmsg" = x""yes; then :
  55189. cat >>confdefs.h <<_ACEOF
  55190. -#define HAVE_LIBWS2_32 1
  55191. +#define HAVE_LIBSTR 1
  55192. _ACEOF
  55193. - LIBS="-lws2_32 $LIBS"
  55194. + LIBS="-lstr $LIBS"
  55195. fi
  55196. -echo "$as_me:$LINENO: checking for main in -liphlpapi" >&5
  55197. -echo $ECHO_N "checking for main in -liphlpapi... $ECHO_C" >&6
  55198. -if test "${ac_cv_lib_iphlpapi_main+set}" = set; then
  55199. - echo $ECHO_N "(cached) $ECHO_C" >&6
  55200. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for open_mib in -lnm" >&5
  55201. +$as_echo_n "checking for open_mib in -lnm... " >&6; }
  55202. +if test "${ac_cv_lib_nm_open_mib+set}" = set; then :
  55203. + $as_echo_n "(cached) " >&6
  55204. else
  55205. ac_check_lib_save_LIBS=$LIBS
  55206. -LIBS="-liphlpapi $LIBS"
  55207. -cat >conftest.$ac_ext <<_ACEOF
  55208. -/* confdefs.h. */
  55209. -_ACEOF
  55210. -cat confdefs.h >>conftest.$ac_ext
  55211. -cat >>conftest.$ac_ext <<_ACEOF
  55212. +LIBS="-lnm $LIBS"
  55213. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55214. /* end confdefs.h. */
  55215. -
  55216. +/* Override any GCC internal prototype to avoid an error.
  55217. + Use char because int might match the return type of a GCC
  55218. + builtin and then its argument prototype would still apply. */
  55219. +#ifdef __cplusplus
  55220. +extern "C"
  55221. +#endif
  55222. +char open_mib ();
  55223. int
  55224. main ()
  55225. {
  55226. -main ();
  55227. +return open_mib ();
  55228. ;
  55229. return 0;
  55230. }
  55231. _ACEOF
  55232. -rm -f conftest.$ac_objext conftest$ac_exeext
  55233. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  55234. - (eval $ac_link) 2>conftest.er1
  55235. - ac_status=$?
  55236. - grep -v '^ *+' conftest.er1 >conftest.err
  55237. - rm -f conftest.er1
  55238. - cat conftest.err >&5
  55239. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55240. - (exit $ac_status); } &&
  55241. - { ac_try='test -z "$ac_c_werror_flag"
  55242. - || test ! -s conftest.err'
  55243. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  55244. - (eval $ac_try) 2>&5
  55245. - ac_status=$?
  55246. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55247. - (exit $ac_status); }; } &&
  55248. - { ac_try='test -s conftest$ac_exeext'
  55249. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  55250. - (eval $ac_try) 2>&5
  55251. - ac_status=$?
  55252. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55253. - (exit $ac_status); }; }; then
  55254. - ac_cv_lib_iphlpapi_main=yes
  55255. +if ac_fn_c_try_link "$LINENO"; then :
  55256. + ac_cv_lib_nm_open_mib=yes
  55257. else
  55258. - echo "$as_me: failed program was:" >&5
  55259. -sed 's/^/| /' conftest.$ac_ext >&5
  55260. -
  55261. -ac_cv_lib_iphlpapi_main=no
  55262. + ac_cv_lib_nm_open_mib=no
  55263. fi
  55264. -rm -f conftest.err conftest.$ac_objext \
  55265. - conftest$ac_exeext conftest.$ac_ext
  55266. +rm -f core conftest.err conftest.$ac_objext \
  55267. + conftest$ac_exeext conftest.$ac_ext
  55268. LIBS=$ac_check_lib_save_LIBS
  55269. fi
  55270. -echo "$as_me:$LINENO: result: $ac_cv_lib_iphlpapi_main" >&5
  55271. -echo "${ECHO_T}$ac_cv_lib_iphlpapi_main" >&6
  55272. -if test $ac_cv_lib_iphlpapi_main = yes; then
  55273. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nm_open_mib" >&5
  55274. +$as_echo "$ac_cv_lib_nm_open_mib" >&6; }
  55275. +if test "x$ac_cv_lib_nm_open_mib" = x""yes; then :
  55276. cat >>confdefs.h <<_ACEOF
  55277. -#define HAVE_LIBIPHLPAPI 1
  55278. +#define HAVE_LIBNM 1
  55279. _ACEOF
  55280. - LIBS="-liphlpapi $LIBS"
  55281. + LIBS="-lnm $LIBS"
  55282. fi
  55283. +fi
  55284. -cat >>confdefs.h <<\_ACEOF
  55285. -#define snprintf _snprintf
  55286. -_ACEOF
  55287. -
  55288. - else
  55289. - { { echo "$as_me:$LINENO: error: need MingW32 package to build under Cygwin" >&5
  55290. -echo "$as_me: error: need MingW32 package to build under Cygwin" >&2;}
  55291. - { (exit 1); exit 1; }; }
  55292. - fi
  55293. - echo "$as_me:$LINENO: checking for WinPcap developer's pack" >&5
  55294. -echo $ECHO_N "checking for WinPcap developer's pack... $ECHO_C" >&6
  55295. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Check" >&5
  55296. +$as_echo_n "checking for Check... " >&6; }
  55297. -# Check whether --with-wpdpack or --without-wpdpack was given.
  55298. -if test "${with_wpdpack+set}" = set; then
  55299. - withval="$with_wpdpack"
  55300. - echo "$as_me:$LINENO: result: $withval" >&5
  55301. -echo "${ECHO_T}$withval" >&6
  55302. - if test -f $withval/include/packet32.h -a -f $withval/lib/packet.lib; then
  55303. - owd=`pwd`
  55304. - if cd $withval; then withval=`pwd`; cd $owd; fi
  55305. - CFLAGS="$CFLAGS -I$withval/include"
  55306. - LIBS="$LIBS -L$withval/lib -lpacket"
  55307. - else
  55308. - { { echo "$as_me:$LINENO: error: packet32.h or packet.lib not found in $withval" >&5
  55309. -echo "$as_me: error: packet32.h or packet.lib not found in $withval" >&2;}
  55310. - { (exit 1); exit 1; }; }
  55311. - fi
  55312. +# Check whether --with-check was given.
  55313. +if test "${with_check+set}" = set; then :
  55314. + withval=$with_check; case "$withval" in
  55315. + yes|no)
  55316. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  55317. +$as_echo "no" >&6; }
  55318. + ;;
  55319. + *)
  55320. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  55321. +$as_echo "$withval" >&6; }
  55322. + if test -f $withval/include/check.h -a -f $withval/lib/libcheck.a; then
  55323. + owd=`pwd`
  55324. + if cd $withval; then withval=`pwd`; cd $owd; fi
  55325. + CHECKINC="-I$withval/include"
  55326. + CHECKLIB="-L$withval/lib -lcheck"
  55327. + elif test -f $withval/src/check.h -a -f $withval/src/libcheck.a; then
  55328. + owd=`pwd`
  55329. + if cd $withval; then withval=`pwd`; cd $owd; fi
  55330. + CHECKINC="-I$withval/src"
  55331. + CHECKLIB="-L$withval/src -lcheck"
  55332. + else
  55333. + as_fn_error "check.h or libcheck.a not found in $withval" "$LINENO" 5
  55334. + fi
  55335. + ;;
  55336. + esac
  55337. else
  55338. - for dir in ${prefix} ${HOME}/WPdpack ; do
  55339. - if test -f ${dir}/include/packet32.h -a -f ${dir}/lib/packet.lib; then
  55340. - CFLAGS="$CFLAGS -I${dir}/include"
  55341. - LIBS="$LIBS -L${dir}/lib -lpacket"
  55342. - have_pcap=yes
  55343. - break;
  55344. - fi
  55345. - done
  55346. - if test "$have_pcap" != yes; then
  55347. - { { echo "$as_me:$LINENO: error: WinPcap developer's pack not found" >&5
  55348. -echo "$as_me: error: WinPcap developer's pack not found" >&2;}
  55349. - { (exit 1); exit 1; }; }
  55350. - fi
  55351. - echo "$as_me:$LINENO: result: yes" >&5
  55352. -echo "${ECHO_T}yes" >&6
  55353. -fi;
  55354. -fi
  55355. + if test -f ${prefix}/include/check.h -a -f ${prefix}/lib/libcheck.a; then
  55356. + CHECKINC="-I${prefix}/include"
  55357. + CHECKLIB="-L${prefix}/lib -lcheck"
  55358. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  55359. +$as_echo "yes" >&6; }
  55360. + else
  55361. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  55362. +$as_echo "no" >&6; }
  55363. + fi
  55364. -if test "$CYGWIN" != yes ; then
  55365. +fi
  55366. - # Most operating systems have gethostbyname() in the default searched
  55367. - # libraries (i.e. libc):
  55368. - echo "$as_me:$LINENO: checking for gethostbyname" >&5
  55369. -echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
  55370. -if test "${ac_cv_func_gethostbyname+set}" = set; then
  55371. - echo $ECHO_N "(cached) $ECHO_C" >&6
  55372. -else
  55373. - cat >conftest.$ac_ext <<_ACEOF
  55374. -/* confdefs.h. */
  55375. -_ACEOF
  55376. -cat confdefs.h >>conftest.$ac_ext
  55377. -cat >>conftest.$ac_ext <<_ACEOF
  55378. -/* end confdefs.h. */
  55379. -/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
  55380. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  55381. -#define gethostbyname innocuous_gethostbyname
  55382. -/* System header to define __stub macros and hopefully few prototypes,
  55383. - which can conflict with char gethostbyname (); below.
  55384. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  55385. - <limits.h> exists even on freestanding compilers. */
  55386. -#ifdef __STDC__
  55387. -# include <limits.h>
  55388. -#else
  55389. -# include <assert.h>
  55390. -#endif
  55391. + if test "x$CHECKLIB" != "x"; then
  55392. + HAVE_CHECK_TRUE=
  55393. + HAVE_CHECK_FALSE='#'
  55394. +else
  55395. + HAVE_CHECK_TRUE='#'
  55396. + HAVE_CHECK_FALSE=
  55397. +fi
  55398. -#undef gethostbyname
  55399. -/* Override any gcc2 internal prototype to avoid an error. */
  55400. -#ifdef __cplusplus
  55401. -extern "C"
  55402. -{
  55403. -#endif
  55404. -/* We use char because int might match the return type of a gcc2
  55405. - builtin and then its argument prototype would still apply. */
  55406. -char gethostbyname ();
  55407. -/* The GNU C library defines this for functions which it implements
  55408. - to always fail with ENOSYS. Some functions are actually named
  55409. - something starting with __ and the normal name is an alias. */
  55410. -#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  55411. -choke me
  55412. -#else
  55413. -char (*f) () = gethostbyname;
  55414. -#endif
  55415. -#ifdef __cplusplus
  55416. -}
  55417. -#endif
  55418. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  55419. +$as_echo_n "checking for ANSI C header files... " >&6; }
  55420. +if test "${ac_cv_header_stdc+set}" = set; then :
  55421. + $as_echo_n "(cached) " >&6
  55422. +else
  55423. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55424. +/* end confdefs.h. */
  55425. +#include <stdlib.h>
  55426. +#include <stdarg.h>
  55427. +#include <string.h>
  55428. +#include <float.h>
  55429. int
  55430. main ()
  55431. {
  55432. -return f != gethostbyname;
  55433. +
  55434. ;
  55435. return 0;
  55436. }
  55437. _ACEOF
  55438. -rm -f conftest.$ac_objext conftest$ac_exeext
  55439. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  55440. - (eval $ac_link) 2>conftest.er1
  55441. - ac_status=$?
  55442. - grep -v '^ *+' conftest.er1 >conftest.err
  55443. - rm -f conftest.er1
  55444. - cat conftest.err >&5
  55445. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55446. - (exit $ac_status); } &&
  55447. - { ac_try='test -z "$ac_c_werror_flag"
  55448. - || test ! -s conftest.err'
  55449. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  55450. - (eval $ac_try) 2>&5
  55451. - ac_status=$?
  55452. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55453. - (exit $ac_status); }; } &&
  55454. - { ac_try='test -s conftest$ac_exeext'
  55455. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  55456. - (eval $ac_try) 2>&5
  55457. - ac_status=$?
  55458. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55459. - (exit $ac_status); }; }; then
  55460. - ac_cv_func_gethostbyname=yes
  55461. +if ac_fn_c_try_compile "$LINENO"; then :
  55462. + ac_cv_header_stdc=yes
  55463. else
  55464. - echo "$as_me: failed program was:" >&5
  55465. -sed 's/^/| /' conftest.$ac_ext >&5
  55466. + ac_cv_header_stdc=no
  55467. +fi
  55468. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55469. +
  55470. +if test $ac_cv_header_stdc = yes; then
  55471. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  55472. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55473. +/* end confdefs.h. */
  55474. +#include <string.h>
  55475. -ac_cv_func_gethostbyname=no
  55476. +_ACEOF
  55477. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  55478. + $EGREP "memchr" >/dev/null 2>&1; then :
  55479. +
  55480. +else
  55481. + ac_cv_header_stdc=no
  55482. fi
  55483. -rm -f conftest.err conftest.$ac_objext \
  55484. - conftest$ac_exeext conftest.$ac_ext
  55485. +rm -f conftest*
  55486. +
  55487. fi
  55488. -echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
  55489. -echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
  55490. -if test $ac_cv_func_gethostbyname = yes; then
  55491. - :
  55492. +
  55493. +if test $ac_cv_header_stdc = yes; then
  55494. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  55495. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55496. +/* end confdefs.h. */
  55497. +#include <stdlib.h>
  55498. +
  55499. +_ACEOF
  55500. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  55501. + $EGREP "free" >/dev/null 2>&1; then :
  55502. +
  55503. else
  55504. - # Some OSes (eg. Solaris) place it in libnsl:
  55505. + ac_cv_header_stdc=no
  55506. +fi
  55507. +rm -f conftest*
  55508. +
  55509. +fi
  55510. -echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  55511. -echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  55512. -if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  55513. - echo $ECHO_N "(cached) $ECHO_C" >&6
  55514. +if test $ac_cv_header_stdc = yes; then
  55515. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  55516. + if test "$cross_compiling" = yes; then :
  55517. + :
  55518. else
  55519. - ac_check_lib_save_LIBS=$LIBS
  55520. -LIBS="-lnsl $LIBS"
  55521. -cat >conftest.$ac_ext <<_ACEOF
  55522. -/* confdefs.h. */
  55523. -_ACEOF
  55524. -cat confdefs.h >>conftest.$ac_ext
  55525. -cat >>conftest.$ac_ext <<_ACEOF
  55526. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55527. /* end confdefs.h. */
  55528. -
  55529. -/* Override any gcc2 internal prototype to avoid an error. */
  55530. -#ifdef __cplusplus
  55531. -extern "C"
  55532. +#include <ctype.h>
  55533. +#include <stdlib.h>
  55534. +#if ((' ' & 0x0FF) == 0x020)
  55535. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  55536. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  55537. +#else
  55538. +# define ISLOWER(c) \
  55539. + (('a' <= (c) && (c) <= 'i') \
  55540. + || ('j' <= (c) && (c) <= 'r') \
  55541. + || ('s' <= (c) && (c) <= 'z'))
  55542. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  55543. #endif
  55544. -/* We use char because int might match the return type of a gcc2
  55545. - builtin and then its argument prototype would still apply. */
  55546. -char gethostbyname ();
  55547. +
  55548. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  55549. int
  55550. main ()
  55551. {
  55552. -gethostbyname ();
  55553. - ;
  55554. + int i;
  55555. + for (i = 0; i < 256; i++)
  55556. + if (XOR (islower (i), ISLOWER (i))
  55557. + || toupper (i) != TOUPPER (i))
  55558. + return 2;
  55559. return 0;
  55560. }
  55561. _ACEOF
  55562. -rm -f conftest.$ac_objext conftest$ac_exeext
  55563. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  55564. - (eval $ac_link) 2>conftest.er1
  55565. - ac_status=$?
  55566. - grep -v '^ *+' conftest.er1 >conftest.err
  55567. - rm -f conftest.er1
  55568. - cat conftest.err >&5
  55569. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55570. - (exit $ac_status); } &&
  55571. - { ac_try='test -z "$ac_c_werror_flag"
  55572. - || test ! -s conftest.err'
  55573. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  55574. - (eval $ac_try) 2>&5
  55575. - ac_status=$?
  55576. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55577. - (exit $ac_status); }; } &&
  55578. - { ac_try='test -s conftest$ac_exeext'
  55579. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  55580. - (eval $ac_try) 2>&5
  55581. - ac_status=$?
  55582. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55583. - (exit $ac_status); }; }; then
  55584. - ac_cv_lib_nsl_gethostbyname=yes
  55585. +if ac_fn_c_try_run "$LINENO"; then :
  55586. +
  55587. else
  55588. - echo "$as_me: failed program was:" >&5
  55589. -sed 's/^/| /' conftest.$ac_ext >&5
  55590. + ac_cv_header_stdc=no
  55591. +fi
  55592. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  55593. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  55594. +fi
  55595. -ac_cv_lib_nsl_gethostbyname=no
  55596. fi
  55597. -rm -f conftest.err conftest.$ac_objext \
  55598. - conftest$ac_exeext conftest.$ac_ext
  55599. -LIBS=$ac_check_lib_save_LIBS
  55600. fi
  55601. -echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  55602. -echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  55603. -if test $ac_cv_lib_nsl_gethostbyname = yes; then
  55604. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  55605. +$as_echo "$ac_cv_header_stdc" >&6; }
  55606. +if test $ac_cv_header_stdc = yes; then
  55607. +
  55608. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  55609. +
  55610. +fi
  55611. +
  55612. +if test "$CYGWIN" = yes ; then
  55613. + for ac_header in Iphlpapi.h winsock2.h
  55614. +do :
  55615. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  55616. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  55617. +eval as_val=\$$as_ac_Header
  55618. + if test "x$as_val" = x""yes; then :
  55619. cat >>confdefs.h <<_ACEOF
  55620. -#define HAVE_LIBNSL 1
  55621. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  55622. _ACEOF
  55623. - LIBS="-lnsl $LIBS"
  55624. +fi
  55625. -else
  55626. - # Some strange OSes (SINIX) have it in libsocket:
  55627. +done
  55628. -echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
  55629. -echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
  55630. -if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
  55631. - echo $ECHO_N "(cached) $ECHO_C" >&6
  55632. else
  55633. - ac_check_lib_save_LIBS=$LIBS
  55634. -LIBS="-lsocket $LIBS"
  55635. -cat >conftest.$ac_ext <<_ACEOF
  55636. -/* confdefs.h. */
  55637. + for ac_header in fcntl.h unistd.h
  55638. +do :
  55639. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  55640. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  55641. +eval as_val=\$$as_ac_Header
  55642. + if test "x$as_val" = x""yes; then :
  55643. + cat >>confdefs.h <<_ACEOF
  55644. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  55645. _ACEOF
  55646. -cat confdefs.h >>conftest.$ac_ext
  55647. -cat >>conftest.$ac_ext <<_ACEOF
  55648. -/* end confdefs.h. */
  55649. -/* Override any gcc2 internal prototype to avoid an error. */
  55650. -#ifdef __cplusplus
  55651. -extern "C"
  55652. -#endif
  55653. -/* We use char because int might match the return type of a gcc2
  55654. - builtin and then its argument prototype would still apply. */
  55655. -char gethostbyname ();
  55656. -int
  55657. -main ()
  55658. -{
  55659. -gethostbyname ();
  55660. - ;
  55661. - return 0;
  55662. -}
  55663. +fi
  55664. +
  55665. +done
  55666. +
  55667. + for ac_header in sys/bufmod.h sys/dlpi.h sys/dlpihdr.h sys/dlpi_ext.h \
  55668. + sys/ioctl.h sys/mib.h sys/ndd_var.h sys/socket.h sys/sockio.h \
  55669. + sys/sysctl.h sys/time.h
  55670. +do :
  55671. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  55672. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  55673. +eval as_val=\$$as_ac_Header
  55674. + if test "x$as_val" = x""yes; then :
  55675. + cat >>confdefs.h <<_ACEOF
  55676. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  55677. _ACEOF
  55678. -rm -f conftest.$ac_objext conftest$ac_exeext
  55679. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  55680. - (eval $ac_link) 2>conftest.er1
  55681. - ac_status=$?
  55682. - grep -v '^ *+' conftest.er1 >conftest.err
  55683. - rm -f conftest.er1
  55684. - cat conftest.err >&5
  55685. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55686. - (exit $ac_status); } &&
  55687. - { ac_try='test -z "$ac_c_werror_flag"
  55688. - || test ! -s conftest.err'
  55689. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  55690. - (eval $ac_try) 2>&5
  55691. - ac_status=$?
  55692. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55693. - (exit $ac_status); }; } &&
  55694. - { ac_try='test -s conftest$ac_exeext'
  55695. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  55696. - (eval $ac_try) 2>&5
  55697. - ac_status=$?
  55698. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55699. - (exit $ac_status); }; }; then
  55700. - ac_cv_lib_socket_gethostbyname=yes
  55701. -else
  55702. - echo "$as_me: failed program was:" >&5
  55703. -sed 's/^/| /' conftest.$ac_ext >&5
  55704. -ac_cv_lib_socket_gethostbyname=no
  55705. fi
  55706. -rm -f conftest.err conftest.$ac_objext \
  55707. - conftest$ac_exeext conftest.$ac_ext
  55708. -LIBS=$ac_check_lib_save_LIBS
  55709. -fi
  55710. -echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
  55711. -echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
  55712. -if test $ac_cv_lib_socket_gethostbyname = yes; then
  55713. +
  55714. +done
  55715. +
  55716. + for ac_header in net/bpf.h net/if.h net/if_var.h \
  55717. + net/if_arp.h net/if_dl.h net/pfilt.h \
  55718. + net/pfvar.h net/radix.h net/raw.h net/route.h netinet/in_var.h \
  55719. + net/if_tun.h linux/if_tun.h netinet/ip_fw.h linux/ip_fw.h \
  55720. + linux/ip_fwchains.h linux/netfilter_ipv4/ipchains_core.h
  55721. +do :
  55722. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  55723. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  55724. +eval as_val=\$$as_ac_Header
  55725. + if test "x$as_val" = x""yes; then :
  55726. cat >>confdefs.h <<_ACEOF
  55727. -#define HAVE_LIBSOCKET 1
  55728. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  55729. _ACEOF
  55730. - LIBS="-lsocket $LIBS"
  55731. +fi
  55732. -else
  55733. - # Unfortunately libsocket sometimes depends on libnsl.
  55734. - # AC_CHECK_LIB's API is essentially broken so the
  55735. - # following ugliness is necessary:
  55736. - echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
  55737. -echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
  55738. -if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
  55739. - echo $ECHO_N "(cached) $ECHO_C" >&6
  55740. -else
  55741. - ac_check_lib_save_LIBS=$LIBS
  55742. -LIBS="-lsocket -lnsl $LIBS"
  55743. -cat >conftest.$ac_ext <<_ACEOF
  55744. -/* confdefs.h. */
  55745. +done
  55746. +
  55747. + for ac_header in ip_fil_compat.h netinet/ip_fil_compat.h ip_compat.h \
  55748. + netinet/ip_compat.h ip_fil.h netinet/ip_fil.h
  55749. +do :
  55750. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  55751. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  55752. +eval as_val=\$$as_ac_Header
  55753. + if test "x$as_val" = x""yes; then :
  55754. + cat >>confdefs.h <<_ACEOF
  55755. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  55756. _ACEOF
  55757. -cat confdefs.h >>conftest.$ac_ext
  55758. -cat >>conftest.$ac_ext <<_ACEOF
  55759. -/* end confdefs.h. */
  55760. -/* Override any gcc2 internal prototype to avoid an error. */
  55761. -#ifdef __cplusplus
  55762. -extern "C"
  55763. -#endif
  55764. -/* We use char because int might match the return type of a gcc2
  55765. - builtin and then its argument prototype would still apply. */
  55766. -char gethostbyname ();
  55767. -int
  55768. -main ()
  55769. -{
  55770. -gethostbyname ();
  55771. - ;
  55772. - return 0;
  55773. -}
  55774. +fi
  55775. +
  55776. +done
  55777. +
  55778. + for ac_header in hpsecurity.h stropts.h
  55779. +do :
  55780. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  55781. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  55782. +eval as_val=\$$as_ac_Header
  55783. + if test "x$as_val" = x""yes; then :
  55784. + cat >>confdefs.h <<_ACEOF
  55785. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  55786. _ACEOF
  55787. -rm -f conftest.$ac_objext conftest$ac_exeext
  55788. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  55789. - (eval $ac_link) 2>conftest.er1
  55790. - ac_status=$?
  55791. - grep -v '^ *+' conftest.er1 >conftest.err
  55792. - rm -f conftest.er1
  55793. - cat conftest.err >&5
  55794. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55795. - (exit $ac_status); } &&
  55796. - { ac_try='test -z "$ac_c_werror_flag"
  55797. - || test ! -s conftest.err'
  55798. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  55799. - (eval $ac_try) 2>&5
  55800. - ac_status=$?
  55801. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55802. - (exit $ac_status); }; } &&
  55803. - { ac_try='test -s conftest$ac_exeext'
  55804. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  55805. - (eval $ac_try) 2>&5
  55806. - ac_status=$?
  55807. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55808. - (exit $ac_status); }; }; then
  55809. - ac_cv_lib_socket_gethostbyname=yes
  55810. -else
  55811. - echo "$as_me: failed program was:" >&5
  55812. -sed 's/^/| /' conftest.$ac_ext >&5
  55813. -ac_cv_lib_socket_gethostbyname=no
  55814. fi
  55815. -rm -f conftest.err conftest.$ac_objext \
  55816. - conftest$ac_exeext conftest.$ac_ext
  55817. -LIBS=$ac_check_lib_save_LIBS
  55818. +
  55819. +done
  55820. +
  55821. fi
  55822. -echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
  55823. -echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
  55824. -if test $ac_cv_lib_socket_gethostbyname = yes; then
  55825. - LIBS="-lsocket -lnsl $LIBS"
  55826. -else
  55827. -echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
  55828. -echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
  55829. -if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
  55830. - echo $ECHO_N "(cached) $ECHO_C" >&6
  55831. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  55832. +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  55833. +if test "${ac_cv_c_const+set}" = set; then :
  55834. + $as_echo_n "(cached) " >&6
  55835. else
  55836. - ac_check_lib_save_LIBS=$LIBS
  55837. -LIBS="-lresolv $LIBS"
  55838. -cat >conftest.$ac_ext <<_ACEOF
  55839. -/* confdefs.h. */
  55840. -_ACEOF
  55841. -cat confdefs.h >>conftest.$ac_ext
  55842. -cat >>conftest.$ac_ext <<_ACEOF
  55843. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55844. /* end confdefs.h. */
  55845. -/* Override any gcc2 internal prototype to avoid an error. */
  55846. -#ifdef __cplusplus
  55847. -extern "C"
  55848. -#endif
  55849. -/* We use char because int might match the return type of a gcc2
  55850. - builtin and then its argument prototype would still apply. */
  55851. -char gethostbyname ();
  55852. int
  55853. main ()
  55854. {
  55855. -gethostbyname ();
  55856. +/* FIXME: Include the comments suggested by Paul. */
  55857. +#ifndef __cplusplus
  55858. + /* Ultrix mips cc rejects this. */
  55859. + typedef int charset[2];
  55860. + const charset cs;
  55861. + /* SunOS 4.1.1 cc rejects this. */
  55862. + char const *const *pcpcc;
  55863. + char **ppc;
  55864. + /* NEC SVR4.0.2 mips cc rejects this. */
  55865. + struct point {int x, y;};
  55866. + static struct point const zero = {0,0};
  55867. + /* AIX XL C 1.02.0.0 rejects this.
  55868. + It does not let you subtract one const X* pointer from another in
  55869. + an arm of an if-expression whose if-part is not a constant
  55870. + expression */
  55871. + const char *g = "string";
  55872. + pcpcc = &g + (g ? g-g : 0);
  55873. + /* HPUX 7.0 cc rejects these. */
  55874. + ++pcpcc;
  55875. + ppc = (char**) pcpcc;
  55876. + pcpcc = (char const *const *) ppc;
  55877. + { /* SCO 3.2v4 cc rejects this. */
  55878. + char *t;
  55879. + char const *s = 0 ? (char *) 0 : (char const *) 0;
  55880. +
  55881. + *t++ = 0;
  55882. + if (s) return 0;
  55883. + }
  55884. + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  55885. + int x[] = {25, 17};
  55886. + const int *foo = &x[0];
  55887. + ++foo;
  55888. + }
  55889. + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  55890. + typedef const int *iptr;
  55891. + iptr p = 0;
  55892. + ++p;
  55893. + }
  55894. + { /* AIX XL C 1.02.0.0 rejects this saying
  55895. + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  55896. + struct s { int j; const int *ap[3]; };
  55897. + struct s *b; b->j = 5;
  55898. + }
  55899. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  55900. + const int foo = 10;
  55901. + if (!foo) return 0;
  55902. + }
  55903. + return !cs[0] && !zero.x;
  55904. +#endif
  55905. +
  55906. ;
  55907. return 0;
  55908. }
  55909. _ACEOF
  55910. -rm -f conftest.$ac_objext conftest$ac_exeext
  55911. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  55912. - (eval $ac_link) 2>conftest.er1
  55913. - ac_status=$?
  55914. - grep -v '^ *+' conftest.er1 >conftest.err
  55915. - rm -f conftest.er1
  55916. - cat conftest.err >&5
  55917. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55918. - (exit $ac_status); } &&
  55919. - { ac_try='test -z "$ac_c_werror_flag"
  55920. - || test ! -s conftest.err'
  55921. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  55922. - (eval $ac_try) 2>&5
  55923. - ac_status=$?
  55924. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55925. - (exit $ac_status); }; } &&
  55926. - { ac_try='test -s conftest$ac_exeext'
  55927. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  55928. - (eval $ac_try) 2>&5
  55929. - ac_status=$?
  55930. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  55931. - (exit $ac_status); }; }; then
  55932. - ac_cv_lib_resolv_gethostbyname=yes
  55933. +if ac_fn_c_try_compile "$LINENO"; then :
  55934. + ac_cv_c_const=yes
  55935. else
  55936. - echo "$as_me: failed program was:" >&5
  55937. -sed 's/^/| /' conftest.$ac_ext >&5
  55938. -
  55939. -ac_cv_lib_resolv_gethostbyname=no
  55940. + ac_cv_c_const=no
  55941. fi
  55942. -rm -f conftest.err conftest.$ac_objext \
  55943. - conftest$ac_exeext conftest.$ac_ext
  55944. -LIBS=$ac_check_lib_save_LIBS
  55945. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55946. fi
  55947. -echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
  55948. -echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
  55949. -if test $ac_cv_lib_resolv_gethostbyname = yes; then
  55950. - cat >>confdefs.h <<_ACEOF
  55951. -#define HAVE_LIBRESOLV 1
  55952. -_ACEOF
  55953. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  55954. +$as_echo "$ac_cv_c_const" >&6; }
  55955. +if test $ac_cv_c_const = no; then
  55956. - LIBS="-lresolv $LIBS"
  55957. +$as_echo "#define const /**/" >>confdefs.h
  55958. fi
  55959. -fi
  55960. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  55961. +$as_echo_n "checking for inline... " >&6; }
  55962. +if test "${ac_cv_c_inline+set}" = set; then :
  55963. + $as_echo_n "(cached) " >&6
  55964. +else
  55965. + ac_cv_c_inline=no
  55966. +for ac_kw in inline __inline__ __inline; do
  55967. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55968. +/* end confdefs.h. */
  55969. +#ifndef __cplusplus
  55970. +typedef int foo_t;
  55971. +static $ac_kw foo_t static_foo () {return 0; }
  55972. +$ac_kw foo_t foo () {return 0; }
  55973. +#endif
  55974. +_ACEOF
  55975. +if ac_fn_c_try_compile "$LINENO"; then :
  55976. + ac_cv_c_inline=$ac_kw
  55977. fi
  55978. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55979. + test "$ac_cv_c_inline" != no && break
  55980. +done
  55981. fi
  55982. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  55983. +$as_echo "$ac_cv_c_inline" >&6; }
  55984. -fi
  55985. +case $ac_cv_c_inline in
  55986. + inline | yes) ;;
  55987. + *)
  55988. + case $ac_cv_c_inline in
  55989. + no) ac_val=;;
  55990. + *) ac_val=$ac_cv_c_inline;;
  55991. + esac
  55992. + cat >>confdefs.h <<_ACEOF
  55993. +#ifndef __cplusplus
  55994. +#define inline $ac_val
  55995. +#endif
  55996. +_ACEOF
  55997. + ;;
  55998. +esac
  55999. +
  56000. +ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  56001. +if test "x$ac_cv_type_pid_t" = x""yes; then :
  56002. - echo "$as_me:$LINENO: checking for socket" >&5
  56003. -echo $ECHO_N "checking for socket... $ECHO_C" >&6
  56004. -if test "${ac_cv_func_socket+set}" = set; then
  56005. - echo $ECHO_N "(cached) $ECHO_C" >&6
  56006. else
  56007. - cat >conftest.$ac_ext <<_ACEOF
  56008. -/* confdefs.h. */
  56009. -_ACEOF
  56010. -cat confdefs.h >>conftest.$ac_ext
  56011. -cat >>conftest.$ac_ext <<_ACEOF
  56012. -/* end confdefs.h. */
  56013. -/* Define socket to an innocuous variant, in case <limits.h> declares socket.
  56014. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  56015. -#define socket innocuous_socket
  56016. -/* System header to define __stub macros and hopefully few prototypes,
  56017. - which can conflict with char socket (); below.
  56018. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  56019. - <limits.h> exists even on freestanding compilers. */
  56020. +cat >>confdefs.h <<_ACEOF
  56021. +#define pid_t int
  56022. +_ACEOF
  56023. -#ifdef __STDC__
  56024. -# include <limits.h>
  56025. -#else
  56026. -# include <assert.h>
  56027. -#endif
  56028. +fi
  56029. -#undef socket
  56030. +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  56031. +if test "x$ac_cv_type_size_t" = x""yes; then :
  56032. -/* Override any gcc2 internal prototype to avoid an error. */
  56033. -#ifdef __cplusplus
  56034. -extern "C"
  56035. -{
  56036. -#endif
  56037. -/* We use char because int might match the return type of a gcc2
  56038. - builtin and then its argument prototype would still apply. */
  56039. -char socket ();
  56040. -/* The GNU C library defines this for functions which it implements
  56041. - to always fail with ENOSYS. Some functions are actually named
  56042. - something starting with __ and the normal name is an alias. */
  56043. -#if defined (__stub_socket) || defined (__stub___socket)
  56044. -choke me
  56045. -#else
  56046. -char (*f) () = socket;
  56047. -#endif
  56048. -#ifdef __cplusplus
  56049. -}
  56050. -#endif
  56051. +else
  56052. -int
  56053. -main ()
  56054. -{
  56055. -return f != socket;
  56056. - ;
  56057. - return 0;
  56058. -}
  56059. +cat >>confdefs.h <<_ACEOF
  56060. +#define size_t unsigned int
  56061. _ACEOF
  56062. -rm -f conftest.$ac_objext conftest$ac_exeext
  56063. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  56064. - (eval $ac_link) 2>conftest.er1
  56065. - ac_status=$?
  56066. - grep -v '^ *+' conftest.er1 >conftest.err
  56067. - rm -f conftest.er1
  56068. - cat conftest.err >&5
  56069. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56070. - (exit $ac_status); } &&
  56071. - { ac_try='test -z "$ac_c_werror_flag"
  56072. - || test ! -s conftest.err'
  56073. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  56074. - (eval $ac_try) 2>&5
  56075. - ac_status=$?
  56076. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56077. - (exit $ac_status); }; } &&
  56078. - { ac_try='test -s conftest$ac_exeext'
  56079. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  56080. - (eval $ac_try) 2>&5
  56081. - ac_status=$?
  56082. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56083. - (exit $ac_status); }; }; then
  56084. - ac_cv_func_socket=yes
  56085. -else
  56086. - echo "$as_me: failed program was:" >&5
  56087. -sed 's/^/| /' conftest.$ac_ext >&5
  56088. -ac_cv_func_socket=no
  56089. -fi
  56090. -rm -f conftest.err conftest.$ac_objext \
  56091. - conftest$ac_exeext conftest.$ac_ext
  56092. fi
  56093. -echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
  56094. -echo "${ECHO_T}$ac_cv_func_socket" >&6
  56095. -if test $ac_cv_func_socket = yes; then
  56096. - :
  56097. -else
  56098. -echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  56099. -echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  56100. -if test "${ac_cv_lib_socket_socket+set}" = set; then
  56101. - echo $ECHO_N "(cached) $ECHO_C" >&6
  56102. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6 struct in <netinet/in.h>" >&5
  56103. +$as_echo_n "checking for sockaddr_in6 struct in <netinet/in.h>... " >&6; }
  56104. + if test "${ac_cv_dnet_netinet_in_h_has_sockaddr_in6+set}" = set; then :
  56105. + $as_echo_n "(cached) " >&6
  56106. else
  56107. - ac_check_lib_save_LIBS=$LIBS
  56108. -LIBS="-lsocket $LIBS"
  56109. -cat >conftest.$ac_ext <<_ACEOF
  56110. -/* confdefs.h. */
  56111. -_ACEOF
  56112. -cat confdefs.h >>conftest.$ac_ext
  56113. -cat >>conftest.$ac_ext <<_ACEOF
  56114. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56115. /* end confdefs.h. */
  56116. -/* Override any gcc2 internal prototype to avoid an error. */
  56117. -#ifdef __cplusplus
  56118. -extern "C"
  56119. -#endif
  56120. -/* We use char because int might match the return type of a gcc2
  56121. - builtin and then its argument prototype would still apply. */
  56122. -char socket ();
  56123. +# include <sys/types.h>
  56124. +# include <sys/socket.h>
  56125. +# include <netinet/in.h>
  56126. int
  56127. main ()
  56128. {
  56129. -socket ();
  56130. +struct sockaddr_in6 sin6; sin6.sin6_family = AF_INET6;
  56131. ;
  56132. return 0;
  56133. }
  56134. _ACEOF
  56135. -rm -f conftest.$ac_objext conftest$ac_exeext
  56136. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  56137. - (eval $ac_link) 2>conftest.er1
  56138. - ac_status=$?
  56139. - grep -v '^ *+' conftest.er1 >conftest.err
  56140. - rm -f conftest.er1
  56141. - cat conftest.err >&5
  56142. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56143. - (exit $ac_status); } &&
  56144. - { ac_try='test -z "$ac_c_werror_flag"
  56145. - || test ! -s conftest.err'
  56146. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  56147. - (eval $ac_try) 2>&5
  56148. - ac_status=$?
  56149. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56150. - (exit $ac_status); }; } &&
  56151. - { ac_try='test -s conftest$ac_exeext'
  56152. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  56153. - (eval $ac_try) 2>&5
  56154. - ac_status=$?
  56155. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56156. - (exit $ac_status); }; }; then
  56157. - ac_cv_lib_socket_socket=yes
  56158. +if ac_fn_c_try_compile "$LINENO"; then :
  56159. + ac_cv_dnet_netinet_in_h_has_sockaddr_in6=yes
  56160. else
  56161. - echo "$as_me: failed program was:" >&5
  56162. -sed 's/^/| /' conftest.$ac_ext >&5
  56163. -
  56164. -ac_cv_lib_socket_socket=no
  56165. + ac_cv_dnet_netinet_in_h_has_sockaddr_in6=no
  56166. fi
  56167. -rm -f conftest.err conftest.$ac_objext \
  56168. - conftest$ac_exeext conftest.$ac_ext
  56169. -LIBS=$ac_check_lib_save_LIBS
  56170. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56171. fi
  56172. -echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  56173. -echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  56174. -if test $ac_cv_lib_socket_socket = yes; then
  56175. - cat >>confdefs.h <<_ACEOF
  56176. -#define HAVE_LIBSOCKET 1
  56177. -_ACEOF
  56178. - LIBS="-lsocket $LIBS"
  56179. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dnet_netinet_in_h_has_sockaddr_in6" >&5
  56180. +$as_echo "$ac_cv_dnet_netinet_in_h_has_sockaddr_in6" >&6; }
  56181. + if test $ac_cv_dnet_netinet_in_h_has_sockaddr_in6 = yes ; then
  56182. +$as_echo "#define HAVE_SOCKADDR_IN6 1" >>confdefs.h
  56183. +
  56184. + fi
  56185. +if test "$ac_cv_header_sys_socket_h" = yes ; then
  56186. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_len in sockaddr struct" >&5
  56187. +$as_echo_n "checking for sa_len in sockaddr struct... " >&6; }
  56188. + if test "${ac_cv_dnet_sockaddr_has_sa_len+set}" = set; then :
  56189. + $as_echo_n "(cached) " >&6
  56190. else
  56191. - echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  56192. -echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  56193. -if test "${ac_cv_lib_socket_socket+set}" = set; then
  56194. - echo $ECHO_N "(cached) $ECHO_C" >&6
  56195. -else
  56196. - ac_check_lib_save_LIBS=$LIBS
  56197. -LIBS="-lsocket -lnsl $LIBS"
  56198. -cat >conftest.$ac_ext <<_ACEOF
  56199. -/* confdefs.h. */
  56200. -_ACEOF
  56201. -cat confdefs.h >>conftest.$ac_ext
  56202. -cat >>conftest.$ac_ext <<_ACEOF
  56203. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56204. /* end confdefs.h. */
  56205. -/* Override any gcc2 internal prototype to avoid an error. */
  56206. -#ifdef __cplusplus
  56207. -extern "C"
  56208. -#endif
  56209. -/* We use char because int might match the return type of a gcc2
  56210. - builtin and then its argument prototype would still apply. */
  56211. -char socket ();
  56212. +# ifndef _SOCKADDR_LEN
  56213. +# define _SOCKADDR_LEN 1
  56214. +# endif
  56215. +# include <sys/types.h>
  56216. +# include <sys/socket.h>
  56217. int
  56218. main ()
  56219. {
  56220. -socket ();
  56221. +u_int i = sizeof(((struct sockaddr *)0)->sa_len)
  56222. ;
  56223. return 0;
  56224. }
  56225. _ACEOF
  56226. -rm -f conftest.$ac_objext conftest$ac_exeext
  56227. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  56228. - (eval $ac_link) 2>conftest.er1
  56229. - ac_status=$?
  56230. - grep -v '^ *+' conftest.er1 >conftest.err
  56231. - rm -f conftest.er1
  56232. - cat conftest.err >&5
  56233. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56234. - (exit $ac_status); } &&
  56235. - { ac_try='test -z "$ac_c_werror_flag"
  56236. - || test ! -s conftest.err'
  56237. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  56238. - (eval $ac_try) 2>&5
  56239. - ac_status=$?
  56240. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56241. - (exit $ac_status); }; } &&
  56242. - { ac_try='test -s conftest$ac_exeext'
  56243. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  56244. - (eval $ac_try) 2>&5
  56245. - ac_status=$?
  56246. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56247. - (exit $ac_status); }; }; then
  56248. - ac_cv_lib_socket_socket=yes
  56249. +if ac_fn_c_try_compile "$LINENO"; then :
  56250. + ac_cv_dnet_sockaddr_has_sa_len=yes
  56251. else
  56252. - echo "$as_me: failed program was:" >&5
  56253. -sed 's/^/| /' conftest.$ac_ext >&5
  56254. -
  56255. -ac_cv_lib_socket_socket=no
  56256. -fi
  56257. -rm -f conftest.err conftest.$ac_objext \
  56258. - conftest$ac_exeext conftest.$ac_ext
  56259. -LIBS=$ac_check_lib_save_LIBS
  56260. + ac_cv_dnet_sockaddr_has_sa_len=no
  56261. fi
  56262. -echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  56263. -echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  56264. -if test $ac_cv_lib_socket_socket = yes; then
  56265. - LIBS="-lsocket -lnsl $LIBS"
  56266. -fi
  56267. -
  56268. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56269. fi
  56270. -fi
  56271. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dnet_sockaddr_has_sa_len" >&5
  56272. +$as_echo "$ac_cv_dnet_sockaddr_has_sa_len" >&6; }
  56273. + if test $ac_cv_dnet_sockaddr_has_sa_len = yes ; then
  56274. - # DLPI needs putmsg under HPUX so test for -lstr while we're at it
  56275. +$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
  56276. -echo "$as_me:$LINENO: checking for putmsg in -lstr" >&5
  56277. -echo $ECHO_N "checking for putmsg in -lstr... $ECHO_C" >&6
  56278. -if test "${ac_cv_lib_str_putmsg+set}" = set; then
  56279. - echo $ECHO_N "(cached) $ECHO_C" >&6
  56280. + fi
  56281. +fi
  56282. +if test "$ac_cv_header_net_if_arp_h" = yes ; then
  56283. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arp_dev in arpreq struct" >&5
  56284. +$as_echo_n "checking for arp_dev in arpreq struct... " >&6; }
  56285. + if test "${ac_cv_dnet_arpreq_has_arp_dev+set}" = set; then :
  56286. + $as_echo_n "(cached) " >&6
  56287. else
  56288. - ac_check_lib_save_LIBS=$LIBS
  56289. -LIBS="-lstr $LIBS"
  56290. -cat >conftest.$ac_ext <<_ACEOF
  56291. -/* confdefs.h. */
  56292. -_ACEOF
  56293. -cat confdefs.h >>conftest.$ac_ext
  56294. -cat >>conftest.$ac_ext <<_ACEOF
  56295. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56296. /* end confdefs.h. */
  56297. -/* Override any gcc2 internal prototype to avoid an error. */
  56298. -#ifdef __cplusplus
  56299. -extern "C"
  56300. -#endif
  56301. -/* We use char because int might match the return type of a gcc2
  56302. - builtin and then its argument prototype would still apply. */
  56303. -char putmsg ();
  56304. +# include <sys/types.h>
  56305. +# include <sys/socket.h>
  56306. +# include <net/if_arp.h>
  56307. int
  56308. main ()
  56309. {
  56310. -putmsg ();
  56311. +void *p = ((struct arpreq *)0)->arp_dev
  56312. ;
  56313. return 0;
  56314. }
  56315. _ACEOF
  56316. -rm -f conftest.$ac_objext conftest$ac_exeext
  56317. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  56318. - (eval $ac_link) 2>conftest.er1
  56319. - ac_status=$?
  56320. - grep -v '^ *+' conftest.er1 >conftest.err
  56321. - rm -f conftest.er1
  56322. - cat conftest.err >&5
  56323. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56324. - (exit $ac_status); } &&
  56325. - { ac_try='test -z "$ac_c_werror_flag"
  56326. - || test ! -s conftest.err'
  56327. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  56328. - (eval $ac_try) 2>&5
  56329. - ac_status=$?
  56330. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56331. - (exit $ac_status); }; } &&
  56332. - { ac_try='test -s conftest$ac_exeext'
  56333. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  56334. - (eval $ac_try) 2>&5
  56335. - ac_status=$?
  56336. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56337. - (exit $ac_status); }; }; then
  56338. - ac_cv_lib_str_putmsg=yes
  56339. +if ac_fn_c_try_compile "$LINENO"; then :
  56340. + ac_cv_dnet_arpreq_has_arp_dev=yes
  56341. else
  56342. - echo "$as_me: failed program was:" >&5
  56343. -sed 's/^/| /' conftest.$ac_ext >&5
  56344. -
  56345. -ac_cv_lib_str_putmsg=no
  56346. -fi
  56347. -rm -f conftest.err conftest.$ac_objext \
  56348. - conftest$ac_exeext conftest.$ac_ext
  56349. -LIBS=$ac_check_lib_save_LIBS
  56350. + ac_cv_dnet_arpreq_has_arp_dev=no
  56351. fi
  56352. -echo "$as_me:$LINENO: result: $ac_cv_lib_str_putmsg" >&5
  56353. -echo "${ECHO_T}$ac_cv_lib_str_putmsg" >&6
  56354. -if test $ac_cv_lib_str_putmsg = yes; then
  56355. - cat >>confdefs.h <<_ACEOF
  56356. -#define HAVE_LIBSTR 1
  56357. -_ACEOF
  56358. -
  56359. - LIBS="-lstr $LIBS"
  56360. -
  56361. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56362. fi
  56363. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dnet_arpreq_has_arp_dev" >&5
  56364. +$as_echo "$ac_cv_dnet_arpreq_has_arp_dev" >&6; }
  56365. + if test $ac_cv_dnet_arpreq_has_arp_dev = yes ; then
  56366. +$as_echo "#define HAVE_ARPREQ_ARP_DEV 1" >>confdefs.h
  56367. -echo "$as_me:$LINENO: checking for open_mib in -lnm" >&5
  56368. -echo $ECHO_N "checking for open_mib in -lnm... $ECHO_C" >&6
  56369. -if test "${ac_cv_lib_nm_open_mib+set}" = set; then
  56370. - echo $ECHO_N "(cached) $ECHO_C" >&6
  56371. + fi
  56372. +fi
  56373. +if test "$ac_cv_header_net_route_h" = yes ; then
  56374. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rt_msghdr struct in <net/route.h>" >&5
  56375. +$as_echo_n "checking for rt_msghdr struct in <net/route.h>... " >&6; }
  56376. + if test "${ac_cv_dnet_route_h_has_rt_msghdr+set}" = set; then :
  56377. + $as_echo_n "(cached) " >&6
  56378. else
  56379. - ac_check_lib_save_LIBS=$LIBS
  56380. -LIBS="-lnm $LIBS"
  56381. -cat >conftest.$ac_ext <<_ACEOF
  56382. -/* confdefs.h. */
  56383. -_ACEOF
  56384. -cat confdefs.h >>conftest.$ac_ext
  56385. -cat >>conftest.$ac_ext <<_ACEOF
  56386. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56387. /* end confdefs.h. */
  56388. -/* Override any gcc2 internal prototype to avoid an error. */
  56389. -#ifdef __cplusplus
  56390. -extern "C"
  56391. -#endif
  56392. -/* We use char because int might match the return type of a gcc2
  56393. - builtin and then its argument prototype would still apply. */
  56394. -char open_mib ();
  56395. +# include <sys/types.h>
  56396. +# include <sys/socket.h>
  56397. +# include <net/if.h>
  56398. +# include <net/route.h>
  56399. int
  56400. main ()
  56401. {
  56402. -open_mib ();
  56403. +struct rt_msghdr rtm; rtm.rtm_msglen = 0;
  56404. ;
  56405. return 0;
  56406. }
  56407. _ACEOF
  56408. -rm -f conftest.$ac_objext conftest$ac_exeext
  56409. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  56410. - (eval $ac_link) 2>conftest.er1
  56411. - ac_status=$?
  56412. - grep -v '^ *+' conftest.er1 >conftest.err
  56413. - rm -f conftest.er1
  56414. - cat conftest.err >&5
  56415. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56416. - (exit $ac_status); } &&
  56417. - { ac_try='test -z "$ac_c_werror_flag"
  56418. - || test ! -s conftest.err'
  56419. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  56420. - (eval $ac_try) 2>&5
  56421. - ac_status=$?
  56422. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56423. - (exit $ac_status); }; } &&
  56424. - { ac_try='test -s conftest$ac_exeext'
  56425. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  56426. - (eval $ac_try) 2>&5
  56427. - ac_status=$?
  56428. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56429. - (exit $ac_status); }; }; then
  56430. - ac_cv_lib_nm_open_mib=yes
  56431. +if ac_fn_c_try_compile "$LINENO"; then :
  56432. + ac_cv_dnet_route_h_has_rt_msghdr=yes
  56433. else
  56434. - echo "$as_me: failed program was:" >&5
  56435. -sed 's/^/| /' conftest.$ac_ext >&5
  56436. -
  56437. -ac_cv_lib_nm_open_mib=no
  56438. + ac_cv_dnet_route_h_has_rt_msghdr=no
  56439. fi
  56440. -rm -f conftest.err conftest.$ac_objext \
  56441. - conftest$ac_exeext conftest.$ac_ext
  56442. -LIBS=$ac_check_lib_save_LIBS
  56443. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56444. fi
  56445. -echo "$as_me:$LINENO: result: $ac_cv_lib_nm_open_mib" >&5
  56446. -echo "${ECHO_T}$ac_cv_lib_nm_open_mib" >&6
  56447. -if test $ac_cv_lib_nm_open_mib = yes; then
  56448. - cat >>confdefs.h <<_ACEOF
  56449. -#define HAVE_LIBNM 1
  56450. -_ACEOF
  56451. - LIBS="-lnm $LIBS"
  56452. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dnet_route_h_has_rt_msghdr" >&5
  56453. +$as_echo "$ac_cv_dnet_route_h_has_rt_msghdr" >&6; }
  56454. + if test $ac_cv_dnet_route_h_has_rt_msghdr = yes ; then
  56455. -fi
  56456. +$as_echo "#define HAVE_ROUTE_RT_MSGHDR 1" >>confdefs.h
  56457. + fi
  56458. fi
  56459. -
  56460. -echo "$as_me:$LINENO: checking for Check" >&5
  56461. -echo $ECHO_N "checking for Check... $ECHO_C" >&6
  56462. -
  56463. -# Check whether --with-check or --without-check was given.
  56464. -if test "${with_check+set}" = set; then
  56465. - withval="$with_check"
  56466. - case "$withval" in
  56467. - yes|no)
  56468. - echo "$as_me:$LINENO: result: no" >&5
  56469. -echo "${ECHO_T}no" >&6
  56470. - ;;
  56471. - *)
  56472. - echo "$as_me:$LINENO: result: $withval" >&5
  56473. -echo "${ECHO_T}$withval" >&6
  56474. - if test -f $withval/include/check.h -a -f $withval/lib/libcheck.a; then
  56475. - owd=`pwd`
  56476. - if cd $withval; then withval=`pwd`; cd $owd; fi
  56477. - CHECKINC="-I$withval/include"
  56478. - CHECKLIB="-L$withval/lib -lcheck"
  56479. - elif test -f $withval/src/check.h -a -f $withval/src/libcheck.a; then
  56480. - owd=`pwd`
  56481. - if cd $withval; then withval=`pwd`; cd $owd; fi
  56482. - CHECKINC="-I$withval/src"
  56483. - CHECKLIB="-L$withval/src -lcheck"
  56484. - else
  56485. - { { echo "$as_me:$LINENO: error: check.h or libcheck.a not found in $withval" >&5
  56486. -echo "$as_me: error: check.h or libcheck.a not found in $withval" >&2;}
  56487. - { (exit 1); exit 1; }; }
  56488. - fi
  56489. - ;;
  56490. - esac
  56491. +if test $ac_cv_c_compiler_gnu = yes; then
  56492. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  56493. +$as_echo_n "checking whether $CC needs -traditional... " >&6; }
  56494. +if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  56495. + $as_echo_n "(cached) " >&6
  56496. else
  56497. - if test -f ${prefix}/include/check.h -a -f ${prefix}/lib/libcheck.a; then
  56498. - CHECKINC="-I${prefix}/include"
  56499. - CHECKLIB="-L${prefix}/lib -lcheck"
  56500. - echo "$as_me:$LINENO: result: yes" >&5
  56501. -echo "${ECHO_T}yes" >&6
  56502. - else
  56503. - echo "$as_me:$LINENO: result: no" >&5
  56504. -echo "${ECHO_T}no" >&6
  56505. - fi
  56506. -
  56507. -fi;
  56508. -
  56509. + ac_pattern="Autoconf.*'x'"
  56510. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56511. +/* end confdefs.h. */
  56512. +#include <sgtty.h>
  56513. +Autoconf TIOCGETP
  56514. +_ACEOF
  56515. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  56516. + $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  56517. + ac_cv_prog_gcc_traditional=yes
  56518. +else
  56519. + ac_cv_prog_gcc_traditional=no
  56520. +fi
  56521. +rm -f conftest*
  56522. + if test $ac_cv_prog_gcc_traditional = no; then
  56523. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56524. +/* end confdefs.h. */
  56525. +#include <termio.h>
  56526. +Autoconf TCGETA
  56527. +_ACEOF
  56528. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  56529. + $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  56530. + ac_cv_prog_gcc_traditional=yes
  56531. +fi
  56532. +rm -f conftest*
  56533. -if test "x$CHECKLIB" != "x"; then
  56534. - HAVE_CHECK_TRUE=
  56535. - HAVE_CHECK_FALSE='#'
  56536. -else
  56537. - HAVE_CHECK_TRUE='#'
  56538. - HAVE_CHECK_FALSE=
  56539. + fi
  56540. +fi
  56541. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  56542. +$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  56543. + if test $ac_cv_prog_gcc_traditional = yes; then
  56544. + CC="$CC -traditional"
  56545. + fi
  56546. fi
  56547. +if test "$GCC" = yes ; then
  56548. + CFLAGS="$CFLAGS -Wall"
  56549. +fi
  56550. -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  56551. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  56552. -if test "${ac_cv_header_stdc+set}" = set; then
  56553. - echo $ECHO_N "(cached) $ECHO_C" >&6
  56554. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  56555. +$as_echo_n "checking for working memcmp... " >&6; }
  56556. +if test "${ac_cv_func_memcmp_working+set}" = set; then :
  56557. + $as_echo_n "(cached) " >&6
  56558. else
  56559. - cat >conftest.$ac_ext <<_ACEOF
  56560. -/* confdefs.h. */
  56561. -_ACEOF
  56562. -cat confdefs.h >>conftest.$ac_ext
  56563. -cat >>conftest.$ac_ext <<_ACEOF
  56564. + if test "$cross_compiling" = yes; then :
  56565. + ac_cv_func_memcmp_working=no
  56566. +else
  56567. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56568. /* end confdefs.h. */
  56569. -#include <stdlib.h>
  56570. -#include <stdarg.h>
  56571. -#include <string.h>
  56572. -#include <float.h>
  56573. -
  56574. +$ac_includes_default
  56575. int
  56576. main ()
  56577. {
  56578. + /* Some versions of memcmp are not 8-bit clean. */
  56579. + char c0 = '\100', c1 = '\200', c2 = '\201';
  56580. + if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  56581. + return 1;
  56582. +
  56583. + /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  56584. + or more and with at least one buffer not starting on a 4-byte boundary.
  56585. + William Lewis provided this test program. */
  56586. + {
  56587. + char foo[21];
  56588. + char bar[21];
  56589. + int i;
  56590. + for (i = 0; i < 4; i++)
  56591. + {
  56592. + char *a = foo + i;
  56593. + char *b = bar + i;
  56594. + strcpy (a, "--------01111111");
  56595. + strcpy (b, "--------10000000");
  56596. + if (memcmp (a, b, 16) >= 0)
  56597. + return 1;
  56598. + }
  56599. + return 0;
  56600. + }
  56601. +
  56602. ;
  56603. return 0;
  56604. }
  56605. _ACEOF
  56606. -rm -f conftest.$ac_objext
  56607. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  56608. - (eval $ac_compile) 2>conftest.er1
  56609. - ac_status=$?
  56610. - grep -v '^ *+' conftest.er1 >conftest.err
  56611. - rm -f conftest.er1
  56612. - cat conftest.err >&5
  56613. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56614. - (exit $ac_status); } &&
  56615. - { ac_try='test -z "$ac_c_werror_flag"
  56616. - || test ! -s conftest.err'
  56617. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  56618. - (eval $ac_try) 2>&5
  56619. - ac_status=$?
  56620. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56621. - (exit $ac_status); }; } &&
  56622. - { ac_try='test -s conftest.$ac_objext'
  56623. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  56624. - (eval $ac_try) 2>&5
  56625. - ac_status=$?
  56626. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56627. - (exit $ac_status); }; }; then
  56628. - ac_cv_header_stdc=yes
  56629. +if ac_fn_c_try_run "$LINENO"; then :
  56630. + ac_cv_func_memcmp_working=yes
  56631. else
  56632. - echo "$as_me: failed program was:" >&5
  56633. -sed 's/^/| /' conftest.$ac_ext >&5
  56634. + ac_cv_func_memcmp_working=no
  56635. +fi
  56636. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  56637. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  56638. +fi
  56639. -ac_cv_header_stdc=no
  56640. fi
  56641. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  56642. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  56643. +$as_echo "$ac_cv_func_memcmp_working" >&6; }
  56644. +test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  56645. + *" memcmp.$ac_objext "* ) ;;
  56646. + *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  56647. + ;;
  56648. +esac
  56649. -if test $ac_cv_header_stdc = yes; then
  56650. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  56651. - cat >conftest.$ac_ext <<_ACEOF
  56652. -/* confdefs.h. */
  56653. -_ACEOF
  56654. -cat confdefs.h >>conftest.$ac_ext
  56655. -cat >>conftest.$ac_ext <<_ACEOF
  56656. -/* end confdefs.h. */
  56657. -#include <string.h>
  56658. +for ac_func in err strlcat strlcpy strsep
  56659. +do :
  56660. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  56661. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  56662. +eval as_val=\$$as_ac_var
  56663. + if test "x$as_val" = x""yes; then :
  56664. + cat >>confdefs.h <<_ACEOF
  56665. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  56666. _ACEOF
  56667. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  56668. - $EGREP "memchr" >/dev/null 2>&1; then
  56669. - :
  56670. +
  56671. else
  56672. - ac_cv_header_stdc=no
  56673. -fi
  56674. -rm -f conftest*
  56675. + case " $LIBOBJS " in
  56676. + *" $ac_func.$ac_objext "* ) ;;
  56677. + *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  56678. + ;;
  56679. +esac
  56680. fi
  56681. +done
  56682. -if test $ac_cv_header_stdc = yes; then
  56683. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  56684. - cat >conftest.$ac_ext <<_ACEOF
  56685. -/* confdefs.h. */
  56686. -_ACEOF
  56687. -cat confdefs.h >>conftest.$ac_ext
  56688. -cat >>conftest.$ac_ext <<_ACEOF
  56689. -/* end confdefs.h. */
  56690. -#include <stdlib.h>
  56691. -_ACEOF
  56692. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  56693. - $EGREP "free" >/dev/null 2>&1; then
  56694. - :
  56695. +
  56696. +if test "$CYGWIN" != yes ; then
  56697. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley Packet Filter" >&5
  56698. +$as_echo_n "checking for Berkeley Packet Filter... " >&6; }
  56699. + if test "${ac_cv_dnet_bsd_bpf+set}" = set; then :
  56700. + $as_echo_n "(cached) " >&6
  56701. else
  56702. - ac_cv_header_stdc=no
  56703. + if test -c /dev/bpf0 ; then
  56704. + ac_cv_dnet_bsd_bpf=yes
  56705. + else
  56706. + ac_cv_dnet_bsd_bpf=no
  56707. + fi
  56708. fi
  56709. -rm -f conftest*
  56710. -fi
  56711. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dnet_bsd_bpf" >&5
  56712. +$as_echo "$ac_cv_dnet_bsd_bpf" >&6; }
  56713. + if test $ac_cv_dnet_bsd_bpf = yes ; then
  56714. -if test $ac_cv_header_stdc = yes; then
  56715. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  56716. - if test "$cross_compiling" = yes; then
  56717. - :
  56718. -else
  56719. - cat >conftest.$ac_ext <<_ACEOF
  56720. -/* confdefs.h. */
  56721. -_ACEOF
  56722. -cat confdefs.h >>conftest.$ac_ext
  56723. -cat >>conftest.$ac_ext <<_ACEOF
  56724. -/* end confdefs.h. */
  56725. -#include <ctype.h>
  56726. -#if ((' ' & 0x0FF) == 0x020)
  56727. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  56728. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  56729. -#else
  56730. -# define ISLOWER(c) \
  56731. - (('a' <= (c) && (c) <= 'i') \
  56732. - || ('j' <= (c) && (c) <= 'r') \
  56733. - || ('s' <= (c) && (c) <= 'z'))
  56734. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  56735. -#endif
  56736. +$as_echo "#define HAVE_BSD_BPF 1" >>confdefs.h
  56737. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  56738. -int
  56739. -main ()
  56740. -{
  56741. - int i;
  56742. - for (i = 0; i < 256; i++)
  56743. - if (XOR (islower (i), ISLOWER (i))
  56744. - || toupper (i) != TOUPPER (i))
  56745. - exit(2);
  56746. - exit (0);
  56747. -}
  56748. -_ACEOF
  56749. -rm -f conftest$ac_exeext
  56750. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  56751. - (eval $ac_link) 2>&5
  56752. - ac_status=$?
  56753. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56754. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  56755. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  56756. - (eval $ac_try) 2>&5
  56757. - ac_status=$?
  56758. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56759. - (exit $ac_status); }; }; then
  56760. - :
  56761. + fi
  56762. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux proc filesystem" >&5
  56763. +$as_echo_n "checking for Linux proc filesystem... " >&6; }
  56764. + if test "${ac_cv_dnet_linux_procfs+set}" = set; then :
  56765. + $as_echo_n "(cached) " >&6
  56766. else
  56767. - echo "$as_me: program exited with status $ac_status" >&5
  56768. -echo "$as_me: failed program was:" >&5
  56769. -sed 's/^/| /' conftest.$ac_ext >&5
  56770. -
  56771. -( exit $ac_status )
  56772. -ac_cv_header_stdc=no
  56773. -fi
  56774. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  56775. + if test "x`cat /proc/sys/kernel/ostype 2>&-`" = "xLinux" ; then
  56776. + ac_cv_dnet_linux_procfs=yes
  56777. + else
  56778. + ac_cv_dnet_linux_procfs=no
  56779. + fi
  56780. fi
  56781. +
  56782. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dnet_linux_procfs" >&5
  56783. +$as_echo "$ac_cv_dnet_linux_procfs" >&6; }
  56784. + if test $ac_cv_dnet_linux_procfs = yes ; then
  56785. +
  56786. +$as_echo "#define HAVE_LINUX_PROCFS 1" >>confdefs.h
  56787. +
  56788. + fi
  56789. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux PF_PACKET sockets" >&5
  56790. +$as_echo_n "checking for Linux PF_PACKET sockets... " >&6; }
  56791. + if test "${ac_cv_dnet_linux_pf_packet+set}" = set; then :
  56792. + $as_echo_n "(cached) " >&6
  56793. +else
  56794. + if test -f /usr/include/netpacket/packet.h ; then
  56795. + ac_cv_dnet_linux_pf_packet=yes
  56796. + else
  56797. + ac_cv_dnet_linux_pf_packet=no
  56798. + fi
  56799. fi
  56800. +
  56801. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dnet_linux_pf_packet" >&5
  56802. +$as_echo "$ac_cv_dnet_linux_pf_packet" >&6; }
  56803. + if test $ac_cv_dnet_linux_pf_packet = yes ; then
  56804. +
  56805. +$as_echo "#define HAVE_LINUX_PF_PACKET 1" >>confdefs.h
  56806. +
  56807. + fi
  56808. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNMP MIB2 STREAMS" >&5
  56809. +$as_echo_n "checking for SNMP MIB2 STREAMS... " >&6; }
  56810. + if test "${ac_cv_dnet_streams_mib2+set}" = set; then :
  56811. + $as_echo_n "(cached) " >&6
  56812. +else
  56813. + if test -f /usr/include/inet/mib2.h -a -c /dev/ip ; then
  56814. + ac_cv_dnet_streams_mib2=yes
  56815. + else
  56816. + ac_cv_dnet_streams_mib2=no
  56817. + fi
  56818. fi
  56819. -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  56820. -echo "${ECHO_T}$ac_cv_header_stdc" >&6
  56821. -if test $ac_cv_header_stdc = yes; then
  56822. -cat >>confdefs.h <<\_ACEOF
  56823. -#define STDC_HEADERS 1
  56824. -_ACEOF
  56825. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dnet_streams_mib2" >&5
  56826. +$as_echo "$ac_cv_dnet_streams_mib2" >&6; }
  56827. + if test $ac_cv_dnet_streams_mib2 = yes ; then
  56828. +
  56829. +$as_echo "#define HAVE_STREAMS_MIB2 1" >>confdefs.h
  56830. + fi
  56831. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for route(7) STREAMS" >&5
  56832. +$as_echo_n "checking for route(7) STREAMS... " >&6; }
  56833. + if test "${ac_cv_dnet_streams_route+set}" = set; then :
  56834. + $as_echo_n "(cached) " >&6
  56835. +else
  56836. + if grep RTSTR_SEND /usr/include/net/route.h >/dev/null 2>&1 ; then
  56837. + ac_cv_dnet_streams_route=yes
  56838. + else
  56839. + ac_cv_dnet_streams_route=no
  56840. + fi
  56841. fi
  56842. -if test "$CYGWIN" = yes ; then
  56843. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dnet_streams_route" >&5
  56844. +$as_echo "$ac_cv_dnet_streams_route" >&6; }
  56845. + if test $ac_cv_dnet_streams_route = yes ; then
  56846. +$as_echo "#define HAVE_STREAMS_ROUTE 1" >>confdefs.h
  56847. -for ac_header in Iphlpapi.h winsock2.h
  56848. -do
  56849. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  56850. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  56851. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  56852. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  56853. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  56854. - echo $ECHO_N "(cached) $ECHO_C" >&6
  56855. -fi
  56856. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  56857. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  56858. + fi
  56859. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arp(7) ioctls" >&5
  56860. +$as_echo_n "checking for arp(7) ioctls... " >&6; }
  56861. + if test "${ac_cv_dnet_ioctl_arp+set}" = set; then :
  56862. + $as_echo_n "(cached) " >&6
  56863. else
  56864. - # Is the header compilable?
  56865. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  56866. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  56867. -cat >conftest.$ac_ext <<_ACEOF
  56868. -/* confdefs.h. */
  56869. -_ACEOF
  56870. -cat confdefs.h >>conftest.$ac_ext
  56871. -cat >>conftest.$ac_ext <<_ACEOF
  56872. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56873. /* end confdefs.h. */
  56874. -$ac_includes_default
  56875. -#include <$ac_header>
  56876. -_ACEOF
  56877. -rm -f conftest.$ac_objext
  56878. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  56879. - (eval $ac_compile) 2>conftest.er1
  56880. - ac_status=$?
  56881. - grep -v '^ *+' conftest.er1 >conftest.err
  56882. - rm -f conftest.er1
  56883. - cat conftest.err >&5
  56884. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56885. - (exit $ac_status); } &&
  56886. - { ac_try='test -z "$ac_c_werror_flag"
  56887. - || test ! -s conftest.err'
  56888. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  56889. - (eval $ac_try) 2>&5
  56890. - ac_status=$?
  56891. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56892. - (exit $ac_status); }; } &&
  56893. - { ac_try='test -s conftest.$ac_objext'
  56894. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  56895. - (eval $ac_try) 2>&5
  56896. - ac_status=$?
  56897. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56898. - (exit $ac_status); }; }; then
  56899. - ac_header_compiler=yes
  56900. -else
  56901. - echo "$as_me: failed program was:" >&5
  56902. -sed 's/^/| /' conftest.$ac_ext >&5
  56903. -
  56904. -ac_header_compiler=no
  56905. -fi
  56906. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  56907. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  56908. -echo "${ECHO_T}$ac_header_compiler" >&6
  56909. -# Is the header present?
  56910. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  56911. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  56912. -cat >conftest.$ac_ext <<_ACEOF
  56913. -/* confdefs.h. */
  56914. -_ACEOF
  56915. -cat confdefs.h >>conftest.$ac_ext
  56916. -cat >>conftest.$ac_ext <<_ACEOF
  56917. -/* end confdefs.h. */
  56918. -#include <$ac_header>
  56919. +# include <sys/types.h>
  56920. +# define BSD_COMP
  56921. +# include <sys/ioctl.h>
  56922. +# ifdef SIOCGARP
  56923. + werd
  56924. +# endif
  56925. _ACEOF
  56926. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  56927. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  56928. - ac_status=$?
  56929. - grep -v '^ *+' conftest.er1 >conftest.err
  56930. - rm -f conftest.er1
  56931. - cat conftest.err >&5
  56932. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56933. - (exit $ac_status); } >/dev/null; then
  56934. - if test -s conftest.err; then
  56935. - ac_cpp_err=$ac_c_preproc_warn_flag
  56936. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  56937. - else
  56938. - ac_cpp_err=
  56939. - fi
  56940. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  56941. + $EGREP "werd" >/dev/null 2>&1; then :
  56942. + ac_cv_dnet_ioctl_arp=yes
  56943. else
  56944. - ac_cpp_err=yes
  56945. + ac_cv_dnet_ioctl_arp=no
  56946. fi
  56947. -if test -z "$ac_cpp_err"; then
  56948. - ac_header_preproc=yes
  56949. -else
  56950. - echo "$as_me: failed program was:" >&5
  56951. -sed 's/^/| /' conftest.$ac_ext >&5
  56952. +rm -f conftest*
  56953. - ac_header_preproc=no
  56954. fi
  56955. -rm -f conftest.err conftest.$ac_ext
  56956. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  56957. -echo "${ECHO_T}$ac_header_preproc" >&6
  56958. -# So? What about this header?
  56959. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  56960. - yes:no: )
  56961. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  56962. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  56963. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  56964. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  56965. - ac_header_preproc=yes
  56966. - ;;
  56967. - no:yes:* )
  56968. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  56969. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  56970. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  56971. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  56972. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  56973. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  56974. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  56975. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  56976. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  56977. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  56978. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  56979. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  56980. - (
  56981. - cat <<\_ASBOX
  56982. -## ------------------------------------------ ##
  56983. -## Report this to the AC_PACKAGE_NAME lists. ##
  56984. -## ------------------------------------------ ##
  56985. -_ASBOX
  56986. - ) |
  56987. - sed "s/^/$as_me: WARNING: /" >&2
  56988. - ;;
  56989. -esac
  56990. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  56991. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  56992. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  56993. - echo $ECHO_N "(cached) $ECHO_C" >&6
  56994. + case "$host_os" in
  56995. + irix*)
  56996. + ac_cv_dnet_ioctl_arp=no ;;
  56997. + esac
  56998. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dnet_ioctl_arp" >&5
  56999. +$as_echo "$ac_cv_dnet_ioctl_arp" >&6; }
  57000. + if test $ac_cv_dnet_ioctl_arp = yes ; then
  57001. +
  57002. +$as_echo "#define HAVE_IOCTL_ARP 1" >>confdefs.h
  57003. +
  57004. + fi
  57005. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for raw IP sockets ip_{len,off} host byte ordering" >&5
  57006. +$as_echo_n "checking for raw IP sockets ip_{len,off} host byte ordering... " >&6; }
  57007. + if test "${ac_cv_dnet_rawip_host_offlen+set}" = set; then :
  57008. + $as_echo_n "(cached) " >&6
  57009. else
  57010. - eval "$as_ac_Header=\$ac_header_preproc"
  57011. -fi
  57012. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  57013. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  57014. + case "$host_os" in
  57015. + *openbsd*)
  57016. + ac_cv_dnet_rawip_host_offlen=no ;;
  57017. + *bsd*|*osf*|*unixware*)
  57018. + ac_cv_dnet_rawip_host_offlen=yes ;;
  57019. + *)
  57020. + ac_cv_dnet_rawip_host_offlen=no ;;
  57021. + esac
  57022. fi
  57023. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  57024. - cat >>confdefs.h <<_ACEOF
  57025. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  57026. -_ACEOF
  57027. -fi
  57028. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dnet_rawip_host_offlen" >&5
  57029. +$as_echo "$ac_cv_dnet_rawip_host_offlen" >&6; }
  57030. + if test $ac_cv_dnet_rawip_host_offlen = yes ; then
  57031. -done
  57032. +$as_echo "#define HAVE_RAWIP_HOST_OFFLEN 1" >>confdefs.h
  57033. + fi
  57034. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cooked raw IP sockets" >&5
  57035. +$as_echo_n "checking for cooked raw IP sockets... " >&6; }
  57036. + if test "${ac_cv_dnet_rawip_cooked+set}" = set; then :
  57037. + $as_echo_n "(cached) " >&6
  57038. else
  57039. -
  57040. -for ac_header in fcntl.h unistd.h
  57041. -do
  57042. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  57043. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  57044. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  57045. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  57046. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  57047. - echo $ECHO_N "(cached) $ECHO_C" >&6
  57048. + case "$host_os" in
  57049. + solaris*|irix*)
  57050. + ac_cv_dnet_rawip_cooked=yes ;;
  57051. + *)
  57052. + ac_cv_dnet_rawip_cooked=no ;;
  57053. + esac
  57054. fi
  57055. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  57056. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  57057. -else
  57058. - # Is the header compilable?
  57059. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  57060. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  57061. -cat >conftest.$ac_ext <<_ACEOF
  57062. -/* confdefs.h. */
  57063. -_ACEOF
  57064. -cat confdefs.h >>conftest.$ac_ext
  57065. -cat >>conftest.$ac_ext <<_ACEOF
  57066. -/* end confdefs.h. */
  57067. -$ac_includes_default
  57068. -#include <$ac_header>
  57069. -_ACEOF
  57070. -rm -f conftest.$ac_objext
  57071. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  57072. - (eval $ac_compile) 2>conftest.er1
  57073. - ac_status=$?
  57074. - grep -v '^ *+' conftest.er1 >conftest.err
  57075. - rm -f conftest.er1
  57076. - cat conftest.err >&5
  57077. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57078. - (exit $ac_status); } &&
  57079. - { ac_try='test -z "$ac_c_werror_flag"
  57080. - || test ! -s conftest.err'
  57081. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  57082. - (eval $ac_try) 2>&5
  57083. - ac_status=$?
  57084. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57085. - (exit $ac_status); }; } &&
  57086. - { ac_try='test -s conftest.$ac_objext'
  57087. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  57088. - (eval $ac_try) 2>&5
  57089. - ac_status=$?
  57090. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57091. - (exit $ac_status); }; }; then
  57092. - ac_header_compiler=yes
  57093. -else
  57094. - echo "$as_me: failed program was:" >&5
  57095. -sed 's/^/| /' conftest.$ac_ext >&5
  57096. -ac_header_compiler=no
  57097. -fi
  57098. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  57099. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  57100. -echo "${ECHO_T}$ac_header_compiler" >&6
  57101. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dnet_rawip_cooked" >&5
  57102. +$as_echo "$ac_cv_dnet_rawip_cooked" >&6; }
  57103. + if test $ac_cv_dnet_rawip_cooked = yes ; then
  57104. -# Is the header present?
  57105. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  57106. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  57107. -cat >conftest.$ac_ext <<_ACEOF
  57108. -/* confdefs.h. */
  57109. -_ACEOF
  57110. -cat confdefs.h >>conftest.$ac_ext
  57111. -cat >>conftest.$ac_ext <<_ACEOF
  57112. -/* end confdefs.h. */
  57113. -#include <$ac_header>
  57114. -_ACEOF
  57115. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  57116. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  57117. - ac_status=$?
  57118. - grep -v '^ *+' conftest.er1 >conftest.err
  57119. - rm -f conftest.er1
  57120. - cat conftest.err >&5
  57121. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57122. - (exit $ac_status); } >/dev/null; then
  57123. - if test -s conftest.err; then
  57124. - ac_cpp_err=$ac_c_preproc_warn_flag
  57125. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  57126. - else
  57127. - ac_cpp_err=
  57128. - fi
  57129. -else
  57130. - ac_cpp_err=yes
  57131. -fi
  57132. -if test -z "$ac_cpp_err"; then
  57133. - ac_header_preproc=yes
  57134. -else
  57135. - echo "$as_me: failed program was:" >&5
  57136. -sed 's/^/| /' conftest.$ac_ext >&5
  57137. +$as_echo "#define HAVE_RAWIP_COOKED 1" >>confdefs.h
  57138. - ac_header_preproc=no
  57139. + fi
  57140. fi
  57141. -rm -f conftest.err conftest.$ac_ext
  57142. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  57143. -echo "${ECHO_T}$ac_header_preproc" >&6
  57144. -# So? What about this header?
  57145. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  57146. - yes:no: )
  57147. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  57148. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  57149. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  57150. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  57151. - ac_header_preproc=yes
  57152. - ;;
  57153. - no:yes:* )
  57154. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  57155. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  57156. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  57157. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  57158. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  57159. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  57160. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  57161. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  57162. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  57163. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  57164. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  57165. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  57166. - (
  57167. - cat <<\_ASBOX
  57168. -## ------------------------------------------ ##
  57169. -## Report this to the AC_PACKAGE_NAME lists. ##
  57170. -## ------------------------------------------ ##
  57171. -_ASBOX
  57172. - ) |
  57173. - sed "s/^/$as_me: WARNING: /" >&2
  57174. - ;;
  57175. +if test "$ac_cv_header_Iphlpapi_h" = yes ; then
  57176. + case " $LIBOBJS " in
  57177. + *" arp-win32.$ac_objext "* ) ;;
  57178. + *) LIBOBJS="$LIBOBJS arp-win32.$ac_objext"
  57179. + ;;
  57180. +esac
  57181. +
  57182. +elif test "$ac_cv_dnet_ioctl_arp" = yes ; then
  57183. + case " $LIBOBJS " in
  57184. + *" arp-ioctl.$ac_objext "* ) ;;
  57185. + *) LIBOBJS="$LIBOBJS arp-ioctl.$ac_objext"
  57186. + ;;
  57187. +esac
  57188. +
  57189. +elif test "$ac_cv_dnet_route_h_has_rt_msghdr" = yes ; then
  57190. + case " $LIBOBJS " in
  57191. + *" arp-bsd.$ac_objext "* ) ;;
  57192. + *) LIBOBJS="$LIBOBJS arp-bsd.$ac_objext"
  57193. + ;;
  57194. esac
  57195. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  57196. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  57197. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  57198. - echo $ECHO_N "(cached) $ECHO_C" >&6
  57199. +
  57200. else
  57201. - eval "$as_ac_Header=\$ac_header_preproc"
  57202. -fi
  57203. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  57204. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  57205. + case " $LIBOBJS " in
  57206. + *" arp-none.$ac_objext "* ) ;;
  57207. + *) LIBOBJS="$LIBOBJS arp-none.$ac_objext"
  57208. + ;;
  57209. +esac
  57210. fi
  57211. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  57212. - cat >>confdefs.h <<_ACEOF
  57213. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  57214. -_ACEOF
  57215. -fi
  57216. +if test "$ac_cv_header_Iphlpapi_h" = yes ; then
  57217. + case " $LIBOBJS " in
  57218. + *" eth-win32.$ac_objext "* ) ;;
  57219. + *) LIBOBJS="$LIBOBJS eth-win32.$ac_objext"
  57220. + ;;
  57221. +esac
  57222. -done
  57223. +elif test "$ac_cv_header_net_pfilt_h" = yes ; then
  57224. + case " $LIBOBJS " in
  57225. + *" eth-pfilt.$ac_objext "* ) ;;
  57226. + *) LIBOBJS="$LIBOBJS eth-pfilt.$ac_objext"
  57227. + ;;
  57228. +esac
  57229. +elif test "$ac_cv_dnet_bsd_bpf" = yes ; then
  57230. + case " $LIBOBJS " in
  57231. + *" eth-bsd.$ac_objext "* ) ;;
  57232. + *) LIBOBJS="$LIBOBJS eth-bsd.$ac_objext"
  57233. + ;;
  57234. +esac
  57235. +elif test "$ac_cv_dnet_linux_pf_packet" = yes ; then
  57236. + case " $LIBOBJS " in
  57237. + *" eth-linux.$ac_objext "* ) ;;
  57238. + *) LIBOBJS="$LIBOBJS eth-linux.$ac_objext"
  57239. + ;;
  57240. +esac
  57241. +elif test "$ac_cv_header_net_raw_h" = yes ; then
  57242. + case " $LIBOBJS " in
  57243. + *" eth-snoop.$ac_objext "* ) ;;
  57244. + *) LIBOBJS="$LIBOBJS eth-snoop.$ac_objext"
  57245. + ;;
  57246. +esac
  57247. +elif test "$ac_cv_header_sys_ndd_var_h" = yes ; then
  57248. + case " $LIBOBJS " in
  57249. + *" eth-ndd.$ac_objext "* ) ;;
  57250. + *) LIBOBJS="$LIBOBJS eth-ndd.$ac_objext"
  57251. + ;;
  57252. +esac
  57253. +elif test "$ac_cv_header_sys_dlpi_h" = yes || \
  57254. + test "$ac_cv_header_sys_dlpihdr_h" = yes ; then
  57255. + case " $LIBOBJS " in
  57256. + *" eth-dlpi.$ac_objext "* ) ;;
  57257. + *) LIBOBJS="$LIBOBJS eth-dlpi.$ac_objext"
  57258. + ;;
  57259. +esac
  57260. +else
  57261. + case " $LIBOBJS " in
  57262. + *" eth-none.$ac_objext "* ) ;;
  57263. + *) LIBOBJS="$LIBOBJS eth-none.$ac_objext"
  57264. + ;;
  57265. +esac
  57266. +fi
  57267. +if test "$ac_cv_header_Iphlpapi_h" = yes ; then
  57268. + case " $LIBOBJS " in
  57269. + *" fw-pktfilter.$ac_objext "* ) ;;
  57270. + *) LIBOBJS="$LIBOBJS fw-pktfilter.$ac_objext"
  57271. + ;;
  57272. +esac
  57273. +elif test "$ac_cv_header_net_pfvar_h" = yes ; then
  57274. + case " $LIBOBJS " in
  57275. + *" fw-pf.$ac_objext "* ) ;;
  57276. + *) LIBOBJS="$LIBOBJS fw-pf.$ac_objext"
  57277. + ;;
  57278. +esac
  57279. +elif test "$ac_cv_header_netinet_ip_fw_h" = yes ; then
  57280. + case "$host_os" in
  57281. + *freebsd5*)
  57282. + case " $LIBOBJS " in
  57283. + *" fw-none.$ac_objext "* ) ;;
  57284. + *) LIBOBJS="$LIBOBJS fw-none.$ac_objext"
  57285. + ;;
  57286. +esac
  57287. + ;;
  57288. + *)
  57289. + case " $LIBOBJS " in
  57290. + *" fw-ipfw.$ac_objext "* ) ;;
  57291. + *) LIBOBJS="$LIBOBJS fw-ipfw.$ac_objext"
  57292. + ;;
  57293. +esac
  57294. + ;;
  57295. + esac
  57296. +elif test "$ac_cv_header_netinet_ip_fil_h" = yes ; then
  57297. + case " $LIBOBJS " in
  57298. + *" fw-ipf.$ac_objext "* ) ;;
  57299. + *) LIBOBJS="$LIBOBJS fw-ipf.$ac_objext"
  57300. + ;;
  57301. +esac
  57302. +elif test "$ac_cv_header_linux_ip_fw_h" = yes ; then
  57303. + case " $LIBOBJS " in
  57304. + *" fw-ipchains.$ac_objext "* ) ;;
  57305. + *) LIBOBJS="$LIBOBJS fw-ipchains.$ac_objext"
  57306. + ;;
  57307. +esac
  57308. -for ac_header in sys/bufmod.h sys/dlpi.h sys/dlpihdr.h sys/dlpi_ext.h \
  57309. - sys/ioctl.h sys/mib.h sys/ndd_var.h sys/socket.h sys/sockio.h \
  57310. - sys/sysctl.h sys/time.h
  57311. -do
  57312. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  57313. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  57314. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  57315. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  57316. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  57317. - echo $ECHO_N "(cached) $ECHO_C" >&6
  57318. -fi
  57319. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  57320. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  57321. -else
  57322. - # Is the header compilable?
  57323. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  57324. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  57325. -cat >conftest.$ac_ext <<_ACEOF
  57326. -/* confdefs.h. */
  57327. -_ACEOF
  57328. -cat confdefs.h >>conftest.$ac_ext
  57329. -cat >>conftest.$ac_ext <<_ACEOF
  57330. -/* end confdefs.h. */
  57331. -$ac_includes_default
  57332. -#include <$ac_header>
  57333. -_ACEOF
  57334. -rm -f conftest.$ac_objext
  57335. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  57336. - (eval $ac_compile) 2>conftest.er1
  57337. - ac_status=$?
  57338. - grep -v '^ *+' conftest.er1 >conftest.err
  57339. - rm -f conftest.er1
  57340. - cat conftest.err >&5
  57341. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57342. - (exit $ac_status); } &&
  57343. - { ac_try='test -z "$ac_c_werror_flag"
  57344. - || test ! -s conftest.err'
  57345. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  57346. - (eval $ac_try) 2>&5
  57347. - ac_status=$?
  57348. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57349. - (exit $ac_status); }; } &&
  57350. - { ac_try='test -s conftest.$ac_objext'
  57351. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  57352. - (eval $ac_try) 2>&5
  57353. - ac_status=$?
  57354. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57355. - (exit $ac_status); }; }; then
  57356. - ac_header_compiler=yes
  57357. -else
  57358. - echo "$as_me: failed program was:" >&5
  57359. -sed 's/^/| /' conftest.$ac_ext >&5
  57360. +elif test "$ac_cv_header_linux_ip_fwchains_h" = yes ; then
  57361. + case " $LIBOBJS " in
  57362. + *" fw-ipchains.$ac_objext "* ) ;;
  57363. + *) LIBOBJS="$LIBOBJS fw-ipchains.$ac_objext"
  57364. + ;;
  57365. +esac
  57366. -ac_header_compiler=no
  57367. -fi
  57368. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  57369. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  57370. -echo "${ECHO_T}$ac_header_compiler" >&6
  57371. +elif test "$ac_cv_header_linux_netfilter_ipv4_ipchains_core_h" = yes ; then
  57372. + case " $LIBOBJS " in
  57373. + *" fw-ipchains.$ac_objext "* ) ;;
  57374. + *) LIBOBJS="$LIBOBJS fw-ipchains.$ac_objext"
  57375. + ;;
  57376. +esac
  57377. -# Is the header present?
  57378. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  57379. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  57380. -cat >conftest.$ac_ext <<_ACEOF
  57381. -/* confdefs.h. */
  57382. -_ACEOF
  57383. -cat confdefs.h >>conftest.$ac_ext
  57384. -cat >>conftest.$ac_ext <<_ACEOF
  57385. -/* end confdefs.h. */
  57386. -#include <$ac_header>
  57387. -_ACEOF
  57388. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  57389. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  57390. - ac_status=$?
  57391. - grep -v '^ *+' conftest.er1 >conftest.err
  57392. - rm -f conftest.er1
  57393. - cat conftest.err >&5
  57394. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57395. - (exit $ac_status); } >/dev/null; then
  57396. - if test -s conftest.err; then
  57397. - ac_cpp_err=$ac_c_preproc_warn_flag
  57398. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  57399. - else
  57400. - ac_cpp_err=
  57401. - fi
  57402. else
  57403. - ac_cpp_err=yes
  57404. -fi
  57405. -if test -z "$ac_cpp_err"; then
  57406. - ac_header_preproc=yes
  57407. -else
  57408. - echo "$as_me: failed program was:" >&5
  57409. -sed 's/^/| /' conftest.$ac_ext >&5
  57410. + case " $LIBOBJS " in
  57411. + *" fw-none.$ac_objext "* ) ;;
  57412. + *) LIBOBJS="$LIBOBJS fw-none.$ac_objext"
  57413. + ;;
  57414. +esac
  57415. - ac_header_preproc=no
  57416. fi
  57417. -rm -f conftest.err conftest.$ac_ext
  57418. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  57419. -echo "${ECHO_T}$ac_header_preproc" >&6
  57420. -# So? What about this header?
  57421. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  57422. - yes:no: )
  57423. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  57424. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  57425. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  57426. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  57427. - ac_header_preproc=yes
  57428. - ;;
  57429. - no:yes:* )
  57430. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  57431. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  57432. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  57433. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  57434. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  57435. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  57436. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  57437. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  57438. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  57439. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  57440. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  57441. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  57442. - (
  57443. - cat <<\_ASBOX
  57444. -## ------------------------------------------ ##
  57445. -## Report this to the AC_PACKAGE_NAME lists. ##
  57446. -## ------------------------------------------ ##
  57447. -_ASBOX
  57448. - ) |
  57449. - sed "s/^/$as_me: WARNING: /" >&2
  57450. - ;;
  57451. +if test "$ac_cv_header_Iphlpapi_h" = yes ; then
  57452. + case " $LIBOBJS " in
  57453. + *" intf-win32.$ac_objext "* ) ;;
  57454. + *) LIBOBJS="$LIBOBJS intf-win32.$ac_objext"
  57455. + ;;
  57456. esac
  57457. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  57458. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  57459. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  57460. - echo $ECHO_N "(cached) $ECHO_C" >&6
  57461. +
  57462. else
  57463. - eval "$as_ac_Header=\$ac_header_preproc"
  57464. -fi
  57465. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  57466. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  57467. + case " $LIBOBJS " in
  57468. + *" intf.$ac_objext "* ) ;;
  57469. + *) LIBOBJS="$LIBOBJS intf.$ac_objext"
  57470. + ;;
  57471. +esac
  57472. fi
  57473. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  57474. - cat >>confdefs.h <<_ACEOF
  57475. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  57476. -_ACEOF
  57477. -fi
  57478. +if test "$ac_cv_header_Iphlpapi_h" = yes ; then
  57479. + case " $LIBOBJS " in
  57480. + *" ip-win32.$ac_objext "* ) ;;
  57481. + *) LIBOBJS="$LIBOBJS ip-win32.$ac_objext"
  57482. + ;;
  57483. +esac
  57484. -done
  57485. +elif test "$ac_cv_dnet_rawip_cooked" = yes ; then
  57486. + case " $LIBOBJS " in
  57487. + *" ip-cooked.$ac_objext "* ) ;;
  57488. + *) LIBOBJS="$LIBOBJS ip-cooked.$ac_objext"
  57489. + ;;
  57490. +esac
  57491. +else
  57492. + case " $LIBOBJS " in
  57493. + *" ip.$ac_objext "* ) ;;
  57494. + *) LIBOBJS="$LIBOBJS ip.$ac_objext"
  57495. + ;;
  57496. +esac
  57497. +fi
  57498. +if test "$ac_cv_header_Iphlpapi_h" = yes ; then
  57499. + case " $LIBOBJS " in
  57500. + *" route-win32.$ac_objext "* ) ;;
  57501. + *) LIBOBJS="$LIBOBJS route-win32.$ac_objext"
  57502. + ;;
  57503. +esac
  57504. +elif test "$ac_cv_dnet_route_h_has_rt_msghdr" = yes ; then
  57505. + case " $LIBOBJS " in
  57506. + *" route-bsd.$ac_objext "* ) ;;
  57507. + *) LIBOBJS="$LIBOBJS route-bsd.$ac_objext"
  57508. + ;;
  57509. +esac
  57510. +elif test "$ac_cv_dnet_linux_procfs" = yes ; then
  57511. + case " $LIBOBJS " in
  57512. + *" route-linux.$ac_objext "* ) ;;
  57513. + *) LIBOBJS="$LIBOBJS route-linux.$ac_objext"
  57514. + ;;
  57515. +esac
  57516. +elif test "$ac_cv_header_hpsecurity_h" = yes ; then
  57517. + case " $LIBOBJS " in
  57518. + *" route-hpux.$ac_objext "* ) ;;
  57519. + *) LIBOBJS="$LIBOBJS route-hpux.$ac_objext"
  57520. + ;;
  57521. +esac
  57522. +else
  57523. + case " $LIBOBJS " in
  57524. + *" route-none.$ac_objext "* ) ;;
  57525. + *) LIBOBJS="$LIBOBJS route-none.$ac_objext"
  57526. + ;;
  57527. +esac
  57528. +fi
  57529. +if test "$ac_cv_header_linux_if_tun_h" = yes ; then
  57530. + case " $LIBOBJS " in
  57531. + *" tun-linux.$ac_objext "* ) ;;
  57532. + *) LIBOBJS="$LIBOBJS tun-linux.$ac_objext"
  57533. + ;;
  57534. +esac
  57535. +elif test "$ac_cv_header_net_if_tun_h" = yes ; then
  57536. + if test "$ac_cv_header_stropts_h" = yes ; then
  57537. + case " $LIBOBJS " in
  57538. + *" tun-solaris.$ac_objext "* ) ;;
  57539. + *) LIBOBJS="$LIBOBJS tun-solaris.$ac_objext"
  57540. + ;;
  57541. +esac
  57542. + else
  57543. + case " $LIBOBJS " in
  57544. + *" tun-bsd.$ac_objext "* ) ;;
  57545. + *) LIBOBJS="$LIBOBJS tun-bsd.$ac_objext"
  57546. + ;;
  57547. +esac
  57548. + fi
  57549. +elif test -c "/dev/tun0" ; then
  57550. + case " $LIBOBJS " in
  57551. + *" tun-bsd.$ac_objext "* ) ;;
  57552. + *) LIBOBJS="$LIBOBJS tun-bsd.$ac_objext"
  57553. + ;;
  57554. +esac
  57555. +else
  57556. + case " $LIBOBJS " in
  57557. + *" tun-none.$ac_objext "* ) ;;
  57558. + *) LIBOBJS="$LIBOBJS tun-none.$ac_objext"
  57559. + ;;
  57560. +esac
  57561. +fi
  57562. +ac_config_files="$ac_config_files Makefile dnet-config include/Makefile include/dnet/Makefile man/Makefile src/Makefile python/Makefile python/setup.py test/Makefile test/check/Makefile test/dnet/Makefile"
  57563. +ac_config_commands="$ac_config_commands default"
  57564. +cat >confcache <<\_ACEOF
  57565. +# This file is a shell script that caches the results of configure
  57566. +# tests run on this system so they can be shared between configure
  57567. +# scripts and configure runs, see configure's option --config-cache.
  57568. +# It is not useful on other systems. If it contains results you don't
  57569. +# want to keep, you may remove or edit it.
  57570. +#
  57571. +# config.status only pays attention to the cache file if you give it
  57572. +# the --recheck option to rerun configure.
  57573. +#
  57574. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  57575. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  57576. +# following values.
  57577. -for ac_header in net/bpf.h net/if.h net/if_var.h \
  57578. - net/if_arp.h net/if_dl.h net/pfilt.h \
  57579. - net/pfvar.h net/radix.h net/raw.h net/route.h netinet/in_var.h \
  57580. - net/if_tun.h linux/if_tun.h netinet/ip_fw.h linux/ip_fw.h \
  57581. - linux/ip_fwchains.h linux/netfilter_ipv4/ipchains_core.h
  57582. -do
  57583. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  57584. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  57585. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  57586. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  57587. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  57588. - echo $ECHO_N "(cached) $ECHO_C" >&6
  57589. -fi
  57590. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  57591. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  57592. -else
  57593. - # Is the header compilable?
  57594. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  57595. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  57596. -cat >conftest.$ac_ext <<_ACEOF
  57597. -/* confdefs.h. */
  57598. -_ACEOF
  57599. -cat confdefs.h >>conftest.$ac_ext
  57600. -cat >>conftest.$ac_ext <<_ACEOF
  57601. -/* end confdefs.h. */
  57602. -$ac_includes_default
  57603. -#include <$ac_header>
  57604. _ACEOF
  57605. -rm -f conftest.$ac_objext
  57606. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  57607. - (eval $ac_compile) 2>conftest.er1
  57608. - ac_status=$?
  57609. - grep -v '^ *+' conftest.er1 >conftest.err
  57610. - rm -f conftest.er1
  57611. - cat conftest.err >&5
  57612. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57613. - (exit $ac_status); } &&
  57614. - { ac_try='test -z "$ac_c_werror_flag"
  57615. - || test ! -s conftest.err'
  57616. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  57617. - (eval $ac_try) 2>&5
  57618. - ac_status=$?
  57619. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57620. - (exit $ac_status); }; } &&
  57621. - { ac_try='test -s conftest.$ac_objext'
  57622. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  57623. - (eval $ac_try) 2>&5
  57624. - ac_status=$?
  57625. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57626. - (exit $ac_status); }; }; then
  57627. - ac_header_compiler=yes
  57628. -else
  57629. - echo "$as_me: failed program was:" >&5
  57630. -sed 's/^/| /' conftest.$ac_ext >&5
  57631. -ac_header_compiler=no
  57632. -fi
  57633. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  57634. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  57635. -echo "${ECHO_T}$ac_header_compiler" >&6
  57636. +# The following way of writing the cache mishandles newlines in values,
  57637. +# but we know of no workaround that is simple, portable, and efficient.
  57638. +# So, we kill variables containing newlines.
  57639. +# Ultrix sh set writes to stderr and can't be redirected directly,
  57640. +# and sets the high bit in the cache file unless we assign to the vars.
  57641. +(
  57642. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  57643. + eval ac_val=\$$ac_var
  57644. + case $ac_val in #(
  57645. + *${as_nl}*)
  57646. + case $ac_var in #(
  57647. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  57648. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  57649. + esac
  57650. + case $ac_var in #(
  57651. + _ | IFS | as_nl) ;; #(
  57652. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  57653. + *) { eval $ac_var=; unset $ac_var;} ;;
  57654. + esac ;;
  57655. + esac
  57656. + done
  57657. -# Is the header present?
  57658. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  57659. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  57660. -cat >conftest.$ac_ext <<_ACEOF
  57661. -/* confdefs.h. */
  57662. -_ACEOF
  57663. -cat confdefs.h >>conftest.$ac_ext
  57664. -cat >>conftest.$ac_ext <<_ACEOF
  57665. -/* end confdefs.h. */
  57666. -#include <$ac_header>
  57667. -_ACEOF
  57668. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  57669. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  57670. - ac_status=$?
  57671. - grep -v '^ *+' conftest.er1 >conftest.err
  57672. - rm -f conftest.er1
  57673. - cat conftest.err >&5
  57674. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57675. - (exit $ac_status); } >/dev/null; then
  57676. - if test -s conftest.err; then
  57677. - ac_cpp_err=$ac_c_preproc_warn_flag
  57678. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  57679. + (set) 2>&1 |
  57680. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  57681. + *${as_nl}ac_space=\ *)
  57682. + # `set' does not quote correctly, so add quotes: double-quote
  57683. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  57684. + sed -n \
  57685. + "s/'/'\\\\''/g;
  57686. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  57687. + ;; #(
  57688. + *)
  57689. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  57690. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  57691. + ;;
  57692. + esac |
  57693. + sort
  57694. +) |
  57695. + sed '
  57696. + /^ac_cv_env_/b end
  57697. + t clear
  57698. + :clear
  57699. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  57700. + t end
  57701. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  57702. + :end' >>confcache
  57703. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  57704. + if test -w "$cache_file"; then
  57705. + test "x$cache_file" != "x/dev/null" &&
  57706. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  57707. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  57708. + cat confcache >$cache_file
  57709. else
  57710. - ac_cpp_err=
  57711. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  57712. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  57713. fi
  57714. -else
  57715. - ac_cpp_err=yes
  57716. -fi
  57717. -if test -z "$ac_cpp_err"; then
  57718. - ac_header_preproc=yes
  57719. -else
  57720. - echo "$as_me: failed program was:" >&5
  57721. -sed 's/^/| /' conftest.$ac_ext >&5
  57722. -
  57723. - ac_header_preproc=no
  57724. -fi
  57725. -rm -f conftest.err conftest.$ac_ext
  57726. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  57727. -echo "${ECHO_T}$ac_header_preproc" >&6
  57728. -
  57729. -# So? What about this header?
  57730. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  57731. - yes:no: )
  57732. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  57733. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  57734. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  57735. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  57736. - ac_header_preproc=yes
  57737. - ;;
  57738. - no:yes:* )
  57739. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  57740. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  57741. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  57742. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  57743. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  57744. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  57745. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  57746. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  57747. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  57748. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  57749. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  57750. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  57751. - (
  57752. - cat <<\_ASBOX
  57753. -## ------------------------------------------ ##
  57754. -## Report this to the AC_PACKAGE_NAME lists. ##
  57755. -## ------------------------------------------ ##
  57756. -_ASBOX
  57757. - ) |
  57758. - sed "s/^/$as_me: WARNING: /" >&2
  57759. - ;;
  57760. -esac
  57761. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  57762. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  57763. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  57764. - echo $ECHO_N "(cached) $ECHO_C" >&6
  57765. -else
  57766. - eval "$as_ac_Header=\$ac_header_preproc"
  57767. fi
  57768. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  57769. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  57770. +rm -f confcache
  57771. -fi
  57772. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  57773. - cat >>confdefs.h <<_ACEOF
  57774. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  57775. -_ACEOF
  57776. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  57777. +# Let make expand exec_prefix.
  57778. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  57779. -fi
  57780. +DEFS=-DHAVE_CONFIG_H
  57781. +ac_libobjs=
  57782. +ac_ltlibobjs=
  57783. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  57784. + # 1. Remove the extension, and $U if already installed.
  57785. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  57786. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  57787. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  57788. + # will be set to the directory where LIBOBJS objects are built.
  57789. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  57790. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  57791. done
  57792. +LIBOBJS=$ac_libobjs
  57793. +LTLIBOBJS=$ac_ltlibobjs
  57794. -
  57795. -
  57796. -
  57797. -
  57798. -for ac_header in ip_fil_compat.h netinet/ip_fil_compat.h ip_compat.h \
  57799. - netinet/ip_compat.h ip_fil.h netinet/ip_fil.h
  57800. -do
  57801. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  57802. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  57803. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  57804. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  57805. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  57806. - echo $ECHO_N "(cached) $ECHO_C" >&6
  57807. -fi
  57808. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  57809. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  57810. -else
  57811. - # Is the header compilable?
  57812. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  57813. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  57814. -cat >conftest.$ac_ext <<_ACEOF
  57815. -/* confdefs.h. */
  57816. -_ACEOF
  57817. -cat confdefs.h >>conftest.$ac_ext
  57818. -cat >>conftest.$ac_ext <<_ACEOF
  57819. -/* end confdefs.h. */
  57820. -$ac_includes_default
  57821. -#include <$ac_header>
  57822. -_ACEOF
  57823. -rm -f conftest.$ac_objext
  57824. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  57825. - (eval $ac_compile) 2>conftest.er1
  57826. - ac_status=$?
  57827. - grep -v '^ *+' conftest.er1 >conftest.err
  57828. - rm -f conftest.er1
  57829. - cat conftest.err >&5
  57830. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57831. - (exit $ac_status); } &&
  57832. - { ac_try='test -z "$ac_c_werror_flag"
  57833. - || test ! -s conftest.err'
  57834. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  57835. - (eval $ac_try) 2>&5
  57836. - ac_status=$?
  57837. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57838. - (exit $ac_status); }; } &&
  57839. - { ac_try='test -s conftest.$ac_objext'
  57840. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  57841. - (eval $ac_try) 2>&5
  57842. - ac_status=$?
  57843. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57844. - (exit $ac_status); }; }; then
  57845. - ac_header_compiler=yes
  57846. + if test -n "$EXEEXT"; then
  57847. + am__EXEEXT_TRUE=
  57848. + am__EXEEXT_FALSE='#'
  57849. else
  57850. - echo "$as_me: failed program was:" >&5
  57851. -sed 's/^/| /' conftest.$ac_ext >&5
  57852. -
  57853. -ac_header_compiler=no
  57854. + am__EXEEXT_TRUE='#'
  57855. + am__EXEEXT_FALSE=
  57856. fi
  57857. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  57858. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  57859. -echo "${ECHO_T}$ac_header_compiler" >&6
  57860. -# Is the header present?
  57861. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  57862. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  57863. -cat >conftest.$ac_ext <<_ACEOF
  57864. -/* confdefs.h. */
  57865. -_ACEOF
  57866. -cat confdefs.h >>conftest.$ac_ext
  57867. -cat >>conftest.$ac_ext <<_ACEOF
  57868. -/* end confdefs.h. */
  57869. -#include <$ac_header>
  57870. -_ACEOF
  57871. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  57872. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  57873. - ac_status=$?
  57874. - grep -v '^ *+' conftest.er1 >conftest.err
  57875. - rm -f conftest.er1
  57876. - cat conftest.err >&5
  57877. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  57878. - (exit $ac_status); } >/dev/null; then
  57879. - if test -s conftest.err; then
  57880. - ac_cpp_err=$ac_c_preproc_warn_flag
  57881. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  57882. - else
  57883. - ac_cpp_err=
  57884. - fi
  57885. -else
  57886. - ac_cpp_err=yes
  57887. +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  57888. + as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  57889. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57890. fi
  57891. -if test -z "$ac_cpp_err"; then
  57892. - ac_header_preproc=yes
  57893. -else
  57894. - echo "$as_me: failed program was:" >&5
  57895. -sed 's/^/| /' conftest.$ac_ext >&5
  57896. -
  57897. - ac_header_preproc=no
  57898. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  57899. + as_fn_error "conditional \"AMDEP\" was never defined.
  57900. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57901. fi
  57902. -rm -f conftest.err conftest.$ac_ext
  57903. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  57904. -echo "${ECHO_T}$ac_header_preproc" >&6
  57905. -
  57906. -# So? What about this header?
  57907. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  57908. - yes:no: )
  57909. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  57910. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  57911. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  57912. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  57913. - ac_header_preproc=yes
  57914. - ;;
  57915. - no:yes:* )
  57916. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  57917. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  57918. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  57919. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  57920. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  57921. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  57922. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  57923. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  57924. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  57925. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  57926. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  57927. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  57928. - (
  57929. - cat <<\_ASBOX
  57930. -## ------------------------------------------ ##
  57931. -## Report this to the AC_PACKAGE_NAME lists. ##
  57932. -## ------------------------------------------ ##
  57933. -_ASBOX
  57934. - ) |
  57935. - sed "s/^/$as_me: WARNING: /" >&2
  57936. - ;;
  57937. -esac
  57938. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  57939. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  57940. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  57941. - echo $ECHO_N "(cached) $ECHO_C" >&6
  57942. -else
  57943. - eval "$as_ac_Header=\$ac_header_preproc"
  57944. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  57945. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  57946. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57947. fi
  57948. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  57949. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  57950. -
  57951. +if test -z "${PYTHON_TRUE}" && test -z "${PYTHON_FALSE}"; then
  57952. + as_fn_error "conditional \"PYTHON\" was never defined.
  57953. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57954. fi
  57955. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  57956. - cat >>confdefs.h <<_ACEOF
  57957. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  57958. -_ACEOF
  57959. -
  57960. +if test -z "${TCL_TRUE}" && test -z "${TCL_FALSE}"; then
  57961. + as_fn_error "conditional \"TCL\" was never defined.
  57962. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57963. +fi
  57964. +if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
  57965. + as_fn_error "conditional \"HAVE_CHECK\" was never defined.
  57966. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  57967. fi
  57968. -done
  57969. -
  57970. -
  57971. +: ${CONFIG_STATUS=./config.status}
  57972. +ac_write_fail=0
  57973. +ac_clean_files_save=$ac_clean_files
  57974. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  57975. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  57976. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  57977. +as_write_fail=0
  57978. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  57979. +#! $SHELL
  57980. +# Generated by $as_me.
  57981. +# Run this file to recreate the current configuration.
  57982. +# Compiler output produced by configure, useful for debugging
  57983. +# configure, is in config.log if it exists.
  57984. -for ac_header in hpsecurity.h stropts.h
  57985. -do
  57986. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  57987. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  57988. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  57989. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  57990. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  57991. - echo $ECHO_N "(cached) $ECHO_C" >&6
  57992. -fi
  57993. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  57994. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  57995. -else
  57996. - # Is the header compilable?
  57997. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  57998. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  57999. -cat >conftest.$ac_ext <<_ACEOF
  58000. -/* confdefs.h. */
  58001. -_ACEOF
  58002. -cat confdefs.h >>conftest.$ac_ext
  58003. -cat >>conftest.$ac_ext <<_ACEOF
  58004. -/* end confdefs.h. */
  58005. -$ac_includes_default
  58006. -#include <$ac_header>
  58007. -_ACEOF
  58008. -rm -f conftest.$ac_objext
  58009. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  58010. - (eval $ac_compile) 2>conftest.er1
  58011. - ac_status=$?
  58012. - grep -v '^ *+' conftest.er1 >conftest.err
  58013. - rm -f conftest.er1
  58014. - cat conftest.err >&5
  58015. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58016. - (exit $ac_status); } &&
  58017. - { ac_try='test -z "$ac_c_werror_flag"
  58018. - || test ! -s conftest.err'
  58019. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  58020. - (eval $ac_try) 2>&5
  58021. - ac_status=$?
  58022. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58023. - (exit $ac_status); }; } &&
  58024. - { ac_try='test -s conftest.$ac_objext'
  58025. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  58026. - (eval $ac_try) 2>&5
  58027. - ac_status=$?
  58028. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58029. - (exit $ac_status); }; }; then
  58030. - ac_header_compiler=yes
  58031. -else
  58032. - echo "$as_me: failed program was:" >&5
  58033. -sed 's/^/| /' conftest.$ac_ext >&5
  58034. +debug=false
  58035. +ac_cs_recheck=false
  58036. +ac_cs_silent=false
  58037. -ac_header_compiler=no
  58038. -fi
  58039. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  58040. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  58041. -echo "${ECHO_T}$ac_header_compiler" >&6
  58042. +SHELL=\${CONFIG_SHELL-$SHELL}
  58043. +export SHELL
  58044. +_ASEOF
  58045. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  58046. +## -------------------- ##
  58047. +## M4sh Initialization. ##
  58048. +## -------------------- ##
  58049. -# Is the header present?
  58050. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  58051. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  58052. -cat >conftest.$ac_ext <<_ACEOF
  58053. -/* confdefs.h. */
  58054. -_ACEOF
  58055. -cat confdefs.h >>conftest.$ac_ext
  58056. -cat >>conftest.$ac_ext <<_ACEOF
  58057. -/* end confdefs.h. */
  58058. -#include <$ac_header>
  58059. -_ACEOF
  58060. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  58061. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  58062. - ac_status=$?
  58063. - grep -v '^ *+' conftest.er1 >conftest.err
  58064. - rm -f conftest.er1
  58065. - cat conftest.err >&5
  58066. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58067. - (exit $ac_status); } >/dev/null; then
  58068. - if test -s conftest.err; then
  58069. - ac_cpp_err=$ac_c_preproc_warn_flag
  58070. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  58071. - else
  58072. - ac_cpp_err=
  58073. - fi
  58074. +# Be more Bourne compatible
  58075. +DUALCASE=1; export DUALCASE # for MKS sh
  58076. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  58077. + emulate sh
  58078. + NULLCMD=:
  58079. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  58080. + # is contrary to our usage. Disable this feature.
  58081. + alias -g '${1+"$@"}'='"$@"'
  58082. + setopt NO_GLOB_SUBST
  58083. else
  58084. - ac_cpp_err=yes
  58085. + case `(set -o) 2>/dev/null` in #(
  58086. + *posix*) :
  58087. + set -o posix ;; #(
  58088. + *) :
  58089. + ;;
  58090. +esac
  58091. fi
  58092. -if test -z "$ac_cpp_err"; then
  58093. - ac_header_preproc=yes
  58094. -else
  58095. - echo "$as_me: failed program was:" >&5
  58096. -sed 's/^/| /' conftest.$ac_ext >&5
  58097. - ac_header_preproc=no
  58098. -fi
  58099. -rm -f conftest.err conftest.$ac_ext
  58100. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  58101. -echo "${ECHO_T}$ac_header_preproc" >&6
  58102. -# So? What about this header?
  58103. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  58104. - yes:no: )
  58105. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  58106. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  58107. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  58108. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  58109. - ac_header_preproc=yes
  58110. - ;;
  58111. - no:yes:* )
  58112. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  58113. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  58114. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  58115. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  58116. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  58117. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  58118. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  58119. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  58120. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  58121. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  58122. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  58123. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  58124. - (
  58125. - cat <<\_ASBOX
  58126. -## ------------------------------------------ ##
  58127. -## Report this to the AC_PACKAGE_NAME lists. ##
  58128. -## ------------------------------------------ ##
  58129. -_ASBOX
  58130. - ) |
  58131. - sed "s/^/$as_me: WARNING: /" >&2
  58132. - ;;
  58133. -esac
  58134. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  58135. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  58136. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  58137. - echo $ECHO_N "(cached) $ECHO_C" >&6
  58138. -else
  58139. - eval "$as_ac_Header=\$ac_header_preproc"
  58140. +as_nl='
  58141. +'
  58142. +export as_nl
  58143. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  58144. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  58145. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  58146. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  58147. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  58148. +# but without wasting forks for bash or zsh.
  58149. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  58150. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  58151. + as_echo='print -r --'
  58152. + as_echo_n='print -rn --'
  58153. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  58154. + as_echo='printf %s\n'
  58155. + as_echo_n='printf %s'
  58156. +else
  58157. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  58158. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  58159. + as_echo_n='/usr/ucb/echo -n'
  58160. + else
  58161. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  58162. + as_echo_n_body='eval
  58163. + arg=$1;
  58164. + case $arg in #(
  58165. + *"$as_nl"*)
  58166. + expr "X$arg" : "X\\(.*\\)$as_nl";
  58167. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  58168. + esac;
  58169. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  58170. + '
  58171. + export as_echo_n_body
  58172. + as_echo_n='sh -c $as_echo_n_body as_echo'
  58173. + fi
  58174. + export as_echo_body
  58175. + as_echo='sh -c $as_echo_body as_echo'
  58176. fi
  58177. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  58178. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  58179. +# The user is always right.
  58180. +if test "${PATH_SEPARATOR+set}" != set; then
  58181. + PATH_SEPARATOR=:
  58182. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  58183. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  58184. + PATH_SEPARATOR=';'
  58185. + }
  58186. fi
  58187. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  58188. - cat >>confdefs.h <<_ACEOF
  58189. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  58190. -_ACEOF
  58191. -fi
  58192. +# IFS
  58193. +# We need space, tab and new line, in precisely that order. Quoting is
  58194. +# there to prevent editors from complaining about space-tab.
  58195. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  58196. +# splitting by setting IFS to empty value.)
  58197. +IFS=" "" $as_nl"
  58198. +
  58199. +# Find who we are. Look in the path if we contain no directory separator.
  58200. +case $0 in #((
  58201. + *[\\/]* ) as_myself=$0 ;;
  58202. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  58203. +for as_dir in $PATH
  58204. +do
  58205. + IFS=$as_save_IFS
  58206. + test -z "$as_dir" && as_dir=.
  58207. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  58208. + done
  58209. +IFS=$as_save_IFS
  58210. +
  58211. + ;;
  58212. +esac
  58213. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  58214. +# in which case we are not to be found in the path.
  58215. +if test "x$as_myself" = x; then
  58216. + as_myself=$0
  58217. +fi
  58218. +if test ! -f "$as_myself"; then
  58219. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  58220. + exit 1
  58221. +fi
  58222. +
  58223. +# Unset variables that we do not need and which cause bugs (e.g. in
  58224. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  58225. +# suppresses any "Segmentation fault" message there. '((' could
  58226. +# trigger a bug in pdksh 5.2.14.
  58227. +for as_var in BASH_ENV ENV MAIL MAILPATH
  58228. +do eval test x\${$as_var+set} = xset \
  58229. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  58230. done
  58231. +PS1='$ '
  58232. +PS2='> '
  58233. +PS4='+ '
  58234. -fi
  58235. +# NLS nuisances.
  58236. +LC_ALL=C
  58237. +export LC_ALL
  58238. +LANGUAGE=C
  58239. +export LANGUAGE
  58240. -echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  58241. -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  58242. -if test "${ac_cv_c_const+set}" = set; then
  58243. - echo $ECHO_N "(cached) $ECHO_C" >&6
  58244. -else
  58245. - cat >conftest.$ac_ext <<_ACEOF
  58246. -/* confdefs.h. */
  58247. -_ACEOF
  58248. -cat confdefs.h >>conftest.$ac_ext
  58249. -cat >>conftest.$ac_ext <<_ACEOF
  58250. -/* end confdefs.h. */
  58251. +# CDPATH.
  58252. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  58253. -int
  58254. -main ()
  58255. -{
  58256. -/* FIXME: Include the comments suggested by Paul. */
  58257. -#ifndef __cplusplus
  58258. - /* Ultrix mips cc rejects this. */
  58259. - typedef int charset[2];
  58260. - const charset x;
  58261. - /* SunOS 4.1.1 cc rejects this. */
  58262. - char const *const *ccp;
  58263. - char **p;
  58264. - /* NEC SVR4.0.2 mips cc rejects this. */
  58265. - struct point {int x, y;};
  58266. - static struct point const zero = {0,0};
  58267. - /* AIX XL C 1.02.0.0 rejects this.
  58268. - It does not let you subtract one const X* pointer from another in
  58269. - an arm of an if-expression whose if-part is not a constant
  58270. - expression */
  58271. - const char *g = "string";
  58272. - ccp = &g + (g ? g-g : 0);
  58273. - /* HPUX 7.0 cc rejects these. */
  58274. - ++ccp;
  58275. - p = (char**) ccp;
  58276. - ccp = (char const *const *) p;
  58277. - { /* SCO 3.2v4 cc rejects this. */
  58278. - char *t;
  58279. - char const *s = 0 ? (char *) 0 : (char const *) 0;
  58280. - *t++ = 0;
  58281. - }
  58282. - { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  58283. - int x[] = {25, 17};
  58284. - const int *foo = &x[0];
  58285. - ++foo;
  58286. - }
  58287. - { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  58288. - typedef const int *iptr;
  58289. - iptr p = 0;
  58290. - ++p;
  58291. - }
  58292. - { /* AIX XL C 1.02.0.0 rejects this saying
  58293. - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  58294. - struct s { int j; const int *ap[3]; };
  58295. - struct s *b; b->j = 5;
  58296. - }
  58297. - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  58298. - const int foo = 10;
  58299. +# as_fn_error ERROR [LINENO LOG_FD]
  58300. +# ---------------------------------
  58301. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  58302. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  58303. +# script with status $?, using 1 if that was 0.
  58304. +as_fn_error ()
  58305. +{
  58306. + as_status=$?; test $as_status -eq 0 && as_status=1
  58307. + if test "$3"; then
  58308. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  58309. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  58310. + fi
  58311. + $as_echo "$as_me: error: $1" >&2
  58312. + as_fn_exit $as_status
  58313. +} # as_fn_error
  58314. +
  58315. +
  58316. +# as_fn_set_status STATUS
  58317. +# -----------------------
  58318. +# Set $? to STATUS, without forking.
  58319. +as_fn_set_status ()
  58320. +{
  58321. + return $1
  58322. +} # as_fn_set_status
  58323. +
  58324. +# as_fn_exit STATUS
  58325. +# -----------------
  58326. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  58327. +as_fn_exit ()
  58328. +{
  58329. + set +e
  58330. + as_fn_set_status $1
  58331. + exit $1
  58332. +} # as_fn_exit
  58333. +
  58334. +# as_fn_unset VAR
  58335. +# ---------------
  58336. +# Portably unset VAR.
  58337. +as_fn_unset ()
  58338. +{
  58339. + { eval $1=; unset $1;}
  58340. +}
  58341. +as_unset=as_fn_unset
  58342. +# as_fn_append VAR VALUE
  58343. +# ----------------------
  58344. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  58345. +# advantage of any shell optimizations that allow amortized linear growth over
  58346. +# repeated appends, instead of the typical quadratic growth present in naive
  58347. +# implementations.
  58348. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  58349. + eval 'as_fn_append ()
  58350. + {
  58351. + eval $1+=\$2
  58352. + }'
  58353. +else
  58354. + as_fn_append ()
  58355. + {
  58356. + eval $1=\$$1\$2
  58357. }
  58358. -#endif
  58359. +fi # as_fn_append
  58360. - ;
  58361. - return 0;
  58362. -}
  58363. -_ACEOF
  58364. -rm -f conftest.$ac_objext
  58365. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  58366. - (eval $ac_compile) 2>conftest.er1
  58367. - ac_status=$?
  58368. - grep -v '^ *+' conftest.er1 >conftest.err
  58369. - rm -f conftest.er1
  58370. - cat conftest.err >&5
  58371. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58372. - (exit $ac_status); } &&
  58373. - { ac_try='test -z "$ac_c_werror_flag"
  58374. - || test ! -s conftest.err'
  58375. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  58376. - (eval $ac_try) 2>&5
  58377. - ac_status=$?
  58378. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58379. - (exit $ac_status); }; } &&
  58380. - { ac_try='test -s conftest.$ac_objext'
  58381. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  58382. - (eval $ac_try) 2>&5
  58383. - ac_status=$?
  58384. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58385. - (exit $ac_status); }; }; then
  58386. - ac_cv_c_const=yes
  58387. +# as_fn_arith ARG...
  58388. +# ------------------
  58389. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  58390. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  58391. +# must be portable across $(()) and expr.
  58392. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  58393. + eval 'as_fn_arith ()
  58394. + {
  58395. + as_val=$(( $* ))
  58396. + }'
  58397. else
  58398. - echo "$as_me: failed program was:" >&5
  58399. -sed 's/^/| /' conftest.$ac_ext >&5
  58400. -
  58401. -ac_cv_c_const=no
  58402. -fi
  58403. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  58404. -fi
  58405. -echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  58406. -echo "${ECHO_T}$ac_cv_c_const" >&6
  58407. -if test $ac_cv_c_const = no; then
  58408. + as_fn_arith ()
  58409. + {
  58410. + as_val=`expr "$@" || test $? -eq 1`
  58411. + }
  58412. +fi # as_fn_arith
  58413. -cat >>confdefs.h <<\_ACEOF
  58414. -#define const
  58415. -_ACEOF
  58416. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  58417. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  58418. + as_expr=expr
  58419. +else
  58420. + as_expr=false
  58421. fi
  58422. -echo "$as_me:$LINENO: checking for inline" >&5
  58423. -echo $ECHO_N "checking for inline... $ECHO_C" >&6
  58424. -if test "${ac_cv_c_inline+set}" = set; then
  58425. - echo $ECHO_N "(cached) $ECHO_C" >&6
  58426. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  58427. + as_basename=basename
  58428. else
  58429. - ac_cv_c_inline=no
  58430. -for ac_kw in inline __inline__ __inline; do
  58431. - cat >conftest.$ac_ext <<_ACEOF
  58432. -/* confdefs.h. */
  58433. -_ACEOF
  58434. -cat confdefs.h >>conftest.$ac_ext
  58435. -cat >>conftest.$ac_ext <<_ACEOF
  58436. -/* end confdefs.h. */
  58437. -#ifndef __cplusplus
  58438. -typedef int foo_t;
  58439. -static $ac_kw foo_t static_foo () {return 0; }
  58440. -$ac_kw foo_t foo () {return 0; }
  58441. -#endif
  58442. + as_basename=false
  58443. +fi
  58444. -_ACEOF
  58445. -rm -f conftest.$ac_objext
  58446. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  58447. - (eval $ac_compile) 2>conftest.er1
  58448. - ac_status=$?
  58449. - grep -v '^ *+' conftest.er1 >conftest.err
  58450. - rm -f conftest.er1
  58451. - cat conftest.err >&5
  58452. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58453. - (exit $ac_status); } &&
  58454. - { ac_try='test -z "$ac_c_werror_flag"
  58455. - || test ! -s conftest.err'
  58456. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  58457. - (eval $ac_try) 2>&5
  58458. - ac_status=$?
  58459. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58460. - (exit $ac_status); }; } &&
  58461. - { ac_try='test -s conftest.$ac_objext'
  58462. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  58463. - (eval $ac_try) 2>&5
  58464. - ac_status=$?
  58465. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58466. - (exit $ac_status); }; }; then
  58467. - ac_cv_c_inline=$ac_kw; break
  58468. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  58469. + as_dirname=dirname
  58470. else
  58471. - echo "$as_me: failed program was:" >&5
  58472. -sed 's/^/| /' conftest.$ac_ext >&5
  58473. -
  58474. + as_dirname=false
  58475. fi
  58476. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  58477. -done
  58478. -fi
  58479. -echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  58480. -echo "${ECHO_T}$ac_cv_c_inline" >&6
  58481. +as_me=`$as_basename -- "$0" ||
  58482. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  58483. + X"$0" : 'X\(//\)$' \| \
  58484. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  58485. +$as_echo X/"$0" |
  58486. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  58487. + s//\1/
  58488. + q
  58489. + }
  58490. + /^X\/\(\/\/\)$/{
  58491. + s//\1/
  58492. + q
  58493. + }
  58494. + /^X\/\(\/\).*/{
  58495. + s//\1/
  58496. + q
  58497. + }
  58498. + s/.*/./; q'`
  58499. +# Avoid depending upon Character Ranges.
  58500. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  58501. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  58502. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  58503. +as_cr_digits='0123456789'
  58504. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  58505. -case $ac_cv_c_inline in
  58506. - inline | yes) ;;
  58507. - *)
  58508. - case $ac_cv_c_inline in
  58509. - no) ac_val=;;
  58510. - *) ac_val=$ac_cv_c_inline;;
  58511. - esac
  58512. - cat >>confdefs.h <<_ACEOF
  58513. -#ifndef __cplusplus
  58514. -#define inline $ac_val
  58515. -#endif
  58516. -_ACEOF
  58517. - ;;
  58518. +ECHO_C= ECHO_N= ECHO_T=
  58519. +case `echo -n x` in #(((((
  58520. +-n*)
  58521. + case `echo 'xy\c'` in
  58522. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  58523. + xy) ECHO_C='\c';;
  58524. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  58525. + ECHO_T=' ';;
  58526. + esac;;
  58527. +*)
  58528. + ECHO_N='-n';;
  58529. esac
  58530. -echo "$as_me:$LINENO: checking for pid_t" >&5
  58531. -echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  58532. -if test "${ac_cv_type_pid_t+set}" = set; then
  58533. - echo $ECHO_N "(cached) $ECHO_C" >&6
  58534. -else
  58535. - cat >conftest.$ac_ext <<_ACEOF
  58536. -/* confdefs.h. */
  58537. -_ACEOF
  58538. -cat confdefs.h >>conftest.$ac_ext
  58539. -cat >>conftest.$ac_ext <<_ACEOF
  58540. -/* end confdefs.h. */
  58541. -$ac_includes_default
  58542. -int
  58543. -main ()
  58544. -{
  58545. -if ((pid_t *) 0)
  58546. - return 0;
  58547. -if (sizeof (pid_t))
  58548. - return 0;
  58549. - ;
  58550. - return 0;
  58551. -}
  58552. -_ACEOF
  58553. -rm -f conftest.$ac_objext
  58554. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  58555. - (eval $ac_compile) 2>conftest.er1
  58556. - ac_status=$?
  58557. - grep -v '^ *+' conftest.er1 >conftest.err
  58558. - rm -f conftest.er1
  58559. - cat conftest.err >&5
  58560. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58561. - (exit $ac_status); } &&
  58562. - { ac_try='test -z "$ac_c_werror_flag"
  58563. - || test ! -s conftest.err'
  58564. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  58565. - (eval $ac_try) 2>&5
  58566. - ac_status=$?
  58567. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58568. - (exit $ac_status); }; } &&
  58569. - { ac_try='test -s conftest.$ac_objext'
  58570. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  58571. - (eval $ac_try) 2>&5
  58572. - ac_status=$?
  58573. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58574. - (exit $ac_status); }; }; then
  58575. - ac_cv_type_pid_t=yes
  58576. +rm -f conf$$ conf$$.exe conf$$.file
  58577. +if test -d conf$$.dir; then
  58578. + rm -f conf$$.dir/conf$$.file
  58579. else
  58580. - echo "$as_me: failed program was:" >&5
  58581. -sed 's/^/| /' conftest.$ac_ext >&5
  58582. -
  58583. -ac_cv_type_pid_t=no
  58584. + rm -f conf$$.dir
  58585. + mkdir conf$$.dir 2>/dev/null
  58586. fi
  58587. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  58588. -fi
  58589. -echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  58590. -echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  58591. -if test $ac_cv_type_pid_t = yes; then
  58592. - :
  58593. +if (echo >conf$$.file) 2>/dev/null; then
  58594. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  58595. + as_ln_s='ln -s'
  58596. + # ... but there are two gotchas:
  58597. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  58598. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  58599. + # In both cases, we have to default to `cp -p'.
  58600. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  58601. + as_ln_s='cp -p'
  58602. + elif ln conf$$.file conf$$ 2>/dev/null; then
  58603. + as_ln_s=ln
  58604. + else
  58605. + as_ln_s='cp -p'
  58606. + fi
  58607. else
  58608. -
  58609. -cat >>confdefs.h <<_ACEOF
  58610. -#define pid_t int
  58611. -_ACEOF
  58612. -
  58613. + as_ln_s='cp -p'
  58614. fi
  58615. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  58616. +rmdir conf$$.dir 2>/dev/null
  58617. -echo "$as_me:$LINENO: checking for size_t" >&5
  58618. -echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  58619. -if test "${ac_cv_type_size_t+set}" = set; then
  58620. - echo $ECHO_N "(cached) $ECHO_C" >&6
  58621. -else
  58622. - cat >conftest.$ac_ext <<_ACEOF
  58623. -/* confdefs.h. */
  58624. -_ACEOF
  58625. -cat confdefs.h >>conftest.$ac_ext
  58626. -cat >>conftest.$ac_ext <<_ACEOF
  58627. -/* end confdefs.h. */
  58628. -$ac_includes_default
  58629. -int
  58630. -main ()
  58631. +
  58632. +# as_fn_mkdir_p
  58633. +# -------------
  58634. +# Create "$as_dir" as a directory, including parents if necessary.
  58635. +as_fn_mkdir_p ()
  58636. {
  58637. -if ((size_t *) 0)
  58638. - return 0;
  58639. -if (sizeof (size_t))
  58640. - return 0;
  58641. - ;
  58642. - return 0;
  58643. -}
  58644. -_ACEOF
  58645. -rm -f conftest.$ac_objext
  58646. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  58647. - (eval $ac_compile) 2>conftest.er1
  58648. - ac_status=$?
  58649. - grep -v '^ *+' conftest.er1 >conftest.err
  58650. - rm -f conftest.er1
  58651. - cat conftest.err >&5
  58652. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58653. - (exit $ac_status); } &&
  58654. - { ac_try='test -z "$ac_c_werror_flag"
  58655. - || test ! -s conftest.err'
  58656. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  58657. - (eval $ac_try) 2>&5
  58658. - ac_status=$?
  58659. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58660. - (exit $ac_status); }; } &&
  58661. - { ac_try='test -s conftest.$ac_objext'
  58662. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  58663. - (eval $ac_try) 2>&5
  58664. - ac_status=$?
  58665. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58666. - (exit $ac_status); }; }; then
  58667. - ac_cv_type_size_t=yes
  58668. -else
  58669. - echo "$as_me: failed program was:" >&5
  58670. -sed 's/^/| /' conftest.$ac_ext >&5
  58671. -ac_cv_type_size_t=no
  58672. -fi
  58673. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  58674. + case $as_dir in #(
  58675. + -*) as_dir=./$as_dir;;
  58676. + esac
  58677. + test -d "$as_dir" || eval $as_mkdir_p || {
  58678. + as_dirs=
  58679. + while :; do
  58680. + case $as_dir in #(
  58681. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  58682. + *) as_qdir=$as_dir;;
  58683. + esac
  58684. + as_dirs="'$as_qdir' $as_dirs"
  58685. + as_dir=`$as_dirname -- "$as_dir" ||
  58686. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  58687. + X"$as_dir" : 'X\(//\)[^/]' \| \
  58688. + X"$as_dir" : 'X\(//\)$' \| \
  58689. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  58690. +$as_echo X"$as_dir" |
  58691. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  58692. + s//\1/
  58693. + q
  58694. + }
  58695. + /^X\(\/\/\)[^/].*/{
  58696. + s//\1/
  58697. + q
  58698. + }
  58699. + /^X\(\/\/\)$/{
  58700. + s//\1/
  58701. + q
  58702. + }
  58703. + /^X\(\/\).*/{
  58704. + s//\1/
  58705. + q
  58706. + }
  58707. + s/.*/./; q'`
  58708. + test -d "$as_dir" && break
  58709. + done
  58710. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  58711. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  58712. +
  58713. +
  58714. +} # as_fn_mkdir_p
  58715. +if mkdir -p . 2>/dev/null; then
  58716. + as_mkdir_p='mkdir -p "$as_dir"'
  58717. +else
  58718. + test -d ./-p && rmdir ./-p
  58719. + as_mkdir_p=false
  58720. fi
  58721. -echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  58722. -echo "${ECHO_T}$ac_cv_type_size_t" >&6
  58723. -if test $ac_cv_type_size_t = yes; then
  58724. - :
  58725. +
  58726. +if test -x / >/dev/null 2>&1; then
  58727. + as_test_x='test -x'
  58728. else
  58729. + if ls -dL / >/dev/null 2>&1; then
  58730. + as_ls_L_option=L
  58731. + else
  58732. + as_ls_L_option=
  58733. + fi
  58734. + as_test_x='
  58735. + eval sh -c '\''
  58736. + if test -d "$1"; then
  58737. + test -d "$1/.";
  58738. + else
  58739. + case $1 in #(
  58740. + -*)set "./$1";;
  58741. + esac;
  58742. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  58743. + ???[sx]*):;;*)false;;esac;fi
  58744. + '\'' sh
  58745. + '
  58746. +fi
  58747. +as_executable_p=$as_test_x
  58748. -cat >>confdefs.h <<_ACEOF
  58749. -#define size_t unsigned
  58750. -_ACEOF
  58751. +# Sed expression to map a string onto a valid CPP name.
  58752. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  58753. -fi
  58754. +# Sed expression to map a string onto a valid variable name.
  58755. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  58756. +
  58757. +
  58758. +exec 6>&1
  58759. +## ----------------------------------- ##
  58760. +## Main body of $CONFIG_STATUS script. ##
  58761. +## ----------------------------------- ##
  58762. +_ASEOF
  58763. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  58764. +
  58765. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  58766. +# Save the log message, to keep $0 and so on meaningful, and to
  58767. +# report actual input values of CONFIG_FILES etc. instead of their
  58768. +# values after options handling.
  58769. +ac_log="
  58770. +This file was extended by $as_me, which was
  58771. +generated by GNU Autoconf 2.65. Invocation command line was
  58772. +
  58773. + CONFIG_FILES = $CONFIG_FILES
  58774. + CONFIG_HEADERS = $CONFIG_HEADERS
  58775. + CONFIG_LINKS = $CONFIG_LINKS
  58776. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  58777. + $ $0 $@
  58778. -echo "$as_me:$LINENO: checking for sockaddr_in6 struct in <netinet/in.h>" >&5
  58779. -echo $ECHO_N "checking for sockaddr_in6 struct in <netinet/in.h>... $ECHO_C" >&6
  58780. - if test "${ac_cv_dnet_netinet_in_h_has_sockaddr_in6+set}" = set; then
  58781. - echo $ECHO_N "(cached) $ECHO_C" >&6
  58782. -else
  58783. - cat >conftest.$ac_ext <<_ACEOF
  58784. -/* confdefs.h. */
  58785. -_ACEOF
  58786. -cat confdefs.h >>conftest.$ac_ext
  58787. -cat >>conftest.$ac_ext <<_ACEOF
  58788. -/* end confdefs.h. */
  58789. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  58790. +"
  58791. -# include <sys/types.h>
  58792. -# include <sys/socket.h>
  58793. -# include <netinet/in.h>
  58794. -int
  58795. -main ()
  58796. -{
  58797. -struct sockaddr_in6 sin6; sin6.sin6_family = AF_INET6;
  58798. - ;
  58799. - return 0;
  58800. -}
  58801. _ACEOF
  58802. -rm -f conftest.$ac_objext
  58803. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  58804. - (eval $ac_compile) 2>conftest.er1
  58805. - ac_status=$?
  58806. - grep -v '^ *+' conftest.er1 >conftest.err
  58807. - rm -f conftest.er1
  58808. - cat conftest.err >&5
  58809. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58810. - (exit $ac_status); } &&
  58811. - { ac_try='test -z "$ac_c_werror_flag"
  58812. - || test ! -s conftest.err'
  58813. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  58814. - (eval $ac_try) 2>&5
  58815. - ac_status=$?
  58816. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58817. - (exit $ac_status); }; } &&
  58818. - { ac_try='test -s conftest.$ac_objext'
  58819. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  58820. - (eval $ac_try) 2>&5
  58821. - ac_status=$?
  58822. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58823. - (exit $ac_status); }; }; then
  58824. - ac_cv_dnet_netinet_in_h_has_sockaddr_in6=yes
  58825. -else
  58826. - echo "$as_me: failed program was:" >&5
  58827. -sed 's/^/| /' conftest.$ac_ext >&5
  58828. -ac_cv_dnet_netinet_in_h_has_sockaddr_in6=no
  58829. -fi
  58830. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  58831. -fi
  58832. +case $ac_config_files in *"
  58833. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  58834. +esac
  58835. - echo "$as_me:$LINENO: result: $ac_cv_dnet_netinet_in_h_has_sockaddr_in6" >&5
  58836. -echo "${ECHO_T}$ac_cv_dnet_netinet_in_h_has_sockaddr_in6" >&6
  58837. - if test $ac_cv_dnet_netinet_in_h_has_sockaddr_in6 = yes ; then
  58838. +case $ac_config_headers in *"
  58839. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  58840. +esac
  58841. -cat >>confdefs.h <<\_ACEOF
  58842. -#define HAVE_SOCKADDR_IN6 1
  58843. -_ACEOF
  58844. - fi
  58845. -if test "$ac_cv_header_sys_socket_h" = yes ; then
  58846. - echo "$as_me:$LINENO: checking for sa_len in sockaddr struct" >&5
  58847. -echo $ECHO_N "checking for sa_len in sockaddr struct... $ECHO_C" >&6
  58848. - if test "${ac_cv_dnet_sockaddr_has_sa_len+set}" = set; then
  58849. - echo $ECHO_N "(cached) $ECHO_C" >&6
  58850. -else
  58851. - cat >conftest.$ac_ext <<_ACEOF
  58852. -/* confdefs.h. */
  58853. -_ACEOF
  58854. -cat confdefs.h >>conftest.$ac_ext
  58855. -cat >>conftest.$ac_ext <<_ACEOF
  58856. -/* end confdefs.h. */
  58857. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  58858. +# Files that config.status was made for.
  58859. +config_files="$ac_config_files"
  58860. +config_headers="$ac_config_headers"
  58861. +config_commands="$ac_config_commands"
  58862. -# ifndef _SOCKADDR_LEN
  58863. -# define _SOCKADDR_LEN 1
  58864. -# endif
  58865. -# include <sys/types.h>
  58866. -# include <sys/socket.h>
  58867. -int
  58868. -main ()
  58869. -{
  58870. -u_int i = sizeof(((struct sockaddr *)0)->sa_len)
  58871. - ;
  58872. - return 0;
  58873. -}
  58874. _ACEOF
  58875. -rm -f conftest.$ac_objext
  58876. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  58877. - (eval $ac_compile) 2>conftest.er1
  58878. - ac_status=$?
  58879. - grep -v '^ *+' conftest.er1 >conftest.err
  58880. - rm -f conftest.er1
  58881. - cat conftest.err >&5
  58882. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58883. - (exit $ac_status); } &&
  58884. - { ac_try='test -z "$ac_c_werror_flag"
  58885. - || test ! -s conftest.err'
  58886. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  58887. - (eval $ac_try) 2>&5
  58888. - ac_status=$?
  58889. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58890. - (exit $ac_status); }; } &&
  58891. - { ac_try='test -s conftest.$ac_objext'
  58892. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  58893. - (eval $ac_try) 2>&5
  58894. - ac_status=$?
  58895. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58896. - (exit $ac_status); }; }; then
  58897. - ac_cv_dnet_sockaddr_has_sa_len=yes
  58898. -else
  58899. - echo "$as_me: failed program was:" >&5
  58900. -sed 's/^/| /' conftest.$ac_ext >&5
  58901. -ac_cv_dnet_sockaddr_has_sa_len=no
  58902. -fi
  58903. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  58904. -fi
  58905. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  58906. +ac_cs_usage="\
  58907. +\`$as_me' instantiates files and other configuration actions
  58908. +from templates according to the current configuration. Unless the files
  58909. +and actions are specified as TAGs, all are instantiated by default.
  58910. - echo "$as_me:$LINENO: result: $ac_cv_dnet_sockaddr_has_sa_len" >&5
  58911. -echo "${ECHO_T}$ac_cv_dnet_sockaddr_has_sa_len" >&6
  58912. - if test $ac_cv_dnet_sockaddr_has_sa_len = yes ; then
  58913. +Usage: $0 [OPTION]... [TAG]...
  58914. -cat >>confdefs.h <<\_ACEOF
  58915. -#define HAVE_SOCKADDR_SA_LEN 1
  58916. -_ACEOF
  58917. + -h, --help print this help, then exit
  58918. + -V, --version print version number and configuration settings, then exit
  58919. + --config print configuration, then exit
  58920. + -q, --quiet, --silent
  58921. + do not print progress messages
  58922. + -d, --debug don't remove temporary files
  58923. + --recheck update $as_me by reconfiguring in the same conditions
  58924. + --file=FILE[:TEMPLATE]
  58925. + instantiate the configuration file FILE
  58926. + --header=FILE[:TEMPLATE]
  58927. + instantiate the configuration header FILE
  58928. - fi
  58929. -fi
  58930. -if test "$ac_cv_header_net_if_arp_h" = yes ; then
  58931. - echo "$as_me:$LINENO: checking for arp_dev in arpreq struct" >&5
  58932. -echo $ECHO_N "checking for arp_dev in arpreq struct... $ECHO_C" >&6
  58933. - if test "${ac_cv_dnet_arpreq_has_arp_dev+set}" = set; then
  58934. - echo $ECHO_N "(cached) $ECHO_C" >&6
  58935. -else
  58936. - cat >conftest.$ac_ext <<_ACEOF
  58937. -/* confdefs.h. */
  58938. -_ACEOF
  58939. -cat confdefs.h >>conftest.$ac_ext
  58940. -cat >>conftest.$ac_ext <<_ACEOF
  58941. -/* end confdefs.h. */
  58942. +Configuration files:
  58943. +$config_files
  58944. -# include <sys/types.h>
  58945. -# include <sys/socket.h>
  58946. -# include <net/if_arp.h>
  58947. -int
  58948. -main ()
  58949. -{
  58950. -void *p = ((struct arpreq *)0)->arp_dev
  58951. - ;
  58952. - return 0;
  58953. -}
  58954. -_ACEOF
  58955. -rm -f conftest.$ac_objext
  58956. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  58957. - (eval $ac_compile) 2>conftest.er1
  58958. - ac_status=$?
  58959. - grep -v '^ *+' conftest.er1 >conftest.err
  58960. - rm -f conftest.er1
  58961. - cat conftest.err >&5
  58962. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58963. - (exit $ac_status); } &&
  58964. - { ac_try='test -z "$ac_c_werror_flag"
  58965. - || test ! -s conftest.err'
  58966. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  58967. - (eval $ac_try) 2>&5
  58968. - ac_status=$?
  58969. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58970. - (exit $ac_status); }; } &&
  58971. - { ac_try='test -s conftest.$ac_objext'
  58972. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  58973. - (eval $ac_try) 2>&5
  58974. - ac_status=$?
  58975. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  58976. - (exit $ac_status); }; }; then
  58977. - ac_cv_dnet_arpreq_has_arp_dev=yes
  58978. -else
  58979. - echo "$as_me: failed program was:" >&5
  58980. -sed 's/^/| /' conftest.$ac_ext >&5
  58981. +Configuration headers:
  58982. +$config_headers
  58983. -ac_cv_dnet_arpreq_has_arp_dev=no
  58984. -fi
  58985. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  58986. -fi
  58987. +Configuration commands:
  58988. +$config_commands
  58989. - echo "$as_me:$LINENO: result: $ac_cv_dnet_arpreq_has_arp_dev" >&5
  58990. -echo "${ECHO_T}$ac_cv_dnet_arpreq_has_arp_dev" >&6
  58991. - if test $ac_cv_dnet_arpreq_has_arp_dev = yes ; then
  58992. +Report bugs to the package provider."
  58993. -cat >>confdefs.h <<\_ACEOF
  58994. -#define HAVE_ARPREQ_ARP_DEV 1
  58995. _ACEOF
  58996. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  58997. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  58998. +ac_cs_version="\\
  58999. +config.status
  59000. +configured by $0, generated by GNU Autoconf 2.65,
  59001. + with options \\"\$ac_cs_config\\"
  59002. - fi
  59003. -fi
  59004. -if test "$ac_cv_header_net_route_h" = yes ; then
  59005. - echo "$as_me:$LINENO: checking for rt_msghdr struct in <net/route.h>" >&5
  59006. -echo $ECHO_N "checking for rt_msghdr struct in <net/route.h>... $ECHO_C" >&6
  59007. - if test "${ac_cv_dnet_route_h_has_rt_msghdr+set}" = set; then
  59008. - echo $ECHO_N "(cached) $ECHO_C" >&6
  59009. -else
  59010. - cat >conftest.$ac_ext <<_ACEOF
  59011. -/* confdefs.h. */
  59012. -_ACEOF
  59013. -cat confdefs.h >>conftest.$ac_ext
  59014. -cat >>conftest.$ac_ext <<_ACEOF
  59015. -/* end confdefs.h. */
  59016. +Copyright (C) 2009 Free Software Foundation, Inc.
  59017. +This config.status script is free software; the Free Software Foundation
  59018. +gives unlimited permission to copy, distribute and modify it."
  59019. -# include <sys/types.h>
  59020. -# include <sys/socket.h>
  59021. -# include <net/if.h>
  59022. -# include <net/route.h>
  59023. -int
  59024. -main ()
  59025. -{
  59026. -struct rt_msghdr rtm; rtm.rtm_msglen = 0;
  59027. - ;
  59028. - return 0;
  59029. -}
  59030. +ac_pwd='$ac_pwd'
  59031. +srcdir='$srcdir'
  59032. +INSTALL='$INSTALL'
  59033. +MKDIR_P='$MKDIR_P'
  59034. +AWK='$AWK'
  59035. +test -n "\$AWK" || AWK=awk
  59036. _ACEOF
  59037. -rm -f conftest.$ac_objext
  59038. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  59039. - (eval $ac_compile) 2>conftest.er1
  59040. - ac_status=$?
  59041. - grep -v '^ *+' conftest.er1 >conftest.err
  59042. - rm -f conftest.er1
  59043. - cat conftest.err >&5
  59044. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  59045. - (exit $ac_status); } &&
  59046. - { ac_try='test -z "$ac_c_werror_flag"
  59047. - || test ! -s conftest.err'
  59048. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  59049. - (eval $ac_try) 2>&5
  59050. - ac_status=$?
  59051. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  59052. - (exit $ac_status); }; } &&
  59053. - { ac_try='test -s conftest.$ac_objext'
  59054. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  59055. - (eval $ac_try) 2>&5
  59056. - ac_status=$?
  59057. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  59058. - (exit $ac_status); }; }; then
  59059. - ac_cv_dnet_route_h_has_rt_msghdr=yes
  59060. -else
  59061. - echo "$as_me: failed program was:" >&5
  59062. -sed 's/^/| /' conftest.$ac_ext >&5
  59063. -ac_cv_dnet_route_h_has_rt_msghdr=no
  59064. -fi
  59065. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  59066. -fi
  59067. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  59068. +# The default lists apply if the user does not specify any file.
  59069. +ac_need_defaults=:
  59070. +while test $# != 0
  59071. +do
  59072. + case $1 in
  59073. + --*=*)
  59074. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  59075. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  59076. + ac_shift=:
  59077. + ;;
  59078. + *)
  59079. + ac_option=$1
  59080. + ac_optarg=$2
  59081. + ac_shift=shift
  59082. + ;;
  59083. + esac
  59084. - echo "$as_me:$LINENO: result: $ac_cv_dnet_route_h_has_rt_msghdr" >&5
  59085. -echo "${ECHO_T}$ac_cv_dnet_route_h_has_rt_msghdr" >&6
  59086. - if test $ac_cv_dnet_route_h_has_rt_msghdr = yes ; then
  59087. + case $ac_option in
  59088. + # Handling of the options.
  59089. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  59090. + ac_cs_recheck=: ;;
  59091. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  59092. + $as_echo "$ac_cs_version"; exit ;;
  59093. + --config | --confi | --conf | --con | --co | --c )
  59094. + $as_echo "$ac_cs_config"; exit ;;
  59095. + --debug | --debu | --deb | --de | --d | -d )
  59096. + debug=: ;;
  59097. + --file | --fil | --fi | --f )
  59098. + $ac_shift
  59099. + case $ac_optarg in
  59100. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  59101. + esac
  59102. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  59103. + ac_need_defaults=false;;
  59104. + --header | --heade | --head | --hea )
  59105. + $ac_shift
  59106. + case $ac_optarg in
  59107. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  59108. + esac
  59109. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  59110. + ac_need_defaults=false;;
  59111. + --he | --h)
  59112. + # Conflict between --help and --header
  59113. + as_fn_error "ambiguous option: \`$1'
  59114. +Try \`$0 --help' for more information.";;
  59115. + --help | --hel | -h )
  59116. + $as_echo "$ac_cs_usage"; exit ;;
  59117. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  59118. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  59119. + ac_cs_silent=: ;;
  59120. -cat >>confdefs.h <<\_ACEOF
  59121. -#define HAVE_ROUTE_RT_MSGHDR 1
  59122. -_ACEOF
  59123. + # This is an error.
  59124. + -*) as_fn_error "unrecognized option: \`$1'
  59125. +Try \`$0 --help' for more information." ;;
  59126. - fi
  59127. -fi
  59128. -if test $ac_cv_c_compiler_gnu = yes; then
  59129. - echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  59130. -echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  59131. -if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  59132. - echo $ECHO_N "(cached) $ECHO_C" >&6
  59133. -else
  59134. - ac_pattern="Autoconf.*'x'"
  59135. - cat >conftest.$ac_ext <<_ACEOF
  59136. -/* confdefs.h. */
  59137. -_ACEOF
  59138. -cat confdefs.h >>conftest.$ac_ext
  59139. -cat >>conftest.$ac_ext <<_ACEOF
  59140. -/* end confdefs.h. */
  59141. -#include <sgtty.h>
  59142. -Autoconf TIOCGETP
  59143. -_ACEOF
  59144. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  59145. - $EGREP "$ac_pattern" >/dev/null 2>&1; then
  59146. - ac_cv_prog_gcc_traditional=yes
  59147. -else
  59148. - ac_cv_prog_gcc_traditional=no
  59149. -fi
  59150. -rm -f conftest*
  59151. + *) as_fn_append ac_config_targets " $1"
  59152. + ac_need_defaults=false ;;
  59153. + esac
  59154. + shift
  59155. +done
  59156. - if test $ac_cv_prog_gcc_traditional = no; then
  59157. - cat >conftest.$ac_ext <<_ACEOF
  59158. -/* confdefs.h. */
  59159. -_ACEOF
  59160. -cat confdefs.h >>conftest.$ac_ext
  59161. -cat >>conftest.$ac_ext <<_ACEOF
  59162. -/* end confdefs.h. */
  59163. -#include <termio.h>
  59164. -Autoconf TCGETA
  59165. -_ACEOF
  59166. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  59167. - $EGREP "$ac_pattern" >/dev/null 2>&1; then
  59168. - ac_cv_prog_gcc_traditional=yes
  59169. -fi
  59170. -rm -f conftest*
  59171. +ac_configure_extra_args=
  59172. - fi
  59173. -fi
  59174. -echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  59175. -echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  59176. - if test $ac_cv_prog_gcc_traditional = yes; then
  59177. - CC="$CC -traditional"
  59178. - fi
  59179. +if $ac_cs_silent; then
  59180. + exec 6>/dev/null
  59181. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  59182. fi
  59183. -if test "$GCC" = yes ; then
  59184. - CFLAGS="$CFLAGS -Wall"
  59185. +_ACEOF
  59186. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  59187. +if \$ac_cs_recheck; then
  59188. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  59189. + shift
  59190. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  59191. + CONFIG_SHELL='$SHELL'
  59192. + export CONFIG_SHELL
  59193. + exec "\$@"
  59194. fi
  59195. -echo "$as_me:$LINENO: checking for working memcmp" >&5
  59196. -echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  59197. -if test "${ac_cv_func_memcmp_working+set}" = set; then
  59198. - echo $ECHO_N "(cached) $ECHO_C" >&6
  59199. -else
  59200. - if test "$cross_compiling" = yes; then
  59201. - ac_cv_func_memcmp_working=no
  59202. -else
  59203. - cat >conftest.$ac_ext <<_ACEOF
  59204. -/* confdefs.h. */
  59205. _ACEOF
  59206. -cat confdefs.h >>conftest.$ac_ext
  59207. -cat >>conftest.$ac_ext <<_ACEOF
  59208. -/* end confdefs.h. */
  59209. -$ac_includes_default
  59210. -int
  59211. -main ()
  59212. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  59213. +exec 5>>config.log
  59214. {
  59215. + echo
  59216. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  59217. +## Running $as_me. ##
  59218. +_ASBOX
  59219. + $as_echo "$ac_log"
  59220. +} >&5
  59221. - /* Some versions of memcmp are not 8-bit clean. */
  59222. - char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  59223. - if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  59224. - exit (1);
  59225. +_ACEOF
  59226. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  59227. +#
  59228. +# INIT-COMMANDS
  59229. +#
  59230. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  59231. - /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  59232. - or more and with at least one buffer not starting on a 4-byte boundary.
  59233. - William Lewis provided this test program. */
  59234. - {
  59235. - char foo[21];
  59236. - char bar[21];
  59237. - int i;
  59238. - for (i = 0; i < 4; i++)
  59239. - {
  59240. - char *a = foo + i;
  59241. - char *b = bar + i;
  59242. - strcpy (a, "--------01111111");
  59243. - strcpy (b, "--------10000000");
  59244. - if (memcmp (a, b, 16) >= 0)
  59245. - exit (1);
  59246. - }
  59247. - exit (0);
  59248. - }
  59249. - ;
  59250. - return 0;
  59251. -}
  59252. -_ACEOF
  59253. -rm -f conftest$ac_exeext
  59254. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  59255. - (eval $ac_link) 2>&5
  59256. - ac_status=$?
  59257. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  59258. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  59259. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  59260. - (eval $ac_try) 2>&5
  59261. - ac_status=$?
  59262. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  59263. - (exit $ac_status); }; }; then
  59264. - ac_cv_func_memcmp_working=yes
  59265. -else
  59266. - echo "$as_me: program exited with status $ac_status" >&5
  59267. -echo "$as_me: failed program was:" >&5
  59268. -sed 's/^/| /' conftest.$ac_ext >&5
  59269. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  59270. +# if CDPATH is set.
  59271. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  59272. +
  59273. +sed_quote_subst='$sed_quote_subst'
  59274. +double_quote_subst='$double_quote_subst'
  59275. +delay_variable_subst='$delay_variable_subst'
  59276. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  59277. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  59278. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  59279. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  59280. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  59281. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  59282. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  59283. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  59284. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  59285. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  59286. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  59287. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  59288. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  59289. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  59290. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  59291. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  59292. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  59293. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  59294. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  59295. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  59296. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  59297. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  59298. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  59299. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  59300. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  59301. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  59302. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  59303. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  59304. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  59305. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  59306. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  59307. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  59308. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  59309. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  59310. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  59311. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  59312. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  59313. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  59314. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  59315. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  59316. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  59317. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  59318. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  59319. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  59320. +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"`'
  59321. +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"`'
  59322. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  59323. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  59324. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  59325. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  59326. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  59327. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  59328. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  59329. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  59330. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  59331. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  59332. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  59333. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  59334. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  59335. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  59336. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  59337. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  59338. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  59339. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  59340. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  59341. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  59342. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  59343. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  59344. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  59345. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  59346. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  59347. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  59348. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  59349. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  59350. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  59351. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  59352. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  59353. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  59354. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  59355. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  59356. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  59357. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  59358. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  59359. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  59360. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  59361. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  59362. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  59363. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  59364. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  59365. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  59366. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  59367. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  59368. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  59369. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  59370. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  59371. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  59372. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  59373. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  59374. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  59375. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  59376. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  59377. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  59378. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  59379. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  59380. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  59381. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  59382. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  59383. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  59384. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  59385. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  59386. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  59387. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  59388. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  59389. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  59390. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  59391. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  59392. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  59393. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  59394. +
  59395. +LTCC='$LTCC'
  59396. +LTCFLAGS='$LTCFLAGS'
  59397. +compiler='$compiler_DEFAULT'
  59398. +
  59399. +# Quote evaled strings.
  59400. +for var in SED \
  59401. +GREP \
  59402. +EGREP \
  59403. +FGREP \
  59404. +LD \
  59405. +NM \
  59406. +LN_S \
  59407. +lt_SP2NL \
  59408. +lt_NL2SP \
  59409. +reload_flag \
  59410. +OBJDUMP \
  59411. +deplibs_check_method \
  59412. +file_magic_cmd \
  59413. +AR \
  59414. +AR_FLAGS \
  59415. +STRIP \
  59416. +RANLIB \
  59417. +CC \
  59418. +CFLAGS \
  59419. +compiler \
  59420. +lt_cv_sys_global_symbol_pipe \
  59421. +lt_cv_sys_global_symbol_to_cdecl \
  59422. +lt_cv_sys_global_symbol_to_c_name_address \
  59423. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  59424. +SHELL \
  59425. +ECHO \
  59426. +lt_prog_compiler_no_builtin_flag \
  59427. +lt_prog_compiler_wl \
  59428. +lt_prog_compiler_pic \
  59429. +lt_prog_compiler_static \
  59430. +lt_cv_prog_compiler_c_o \
  59431. +need_locks \
  59432. +DSYMUTIL \
  59433. +NMEDIT \
  59434. +LIPO \
  59435. +OTOOL \
  59436. +OTOOL64 \
  59437. +shrext_cmds \
  59438. +export_dynamic_flag_spec \
  59439. +whole_archive_flag_spec \
  59440. +compiler_needs_object \
  59441. +with_gnu_ld \
  59442. +allow_undefined_flag \
  59443. +no_undefined_flag \
  59444. +hardcode_libdir_flag_spec \
  59445. +hardcode_libdir_flag_spec_ld \
  59446. +hardcode_libdir_separator \
  59447. +fix_srcfile_path \
  59448. +exclude_expsyms \
  59449. +include_expsyms \
  59450. +file_list_spec \
  59451. +variables_saved_for_relink \
  59452. +libname_spec \
  59453. +library_names_spec \
  59454. +soname_spec \
  59455. +finish_eval \
  59456. +old_striplib \
  59457. +striplib; do
  59458. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  59459. + *[\\\\\\\`\\"\\\$]*)
  59460. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  59461. + ;;
  59462. + *)
  59463. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  59464. + ;;
  59465. + esac
  59466. +done
  59467. +
  59468. +# Double-quote double-evaled strings.
  59469. +for var in reload_cmds \
  59470. +old_postinstall_cmds \
  59471. +old_postuninstall_cmds \
  59472. +old_archive_cmds \
  59473. +extract_expsyms_cmds \
  59474. +old_archive_from_new_cmds \
  59475. +old_archive_from_expsyms_cmds \
  59476. +archive_cmds \
  59477. +archive_expsym_cmds \
  59478. +module_cmds \
  59479. +module_expsym_cmds \
  59480. +export_symbols_cmds \
  59481. +prelink_cmds \
  59482. +postinstall_cmds \
  59483. +postuninstall_cmds \
  59484. +finish_cmds \
  59485. +sys_lib_search_path_spec \
  59486. +sys_lib_dlsearch_path_spec; do
  59487. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  59488. + *[\\\\\\\`\\"\\\$]*)
  59489. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  59490. + ;;
  59491. + *)
  59492. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  59493. + ;;
  59494. + esac
  59495. +done
  59496. +
  59497. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  59498. +case \$lt_ECHO in
  59499. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  59500. + ;;
  59501. +esac
  59502. +
  59503. +ac_aux_dir='$ac_aux_dir'
  59504. +xsi_shell='$xsi_shell'
  59505. +lt_shell_append='$lt_shell_append'
  59506. -( exit $ac_status )
  59507. -ac_cv_func_memcmp_working=no
  59508. -fi
  59509. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  59510. -fi
  59511. +# See if we are running on zsh, and set the options which allow our
  59512. +# commands through without removal of \ escapes INIT.
  59513. +if test -n "\${ZSH_VERSION+set}" ; then
  59514. + setopt NO_GLOB_SUBST
  59515. fi
  59516. -echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  59517. -echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  59518. -test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  59519. - "memcmp.$ac_objext" | \
  59520. - *" memcmp.$ac_objext" | \
  59521. - "memcmp.$ac_objext "* | \
  59522. - *" memcmp.$ac_objext "* ) ;;
  59523. - *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  59524. -esac
  59525. + PACKAGE='$PACKAGE'
  59526. + VERSION='$VERSION'
  59527. + TIMESTAMP='$TIMESTAMP'
  59528. + RM='$RM'
  59529. + ofile='$ofile'
  59530. -for ac_func in err strlcat strlcpy strsep
  59531. -do
  59532. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  59533. -echo "$as_me:$LINENO: checking for $ac_func" >&5
  59534. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  59535. -if eval "test \"\${$as_ac_var+set}\" = set"; then
  59536. - echo $ECHO_N "(cached) $ECHO_C" >&6
  59537. -else
  59538. - cat >conftest.$ac_ext <<_ACEOF
  59539. -/* confdefs.h. */
  59540. _ACEOF
  59541. -cat confdefs.h >>conftest.$ac_ext
  59542. -cat >>conftest.$ac_ext <<_ACEOF
  59543. -/* end confdefs.h. */
  59544. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  59545. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  59546. -#define $ac_func innocuous_$ac_func
  59547. -/* System header to define __stub macros and hopefully few prototypes,
  59548. - which can conflict with char $ac_func (); below.
  59549. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  59550. - <limits.h> exists even on freestanding compilers. */
  59551. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  59552. -#ifdef __STDC__
  59553. -# include <limits.h>
  59554. -#else
  59555. -# include <assert.h>
  59556. -#endif
  59557. +# Handling of arguments.
  59558. +for ac_config_target in $ac_config_targets
  59559. +do
  59560. + case $ac_config_target in
  59561. + "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
  59562. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  59563. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  59564. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  59565. + "dnet-config") CONFIG_FILES="$CONFIG_FILES dnet-config" ;;
  59566. + "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  59567. + "include/dnet/Makefile") CONFIG_FILES="$CONFIG_FILES include/dnet/Makefile" ;;
  59568. + "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  59569. + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  59570. + "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  59571. + "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
  59572. + "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  59573. + "test/check/Makefile") CONFIG_FILES="$CONFIG_FILES test/check/Makefile" ;;
  59574. + "test/dnet/Makefile") CONFIG_FILES="$CONFIG_FILES test/dnet/Makefile" ;;
  59575. + "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  59576. -#undef $ac_func
  59577. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  59578. + esac
  59579. +done
  59580. -/* Override any gcc2 internal prototype to avoid an error. */
  59581. -#ifdef __cplusplus
  59582. -extern "C"
  59583. +
  59584. +# If the user did not use the arguments to specify the items to instantiate,
  59585. +# then the envvar interface is used. Set only those that are not.
  59586. +# We use the long form for the default assignment because of an extremely
  59587. +# bizarre bug on SunOS 4.1.3.
  59588. +if $ac_need_defaults; then
  59589. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  59590. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  59591. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  59592. +fi
  59593. +
  59594. +# Have a temporary directory for convenience. Make it in the build tree
  59595. +# simply because there is no reason against having it here, and in addition,
  59596. +# creating and moving files from /tmp can sometimes cause problems.
  59597. +# Hook for its removal unless debugging.
  59598. +# Note that there is a small window in which the directory will not be cleaned:
  59599. +# after its creation but before its name has been assigned to `$tmp'.
  59600. +$debug ||
  59601. {
  59602. -#endif
  59603. -/* We use char because int might match the return type of a gcc2
  59604. - builtin and then its argument prototype would still apply. */
  59605. -char $ac_func ();
  59606. -/* The GNU C library defines this for functions which it implements
  59607. - to always fail with ENOSYS. Some functions are actually named
  59608. - something starting with __ and the normal name is an alias. */
  59609. -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  59610. -choke me
  59611. -#else
  59612. -char (*f) () = $ac_func;
  59613. -#endif
  59614. -#ifdef __cplusplus
  59615. + tmp=
  59616. + trap 'exit_status=$?
  59617. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  59618. +' 0
  59619. + trap 'as_fn_exit 1' 1 2 13 15
  59620. }
  59621. -#endif
  59622. +# Create a (secure) tmp directory for tmp files.
  59623. -int
  59624. -main ()
  59625. {
  59626. -return f != $ac_func;
  59627. - ;
  59628. - return 0;
  59629. -}
  59630. -_ACEOF
  59631. -rm -f conftest.$ac_objext conftest$ac_exeext
  59632. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  59633. - (eval $ac_link) 2>conftest.er1
  59634. - ac_status=$?
  59635. - grep -v '^ *+' conftest.er1 >conftest.err
  59636. - rm -f conftest.er1
  59637. - cat conftest.err >&5
  59638. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  59639. - (exit $ac_status); } &&
  59640. - { ac_try='test -z "$ac_c_werror_flag"
  59641. - || test ! -s conftest.err'
  59642. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  59643. - (eval $ac_try) 2>&5
  59644. - ac_status=$?
  59645. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  59646. - (exit $ac_status); }; } &&
  59647. - { ac_try='test -s conftest$ac_exeext'
  59648. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  59649. - (eval $ac_try) 2>&5
  59650. - ac_status=$?
  59651. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  59652. - (exit $ac_status); }; }; then
  59653. - eval "$as_ac_var=yes"
  59654. -else
  59655. - echo "$as_me: failed program was:" >&5
  59656. -sed 's/^/| /' conftest.$ac_ext >&5
  59657. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  59658. + test -n "$tmp" && test -d "$tmp"
  59659. +} ||
  59660. +{
  59661. + tmp=./conf$$-$RANDOM
  59662. + (umask 077 && mkdir "$tmp")
  59663. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  59664. -eval "$as_ac_var=no"
  59665. -fi
  59666. -rm -f conftest.err conftest.$ac_objext \
  59667. - conftest$ac_exeext conftest.$ac_ext
  59668. -fi
  59669. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  59670. -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  59671. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  59672. - cat >>confdefs.h <<_ACEOF
  59673. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  59674. -_ACEOF
  59675. +# Set up the scripts for CONFIG_FILES section.
  59676. +# No need to generate them if there are no CONFIG_FILES.
  59677. +# This happens for instance with `./config.status config.h'.
  59678. +if test -n "$CONFIG_FILES"; then
  59679. -else
  59680. - case $LIBOBJS in
  59681. - "$ac_func.$ac_objext" | \
  59682. - *" $ac_func.$ac_objext" | \
  59683. - "$ac_func.$ac_objext "* | \
  59684. - *" $ac_func.$ac_objext "* ) ;;
  59685. - *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
  59686. -esac
  59687. +ac_cr=`echo X | tr X '\015'`
  59688. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  59689. +# But we know of no other shell where ac_cr would be empty at this
  59690. +# point, so we can use a bashism as a fallback.
  59691. +if test "x$ac_cr" = x; then
  59692. + eval ac_cr=\$\'\\r\'
  59693. fi
  59694. -done
  59695. -
  59696. -
  59697. -
  59698. -if test "$CYGWIN" != yes ; then
  59699. - echo "$as_me:$LINENO: checking for Berkeley Packet Filter" >&5
  59700. -echo $ECHO_N "checking for Berkeley Packet Filter... $ECHO_C" >&6
  59701. - if test "${ac_cv_dnet_bsd_bpf+set}" = set; then
  59702. - echo $ECHO_N "(cached) $ECHO_C" >&6
  59703. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  59704. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  59705. + ac_cs_awk_cr='\r'
  59706. else
  59707. - if test -c /dev/bpf0 ; then
  59708. - ac_cv_dnet_bsd_bpf=yes
  59709. - else
  59710. - ac_cv_dnet_bsd_bpf=no
  59711. - fi
  59712. + ac_cs_awk_cr=$ac_cr
  59713. fi
  59714. - echo "$as_me:$LINENO: result: $ac_cv_dnet_bsd_bpf" >&5
  59715. -echo "${ECHO_T}$ac_cv_dnet_bsd_bpf" >&6
  59716. - if test $ac_cv_dnet_bsd_bpf = yes ; then
  59717. -
  59718. -cat >>confdefs.h <<\_ACEOF
  59719. -#define HAVE_BSD_BPF 1
  59720. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  59721. _ACEOF
  59722. - fi
  59723. - echo "$as_me:$LINENO: checking for Linux proc filesystem" >&5
  59724. -echo $ECHO_N "checking for Linux proc filesystem... $ECHO_C" >&6
  59725. - if test "${ac_cv_dnet_linux_procfs+set}" = set; then
  59726. - echo $ECHO_N "(cached) $ECHO_C" >&6
  59727. -else
  59728. - if test "x`cat /proc/sys/kernel/ostype 2>&-`" = "xLinux" ; then
  59729. - ac_cv_dnet_linux_procfs=yes
  59730. - else
  59731. - ac_cv_dnet_linux_procfs=no
  59732. - fi
  59733. -fi
  59734. - echo "$as_me:$LINENO: result: $ac_cv_dnet_linux_procfs" >&5
  59735. -echo "${ECHO_T}$ac_cv_dnet_linux_procfs" >&6
  59736. - if test $ac_cv_dnet_linux_procfs = yes ; then
  59737. +{
  59738. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  59739. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  59740. + echo "_ACEOF"
  59741. +} >conf$$subs.sh ||
  59742. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  59743. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  59744. +ac_delim='%!_!# '
  59745. +for ac_last_try in false false false false false :; do
  59746. + . ./conf$$subs.sh ||
  59747. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  59748. -cat >>confdefs.h <<\_ACEOF
  59749. -#define HAVE_LINUX_PROCFS 1
  59750. -_ACEOF
  59751. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  59752. + if test $ac_delim_n = $ac_delim_num; then
  59753. + break
  59754. + elif $ac_last_try; then
  59755. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  59756. + else
  59757. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  59758. + fi
  59759. +done
  59760. +rm -f conf$$subs.sh
  59761. - fi
  59762. - echo "$as_me:$LINENO: checking for Linux PF_PACKET sockets" >&5
  59763. -echo $ECHO_N "checking for Linux PF_PACKET sockets... $ECHO_C" >&6
  59764. - if test "${ac_cv_dnet_linux_pf_packet+set}" = set; then
  59765. - echo $ECHO_N "(cached) $ECHO_C" >&6
  59766. -else
  59767. - if test -f /usr/include/netpacket/packet.h ; then
  59768. - ac_cv_dnet_linux_pf_packet=yes
  59769. - else
  59770. - ac_cv_dnet_linux_pf_packet=no
  59771. - fi
  59772. -fi
  59773. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  59774. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  59775. +_ACEOF
  59776. +sed -n '
  59777. +h
  59778. +s/^/S["/; s/!.*/"]=/
  59779. +p
  59780. +g
  59781. +s/^[^!]*!//
  59782. +:repl
  59783. +t repl
  59784. +s/'"$ac_delim"'$//
  59785. +t delim
  59786. +:nl
  59787. +h
  59788. +s/\(.\{148\}\)..*/\1/
  59789. +t more1
  59790. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  59791. +p
  59792. +n
  59793. +b repl
  59794. +:more1
  59795. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  59796. +p
  59797. +g
  59798. +s/.\{148\}//
  59799. +t nl
  59800. +:delim
  59801. +h
  59802. +s/\(.\{148\}\)..*/\1/
  59803. +t more2
  59804. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  59805. +p
  59806. +b
  59807. +:more2
  59808. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  59809. +p
  59810. +g
  59811. +s/.\{148\}//
  59812. +t delim
  59813. +' <conf$$subs.awk | sed '
  59814. +/^[^""]/{
  59815. + N
  59816. + s/\n//
  59817. +}
  59818. +' >>$CONFIG_STATUS || ac_write_fail=1
  59819. +rm -f conf$$subs.awk
  59820. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  59821. +_ACAWK
  59822. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  59823. + for (key in S) S_is_set[key] = 1
  59824. + FS = ""
  59825. +
  59826. +}
  59827. +{
  59828. + line = $ 0
  59829. + nfields = split(line, field, "@")
  59830. + substed = 0
  59831. + len = length(field[1])
  59832. + for (i = 2; i < nfields; i++) {
  59833. + key = field[i]
  59834. + keylen = length(key)
  59835. + if (S_is_set[key]) {
  59836. + value = S[key]
  59837. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  59838. + len += length(value) + length(field[++i])
  59839. + substed = 1
  59840. + } else
  59841. + len += 1 + keylen
  59842. + }
  59843. - echo "$as_me:$LINENO: result: $ac_cv_dnet_linux_pf_packet" >&5
  59844. -echo "${ECHO_T}$ac_cv_dnet_linux_pf_packet" >&6
  59845. - if test $ac_cv_dnet_linux_pf_packet = yes ; then
  59846. + print line
  59847. +}
  59848. -cat >>confdefs.h <<\_ACEOF
  59849. -#define HAVE_LINUX_PF_PACKET 1
  59850. +_ACAWK
  59851. _ACEOF
  59852. -
  59853. - fi
  59854. - echo "$as_me:$LINENO: checking for SNMP MIB2 STREAMS" >&5
  59855. -echo $ECHO_N "checking for SNMP MIB2 STREAMS... $ECHO_C" >&6
  59856. - if test "${ac_cv_dnet_streams_mib2+set}" = set; then
  59857. - echo $ECHO_N "(cached) $ECHO_C" >&6
  59858. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  59859. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  59860. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  59861. else
  59862. - if test -f /usr/include/inet/mib2.h -a -c /dev/ip ; then
  59863. - ac_cv_dnet_streams_mib2=yes
  59864. - else
  59865. - ac_cv_dnet_streams_mib2=no
  59866. - fi
  59867. + cat
  59868. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  59869. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  59870. +_ACEOF
  59871. +
  59872. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  59873. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  59874. +# trailing colons and then remove the whole line if VPATH becomes empty
  59875. +# (actually we leave an empty line to preserve line numbers).
  59876. +if test "x$srcdir" = x.; then
  59877. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  59878. +s/:*\$(srcdir):*/:/
  59879. +s/:*\${srcdir}:*/:/
  59880. +s/:*@srcdir@:*/:/
  59881. +s/^\([^=]*=[ ]*\):*/\1/
  59882. +s/:*$//
  59883. +s/^[^=]*=[ ]*$//
  59884. +}'
  59885. fi
  59886. - echo "$as_me:$LINENO: result: $ac_cv_dnet_streams_mib2" >&5
  59887. -echo "${ECHO_T}$ac_cv_dnet_streams_mib2" >&6
  59888. - if test $ac_cv_dnet_streams_mib2 = yes ; then
  59889. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  59890. +fi # test -n "$CONFIG_FILES"
  59891. -cat >>confdefs.h <<\_ACEOF
  59892. -#define HAVE_STREAMS_MIB2 1
  59893. +# Set up the scripts for CONFIG_HEADERS section.
  59894. +# No need to generate them if there are no CONFIG_HEADERS.
  59895. +# This happens for instance with `./config.status Makefile'.
  59896. +if test -n "$CONFIG_HEADERS"; then
  59897. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  59898. +BEGIN {
  59899. +_ACEOF
  59900. +
  59901. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  59902. +# here-document in config.status, that substitutes the proper values into
  59903. +# config.h.in to produce config.h.
  59904. +
  59905. +# Create a delimiter string that does not exist in confdefs.h, to ease
  59906. +# handling of long lines.
  59907. +ac_delim='%!_!# '
  59908. +for ac_last_try in false false :; do
  59909. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  59910. + if test -z "$ac_t"; then
  59911. + break
  59912. + elif $ac_last_try; then
  59913. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  59914. + else
  59915. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  59916. + fi
  59917. +done
  59918. +
  59919. +# For the awk script, D is an array of macro values keyed by name,
  59920. +# likewise P contains macro parameters if any. Preserve backslash
  59921. +# newline sequences.
  59922. +
  59923. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  59924. +sed -n '
  59925. +s/.\{148\}/&'"$ac_delim"'/g
  59926. +t rset
  59927. +:rset
  59928. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  59929. +t def
  59930. +d
  59931. +:def
  59932. +s/\\$//
  59933. +t bsnl
  59934. +s/["\\]/\\&/g
  59935. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  59936. +D["\1"]=" \3"/p
  59937. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  59938. +d
  59939. +:bsnl
  59940. +s/["\\]/\\&/g
  59941. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  59942. +D["\1"]=" \3\\\\\\n"\\/p
  59943. +t cont
  59944. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  59945. +t cont
  59946. +d
  59947. +:cont
  59948. +n
  59949. +s/.\{148\}/&'"$ac_delim"'/g
  59950. +t clear
  59951. +:clear
  59952. +s/\\$//
  59953. +t bsnlc
  59954. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  59955. +d
  59956. +:bsnlc
  59957. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  59958. +b cont
  59959. +' <confdefs.h | sed '
  59960. +s/'"$ac_delim"'/"\\\
  59961. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  59962. +
  59963. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  59964. + for (key in D) D_is_set[key] = 1
  59965. + FS = ""
  59966. +}
  59967. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  59968. + line = \$ 0
  59969. + split(line, arg, " ")
  59970. + if (arg[1] == "#") {
  59971. + defundef = arg[2]
  59972. + mac1 = arg[3]
  59973. + } else {
  59974. + defundef = substr(arg[1], 2)
  59975. + mac1 = arg[2]
  59976. + }
  59977. + split(mac1, mac2, "(") #)
  59978. + macro = mac2[1]
  59979. + prefix = substr(line, 1, index(line, defundef) - 1)
  59980. + if (D_is_set[macro]) {
  59981. + # Preserve the white space surrounding the "#".
  59982. + print prefix "define", macro P[macro] D[macro]
  59983. + next
  59984. + } else {
  59985. + # Replace #undef with comments. This is necessary, for example,
  59986. + # in the case of _POSIX_SOURCE, which is predefined and required
  59987. + # on some systems where configure will not decide to define it.
  59988. + if (defundef == "undef") {
  59989. + print "/*", prefix defundef, macro, "*/"
  59990. + next
  59991. + }
  59992. + }
  59993. +}
  59994. +{ print }
  59995. +_ACAWK
  59996. _ACEOF
  59997. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  59998. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  59999. +fi # test -n "$CONFIG_HEADERS"
  60000. +
  60001. +
  60002. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  60003. +shift
  60004. +for ac_tag
  60005. +do
  60006. + case $ac_tag in
  60007. + :[FHLC]) ac_mode=$ac_tag; continue;;
  60008. + esac
  60009. + case $ac_mode$ac_tag in
  60010. + :[FHL]*:*);;
  60011. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  60012. + :[FH]-) ac_tag=-:-;;
  60013. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  60014. + esac
  60015. + ac_save_IFS=$IFS
  60016. + IFS=:
  60017. + set x $ac_tag
  60018. + IFS=$ac_save_IFS
  60019. + shift
  60020. + ac_file=$1
  60021. + shift
  60022. +
  60023. + case $ac_mode in
  60024. + :L) ac_source=$1;;
  60025. + :[FH])
  60026. + ac_file_inputs=
  60027. + for ac_f
  60028. + do
  60029. + case $ac_f in
  60030. + -) ac_f="$tmp/stdin";;
  60031. + *) # Look for the file first in the build tree, then in the source tree
  60032. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  60033. + # because $ac_f cannot contain `:'.
  60034. + test -f "$ac_f" ||
  60035. + case $ac_f in
  60036. + [\\/$]*) false;;
  60037. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  60038. + esac ||
  60039. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  60040. + esac
  60041. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  60042. + as_fn_append ac_file_inputs " '$ac_f'"
  60043. + done
  60044. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  60045. + # use $as_me), people would be surprised to read:
  60046. + # /* config.h. Generated by config.status. */
  60047. + configure_input='Generated from '`
  60048. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  60049. + `' by configure.'
  60050. + if test x"$ac_file" != x-; then
  60051. + configure_input="$ac_file. $configure_input"
  60052. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  60053. +$as_echo "$as_me: creating $ac_file" >&6;}
  60054. fi
  60055. - echo "$as_me:$LINENO: checking for route(7) STREAMS" >&5
  60056. -echo $ECHO_N "checking for route(7) STREAMS... $ECHO_C" >&6
  60057. - if test "${ac_cv_dnet_streams_route+set}" = set; then
  60058. - echo $ECHO_N "(cached) $ECHO_C" >&6
  60059. -else
  60060. - if grep RTSTR_SEND /usr/include/net/route.h >/dev/null 2>&1 ; then
  60061. - ac_cv_dnet_streams_route=yes
  60062. - else
  60063. - ac_cv_dnet_streams_route=no
  60064. - fi
  60065. -fi
  60066. + # Neutralize special characters interpreted by sed in replacement strings.
  60067. + case $configure_input in #(
  60068. + *\&* | *\|* | *\\* )
  60069. + ac_sed_conf_input=`$as_echo "$configure_input" |
  60070. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  60071. + *) ac_sed_conf_input=$configure_input;;
  60072. + esac
  60073. - echo "$as_me:$LINENO: result: $ac_cv_dnet_streams_route" >&5
  60074. -echo "${ECHO_T}$ac_cv_dnet_streams_route" >&6
  60075. - if test $ac_cv_dnet_streams_route = yes ; then
  60076. + case $ac_tag in
  60077. + *:-:* | *:-) cat >"$tmp/stdin" \
  60078. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  60079. + esac
  60080. + ;;
  60081. + esac
  60082. -cat >>confdefs.h <<\_ACEOF
  60083. -#define HAVE_STREAMS_ROUTE 1
  60084. -_ACEOF
  60085. + ac_dir=`$as_dirname -- "$ac_file" ||
  60086. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  60087. + X"$ac_file" : 'X\(//\)[^/]' \| \
  60088. + X"$ac_file" : 'X\(//\)$' \| \
  60089. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  60090. +$as_echo X"$ac_file" |
  60091. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  60092. + s//\1/
  60093. + q
  60094. + }
  60095. + /^X\(\/\/\)[^/].*/{
  60096. + s//\1/
  60097. + q
  60098. + }
  60099. + /^X\(\/\/\)$/{
  60100. + s//\1/
  60101. + q
  60102. + }
  60103. + /^X\(\/\).*/{
  60104. + s//\1/
  60105. + q
  60106. + }
  60107. + s/.*/./; q'`
  60108. + as_dir="$ac_dir"; as_fn_mkdir_p
  60109. + ac_builddir=.
  60110. - fi
  60111. - echo "$as_me:$LINENO: checking for arp(7) ioctls" >&5
  60112. -echo $ECHO_N "checking for arp(7) ioctls... $ECHO_C" >&6
  60113. - if test "${ac_cv_dnet_ioctl_arp+set}" = set; then
  60114. - echo $ECHO_N "(cached) $ECHO_C" >&6
  60115. -else
  60116. - cat >conftest.$ac_ext <<_ACEOF
  60117. -/* confdefs.h. */
  60118. -_ACEOF
  60119. -cat confdefs.h >>conftest.$ac_ext
  60120. -cat >>conftest.$ac_ext <<_ACEOF
  60121. -/* end confdefs.h. */
  60122. +case "$ac_dir" in
  60123. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  60124. +*)
  60125. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  60126. + # A ".." for each directory in $ac_dir_suffix.
  60127. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  60128. + case $ac_top_builddir_sub in
  60129. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  60130. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  60131. + esac ;;
  60132. +esac
  60133. +ac_abs_top_builddir=$ac_pwd
  60134. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  60135. +# for backward compatibility:
  60136. +ac_top_builddir=$ac_top_build_prefix
  60137. -# include <sys/types.h>
  60138. -# define BSD_COMP
  60139. -# include <sys/ioctl.h>
  60140. -# ifdef SIOCGARP
  60141. - werd
  60142. -# endif
  60143. -_ACEOF
  60144. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  60145. - $EGREP "werd" >/dev/null 2>&1; then
  60146. - ac_cv_dnet_ioctl_arp=yes
  60147. -else
  60148. - ac_cv_dnet_ioctl_arp=no
  60149. -fi
  60150. -rm -f conftest*
  60151. +case $srcdir in
  60152. + .) # We are building in place.
  60153. + ac_srcdir=.
  60154. + ac_top_srcdir=$ac_top_builddir_sub
  60155. + ac_abs_top_srcdir=$ac_pwd ;;
  60156. + [\\/]* | ?:[\\/]* ) # Absolute name.
  60157. + ac_srcdir=$srcdir$ac_dir_suffix;
  60158. + ac_top_srcdir=$srcdir
  60159. + ac_abs_top_srcdir=$srcdir ;;
  60160. + *) # Relative name.
  60161. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  60162. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  60163. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  60164. +esac
  60165. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  60166. -fi
  60167. - case "$host_os" in
  60168. - irix*)
  60169. - ac_cv_dnet_ioctl_arp=no ;;
  60170. - esac
  60171. - echo "$as_me:$LINENO: result: $ac_cv_dnet_ioctl_arp" >&5
  60172. -echo "${ECHO_T}$ac_cv_dnet_ioctl_arp" >&6
  60173. - if test $ac_cv_dnet_ioctl_arp = yes ; then
  60174. + case $ac_mode in
  60175. + :F)
  60176. + #
  60177. + # CONFIG_FILE
  60178. + #
  60179. -cat >>confdefs.h <<\_ACEOF
  60180. -#define HAVE_IOCTL_ARP 1
  60181. + case $INSTALL in
  60182. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  60183. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  60184. + esac
  60185. + ac_MKDIR_P=$MKDIR_P
  60186. + case $MKDIR_P in
  60187. + [\\/$]* | ?:[\\/]* ) ;;
  60188. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  60189. + esac
  60190. _ACEOF
  60191. - fi
  60192. - echo "$as_me:$LINENO: checking for raw IP sockets ip_{len,off} host byte ordering" >&5
  60193. -echo $ECHO_N "checking for raw IP sockets ip_{len,off} host byte ordering... $ECHO_C" >&6
  60194. - if test "${ac_cv_dnet_rawip_host_offlen+set}" = set; then
  60195. - echo $ECHO_N "(cached) $ECHO_C" >&6
  60196. -else
  60197. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  60198. +# If the template does not know about datarootdir, expand it.
  60199. +# FIXME: This hack should be removed a few years after 2.60.
  60200. +ac_datarootdir_hack=; ac_datarootdir_seen=
  60201. +ac_sed_dataroot='
  60202. +/datarootdir/ {
  60203. + p
  60204. + q
  60205. +}
  60206. +/@datadir@/p
  60207. +/@docdir@/p
  60208. +/@infodir@/p
  60209. +/@localedir@/p
  60210. +/@mandir@/p'
  60211. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  60212. +*datarootdir*) ac_datarootdir_seen=yes;;
  60213. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  60214. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  60215. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  60216. +_ACEOF
  60217. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  60218. + ac_datarootdir_hack='
  60219. + s&@datadir@&$datadir&g
  60220. + s&@docdir@&$docdir&g
  60221. + s&@infodir@&$infodir&g
  60222. + s&@localedir@&$localedir&g
  60223. + s&@mandir@&$mandir&g
  60224. + s&\\\${datarootdir}&$datarootdir&g' ;;
  60225. +esac
  60226. +_ACEOF
  60227. - case "$host_os" in
  60228. - *openbsd*)
  60229. - ac_cv_dnet_rawip_host_offlen=no ;;
  60230. - *bsd*|*osf*|*unixware*)
  60231. - ac_cv_dnet_rawip_host_offlen=yes ;;
  60232. - *)
  60233. - ac_cv_dnet_rawip_host_offlen=no ;;
  60234. - esac
  60235. -fi
  60236. +# Neutralize VPATH when `$srcdir' = `.'.
  60237. +# Shell code in configure.ac might set extrasub.
  60238. +# FIXME: do we really want to maintain this feature?
  60239. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  60240. +ac_sed_extra="$ac_vpsub
  60241. +$extrasub
  60242. +_ACEOF
  60243. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  60244. +:t
  60245. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  60246. +s|@configure_input@|$ac_sed_conf_input|;t t
  60247. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  60248. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  60249. +s&@srcdir@&$ac_srcdir&;t t
  60250. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  60251. +s&@top_srcdir@&$ac_top_srcdir&;t t
  60252. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  60253. +s&@builddir@&$ac_builddir&;t t
  60254. +s&@abs_builddir@&$ac_abs_builddir&;t t
  60255. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  60256. +s&@INSTALL@&$ac_INSTALL&;t t
  60257. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  60258. +$ac_datarootdir_hack
  60259. +"
  60260. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  60261. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  60262. +
  60263. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  60264. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  60265. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  60266. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  60267. +which seems to be undefined. Please make sure it is defined." >&5
  60268. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  60269. +which seems to be undefined. Please make sure it is defined." >&2;}
  60270. - echo "$as_me:$LINENO: result: $ac_cv_dnet_rawip_host_offlen" >&5
  60271. -echo "${ECHO_T}$ac_cv_dnet_rawip_host_offlen" >&6
  60272. - if test $ac_cv_dnet_rawip_host_offlen = yes ; then
  60273. + rm -f "$tmp/stdin"
  60274. + case $ac_file in
  60275. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  60276. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  60277. + esac \
  60278. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  60279. + ;;
  60280. + :H)
  60281. + #
  60282. + # CONFIG_HEADER
  60283. + #
  60284. + if test x"$ac_file" != x-; then
  60285. + {
  60286. + $as_echo "/* $configure_input */" \
  60287. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  60288. + } >"$tmp/config.h" \
  60289. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  60290. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  60291. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  60292. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  60293. + else
  60294. + rm -f "$ac_file"
  60295. + mv "$tmp/config.h" "$ac_file" \
  60296. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  60297. + fi
  60298. + else
  60299. + $as_echo "/* $configure_input */" \
  60300. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  60301. + || as_fn_error "could not create -" "$LINENO" 5
  60302. + fi
  60303. +# Compute "$ac_file"'s index in $config_headers.
  60304. +_am_arg="$ac_file"
  60305. +_am_stamp_count=1
  60306. +for _am_header in $config_headers :; do
  60307. + case $_am_header in
  60308. + $_am_arg | $_am_arg:* )
  60309. + break ;;
  60310. + * )
  60311. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  60312. + esac
  60313. +done
  60314. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  60315. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  60316. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  60317. + X"$_am_arg" : 'X\(//\)$' \| \
  60318. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  60319. +$as_echo X"$_am_arg" |
  60320. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  60321. + s//\1/
  60322. + q
  60323. + }
  60324. + /^X\(\/\/\)[^/].*/{
  60325. + s//\1/
  60326. + q
  60327. + }
  60328. + /^X\(\/\/\)$/{
  60329. + s//\1/
  60330. + q
  60331. + }
  60332. + /^X\(\/\).*/{
  60333. + s//\1/
  60334. + q
  60335. + }
  60336. + s/.*/./; q'`/stamp-h$_am_stamp_count
  60337. + ;;
  60338. -cat >>confdefs.h <<\_ACEOF
  60339. -#define HAVE_RAWIP_HOST_OFFLEN 1
  60340. -_ACEOF
  60341. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  60342. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  60343. + ;;
  60344. + esac
  60345. - fi
  60346. - echo "$as_me:$LINENO: checking for cooked raw IP sockets" >&5
  60347. -echo $ECHO_N "checking for cooked raw IP sockets... $ECHO_C" >&6
  60348. - if test "${ac_cv_dnet_rawip_cooked+set}" = set; then
  60349. - echo $ECHO_N "(cached) $ECHO_C" >&6
  60350. -else
  60351. - case "$host_os" in
  60352. - solaris*|irix*)
  60353. - ac_cv_dnet_rawip_cooked=yes ;;
  60354. - *)
  60355. - ac_cv_dnet_rawip_cooked=no ;;
  60356. - esac
  60357. -fi
  60358. + case $ac_file$ac_mode in
  60359. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  60360. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  60361. + # are listed without --file. Let's play safe and only enable the eval
  60362. + # if we detect the quoting.
  60363. + case $CONFIG_FILES in
  60364. + *\'*) eval set x "$CONFIG_FILES" ;;
  60365. + *) set x $CONFIG_FILES ;;
  60366. + esac
  60367. + shift
  60368. + for mf
  60369. + do
  60370. + # Strip MF so we end up with the name of the file.
  60371. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  60372. + # Check whether this is an Automake generated Makefile or not.
  60373. + # We used to match only the files named `Makefile.in', but
  60374. + # some people rename them; so instead we look at the file content.
  60375. + # Grep'ing the first line is not enough: some people post-process
  60376. + # each Makefile.in and add a new line on top of each file to say so.
  60377. + # Grep'ing the whole file is not good either: AIX grep has a line
  60378. + # limit of 2048, but all sed's we know have understand at least 4000.
  60379. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  60380. + dirpart=`$as_dirname -- "$mf" ||
  60381. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  60382. + X"$mf" : 'X\(//\)[^/]' \| \
  60383. + X"$mf" : 'X\(//\)$' \| \
  60384. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  60385. +$as_echo X"$mf" |
  60386. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  60387. + s//\1/
  60388. + q
  60389. + }
  60390. + /^X\(\/\/\)[^/].*/{
  60391. + s//\1/
  60392. + q
  60393. + }
  60394. + /^X\(\/\/\)$/{
  60395. + s//\1/
  60396. + q
  60397. + }
  60398. + /^X\(\/\).*/{
  60399. + s//\1/
  60400. + q
  60401. + }
  60402. + s/.*/./; q'`
  60403. + else
  60404. + continue
  60405. + fi
  60406. + # Extract the definition of DEPDIR, am__include, and am__quote
  60407. + # from the Makefile without running `make'.
  60408. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  60409. + test -z "$DEPDIR" && continue
  60410. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  60411. + test -z "am__include" && continue
  60412. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  60413. + # When using ansi2knr, U may be empty or an underscore; expand it
  60414. + U=`sed -n 's/^U = //p' < "$mf"`
  60415. + # Find all dependency output files, they are included files with
  60416. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  60417. + # simplest approach to changing $(DEPDIR) to its actual value in the
  60418. + # expansion.
  60419. + for file in `sed -n "
  60420. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  60421. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  60422. + # Make sure the directory exists.
  60423. + test -f "$dirpart/$file" && continue
  60424. + fdir=`$as_dirname -- "$file" ||
  60425. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  60426. + X"$file" : 'X\(//\)[^/]' \| \
  60427. + X"$file" : 'X\(//\)$' \| \
  60428. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  60429. +$as_echo X"$file" |
  60430. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  60431. + s//\1/
  60432. + q
  60433. + }
  60434. + /^X\(\/\/\)[^/].*/{
  60435. + s//\1/
  60436. + q
  60437. + }
  60438. + /^X\(\/\/\)$/{
  60439. + s//\1/
  60440. + q
  60441. + }
  60442. + /^X\(\/\).*/{
  60443. + s//\1/
  60444. + q
  60445. + }
  60446. + s/.*/./; q'`
  60447. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  60448. + # echo "creating $dirpart/$file"
  60449. + echo '# dummy' > "$dirpart/$file"
  60450. + done
  60451. + done
  60452. +}
  60453. + ;;
  60454. + "libtool":C)
  60455. - echo "$as_me:$LINENO: result: $ac_cv_dnet_rawip_cooked" >&5
  60456. -echo "${ECHO_T}$ac_cv_dnet_rawip_cooked" >&6
  60457. - if test $ac_cv_dnet_rawip_cooked = yes ; then
  60458. + # See if we are running on zsh, and set the options which allow our
  60459. + # commands through without removal of \ escapes.
  60460. + if test -n "${ZSH_VERSION+set}" ; then
  60461. + setopt NO_GLOB_SUBST
  60462. + fi
  60463. -cat >>confdefs.h <<\_ACEOF
  60464. -#define HAVE_RAWIP_COOKED 1
  60465. -_ACEOF
  60466. + cfgfile="${ofile}T"
  60467. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  60468. + $RM "$cfgfile"
  60469. - fi
  60470. -fi
  60471. + cat <<_LT_EOF >> "$cfgfile"
  60472. +#! $SHELL
  60473. -if test "$ac_cv_header_Iphlpapi_h" = yes ; then
  60474. - case $LIBOBJS in
  60475. - "arp-win32.$ac_objext" | \
  60476. - *" arp-win32.$ac_objext" | \
  60477. - "arp-win32.$ac_objext "* | \
  60478. - *" arp-win32.$ac_objext "* ) ;;
  60479. - *) LIBOBJS="$LIBOBJS arp-win32.$ac_objext" ;;
  60480. -esac
  60481. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  60482. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  60483. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  60484. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  60485. +#
  60486. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  60487. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  60488. +# Written by Gordon Matzigkeit, 1996
  60489. +#
  60490. +# This file is part of GNU Libtool.
  60491. +#
  60492. +# GNU Libtool is free software; you can redistribute it and/or
  60493. +# modify it under the terms of the GNU General Public License as
  60494. +# published by the Free Software Foundation; either version 2 of
  60495. +# the License, or (at your option) any later version.
  60496. +#
  60497. +# As a special exception to the GNU General Public License,
  60498. +# if you distribute this file as part of a program or library that
  60499. +# is built using GNU Libtool, you may include this file under the
  60500. +# same distribution terms that you use for the rest of that program.
  60501. +#
  60502. +# GNU Libtool is distributed in the hope that it will be useful,
  60503. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  60504. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  60505. +# GNU General Public License for more details.
  60506. +#
  60507. +# You should have received a copy of the GNU General Public License
  60508. +# along with GNU Libtool; see the file COPYING. If not, a copy
  60509. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  60510. +# obtained by writing to the Free Software Foundation, Inc.,
  60511. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  60512. -elif test "$ac_cv_dnet_ioctl_arp" = yes ; then
  60513. - case $LIBOBJS in
  60514. - "arp-ioctl.$ac_objext" | \
  60515. - *" arp-ioctl.$ac_objext" | \
  60516. - "arp-ioctl.$ac_objext "* | \
  60517. - *" arp-ioctl.$ac_objext "* ) ;;
  60518. - *) LIBOBJS="$LIBOBJS arp-ioctl.$ac_objext" ;;
  60519. -esac
  60520. -elif test "$ac_cv_dnet_route_h_has_rt_msghdr" = yes ; then
  60521. - case $LIBOBJS in
  60522. - "arp-bsd.$ac_objext" | \
  60523. - *" arp-bsd.$ac_objext" | \
  60524. - "arp-bsd.$ac_objext "* | \
  60525. - *" arp-bsd.$ac_objext "* ) ;;
  60526. - *) LIBOBJS="$LIBOBJS arp-bsd.$ac_objext" ;;
  60527. -esac
  60528. +# The names of the tagged configurations supported by this script.
  60529. +available_tags=""
  60530. -else
  60531. - case $LIBOBJS in
  60532. - "arp-none.$ac_objext" | \
  60533. - *" arp-none.$ac_objext" | \
  60534. - "arp-none.$ac_objext "* | \
  60535. - *" arp-none.$ac_objext "* ) ;;
  60536. - *) LIBOBJS="$LIBOBJS arp-none.$ac_objext" ;;
  60537. -esac
  60538. +# ### BEGIN LIBTOOL CONFIG
  60539. -fi
  60540. +# Which release of libtool.m4 was used?
  60541. +macro_version=$macro_version
  60542. +macro_revision=$macro_revision
  60543. -if test "$ac_cv_header_Iphlpapi_h" = yes ; then
  60544. - case $LIBOBJS in
  60545. - "eth-win32.$ac_objext" | \
  60546. - *" eth-win32.$ac_objext" | \
  60547. - "eth-win32.$ac_objext "* | \
  60548. - *" eth-win32.$ac_objext "* ) ;;
  60549. - *) LIBOBJS="$LIBOBJS eth-win32.$ac_objext" ;;
  60550. -esac
  60551. +# Whether or not to build shared libraries.
  60552. +build_libtool_libs=$enable_shared
  60553. -elif test "$ac_cv_header_net_pfilt_h" = yes ; then
  60554. - case $LIBOBJS in
  60555. - "eth-pfilt.$ac_objext" | \
  60556. - *" eth-pfilt.$ac_objext" | \
  60557. - "eth-pfilt.$ac_objext "* | \
  60558. - *" eth-pfilt.$ac_objext "* ) ;;
  60559. - *) LIBOBJS="$LIBOBJS eth-pfilt.$ac_objext" ;;
  60560. -esac
  60561. +# Whether or not to build static libraries.
  60562. +build_old_libs=$enable_static
  60563. -elif test "$ac_cv_dnet_bsd_bpf" = yes ; then
  60564. - case $LIBOBJS in
  60565. - "eth-bsd.$ac_objext" | \
  60566. - *" eth-bsd.$ac_objext" | \
  60567. - "eth-bsd.$ac_objext "* | \
  60568. - *" eth-bsd.$ac_objext "* ) ;;
  60569. - *) LIBOBJS="$LIBOBJS eth-bsd.$ac_objext" ;;
  60570. -esac
  60571. +# What type of objects to build.
  60572. +pic_mode=$pic_mode
  60573. -elif test "$ac_cv_dnet_linux_pf_packet" = yes ; then
  60574. - case $LIBOBJS in
  60575. - "eth-linux.$ac_objext" | \
  60576. - *" eth-linux.$ac_objext" | \
  60577. - "eth-linux.$ac_objext "* | \
  60578. - *" eth-linux.$ac_objext "* ) ;;
  60579. - *) LIBOBJS="$LIBOBJS eth-linux.$ac_objext" ;;
  60580. -esac
  60581. +# Whether or not to optimize for fast installation.
  60582. +fast_install=$enable_fast_install
  60583. -elif test "$ac_cv_header_net_raw_h" = yes ; then
  60584. - case $LIBOBJS in
  60585. - "eth-snoop.$ac_objext" | \
  60586. - *" eth-snoop.$ac_objext" | \
  60587. - "eth-snoop.$ac_objext "* | \
  60588. - *" eth-snoop.$ac_objext "* ) ;;
  60589. - *) LIBOBJS="$LIBOBJS eth-snoop.$ac_objext" ;;
  60590. -esac
  60591. +# The host system.
  60592. +host_alias=$host_alias
  60593. +host=$host
  60594. +host_os=$host_os
  60595. -elif test "$ac_cv_header_sys_ndd_var_h" = yes ; then
  60596. - case $LIBOBJS in
  60597. - "eth-ndd.$ac_objext" | \
  60598. - *" eth-ndd.$ac_objext" | \
  60599. - "eth-ndd.$ac_objext "* | \
  60600. - *" eth-ndd.$ac_objext "* ) ;;
  60601. - *) LIBOBJS="$LIBOBJS eth-ndd.$ac_objext" ;;
  60602. -esac
  60603. +# The build system.
  60604. +build_alias=$build_alias
  60605. +build=$build
  60606. +build_os=$build_os
  60607. -elif test "$ac_cv_header_sys_dlpi_h" = yes || \
  60608. - test "$ac_cv_header_sys_dlpihdr_h" = yes ; then
  60609. - case $LIBOBJS in
  60610. - "eth-dlpi.$ac_objext" | \
  60611. - *" eth-dlpi.$ac_objext" | \
  60612. - "eth-dlpi.$ac_objext "* | \
  60613. - *" eth-dlpi.$ac_objext "* ) ;;
  60614. - *) LIBOBJS="$LIBOBJS eth-dlpi.$ac_objext" ;;
  60615. -esac
  60616. +# A sed program that does not truncate output.
  60617. +SED=$lt_SED
  60618. -else
  60619. - case $LIBOBJS in
  60620. - "eth-none.$ac_objext" | \
  60621. - *" eth-none.$ac_objext" | \
  60622. - "eth-none.$ac_objext "* | \
  60623. - *" eth-none.$ac_objext "* ) ;;
  60624. - *) LIBOBJS="$LIBOBJS eth-none.$ac_objext" ;;
  60625. -esac
  60626. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  60627. +Xsed="\$SED -e 1s/^X//"
  60628. -fi
  60629. +# A grep program that handles long lines.
  60630. +GREP=$lt_GREP
  60631. -if test "$ac_cv_header_Iphlpapi_h" = yes ; then
  60632. - case $LIBOBJS in
  60633. - "fw-pktfilter.$ac_objext" | \
  60634. - *" fw-pktfilter.$ac_objext" | \
  60635. - "fw-pktfilter.$ac_objext "* | \
  60636. - *" fw-pktfilter.$ac_objext "* ) ;;
  60637. - *) LIBOBJS="$LIBOBJS fw-pktfilter.$ac_objext" ;;
  60638. -esac
  60639. +# An ERE matcher.
  60640. +EGREP=$lt_EGREP
  60641. -elif test "$ac_cv_header_net_pfvar_h" = yes ; then
  60642. - case $LIBOBJS in
  60643. - "fw-pf.$ac_objext" | \
  60644. - *" fw-pf.$ac_objext" | \
  60645. - "fw-pf.$ac_objext "* | \
  60646. - *" fw-pf.$ac_objext "* ) ;;
  60647. - *) LIBOBJS="$LIBOBJS fw-pf.$ac_objext" ;;
  60648. -esac
  60649. +# A literal string matcher.
  60650. +FGREP=$lt_FGREP
  60651. -elif test "$ac_cv_header_netinet_ip_fw_h" = yes ; then
  60652. - case "$host_os" in
  60653. - *freebsd5*)
  60654. - case $LIBOBJS in
  60655. - "fw-none.$ac_objext" | \
  60656. - *" fw-none.$ac_objext" | \
  60657. - "fw-none.$ac_objext "* | \
  60658. - *" fw-none.$ac_objext "* ) ;;
  60659. - *) LIBOBJS="$LIBOBJS fw-none.$ac_objext" ;;
  60660. -esac
  60661. - ;;
  60662. - *)
  60663. - case $LIBOBJS in
  60664. - "fw-ipfw.$ac_objext" | \
  60665. - *" fw-ipfw.$ac_objext" | \
  60666. - "fw-ipfw.$ac_objext "* | \
  60667. - *" fw-ipfw.$ac_objext "* ) ;;
  60668. - *) LIBOBJS="$LIBOBJS fw-ipfw.$ac_objext" ;;
  60669. -esac
  60670. - ;;
  60671. - esac
  60672. -elif test "$ac_cv_header_netinet_ip_fil_h" = yes ; then
  60673. - case $LIBOBJS in
  60674. - "fw-ipf.$ac_objext" | \
  60675. - *" fw-ipf.$ac_objext" | \
  60676. - "fw-ipf.$ac_objext "* | \
  60677. - *" fw-ipf.$ac_objext "* ) ;;
  60678. - *) LIBOBJS="$LIBOBJS fw-ipf.$ac_objext" ;;
  60679. -esac
  60680. +# A BSD- or MS-compatible name lister.
  60681. +NM=$lt_NM
  60682. -elif test "$ac_cv_header_linux_ip_fw_h" = yes ; then
  60683. - case $LIBOBJS in
  60684. - "fw-ipchains.$ac_objext" | \
  60685. - *" fw-ipchains.$ac_objext" | \
  60686. - "fw-ipchains.$ac_objext "* | \
  60687. - *" fw-ipchains.$ac_objext "* ) ;;
  60688. - *) LIBOBJS="$LIBOBJS fw-ipchains.$ac_objext" ;;
  60689. -esac
  60690. +# Whether we need soft or hard links.
  60691. +LN_S=$lt_LN_S
  60692. -elif test "$ac_cv_header_linux_ip_fwchains_h" = yes ; then
  60693. - case $LIBOBJS in
  60694. - "fw-ipchains.$ac_objext" | \
  60695. - *" fw-ipchains.$ac_objext" | \
  60696. - "fw-ipchains.$ac_objext "* | \
  60697. - *" fw-ipchains.$ac_objext "* ) ;;
  60698. - *) LIBOBJS="$LIBOBJS fw-ipchains.$ac_objext" ;;
  60699. -esac
  60700. +# What is the maximum length of a command?
  60701. +max_cmd_len=$max_cmd_len
  60702. -elif test "$ac_cv_header_linux_netfilter_ipv4_ipchains_core_h" = yes ; then
  60703. - case $LIBOBJS in
  60704. - "fw-ipchains.$ac_objext" | \
  60705. - *" fw-ipchains.$ac_objext" | \
  60706. - "fw-ipchains.$ac_objext "* | \
  60707. - *" fw-ipchains.$ac_objext "* ) ;;
  60708. - *) LIBOBJS="$LIBOBJS fw-ipchains.$ac_objext" ;;
  60709. -esac
  60710. +# Object file suffix (normally "o").
  60711. +objext=$ac_objext
  60712. -else
  60713. - case $LIBOBJS in
  60714. - "fw-none.$ac_objext" | \
  60715. - *" fw-none.$ac_objext" | \
  60716. - "fw-none.$ac_objext "* | \
  60717. - *" fw-none.$ac_objext "* ) ;;
  60718. - *) LIBOBJS="$LIBOBJS fw-none.$ac_objext" ;;
  60719. -esac
  60720. +# Executable file suffix (normally "").
  60721. +exeext=$exeext
  60722. -fi
  60723. +# whether the shell understands "unset".
  60724. +lt_unset=$lt_unset
  60725. -if test "$ac_cv_header_Iphlpapi_h" = yes ; then
  60726. - case $LIBOBJS in
  60727. - "intf-win32.$ac_objext" | \
  60728. - *" intf-win32.$ac_objext" | \
  60729. - "intf-win32.$ac_objext "* | \
  60730. - *" intf-win32.$ac_objext "* ) ;;
  60731. - *) LIBOBJS="$LIBOBJS intf-win32.$ac_objext" ;;
  60732. -esac
  60733. +# turn spaces into newlines.
  60734. +SP2NL=$lt_lt_SP2NL
  60735. -else
  60736. - case $LIBOBJS in
  60737. - "intf.$ac_objext" | \
  60738. - *" intf.$ac_objext" | \
  60739. - "intf.$ac_objext "* | \
  60740. - *" intf.$ac_objext "* ) ;;
  60741. - *) LIBOBJS="$LIBOBJS intf.$ac_objext" ;;
  60742. -esac
  60743. +# turn newlines into spaces.
  60744. +NL2SP=$lt_lt_NL2SP
  60745. -fi
  60746. +# How to create reloadable object files.
  60747. +reload_flag=$lt_reload_flag
  60748. +reload_cmds=$lt_reload_cmds
  60749. -if test "$ac_cv_header_Iphlpapi_h" = yes ; then
  60750. - case $LIBOBJS in
  60751. - "ip-win32.$ac_objext" | \
  60752. - *" ip-win32.$ac_objext" | \
  60753. - "ip-win32.$ac_objext "* | \
  60754. - *" ip-win32.$ac_objext "* ) ;;
  60755. - *) LIBOBJS="$LIBOBJS ip-win32.$ac_objext" ;;
  60756. -esac
  60757. +# An object symbol dumper.
  60758. +OBJDUMP=$lt_OBJDUMP
  60759. -elif test "$ac_cv_dnet_rawip_cooked" = yes ; then
  60760. - case $LIBOBJS in
  60761. - "ip-cooked.$ac_objext" | \
  60762. - *" ip-cooked.$ac_objext" | \
  60763. - "ip-cooked.$ac_objext "* | \
  60764. - *" ip-cooked.$ac_objext "* ) ;;
  60765. - *) LIBOBJS="$LIBOBJS ip-cooked.$ac_objext" ;;
  60766. -esac
  60767. +# Method to check whether dependent libraries are shared objects.
  60768. +deplibs_check_method=$lt_deplibs_check_method
  60769. -else
  60770. - case $LIBOBJS in
  60771. - "ip.$ac_objext" | \
  60772. - *" ip.$ac_objext" | \
  60773. - "ip.$ac_objext "* | \
  60774. - *" ip.$ac_objext "* ) ;;
  60775. - *) LIBOBJS="$LIBOBJS ip.$ac_objext" ;;
  60776. -esac
  60777. +# Command to use when deplibs_check_method == "file_magic".
  60778. +file_magic_cmd=$lt_file_magic_cmd
  60779. -fi
  60780. +# The archiver.
  60781. +AR=$lt_AR
  60782. +AR_FLAGS=$lt_AR_FLAGS
  60783. -if test "$ac_cv_header_Iphlpapi_h" = yes ; then
  60784. - case $LIBOBJS in
  60785. - "route-win32.$ac_objext" | \
  60786. - *" route-win32.$ac_objext" | \
  60787. - "route-win32.$ac_objext "* | \
  60788. - *" route-win32.$ac_objext "* ) ;;
  60789. - *) LIBOBJS="$LIBOBJS route-win32.$ac_objext" ;;
  60790. -esac
  60791. +# A symbol stripping program.
  60792. +STRIP=$lt_STRIP
  60793. -elif test "$ac_cv_dnet_route_h_has_rt_msghdr" = yes ; then
  60794. - case $LIBOBJS in
  60795. - "route-bsd.$ac_objext" | \
  60796. - *" route-bsd.$ac_objext" | \
  60797. - "route-bsd.$ac_objext "* | \
  60798. - *" route-bsd.$ac_objext "* ) ;;
  60799. - *) LIBOBJS="$LIBOBJS route-bsd.$ac_objext" ;;
  60800. -esac
  60801. +# Commands used to install an old-style archive.
  60802. +RANLIB=$lt_RANLIB
  60803. +old_postinstall_cmds=$lt_old_postinstall_cmds
  60804. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  60805. -elif test "$ac_cv_dnet_linux_procfs" = yes ; then
  60806. - case $LIBOBJS in
  60807. - "route-linux.$ac_objext" | \
  60808. - *" route-linux.$ac_objext" | \
  60809. - "route-linux.$ac_objext "* | \
  60810. - *" route-linux.$ac_objext "* ) ;;
  60811. - *) LIBOBJS="$LIBOBJS route-linux.$ac_objext" ;;
  60812. -esac
  60813. +# A C compiler.
  60814. +LTCC=$lt_CC
  60815. -elif test "$ac_cv_header_hpsecurity_h" = yes ; then
  60816. - case $LIBOBJS in
  60817. - "route-hpux.$ac_objext" | \
  60818. - *" route-hpux.$ac_objext" | \
  60819. - "route-hpux.$ac_objext "* | \
  60820. - *" route-hpux.$ac_objext "* ) ;;
  60821. - *) LIBOBJS="$LIBOBJS route-hpux.$ac_objext" ;;
  60822. -esac
  60823. +# LTCC compiler flags.
  60824. +LTCFLAGS=$lt_CFLAGS
  60825. -else
  60826. - case $LIBOBJS in
  60827. - "route-none.$ac_objext" | \
  60828. - *" route-none.$ac_objext" | \
  60829. - "route-none.$ac_objext "* | \
  60830. - *" route-none.$ac_objext "* ) ;;
  60831. - *) LIBOBJS="$LIBOBJS route-none.$ac_objext" ;;
  60832. -esac
  60833. +# Take the output of nm and produce a listing of raw symbols and C names.
  60834. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  60835. -fi
  60836. +# Transform the output of nm in a proper C declaration.
  60837. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  60838. -if test "$ac_cv_header_linux_if_tun_h" = yes ; then
  60839. - case $LIBOBJS in
  60840. - "tun-linux.$ac_objext" | \
  60841. - *" tun-linux.$ac_objext" | \
  60842. - "tun-linux.$ac_objext "* | \
  60843. - *" tun-linux.$ac_objext "* ) ;;
  60844. - *) LIBOBJS="$LIBOBJS tun-linux.$ac_objext" ;;
  60845. -esac
  60846. +# Transform the output of nm in a C name address pair.
  60847. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  60848. -elif test "$ac_cv_header_net_if_tun_h" = yes ; then
  60849. - if test "$ac_cv_header_stropts_h" = yes ; then
  60850. - case $LIBOBJS in
  60851. - "tun-solaris.$ac_objext" | \
  60852. - *" tun-solaris.$ac_objext" | \
  60853. - "tun-solaris.$ac_objext "* | \
  60854. - *" tun-solaris.$ac_objext "* ) ;;
  60855. - *) LIBOBJS="$LIBOBJS tun-solaris.$ac_objext" ;;
  60856. -esac
  60857. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  60858. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  60859. - else
  60860. - case $LIBOBJS in
  60861. - "tun-bsd.$ac_objext" | \
  60862. - *" tun-bsd.$ac_objext" | \
  60863. - "tun-bsd.$ac_objext "* | \
  60864. - *" tun-bsd.$ac_objext "* ) ;;
  60865. - *) LIBOBJS="$LIBOBJS tun-bsd.$ac_objext" ;;
  60866. -esac
  60867. +# The name of the directory that contains temporary libtool files.
  60868. +objdir=$objdir
  60869. - fi
  60870. -elif test -c "/dev/tun0" ; then
  60871. - case $LIBOBJS in
  60872. - "tun-bsd.$ac_objext" | \
  60873. - *" tun-bsd.$ac_objext" | \
  60874. - "tun-bsd.$ac_objext "* | \
  60875. - *" tun-bsd.$ac_objext "* ) ;;
  60876. - *) LIBOBJS="$LIBOBJS tun-bsd.$ac_objext" ;;
  60877. -esac
  60878. +# Shell to use when invoking shell scripts.
  60879. +SHELL=$lt_SHELL
  60880. -else
  60881. - case $LIBOBJS in
  60882. - "tun-none.$ac_objext" | \
  60883. - *" tun-none.$ac_objext" | \
  60884. - "tun-none.$ac_objext "* | \
  60885. - *" tun-none.$ac_objext "* ) ;;
  60886. - *) LIBOBJS="$LIBOBJS tun-none.$ac_objext" ;;
  60887. -esac
  60888. +# An echo program that does not interpret backslashes.
  60889. +ECHO=$lt_ECHO
  60890. -fi
  60891. +# Used to examine libraries when file_magic_cmd begins with "file".
  60892. +MAGIC_CMD=$MAGIC_CMD
  60893. - ac_config_files="$ac_config_files Makefile dnet-config include/Makefile include/dnet/Makefile man/Makefile src/Makefile python/Makefile python/setup.py test/Makefile test/check/Makefile test/dnet/Makefile"
  60894. - ac_config_commands="$ac_config_commands default"
  60895. -cat >confcache <<\_ACEOF
  60896. -# This file is a shell script that caches the results of configure
  60897. -# tests run on this system so they can be shared between configure
  60898. -# scripts and configure runs, see configure's option --config-cache.
  60899. -# It is not useful on other systems. If it contains results you don't
  60900. -# want to keep, you may remove or edit it.
  60901. -#
  60902. -# config.status only pays attention to the cache file if you give it
  60903. -# the --recheck option to rerun configure.
  60904. -#
  60905. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  60906. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  60907. -# following values.
  60908. +# Must we lock files when doing compilation?
  60909. +need_locks=$lt_need_locks
  60910. -_ACEOF
  60911. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  60912. +DSYMUTIL=$lt_DSYMUTIL
  60913. -# The following way of writing the cache mishandles newlines in values,
  60914. -# but we know of no workaround that is simple, portable, and efficient.
  60915. -# So, don't put newlines in cache variables' values.
  60916. -# Ultrix sh set writes to stderr and can't be redirected directly,
  60917. -# and sets the high bit in the cache file unless we assign to the vars.
  60918. -{
  60919. - (set) 2>&1 |
  60920. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  60921. - *ac_space=\ *)
  60922. - # `set' does not quote correctly, so add quotes (double-quote
  60923. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  60924. - sed -n \
  60925. - "s/'/'\\\\''/g;
  60926. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  60927. - ;;
  60928. - *)
  60929. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  60930. - sed -n \
  60931. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  60932. - ;;
  60933. - esac;
  60934. -} |
  60935. - sed '
  60936. - t clear
  60937. - : clear
  60938. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  60939. - t end
  60940. - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  60941. - : end' >>confcache
  60942. -if diff $cache_file confcache >/dev/null 2>&1; then :; else
  60943. - if test -w $cache_file; then
  60944. - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  60945. - cat confcache >$cache_file
  60946. - else
  60947. - echo "not updating unwritable cache $cache_file"
  60948. - fi
  60949. -fi
  60950. -rm -f confcache
  60951. +# Tool to change global to local symbols on Mac OS X.
  60952. +NMEDIT=$lt_NMEDIT
  60953. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  60954. -# Let make expand exec_prefix.
  60955. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  60956. +# Tool to manipulate fat objects and archives on Mac OS X.
  60957. +LIPO=$lt_LIPO
  60958. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  60959. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  60960. -# trailing colons and then remove the whole line if VPATH becomes empty
  60961. -# (actually we leave an empty line to preserve line numbers).
  60962. -if test "x$srcdir" = x.; then
  60963. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  60964. -s/:*\$(srcdir):*/:/;
  60965. -s/:*\${srcdir}:*/:/;
  60966. -s/:*@srcdir@:*/:/;
  60967. -s/^\([^=]*=[ ]*\):*/\1/;
  60968. -s/:*$//;
  60969. -s/^[^=]*=[ ]*$//;
  60970. -}'
  60971. -fi
  60972. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  60973. +OTOOL=$lt_OTOOL
  60974. -DEFS=-DHAVE_CONFIG_H
  60975. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  60976. +OTOOL64=$lt_OTOOL64
  60977. -ac_libobjs=
  60978. -ac_ltlibobjs=
  60979. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  60980. - # 1. Remove the extension, and $U if already installed.
  60981. - ac_i=`echo "$ac_i" |
  60982. - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  60983. - # 2. Add them.
  60984. - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  60985. - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  60986. -done
  60987. -LIBOBJS=$ac_libobjs
  60988. +# Old archive suffix (normally "a").
  60989. +libext=$libext
  60990. -LTLIBOBJS=$ac_ltlibobjs
  60991. +# Shared library suffix (normally ".so").
  60992. +shrext_cmds=$lt_shrext_cmds
  60993. +# The commands to extract the exported symbol list from a shared archive.
  60994. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  60995. -if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  60996. - { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  60997. -Usually this means the macro was only invoked conditionally." >&5
  60998. -echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  60999. -Usually this means the macro was only invoked conditionally." >&2;}
  61000. - { (exit 1); exit 1; }; }
  61001. -fi
  61002. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  61003. - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  61004. -Usually this means the macro was only invoked conditionally." >&5
  61005. -echo "$as_me: error: conditional \"AMDEP\" was never defined.
  61006. -Usually this means the macro was only invoked conditionally." >&2;}
  61007. - { (exit 1); exit 1; }; }
  61008. -fi
  61009. -if test -z "${PYTHON_TRUE}" && test -z "${PYTHON_FALSE}"; then
  61010. - { { echo "$as_me:$LINENO: error: conditional \"PYTHON\" was never defined.
  61011. -Usually this means the macro was only invoked conditionally." >&5
  61012. -echo "$as_me: error: conditional \"PYTHON\" was never defined.
  61013. -Usually this means the macro was only invoked conditionally." >&2;}
  61014. - { (exit 1); exit 1; }; }
  61015. -fi
  61016. -if test -z "${TCL_TRUE}" && test -z "${TCL_FALSE}"; then
  61017. - { { echo "$as_me:$LINENO: error: conditional \"TCL\" was never defined.
  61018. -Usually this means the macro was only invoked conditionally." >&5
  61019. -echo "$as_me: error: conditional \"TCL\" was never defined.
  61020. -Usually this means the macro was only invoked conditionally." >&2;}
  61021. - { (exit 1); exit 1; }; }
  61022. -fi
  61023. -if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
  61024. - { { echo "$as_me:$LINENO: error: conditional \"HAVE_CHECK\" was never defined.
  61025. -Usually this means the macro was only invoked conditionally." >&5
  61026. -echo "$as_me: error: conditional \"HAVE_CHECK\" was never defined.
  61027. -Usually this means the macro was only invoked conditionally." >&2;}
  61028. - { (exit 1); exit 1; }; }
  61029. -fi
  61030. +# Variables whose values should be saved in libtool wrapper scripts and
  61031. +# restored at link time.
  61032. +variables_saved_for_relink=$lt_variables_saved_for_relink
  61033. +
  61034. +# Do we need the "lib" prefix for modules?
  61035. +need_lib_prefix=$need_lib_prefix
  61036. -: ${CONFIG_STATUS=./config.status}
  61037. -ac_clean_files_save=$ac_clean_files
  61038. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  61039. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  61040. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  61041. -cat >$CONFIG_STATUS <<_ACEOF
  61042. -#! $SHELL
  61043. -# Generated by $as_me.
  61044. -# Run this file to recreate the current configuration.
  61045. -# Compiler output produced by configure, useful for debugging
  61046. -# configure, is in config.log if it exists.
  61047. +# Do we need a version for libraries?
  61048. +need_version=$need_version
  61049. -debug=false
  61050. -ac_cs_recheck=false
  61051. -ac_cs_silent=false
  61052. -SHELL=\${CONFIG_SHELL-$SHELL}
  61053. -_ACEOF
  61054. +# Library versioning type.
  61055. +version_type=$version_type
  61056. -cat >>$CONFIG_STATUS <<\_ACEOF
  61057. -## --------------------- ##
  61058. -## M4sh Initialization. ##
  61059. -## --------------------- ##
  61060. +# Shared library runtime path variable.
  61061. +runpath_var=$runpath_var
  61062. -# Be Bourne compatible
  61063. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  61064. - emulate sh
  61065. - NULLCMD=:
  61066. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  61067. - # is contrary to our usage. Disable this feature.
  61068. - alias -g '${1+"$@"}'='"$@"'
  61069. -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  61070. - set -o posix
  61071. -fi
  61072. -DUALCASE=1; export DUALCASE # for MKS sh
  61073. +# Shared library path variable.
  61074. +shlibpath_var=$shlibpath_var
  61075. -# Support unset when possible.
  61076. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  61077. - as_unset=unset
  61078. -else
  61079. - as_unset=false
  61080. -fi
  61081. +# Is shlibpath searched before the hard-coded library search path?
  61082. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  61083. +# Format of library name prefix.
  61084. +libname_spec=$lt_libname_spec
  61085. -# Work around bugs in pre-3.0 UWIN ksh.
  61086. -$as_unset ENV MAIL MAILPATH
  61087. -PS1='$ '
  61088. -PS2='> '
  61089. -PS4='+ '
  61090. +# List of archive names. First name is the real one, the rest are links.
  61091. +# The last name is the one that the linker finds with -lNAME
  61092. +library_names_spec=$lt_library_names_spec
  61093. -# NLS nuisances.
  61094. -for as_var in \
  61095. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  61096. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  61097. - LC_TELEPHONE LC_TIME
  61098. -do
  61099. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  61100. - eval $as_var=C; export $as_var
  61101. - else
  61102. - $as_unset $as_var
  61103. - fi
  61104. -done
  61105. +# The coded name of the library, if different from the real name.
  61106. +soname_spec=$lt_soname_spec
  61107. -# Required to use basename.
  61108. -if expr a : '\(a\)' >/dev/null 2>&1; then
  61109. - as_expr=expr
  61110. -else
  61111. - as_expr=false
  61112. -fi
  61113. +# Command to use after installation of a shared archive.
  61114. +postinstall_cmds=$lt_postinstall_cmds
  61115. -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  61116. - as_basename=basename
  61117. -else
  61118. - as_basename=false
  61119. -fi
  61120. +# Command to use after uninstallation of a shared archive.
  61121. +postuninstall_cmds=$lt_postuninstall_cmds
  61122. +# Commands used to finish a libtool library installation in a directory.
  61123. +finish_cmds=$lt_finish_cmds
  61124. -# Name of the executable.
  61125. -as_me=`$as_basename "$0" ||
  61126. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  61127. - X"$0" : 'X\(//\)$' \| \
  61128. - X"$0" : 'X\(/\)$' \| \
  61129. - . : '\(.\)' 2>/dev/null ||
  61130. -echo X/"$0" |
  61131. - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  61132. - /^X\/\(\/\/\)$/{ s//\1/; q; }
  61133. - /^X\/\(\/\).*/{ s//\1/; q; }
  61134. - s/.*/./; q'`
  61135. +# As "finish_cmds", except a single script fragment to be evaled but
  61136. +# not shown.
  61137. +finish_eval=$lt_finish_eval
  61138. +# Whether we should hardcode library paths into libraries.
  61139. +hardcode_into_libs=$hardcode_into_libs
  61140. -# PATH needs CR, and LINENO needs CR and PATH.
  61141. -# Avoid depending upon Character Ranges.
  61142. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  61143. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  61144. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  61145. -as_cr_digits='0123456789'
  61146. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  61147. +# Compile-time system search path for libraries.
  61148. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  61149. -# The user is always right.
  61150. -if test "${PATH_SEPARATOR+set}" != set; then
  61151. - echo "#! /bin/sh" >conf$$.sh
  61152. - echo "exit 0" >>conf$$.sh
  61153. - chmod +x conf$$.sh
  61154. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  61155. - PATH_SEPARATOR=';'
  61156. - else
  61157. - PATH_SEPARATOR=:
  61158. - fi
  61159. - rm -f conf$$.sh
  61160. -fi
  61161. +# Run-time system search path for libraries.
  61162. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  61163. +# Whether dlopen is supported.
  61164. +dlopen_support=$enable_dlopen
  61165. - as_lineno_1=$LINENO
  61166. - as_lineno_2=$LINENO
  61167. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  61168. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  61169. - test "x$as_lineno_3" = "x$as_lineno_2" || {
  61170. - # Find who we are. Look in the path if we contain no path at all
  61171. - # relative or not.
  61172. - case $0 in
  61173. - *[\\/]* ) as_myself=$0 ;;
  61174. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  61175. -for as_dir in $PATH
  61176. -do
  61177. - IFS=$as_save_IFS
  61178. - test -z "$as_dir" && as_dir=.
  61179. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  61180. -done
  61181. +# Whether dlopen of programs is supported.
  61182. +dlopen_self=$enable_dlopen_self
  61183. - ;;
  61184. - esac
  61185. - # We did not find ourselves, most probably we were run as `sh COMMAND'
  61186. - # in which case we are not to be found in the path.
  61187. - if test "x$as_myself" = x; then
  61188. - as_myself=$0
  61189. - fi
  61190. - if test ! -f "$as_myself"; then
  61191. - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  61192. -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  61193. - { (exit 1); exit 1; }; }
  61194. - fi
  61195. - case $CONFIG_SHELL in
  61196. - '')
  61197. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  61198. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  61199. -do
  61200. - IFS=$as_save_IFS
  61201. - test -z "$as_dir" && as_dir=.
  61202. - for as_base in sh bash ksh sh5; do
  61203. - case $as_dir in
  61204. - /*)
  61205. - if ("$as_dir/$as_base" -c '
  61206. - as_lineno_1=$LINENO
  61207. - as_lineno_2=$LINENO
  61208. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  61209. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  61210. - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  61211. - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  61212. - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  61213. - CONFIG_SHELL=$as_dir/$as_base
  61214. - export CONFIG_SHELL
  61215. - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  61216. - fi;;
  61217. - esac
  61218. - done
  61219. -done
  61220. -;;
  61221. - esac
  61222. +# Whether dlopen of statically linked programs is supported.
  61223. +dlopen_self_static=$enable_dlopen_self_static
  61224. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  61225. - # uniformly replaced by the line number. The first 'sed' inserts a
  61226. - # line-number line before each line; the second 'sed' does the real
  61227. - # work. The second script uses 'N' to pair each line-number line
  61228. - # with the numbered line, and appends trailing '-' during
  61229. - # substitution so that $LINENO is not a special case at line end.
  61230. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  61231. - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  61232. - sed '=' <$as_myself |
  61233. - sed '
  61234. - N
  61235. - s,$,-,
  61236. - : loop
  61237. - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  61238. - t loop
  61239. - s,-$,,
  61240. - s,^['$as_cr_digits']*\n,,
  61241. - ' >$as_me.lineno &&
  61242. - chmod +x $as_me.lineno ||
  61243. - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  61244. -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  61245. - { (exit 1); exit 1; }; }
  61246. +# Commands to strip libraries.
  61247. +old_striplib=$lt_old_striplib
  61248. +striplib=$lt_striplib
  61249. - # Don't try to exec as it changes $[0], causing all sort of problems
  61250. - # (the dirname of $[0] is not the place where we might find the
  61251. - # original and so on. Autoconf is especially sensible to this).
  61252. - . ./$as_me.lineno
  61253. - # Exit status is that of the last command.
  61254. - exit
  61255. -}
  61256. +# The linker used to build libraries.
  61257. +LD=$lt_LD
  61258. -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  61259. - *c*,-n*) ECHO_N= ECHO_C='
  61260. -' ECHO_T=' ' ;;
  61261. - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  61262. - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  61263. -esac
  61264. +# Commands used to build an old-style archive.
  61265. +old_archive_cmds=$lt_old_archive_cmds
  61266. -if expr a : '\(a\)' >/dev/null 2>&1; then
  61267. - as_expr=expr
  61268. -else
  61269. - as_expr=false
  61270. -fi
  61271. +# A language specific compiler.
  61272. +CC=$lt_compiler
  61273. -rm -f conf$$ conf$$.exe conf$$.file
  61274. -echo >conf$$.file
  61275. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  61276. - # We could just check for DJGPP; but this test a) works b) is more generic
  61277. - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  61278. - if test -f conf$$.exe; then
  61279. - # Don't use ln at all; we don't have any links
  61280. - as_ln_s='cp -p'
  61281. - else
  61282. - as_ln_s='ln -s'
  61283. - fi
  61284. -elif ln conf$$.file conf$$ 2>/dev/null; then
  61285. - as_ln_s=ln
  61286. -else
  61287. - as_ln_s='cp -p'
  61288. -fi
  61289. -rm -f conf$$ conf$$.exe conf$$.file
  61290. +# Is the compiler the GNU compiler?
  61291. +with_gcc=$GCC
  61292. -if mkdir -p . 2>/dev/null; then
  61293. - as_mkdir_p=:
  61294. -else
  61295. - test -d ./-p && rmdir ./-p
  61296. - as_mkdir_p=false
  61297. -fi
  61298. +# Compiler flag to turn off builtin functions.
  61299. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  61300. -as_executable_p="test -f"
  61301. +# How to pass a linker flag through the compiler.
  61302. +wl=$lt_lt_prog_compiler_wl
  61303. -# Sed expression to map a string onto a valid CPP name.
  61304. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  61305. +# Additional compiler flags for building library objects.
  61306. +pic_flag=$lt_lt_prog_compiler_pic
  61307. -# Sed expression to map a string onto a valid variable name.
  61308. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  61309. +# Compiler flag to prevent dynamic linking.
  61310. +link_static_flag=$lt_lt_prog_compiler_static
  61311. +# Does compiler simultaneously support -c and -o options?
  61312. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  61313. -# IFS
  61314. -# We need space, tab and new line, in precisely that order.
  61315. -as_nl='
  61316. -'
  61317. -IFS=" $as_nl"
  61318. +# Whether or not to add -lc for building shared libraries.
  61319. +build_libtool_need_lc=$archive_cmds_need_lc
  61320. -# CDPATH.
  61321. -$as_unset CDPATH
  61322. +# Whether or not to disallow shared libs when runtime libs are static.
  61323. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  61324. -exec 6>&1
  61325. +# Compiler flag to allow reflexive dlopens.
  61326. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  61327. -# Open the log real soon, to keep \$[0] and so on meaningful, and to
  61328. -# report actual input values of CONFIG_FILES etc. instead of their
  61329. -# values after options handling. Logging --version etc. is OK.
  61330. -exec 5>>config.log
  61331. -{
  61332. - echo
  61333. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  61334. -## Running $as_me. ##
  61335. -_ASBOX
  61336. -} >&5
  61337. -cat >&5 <<_CSEOF
  61338. +# Compiler flag to generate shared objects directly from archives.
  61339. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  61340. -This file was extended by $as_me, which was
  61341. -generated by GNU Autoconf 2.59. Invocation command line was
  61342. +# Whether the compiler copes with passing no objects directly.
  61343. +compiler_needs_object=$lt_compiler_needs_object
  61344. - CONFIG_FILES = $CONFIG_FILES
  61345. - CONFIG_HEADERS = $CONFIG_HEADERS
  61346. - CONFIG_LINKS = $CONFIG_LINKS
  61347. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  61348. - $ $0 $@
  61349. +# Create an old-style archive from a shared archive.
  61350. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  61351. -_CSEOF
  61352. -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  61353. -echo >&5
  61354. -_ACEOF
  61355. +# Create a temporary old-style archive to link instead of a shared archive.
  61356. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  61357. -# Files that config.status was made for.
  61358. -if test -n "$ac_config_files"; then
  61359. - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  61360. -fi
  61361. +# Commands used to build a shared archive.
  61362. +archive_cmds=$lt_archive_cmds
  61363. +archive_expsym_cmds=$lt_archive_expsym_cmds
  61364. -if test -n "$ac_config_headers"; then
  61365. - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  61366. -fi
  61367. +# Commands used to build a loadable module if different from building
  61368. +# a shared archive.
  61369. +module_cmds=$lt_module_cmds
  61370. +module_expsym_cmds=$lt_module_expsym_cmds
  61371. -if test -n "$ac_config_links"; then
  61372. - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  61373. -fi
  61374. +# Whether we are building with GNU ld or not.
  61375. +with_gnu_ld=$lt_with_gnu_ld
  61376. -if test -n "$ac_config_commands"; then
  61377. - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  61378. -fi
  61379. +# Flag that allows shared libraries with undefined symbols to be built.
  61380. +allow_undefined_flag=$lt_allow_undefined_flag
  61381. -cat >>$CONFIG_STATUS <<\_ACEOF
  61382. +# Flag that enforces no undefined symbols.
  61383. +no_undefined_flag=$lt_no_undefined_flag
  61384. -ac_cs_usage="\
  61385. -\`$as_me' instantiates files from templates according to the
  61386. -current configuration.
  61387. +# Flag to hardcode \$libdir into a binary during linking.
  61388. +# This must work even if \$libdir does not exist
  61389. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  61390. -Usage: $0 [OPTIONS] [FILE]...
  61391. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  61392. +# during linking. This must work even if \$libdir does not exist.
  61393. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  61394. - -h, --help print this help, then exit
  61395. - -V, --version print version number, then exit
  61396. - -q, --quiet do not print progress messages
  61397. - -d, --debug don't remove temporary files
  61398. - --recheck update $as_me by reconfiguring in the same conditions
  61399. - --file=FILE[:TEMPLATE]
  61400. - instantiate the configuration file FILE
  61401. - --header=FILE[:TEMPLATE]
  61402. - instantiate the configuration header FILE
  61403. +# Whether we need a single "-rpath" flag with a separated argument.
  61404. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  61405. -Configuration files:
  61406. -$config_files
  61407. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  61408. +# DIR into the resulting binary.
  61409. +hardcode_direct=$hardcode_direct
  61410. -Configuration headers:
  61411. -$config_headers
  61412. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  61413. +# DIR into the resulting binary and the resulting library dependency is
  61414. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  61415. +# library is relocated.
  61416. +hardcode_direct_absolute=$hardcode_direct_absolute
  61417. -Configuration commands:
  61418. -$config_commands
  61419. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  61420. +# into the resulting binary.
  61421. +hardcode_minus_L=$hardcode_minus_L
  61422. -Report bugs to <bug-autoconf@gnu.org>."
  61423. -_ACEOF
  61424. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  61425. +# into the resulting binary.
  61426. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  61427. -cat >>$CONFIG_STATUS <<_ACEOF
  61428. -ac_cs_version="\\
  61429. -config.status
  61430. -configured by $0, generated by GNU Autoconf 2.59,
  61431. - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  61432. +# Set to "yes" if building a shared library automatically hardcodes DIR
  61433. +# into the library and all subsequent libraries and executables linked
  61434. +# against it.
  61435. +hardcode_automatic=$hardcode_automatic
  61436. -Copyright (C) 2003 Free Software Foundation, Inc.
  61437. -This config.status script is free software; the Free Software Foundation
  61438. -gives unlimited permission to copy, distribute and modify it."
  61439. -srcdir=$srcdir
  61440. -INSTALL="$INSTALL"
  61441. -_ACEOF
  61442. +# Set to yes if linker adds runtime paths of dependent libraries
  61443. +# to runtime path list.
  61444. +inherit_rpath=$inherit_rpath
  61445. -cat >>$CONFIG_STATUS <<\_ACEOF
  61446. -# If no file are specified by the user, then we need to provide default
  61447. -# value. By we need to know if files were specified by the user.
  61448. -ac_need_defaults=:
  61449. -while test $# != 0
  61450. -do
  61451. - case $1 in
  61452. - --*=*)
  61453. - ac_option=`expr "x$1" : 'x\([^=]*\)='`
  61454. - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  61455. - ac_shift=:
  61456. - ;;
  61457. - -*)
  61458. - ac_option=$1
  61459. - ac_optarg=$2
  61460. - ac_shift=shift
  61461. - ;;
  61462. - *) # This is not an option, so the user has probably given explicit
  61463. - # arguments.
  61464. - ac_option=$1
  61465. - ac_need_defaults=false;;
  61466. - esac
  61467. +# Whether libtool must link a program against all its dependency libraries.
  61468. +link_all_deplibs=$link_all_deplibs
  61469. - case $ac_option in
  61470. - # Handling of the options.
  61471. -_ACEOF
  61472. -cat >>$CONFIG_STATUS <<\_ACEOF
  61473. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  61474. - ac_cs_recheck=: ;;
  61475. - --version | --vers* | -V )
  61476. - echo "$ac_cs_version"; exit 0 ;;
  61477. - --he | --h)
  61478. - # Conflict between --help and --header
  61479. - { { echo "$as_me:$LINENO: error: ambiguous option: $1
  61480. -Try \`$0 --help' for more information." >&5
  61481. -echo "$as_me: error: ambiguous option: $1
  61482. -Try \`$0 --help' for more information." >&2;}
  61483. - { (exit 1); exit 1; }; };;
  61484. - --help | --hel | -h )
  61485. - echo "$ac_cs_usage"; exit 0 ;;
  61486. - --debug | --d* | -d )
  61487. - debug=: ;;
  61488. - --file | --fil | --fi | --f )
  61489. - $ac_shift
  61490. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  61491. - ac_need_defaults=false;;
  61492. - --header | --heade | --head | --hea )
  61493. - $ac_shift
  61494. - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  61495. - ac_need_defaults=false;;
  61496. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  61497. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  61498. - ac_cs_silent=: ;;
  61499. +# Fix the shell variable \$srcfile for the compiler.
  61500. +fix_srcfile_path=$lt_fix_srcfile_path
  61501. +
  61502. +# Set to "yes" if exported symbols are required.
  61503. +always_export_symbols=$always_export_symbols
  61504. +
  61505. +# The commands to list exported symbols.
  61506. +export_symbols_cmds=$lt_export_symbols_cmds
  61507. +
  61508. +# Symbols that should not be listed in the preloaded symbols.
  61509. +exclude_expsyms=$lt_exclude_expsyms
  61510. +
  61511. +# Symbols that must always be exported.
  61512. +include_expsyms=$lt_include_expsyms
  61513. - # This is an error.
  61514. - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  61515. -Try \`$0 --help' for more information." >&5
  61516. -echo "$as_me: error: unrecognized option: $1
  61517. -Try \`$0 --help' for more information." >&2;}
  61518. - { (exit 1); exit 1; }; } ;;
  61519. +# Commands necessary for linking programs (against libraries) with templates.
  61520. +prelink_cmds=$lt_prelink_cmds
  61521. - *) ac_config_targets="$ac_config_targets $1" ;;
  61522. +# Specify filename containing input files.
  61523. +file_list_spec=$lt_file_list_spec
  61524. - esac
  61525. - shift
  61526. -done
  61527. +# How to hardcode a shared library path into an executable.
  61528. +hardcode_action=$hardcode_action
  61529. -ac_configure_extra_args=
  61530. +# ### END LIBTOOL CONFIG
  61531. -if $ac_cs_silent; then
  61532. - exec 6>/dev/null
  61533. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  61534. -fi
  61535. +_LT_EOF
  61536. -_ACEOF
  61537. -cat >>$CONFIG_STATUS <<_ACEOF
  61538. -if \$ac_cs_recheck; then
  61539. - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  61540. - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  61541. + case $host_os in
  61542. + aix3*)
  61543. + cat <<\_LT_EOF >> "$cfgfile"
  61544. +# AIX sometimes has problems with the GCC collect2 program. For some
  61545. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  61546. +# vanish in a puff of smoke.
  61547. +if test "X${COLLECT_NAMES+set}" != Xset; then
  61548. + COLLECT_NAMES=
  61549. + export COLLECT_NAMES
  61550. fi
  61551. +_LT_EOF
  61552. + ;;
  61553. + esac
  61554. -_ACEOF
  61555. -
  61556. -cat >>$CONFIG_STATUS <<_ACEOF
  61557. -#
  61558. -# INIT-COMMANDS section.
  61559. -#
  61560. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  61561. +ltmain="$ac_aux_dir/ltmain.sh"
  61562. -_ACEOF
  61563. + # We use sed instead of cat because bash on DJGPP gets confused if
  61564. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  61565. + # text mode, it properly converts lines to CR/LF. This bash problem
  61566. + # is reportedly fixed, but why not run on old versions too?
  61567. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  61568. + || (rm -f "$cfgfile"; exit 1)
  61569. + case $xsi_shell in
  61570. + yes)
  61571. + cat << \_LT_EOF >> "$cfgfile"
  61572. -cat >>$CONFIG_STATUS <<\_ACEOF
  61573. -for ac_config_target in $ac_config_targets
  61574. -do
  61575. - case "$ac_config_target" in
  61576. - # Handling of arguments.
  61577. - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  61578. - "dnet-config" ) CONFIG_FILES="$CONFIG_FILES dnet-config" ;;
  61579. - "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  61580. - "include/dnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/dnet/Makefile" ;;
  61581. - "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  61582. - "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  61583. - "python/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  61584. - "python/setup.py" ) CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
  61585. - "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  61586. - "test/check/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/check/Makefile" ;;
  61587. - "test/dnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/dnet/Makefile" ;;
  61588. - "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  61589. - "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  61590. - "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
  61591. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  61592. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  61593. - { (exit 1); exit 1; }; };;
  61594. +# func_dirname file append nondir_replacement
  61595. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  61596. +# otherwise set result to NONDIR_REPLACEMENT.
  61597. +func_dirname ()
  61598. +{
  61599. + case ${1} in
  61600. + */*) func_dirname_result="${1%/*}${2}" ;;
  61601. + * ) func_dirname_result="${3}" ;;
  61602. esac
  61603. -done
  61604. -
  61605. -# If the user did not use the arguments to specify the items to instantiate,
  61606. -# then the envvar interface is used. Set only those that are not.
  61607. -# We use the long form for the default assignment because of an extremely
  61608. -# bizarre bug on SunOS 4.1.3.
  61609. -if $ac_need_defaults; then
  61610. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  61611. - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  61612. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  61613. -fi
  61614. +}
  61615. -# Have a temporary directory for convenience. Make it in the build tree
  61616. -# simply because there is no reason to put it here, and in addition,
  61617. -# creating and moving files from /tmp can sometimes cause problems.
  61618. -# Create a temporary directory, and hook for its removal unless debugging.
  61619. -$debug ||
  61620. +# func_basename file
  61621. +func_basename ()
  61622. {
  61623. - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  61624. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  61625. + func_basename_result="${1##*/}"
  61626. }
  61627. -# Create a (secure) tmp directory for tmp files.
  61628. -
  61629. -{
  61630. - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  61631. - test -n "$tmp" && test -d "$tmp"
  61632. -} ||
  61633. +# func_dirname_and_basename file append nondir_replacement
  61634. +# perform func_basename and func_dirname in a single function
  61635. +# call:
  61636. +# dirname: Compute the dirname of FILE. If nonempty,
  61637. +# add APPEND to the result, otherwise set result
  61638. +# to NONDIR_REPLACEMENT.
  61639. +# value returned in "$func_dirname_result"
  61640. +# basename: Compute filename of FILE.
  61641. +# value retuned in "$func_basename_result"
  61642. +# Implementation must be kept synchronized with func_dirname
  61643. +# and func_basename. For efficiency, we do not delegate to
  61644. +# those functions but instead duplicate the functionality here.
  61645. +func_dirname_and_basename ()
  61646. {
  61647. - tmp=./confstat$$-$RANDOM
  61648. - (umask 077 && mkdir $tmp)
  61649. -} ||
  61650. -{
  61651. - echo "$me: cannot create a temporary directory in ." >&2
  61652. - { (exit 1); exit 1; }
  61653. + case ${1} in
  61654. + */*) func_dirname_result="${1%/*}${2}" ;;
  61655. + * ) func_dirname_result="${3}" ;;
  61656. + esac
  61657. + func_basename_result="${1##*/}"
  61658. }
  61659. -_ACEOF
  61660. -
  61661. -cat >>$CONFIG_STATUS <<_ACEOF
  61662. -
  61663. -#
  61664. -# CONFIG_FILES section.
  61665. -#
  61666. +# func_stripname prefix suffix name
  61667. +# strip PREFIX and SUFFIX off of NAME.
  61668. +# PREFIX and SUFFIX must not contain globbing or regex special
  61669. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  61670. +# dot (in which case that matches only a dot).
  61671. +func_stripname ()
  61672. +{
  61673. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  61674. + # positional parameters, so assign one to ordinary parameter first.
  61675. + func_stripname_result=${3}
  61676. + func_stripname_result=${func_stripname_result#"${1}"}
  61677. + func_stripname_result=${func_stripname_result%"${2}"}
  61678. +}
  61679. -# No need to generate the scripts if there are no CONFIG_FILES.
  61680. -# This happens for instance when ./config.status config.h
  61681. -if test -n "\$CONFIG_FILES"; then
  61682. - # Protect against being on the right side of a sed subst in config.status.
  61683. - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  61684. - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  61685. -s,@SHELL@,$SHELL,;t t
  61686. -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  61687. -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  61688. -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  61689. -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  61690. -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  61691. -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  61692. -s,@exec_prefix@,$exec_prefix,;t t
  61693. -s,@prefix@,$prefix,;t t
  61694. -s,@program_transform_name@,$program_transform_name,;t t
  61695. -s,@bindir@,$bindir,;t t
  61696. -s,@sbindir@,$sbindir,;t t
  61697. -s,@libexecdir@,$libexecdir,;t t
  61698. -s,@datadir@,$datadir,;t t
  61699. -s,@sysconfdir@,$sysconfdir,;t t
  61700. -s,@sharedstatedir@,$sharedstatedir,;t t
  61701. -s,@localstatedir@,$localstatedir,;t t
  61702. -s,@libdir@,$libdir,;t t
  61703. -s,@includedir@,$includedir,;t t
  61704. -s,@oldincludedir@,$oldincludedir,;t t
  61705. -s,@infodir@,$infodir,;t t
  61706. -s,@mandir@,$mandir,;t t
  61707. -s,@build_alias@,$build_alias,;t t
  61708. -s,@host_alias@,$host_alias,;t t
  61709. -s,@target_alias@,$target_alias,;t t
  61710. -s,@DEFS@,$DEFS,;t t
  61711. -s,@ECHO_C@,$ECHO_C,;t t
  61712. -s,@ECHO_N@,$ECHO_N,;t t
  61713. -s,@ECHO_T@,$ECHO_T,;t t
  61714. -s,@LIBS@,$LIBS,;t t
  61715. -s,@ac_aux_dir@,$ac_aux_dir,;t t
  61716. -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  61717. -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  61718. -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  61719. -s,@PACKAGE@,$PACKAGE,;t t
  61720. -s,@VERSION@,$VERSION,;t t
  61721. -s,@ACLOCAL@,$ACLOCAL,;t t
  61722. -s,@AUTOCONF@,$AUTOCONF,;t t
  61723. -s,@AUTOMAKE@,$AUTOMAKE,;t t
  61724. -s,@AUTOHEADER@,$AUTOHEADER,;t t
  61725. -s,@MAKEINFO@,$MAKEINFO,;t t
  61726. -s,@AMTAR@,$AMTAR,;t t
  61727. -s,@install_sh@,$install_sh,;t t
  61728. -s,@STRIP@,$STRIP,;t t
  61729. -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  61730. -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  61731. -s,@AWK@,$AWK,;t t
  61732. -s,@SET_MAKE@,$SET_MAKE,;t t
  61733. -s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  61734. -s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  61735. -s,@MAINT@,$MAINT,;t t
  61736. -s,@build@,$build,;t t
  61737. -s,@build_cpu@,$build_cpu,;t t
  61738. -s,@build_vendor@,$build_vendor,;t t
  61739. -s,@build_os@,$build_os,;t t
  61740. -s,@host@,$host,;t t
  61741. -s,@host_cpu@,$host_cpu,;t t
  61742. -s,@host_vendor@,$host_vendor,;t t
  61743. -s,@host_os@,$host_os,;t t
  61744. -s,@CC@,$CC,;t t
  61745. -s,@CFLAGS@,$CFLAGS,;t t
  61746. -s,@LDFLAGS@,$LDFLAGS,;t t
  61747. -s,@CPPFLAGS@,$CPPFLAGS,;t t
  61748. -s,@ac_ct_CC@,$ac_ct_CC,;t t
  61749. -s,@EXEEXT@,$EXEEXT,;t t
  61750. -s,@OBJEXT@,$OBJEXT,;t t
  61751. -s,@DEPDIR@,$DEPDIR,;t t
  61752. -s,@am__include@,$am__include,;t t
  61753. -s,@am__quote@,$am__quote,;t t
  61754. -s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  61755. -s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  61756. -s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  61757. -s,@CCDEPMODE@,$CCDEPMODE,;t t
  61758. -s,@EGREP@,$EGREP,;t t
  61759. -s,@LN_S@,$LN_S,;t t
  61760. -s,@ECHO@,$ECHO,;t t
  61761. -s,@AR@,$AR,;t t
  61762. -s,@ac_ct_AR@,$ac_ct_AR,;t t
  61763. -s,@RANLIB@,$RANLIB,;t t
  61764. -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  61765. -s,@CPP@,$CPP,;t t
  61766. -s,@CXX@,$CXX,;t t
  61767. -s,@CXXFLAGS@,$CXXFLAGS,;t t
  61768. -s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  61769. -s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  61770. -s,@CXXCPP@,$CXXCPP,;t t
  61771. -s,@F77@,$F77,;t t
  61772. -s,@FFLAGS@,$FFLAGS,;t t
  61773. -s,@ac_ct_F77@,$ac_ct_F77,;t t
  61774. -s,@LIBTOOL@,$LIBTOOL,;t t
  61775. -s,@PYTHON@,$PYTHON,;t t
  61776. -s,@TCLINC@,$TCLINC,;t t
  61777. -s,@TCLLIB@,$TCLLIB,;t t
  61778. -s,@PYTHON_TRUE@,$PYTHON_TRUE,;t t
  61779. -s,@PYTHON_FALSE@,$PYTHON_FALSE,;t t
  61780. -s,@TCL_TRUE@,$TCL_TRUE,;t t
  61781. -s,@TCL_FALSE@,$TCL_FALSE,;t t
  61782. -s,@CHECKINC@,$CHECKINC,;t t
  61783. -s,@CHECKLIB@,$CHECKLIB,;t t
  61784. -s,@HAVE_CHECK_TRUE@,$HAVE_CHECK_TRUE,;t t
  61785. -s,@HAVE_CHECK_FALSE@,$HAVE_CHECK_FALSE,;t t
  61786. -s,@LIBOBJS@,$LIBOBJS,;t t
  61787. -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  61788. -CEOF
  61789. -
  61790. -_ACEOF
  61791. -
  61792. - cat >>$CONFIG_STATUS <<\_ACEOF
  61793. - # Split the substitutions into bite-sized pieces for seds with
  61794. - # small command number limits, like on Digital OSF/1 and HP-UX.
  61795. - ac_max_sed_lines=48
  61796. - ac_sed_frag=1 # Number of current file.
  61797. - ac_beg=1 # First line for current file.
  61798. - ac_end=$ac_max_sed_lines # Line after last line for current file.
  61799. - ac_more_lines=:
  61800. - ac_sed_cmds=
  61801. - while $ac_more_lines; do
  61802. - if test $ac_beg -gt 1; then
  61803. - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  61804. - else
  61805. - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  61806. - fi
  61807. - if test ! -s $tmp/subs.frag; then
  61808. - ac_more_lines=false
  61809. - else
  61810. - # The purpose of the label and of the branching condition is to
  61811. - # speed up the sed processing (if there are no `@' at all, there
  61812. - # is no need to browse any of the substitutions).
  61813. - # These are the two extra sed commands mentioned above.
  61814. - (echo ':t
  61815. - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  61816. - if test -z "$ac_sed_cmds"; then
  61817. - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  61818. - else
  61819. - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  61820. - fi
  61821. - ac_sed_frag=`expr $ac_sed_frag + 1`
  61822. - ac_beg=$ac_end
  61823. - ac_end=`expr $ac_end + $ac_max_sed_lines`
  61824. - fi
  61825. - done
  61826. - if test -z "$ac_sed_cmds"; then
  61827. - ac_sed_cmds=cat
  61828. - fi
  61829. -fi # test -n "$CONFIG_FILES"
  61830. +# func_opt_split
  61831. +func_opt_split ()
  61832. +{
  61833. + func_opt_split_opt=${1%%=*}
  61834. + func_opt_split_arg=${1#*=}
  61835. +}
  61836. -_ACEOF
  61837. -cat >>$CONFIG_STATUS <<\_ACEOF
  61838. -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  61839. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  61840. - case $ac_file in
  61841. - - | *:- | *:-:* ) # input from stdin
  61842. - cat >$tmp/stdin
  61843. - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  61844. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  61845. - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  61846. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  61847. - * ) ac_file_in=$ac_file.in ;;
  61848. +# func_lo2o object
  61849. +func_lo2o ()
  61850. +{
  61851. + case ${1} in
  61852. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  61853. + *) func_lo2o_result=${1} ;;
  61854. esac
  61855. +}
  61856. - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  61857. - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  61858. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  61859. - X"$ac_file" : 'X\(//\)[^/]' \| \
  61860. - X"$ac_file" : 'X\(//\)$' \| \
  61861. - X"$ac_file" : 'X\(/\)' \| \
  61862. - . : '\(.\)' 2>/dev/null ||
  61863. -echo X"$ac_file" |
  61864. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  61865. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  61866. - /^X\(\/\/\)$/{ s//\1/; q; }
  61867. - /^X\(\/\).*/{ s//\1/; q; }
  61868. - s/.*/./; q'`
  61869. - { if $as_mkdir_p; then
  61870. - mkdir -p "$ac_dir"
  61871. - else
  61872. - as_dir="$ac_dir"
  61873. - as_dirs=
  61874. - while test ! -d "$as_dir"; do
  61875. - as_dirs="$as_dir $as_dirs"
  61876. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  61877. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  61878. - X"$as_dir" : 'X\(//\)[^/]' \| \
  61879. - X"$as_dir" : 'X\(//\)$' \| \
  61880. - X"$as_dir" : 'X\(/\)' \| \
  61881. - . : '\(.\)' 2>/dev/null ||
  61882. -echo X"$as_dir" |
  61883. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  61884. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  61885. - /^X\(\/\/\)$/{ s//\1/; q; }
  61886. - /^X\(\/\).*/{ s//\1/; q; }
  61887. - s/.*/./; q'`
  61888. - done
  61889. - test ! -n "$as_dirs" || mkdir $as_dirs
  61890. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  61891. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  61892. - { (exit 1); exit 1; }; }; }
  61893. -
  61894. - ac_builddir=.
  61895. -
  61896. -if test "$ac_dir" != .; then
  61897. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  61898. - # A "../" for each directory in $ac_dir_suffix.
  61899. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  61900. -else
  61901. - ac_dir_suffix= ac_top_builddir=
  61902. -fi
  61903. -
  61904. -case $srcdir in
  61905. - .) # No --srcdir option. We are building in place.
  61906. - ac_srcdir=.
  61907. - if test -z "$ac_top_builddir"; then
  61908. - ac_top_srcdir=.
  61909. - else
  61910. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  61911. - fi ;;
  61912. - [\\/]* | ?:[\\/]* ) # Absolute path.
  61913. - ac_srcdir=$srcdir$ac_dir_suffix;
  61914. - ac_top_srcdir=$srcdir ;;
  61915. - *) # Relative path.
  61916. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  61917. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  61918. -esac
  61919. -
  61920. -# Do not use `cd foo && pwd` to compute absolute paths, because
  61921. -# the directories may not exist.
  61922. -case `pwd` in
  61923. -.) ac_abs_builddir="$ac_dir";;
  61924. -*)
  61925. - case "$ac_dir" in
  61926. - .) ac_abs_builddir=`pwd`;;
  61927. - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  61928. - *) ac_abs_builddir=`pwd`/"$ac_dir";;
  61929. - esac;;
  61930. -esac
  61931. -case $ac_abs_builddir in
  61932. -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  61933. -*)
  61934. - case ${ac_top_builddir}. in
  61935. - .) ac_abs_top_builddir=$ac_abs_builddir;;
  61936. - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  61937. - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  61938. - esac;;
  61939. -esac
  61940. -case $ac_abs_builddir in
  61941. -.) ac_abs_srcdir=$ac_srcdir;;
  61942. -*)
  61943. - case $ac_srcdir in
  61944. - .) ac_abs_srcdir=$ac_abs_builddir;;
  61945. - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  61946. - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  61947. - esac;;
  61948. -esac
  61949. -case $ac_abs_builddir in
  61950. -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  61951. -*)
  61952. - case $ac_top_srcdir in
  61953. - .) ac_abs_top_srcdir=$ac_abs_builddir;;
  61954. - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  61955. - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  61956. - esac;;
  61957. -esac
  61958. +# func_xform libobj-or-source
  61959. +func_xform ()
  61960. +{
  61961. + func_xform_result=${1%.*}.lo
  61962. +}
  61963. +# func_arith arithmetic-term...
  61964. +func_arith ()
  61965. +{
  61966. + func_arith_result=$(( $* ))
  61967. +}
  61968. - case $INSTALL in
  61969. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  61970. - *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  61971. - esac
  61972. +# func_len string
  61973. +# STRING may not start with a hyphen.
  61974. +func_len ()
  61975. +{
  61976. + func_len_result=${#1}
  61977. +}
  61978. - if test x"$ac_file" != x-; then
  61979. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  61980. -echo "$as_me: creating $ac_file" >&6;}
  61981. - rm -f "$ac_file"
  61982. - fi
  61983. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  61984. - # use $as_me), people would be surprised to read:
  61985. - # /* config.h. Generated by config.status. */
  61986. - if test x"$ac_file" = x-; then
  61987. - configure_input=
  61988. - else
  61989. - configure_input="$ac_file. "
  61990. - fi
  61991. - configure_input=$configure_input"Generated from `echo $ac_file_in |
  61992. - sed 's,.*/,,'` by configure."
  61993. +_LT_EOF
  61994. + ;;
  61995. + *) # Bourne compatible functions.
  61996. + cat << \_LT_EOF >> "$cfgfile"
  61997. - # First look for the input files in the build tree, otherwise in the
  61998. - # src tree.
  61999. - ac_file_inputs=`IFS=:
  62000. - for f in $ac_file_in; do
  62001. - case $f in
  62002. - -) echo $tmp/stdin ;;
  62003. - [\\/$]*)
  62004. - # Absolute (can't be DOS-style, as IFS=:)
  62005. - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  62006. -echo "$as_me: error: cannot find input file: $f" >&2;}
  62007. - { (exit 1); exit 1; }; }
  62008. - echo "$f";;
  62009. - *) # Relative
  62010. - if test -f "$f"; then
  62011. - # Build tree
  62012. - echo "$f"
  62013. - elif test -f "$srcdir/$f"; then
  62014. - # Source tree
  62015. - echo "$srcdir/$f"
  62016. - else
  62017. - # /dev/null tree
  62018. - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  62019. -echo "$as_me: error: cannot find input file: $f" >&2;}
  62020. - { (exit 1); exit 1; }; }
  62021. - fi;;
  62022. - esac
  62023. - done` || { (exit 1); exit 1; }
  62024. -_ACEOF
  62025. -cat >>$CONFIG_STATUS <<_ACEOF
  62026. - sed "$ac_vpsub
  62027. -$extrasub
  62028. -_ACEOF
  62029. -cat >>$CONFIG_STATUS <<\_ACEOF
  62030. -:t
  62031. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  62032. -s,@configure_input@,$configure_input,;t t
  62033. -s,@srcdir@,$ac_srcdir,;t t
  62034. -s,@abs_srcdir@,$ac_abs_srcdir,;t t
  62035. -s,@top_srcdir@,$ac_top_srcdir,;t t
  62036. -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  62037. -s,@builddir@,$ac_builddir,;t t
  62038. -s,@abs_builddir@,$ac_abs_builddir,;t t
  62039. -s,@top_builddir@,$ac_top_builddir,;t t
  62040. -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  62041. -s,@INSTALL@,$ac_INSTALL,;t t
  62042. -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  62043. - rm -f $tmp/stdin
  62044. - if test x"$ac_file" != x-; then
  62045. - mv $tmp/out $ac_file
  62046. +# func_dirname file append nondir_replacement
  62047. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  62048. +# otherwise set result to NONDIR_REPLACEMENT.
  62049. +func_dirname ()
  62050. +{
  62051. + # Extract subdirectory from the argument.
  62052. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  62053. + if test "X$func_dirname_result" = "X${1}"; then
  62054. + func_dirname_result="${3}"
  62055. else
  62056. - cat $tmp/out
  62057. - rm -f $tmp/out
  62058. + func_dirname_result="$func_dirname_result${2}"
  62059. fi
  62060. +}
  62061. -done
  62062. -_ACEOF
  62063. -cat >>$CONFIG_STATUS <<\_ACEOF
  62064. -
  62065. -#
  62066. -# CONFIG_HEADER section.
  62067. -#
  62068. +# func_basename file
  62069. +func_basename ()
  62070. +{
  62071. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  62072. +}
  62073. -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  62074. -# NAME is the cpp macro being defined and VALUE is the value it is being given.
  62075. -#
  62076. -# ac_d sets the value in "#define NAME VALUE" lines.
  62077. -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  62078. -ac_dB='[ ].*$,\1#\2'
  62079. -ac_dC=' '
  62080. -ac_dD=',;t'
  62081. -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  62082. -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  62083. -ac_uB='$,\1#\2define\3'
  62084. -ac_uC=' '
  62085. -ac_uD=',;t'
  62086. -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  62087. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  62088. - case $ac_file in
  62089. - - | *:- | *:-:* ) # input from stdin
  62090. - cat >$tmp/stdin
  62091. - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  62092. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  62093. - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  62094. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  62095. - * ) ac_file_in=$ac_file.in ;;
  62096. +# func_stripname prefix suffix name
  62097. +# strip PREFIX and SUFFIX off of NAME.
  62098. +# PREFIX and SUFFIX must not contain globbing or regex special
  62099. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  62100. +# dot (in which case that matches only a dot).
  62101. +# func_strip_suffix prefix name
  62102. +func_stripname ()
  62103. +{
  62104. + case ${2} in
  62105. + .*) func_stripname_result=`$ECHO "X${3}" \
  62106. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  62107. + *) func_stripname_result=`$ECHO "X${3}" \
  62108. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  62109. esac
  62110. +}
  62111. - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  62112. -echo "$as_me: creating $ac_file" >&6;}
  62113. +# sed scripts:
  62114. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  62115. +my_sed_long_arg='1s/^-[^=]*=//'
  62116. - # First look for the input files in the build tree, otherwise in the
  62117. - # src tree.
  62118. - ac_file_inputs=`IFS=:
  62119. - for f in $ac_file_in; do
  62120. - case $f in
  62121. - -) echo $tmp/stdin ;;
  62122. - [\\/$]*)
  62123. - # Absolute (can't be DOS-style, as IFS=:)
  62124. - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  62125. -echo "$as_me: error: cannot find input file: $f" >&2;}
  62126. - { (exit 1); exit 1; }; }
  62127. - # Do quote $f, to prevent DOS paths from being IFS'd.
  62128. - echo "$f";;
  62129. - *) # Relative
  62130. - if test -f "$f"; then
  62131. - # Build tree
  62132. - echo "$f"
  62133. - elif test -f "$srcdir/$f"; then
  62134. - # Source tree
  62135. - echo "$srcdir/$f"
  62136. - else
  62137. - # /dev/null tree
  62138. - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  62139. -echo "$as_me: error: cannot find input file: $f" >&2;}
  62140. - { (exit 1); exit 1; }; }
  62141. - fi;;
  62142. - esac
  62143. - done` || { (exit 1); exit 1; }
  62144. - # Remove the trailing spaces.
  62145. - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  62146. +# func_opt_split
  62147. +func_opt_split ()
  62148. +{
  62149. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  62150. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  62151. +}
  62152. -_ACEOF
  62153. +# func_lo2o object
  62154. +func_lo2o ()
  62155. +{
  62156. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  62157. +}
  62158. -# Transform confdefs.h into two sed scripts, `conftest.defines' and
  62159. -# `conftest.undefs', that substitutes the proper values into
  62160. -# config.h.in to produce config.h. The first handles `#define'
  62161. -# templates, and the second `#undef' templates.
  62162. -# And first: Protect against being on the right side of a sed subst in
  62163. -# config.status. Protect against being in an unquoted here document
  62164. -# in config.status.
  62165. -rm -f conftest.defines conftest.undefs
  62166. -# Using a here document instead of a string reduces the quoting nightmare.
  62167. -# Putting comments in sed scripts is not portable.
  62168. -#
  62169. -# `end' is used to avoid that the second main sed command (meant for
  62170. -# 0-ary CPP macros) applies to n-ary macro definitions.
  62171. -# See the Autoconf documentation for `clear'.
  62172. -cat >confdef2sed.sed <<\_ACEOF
  62173. -s/[\\&,]/\\&/g
  62174. -s,[\\$`],\\&,g
  62175. -t clear
  62176. -: clear
  62177. -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  62178. -t end
  62179. -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  62180. -: end
  62181. -_ACEOF
  62182. -# If some macros were called several times there might be several times
  62183. -# the same #defines, which is useless. Nevertheless, we may not want to
  62184. -# sort them, since we want the *last* AC-DEFINE to be honored.
  62185. -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  62186. -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  62187. -rm -f confdef2sed.sed
  62188. -
  62189. -# This sed command replaces #undef with comments. This is necessary, for
  62190. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  62191. -# on some systems where configure will not decide to define it.
  62192. -cat >>conftest.undefs <<\_ACEOF
  62193. -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  62194. -_ACEOF
  62195. -
  62196. -# Break up conftest.defines because some shells have a limit on the size
  62197. -# of here documents, and old seds have small limits too (100 cmds).
  62198. -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  62199. -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  62200. -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  62201. -echo ' :' >>$CONFIG_STATUS
  62202. -rm -f conftest.tail
  62203. -while grep . conftest.defines >/dev/null
  62204. -do
  62205. - # Write a limited-size here document to $tmp/defines.sed.
  62206. - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  62207. - # Speed up: don't consider the non `#define' lines.
  62208. - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  62209. - # Work around the forget-to-reset-the-flag bug.
  62210. - echo 't clr' >>$CONFIG_STATUS
  62211. - echo ': clr' >>$CONFIG_STATUS
  62212. - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  62213. - echo 'CEOF
  62214. - sed -f $tmp/defines.sed $tmp/in >$tmp/out
  62215. - rm -f $tmp/in
  62216. - mv $tmp/out $tmp/in
  62217. -' >>$CONFIG_STATUS
  62218. - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  62219. - rm -f conftest.defines
  62220. - mv conftest.tail conftest.defines
  62221. -done
  62222. -rm -f conftest.defines
  62223. -echo ' fi # grep' >>$CONFIG_STATUS
  62224. -echo >>$CONFIG_STATUS
  62225. -
  62226. -# Break up conftest.undefs because some shells have a limit on the size
  62227. -# of here documents, and old seds have small limits too (100 cmds).
  62228. -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  62229. -rm -f conftest.tail
  62230. -while grep . conftest.undefs >/dev/null
  62231. -do
  62232. - # Write a limited-size here document to $tmp/undefs.sed.
  62233. - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  62234. - # Speed up: don't consider the non `#undef'
  62235. - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  62236. - # Work around the forget-to-reset-the-flag bug.
  62237. - echo 't clr' >>$CONFIG_STATUS
  62238. - echo ': clr' >>$CONFIG_STATUS
  62239. - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  62240. - echo 'CEOF
  62241. - sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  62242. - rm -f $tmp/in
  62243. - mv $tmp/out $tmp/in
  62244. -' >>$CONFIG_STATUS
  62245. - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  62246. - rm -f conftest.undefs
  62247. - mv conftest.tail conftest.undefs
  62248. -done
  62249. -rm -f conftest.undefs
  62250. +# func_xform libobj-or-source
  62251. +func_xform ()
  62252. +{
  62253. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  62254. +}
  62255. -cat >>$CONFIG_STATUS <<\_ACEOF
  62256. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  62257. - # use $as_me), people would be surprised to read:
  62258. - # /* config.h. Generated by config.status. */
  62259. - if test x"$ac_file" = x-; then
  62260. - echo "/* Generated by configure. */" >$tmp/config.h
  62261. - else
  62262. - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  62263. - fi
  62264. - cat $tmp/in >>$tmp/config.h
  62265. - rm -f $tmp/in
  62266. - if test x"$ac_file" != x-; then
  62267. - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  62268. - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  62269. -echo "$as_me: $ac_file is unchanged" >&6;}
  62270. - else
  62271. - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  62272. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  62273. - X"$ac_file" : 'X\(//\)[^/]' \| \
  62274. - X"$ac_file" : 'X\(//\)$' \| \
  62275. - X"$ac_file" : 'X\(/\)' \| \
  62276. - . : '\(.\)' 2>/dev/null ||
  62277. -echo X"$ac_file" |
  62278. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  62279. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  62280. - /^X\(\/\/\)$/{ s//\1/; q; }
  62281. - /^X\(\/\).*/{ s//\1/; q; }
  62282. - s/.*/./; q'`
  62283. - { if $as_mkdir_p; then
  62284. - mkdir -p "$ac_dir"
  62285. - else
  62286. - as_dir="$ac_dir"
  62287. - as_dirs=
  62288. - while test ! -d "$as_dir"; do
  62289. - as_dirs="$as_dir $as_dirs"
  62290. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  62291. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  62292. - X"$as_dir" : 'X\(//\)[^/]' \| \
  62293. - X"$as_dir" : 'X\(//\)$' \| \
  62294. - X"$as_dir" : 'X\(/\)' \| \
  62295. - . : '\(.\)' 2>/dev/null ||
  62296. -echo X"$as_dir" |
  62297. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  62298. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  62299. - /^X\(\/\/\)$/{ s//\1/; q; }
  62300. - /^X\(\/\).*/{ s//\1/; q; }
  62301. - s/.*/./; q'`
  62302. - done
  62303. - test ! -n "$as_dirs" || mkdir $as_dirs
  62304. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  62305. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  62306. - { (exit 1); exit 1; }; }; }
  62307. +# func_arith arithmetic-term...
  62308. +func_arith ()
  62309. +{
  62310. + func_arith_result=`expr "$@"`
  62311. +}
  62312. - rm -f $ac_file
  62313. - mv $tmp/config.h $ac_file
  62314. - fi
  62315. - else
  62316. - cat $tmp/config.h
  62317. - rm -f $tmp/config.h
  62318. - fi
  62319. - # Run the commands associated with the file.
  62320. - case $ac_file in
  62321. - include/config.h ) # update the timestamp
  62322. -echo 'timestamp for include/config.h' >"include/stamp-h1"
  62323. - ;;
  62324. - esac
  62325. -done
  62326. -_ACEOF
  62327. -cat >>$CONFIG_STATUS <<\_ACEOF
  62328. +# func_len string
  62329. +# STRING may not start with a hyphen.
  62330. +func_len ()
  62331. +{
  62332. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  62333. +}
  62334. -#
  62335. -# CONFIG_COMMANDS section.
  62336. -#
  62337. -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  62338. - ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  62339. - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  62340. - ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  62341. -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  62342. - X"$ac_dest" : 'X\(//\)[^/]' \| \
  62343. - X"$ac_dest" : 'X\(//\)$' \| \
  62344. - X"$ac_dest" : 'X\(/\)' \| \
  62345. - . : '\(.\)' 2>/dev/null ||
  62346. -echo X"$ac_dest" |
  62347. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  62348. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  62349. - /^X\(\/\/\)$/{ s//\1/; q; }
  62350. - /^X\(\/\).*/{ s//\1/; q; }
  62351. - s/.*/./; q'`
  62352. - { if $as_mkdir_p; then
  62353. - mkdir -p "$ac_dir"
  62354. - else
  62355. - as_dir="$ac_dir"
  62356. - as_dirs=
  62357. - while test ! -d "$as_dir"; do
  62358. - as_dirs="$as_dir $as_dirs"
  62359. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  62360. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  62361. - X"$as_dir" : 'X\(//\)[^/]' \| \
  62362. - X"$as_dir" : 'X\(//\)$' \| \
  62363. - X"$as_dir" : 'X\(/\)' \| \
  62364. - . : '\(.\)' 2>/dev/null ||
  62365. -echo X"$as_dir" |
  62366. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  62367. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  62368. - /^X\(\/\/\)$/{ s//\1/; q; }
  62369. - /^X\(\/\).*/{ s//\1/; q; }
  62370. - s/.*/./; q'`
  62371. - done
  62372. - test ! -n "$as_dirs" || mkdir $as_dirs
  62373. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  62374. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  62375. - { (exit 1); exit 1; }; }; }
  62376. +_LT_EOF
  62377. +esac
  62378. - ac_builddir=.
  62379. +case $lt_shell_append in
  62380. + yes)
  62381. + cat << \_LT_EOF >> "$cfgfile"
  62382. -if test "$ac_dir" != .; then
  62383. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  62384. - # A "../" for each directory in $ac_dir_suffix.
  62385. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  62386. -else
  62387. - ac_dir_suffix= ac_top_builddir=
  62388. -fi
  62389. +# func_append var value
  62390. +# Append VALUE to the end of shell variable VAR.
  62391. +func_append ()
  62392. +{
  62393. + eval "$1+=\$2"
  62394. +}
  62395. +_LT_EOF
  62396. + ;;
  62397. + *)
  62398. + cat << \_LT_EOF >> "$cfgfile"
  62399. -case $srcdir in
  62400. - .) # No --srcdir option. We are building in place.
  62401. - ac_srcdir=.
  62402. - if test -z "$ac_top_builddir"; then
  62403. - ac_top_srcdir=.
  62404. - else
  62405. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  62406. - fi ;;
  62407. - [\\/]* | ?:[\\/]* ) # Absolute path.
  62408. - ac_srcdir=$srcdir$ac_dir_suffix;
  62409. - ac_top_srcdir=$srcdir ;;
  62410. - *) # Relative path.
  62411. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  62412. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  62413. -esac
  62414. +# func_append var value
  62415. +# Append VALUE to the end of shell variable VAR.
  62416. +func_append ()
  62417. +{
  62418. + eval "$1=\$$1\$2"
  62419. +}
  62420. -# Do not use `cd foo && pwd` to compute absolute paths, because
  62421. -# the directories may not exist.
  62422. -case `pwd` in
  62423. -.) ac_abs_builddir="$ac_dir";;
  62424. -*)
  62425. - case "$ac_dir" in
  62426. - .) ac_abs_builddir=`pwd`;;
  62427. - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  62428. - *) ac_abs_builddir=`pwd`/"$ac_dir";;
  62429. - esac;;
  62430. -esac
  62431. -case $ac_abs_builddir in
  62432. -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  62433. -*)
  62434. - case ${ac_top_builddir}. in
  62435. - .) ac_abs_top_builddir=$ac_abs_builddir;;
  62436. - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  62437. - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  62438. - esac;;
  62439. -esac
  62440. -case $ac_abs_builddir in
  62441. -.) ac_abs_srcdir=$ac_srcdir;;
  62442. -*)
  62443. - case $ac_srcdir in
  62444. - .) ac_abs_srcdir=$ac_abs_builddir;;
  62445. - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  62446. - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  62447. - esac;;
  62448. -esac
  62449. -case $ac_abs_builddir in
  62450. -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  62451. -*)
  62452. - case $ac_top_srcdir in
  62453. - .) ac_abs_top_srcdir=$ac_abs_builddir;;
  62454. - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  62455. - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  62456. - esac;;
  62457. -esac
  62458. +_LT_EOF
  62459. + ;;
  62460. + esac
  62461. - { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  62462. -echo "$as_me: executing $ac_dest commands" >&6;}
  62463. - case $ac_dest in
  62464. - depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  62465. - # Strip MF so we end up with the name of the file.
  62466. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  62467. - # Check whether this is an Automake generated Makefile or not.
  62468. - # We used to match only the files named `Makefile.in', but
  62469. - # some people rename them; so instead we look at the file content.
  62470. - # Grep'ing the first line is not enough: some people post-process
  62471. - # each Makefile.in and add a new line on top of each file to say so.
  62472. - # So let's grep whole file.
  62473. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  62474. - dirpart=`(dirname "$mf") 2>/dev/null ||
  62475. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  62476. - X"$mf" : 'X\(//\)[^/]' \| \
  62477. - X"$mf" : 'X\(//\)$' \| \
  62478. - X"$mf" : 'X\(/\)' \| \
  62479. - . : '\(.\)' 2>/dev/null ||
  62480. -echo X"$mf" |
  62481. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  62482. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  62483. - /^X\(\/\/\)$/{ s//\1/; q; }
  62484. - /^X\(\/\).*/{ s//\1/; q; }
  62485. - s/.*/./; q'`
  62486. - else
  62487. - continue
  62488. - fi
  62489. - grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  62490. - # Extract the definition of DEP_FILES from the Makefile without
  62491. - # running `make'.
  62492. - DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
  62493. - test -z "$DEPDIR" && continue
  62494. - # When using ansi2knr, U may be empty or an underscore; expand it
  62495. - U=`sed -n -e '/^U = / s///p' < "$mf"`
  62496. - test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  62497. - # We invoke sed twice because it is the simplest approach to
  62498. - # changing $(DEPDIR) to its actual value in the expansion.
  62499. - for file in `sed -n -e '
  62500. - /^DEP_FILES = .*\\\\$/ {
  62501. - s/^DEP_FILES = //
  62502. - :loop
  62503. - s/\\\\$//
  62504. - p
  62505. - n
  62506. - /\\\\$/ b loop
  62507. - p
  62508. - }
  62509. - /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  62510. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  62511. - # Make sure the directory exists.
  62512. - test -f "$dirpart/$file" && continue
  62513. - fdir=`(dirname "$file") 2>/dev/null ||
  62514. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  62515. - X"$file" : 'X\(//\)[^/]' \| \
  62516. - X"$file" : 'X\(//\)$' \| \
  62517. - X"$file" : 'X\(/\)' \| \
  62518. - . : '\(.\)' 2>/dev/null ||
  62519. -echo X"$file" |
  62520. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  62521. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  62522. - /^X\(\/\/\)$/{ s//\1/; q; }
  62523. - /^X\(\/\).*/{ s//\1/; q; }
  62524. - s/.*/./; q'`
  62525. - { if $as_mkdir_p; then
  62526. - mkdir -p $dirpart/$fdir
  62527. - else
  62528. - as_dir=$dirpart/$fdir
  62529. - as_dirs=
  62530. - while test ! -d "$as_dir"; do
  62531. - as_dirs="$as_dir $as_dirs"
  62532. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  62533. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  62534. - X"$as_dir" : 'X\(//\)[^/]' \| \
  62535. - X"$as_dir" : 'X\(//\)$' \| \
  62536. - X"$as_dir" : 'X\(/\)' \| \
  62537. - . : '\(.\)' 2>/dev/null ||
  62538. -echo X"$as_dir" |
  62539. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  62540. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  62541. - /^X\(\/\/\)$/{ s//\1/; q; }
  62542. - /^X\(\/\).*/{ s//\1/; q; }
  62543. - s/.*/./; q'`
  62544. - done
  62545. - test ! -n "$as_dirs" || mkdir $as_dirs
  62546. - fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  62547. -echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  62548. - { (exit 1); exit 1; }; }; }
  62549. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  62550. + || (rm -f "$cfgfile"; exit 1)
  62551. +
  62552. + mv -f "$cfgfile" "$ofile" ||
  62553. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  62554. + chmod +x "$ofile"
  62555. - # echo "creating $dirpart/$file"
  62556. - echo '# dummy' > "$dirpart/$file"
  62557. - done
  62558. -done
  62559. ;;
  62560. - default ) chmod 755 dnet-config ;;
  62561. + "default":C) chmod 755 dnet-config ;;
  62562. +
  62563. esac
  62564. -done
  62565. -_ACEOF
  62566. +done # for ac_tag
  62567. -cat >>$CONFIG_STATUS <<\_ACEOF
  62568. -{ (exit 0); exit 0; }
  62569. +as_fn_exit 0
  62570. _ACEOF
  62571. -chmod +x $CONFIG_STATUS
  62572. ac_clean_files=$ac_clean_files_save
  62573. +test $ac_write_fail = 0 ||
  62574. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  62575. +
  62576. # configure is writing to config.log, and then calls config.status.
  62577. # config.status does its own redirection, appending to config.log.
  62578. @@ -23907,6 +14548,10 @@
  62579. exec 5>>config.log
  62580. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  62581. # would make configure fail if this is the last instruction.
  62582. - $ac_cs_success || { (exit 1); exit 1; }
  62583. + $ac_cs_success || as_fn_exit $?
  62584. +fi
  62585. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  62586. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  62587. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  62588. fi
  62589. diff -Nur libdnet-1.11.orig/include/config.h.in libdnet-1.11/include/config.h.in
  62590. --- libdnet-1.11.orig/include/config.h.in 2005-09-23 17:56:17.000000000 +0200
  62591. +++ libdnet-1.11/include/config.h.in 2011-02-19 12:27:13.000000000 +0100
  62592. @@ -217,6 +217,10 @@
  62593. /* Define to 1 if you have the <winsock2.h> header file. */
  62594. #undef HAVE_WINSOCK2_H
  62595. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  62596. + */
  62597. +#undef LT_OBJDIR
  62598. +
  62599. /* Name of package */
  62600. #undef PACKAGE
  62601. @@ -232,6 +236,9 @@
  62602. /* Define to the one symbol short name of this package. */
  62603. #undef PACKAGE_TARNAME
  62604. +/* Define to the home page for this package. */
  62605. +#undef PACKAGE_URL
  62606. +
  62607. /* Define to the version of this package. */
  62608. #undef PACKAGE_VERSION
  62609. @@ -256,7 +263,7 @@
  62610. /* Define to `int' if <sys/types.h> does not define. */
  62611. #undef pid_t
  62612. -/* Define to `unsigned' if <sys/types.h> does not define. */
  62613. +/* Define to `unsigned int' if <sys/types.h> does not define. */
  62614. #undef size_t
  62615. /* Use MingW32's internal snprintf */
  62616. diff -Nur libdnet-1.11.orig/include/config.h.in~ libdnet-1.11/include/config.h.in~
  62617. --- libdnet-1.11.orig/include/config.h.in~ 1970-01-01 01:00:00.000000000 +0100
  62618. +++ libdnet-1.11/include/config.h.in~ 2005-09-23 17:56:17.000000000 +0200
  62619. @@ -0,0 +1,294 @@
  62620. +/* include/config.h.in. Generated from configure.in by autoheader. */
  62621. +
  62622. +/* Define if arpreq struct has arp_dev. */
  62623. +#undef HAVE_ARPREQ_ARP_DEV
  62624. +
  62625. +/* Define if you have the Berkeley Packet Filter. */
  62626. +#undef HAVE_BSD_BPF
  62627. +
  62628. +/* Define to 1 if you have the <dlfcn.h> header file. */
  62629. +#undef HAVE_DLFCN_H
  62630. +
  62631. +/* Define to 1 if you have the `err' function. */
  62632. +#undef HAVE_ERR
  62633. +
  62634. +/* Define to 1 if you have the <fcntl.h> header file. */
  62635. +#undef HAVE_FCNTL_H
  62636. +
  62637. +/* Define to 1 if you have the <hpsecurity.h> header file. */
  62638. +#undef HAVE_HPSECURITY_H
  62639. +
  62640. +/* Define to 1 if you have the <inttypes.h> header file. */
  62641. +#undef HAVE_INTTYPES_H
  62642. +
  62643. +/* Define if you have arp(7) ioctls. */
  62644. +#undef HAVE_IOCTL_ARP
  62645. +
  62646. +/* Define to 1 if you have the <Iphlpapi.h> header file. */
  62647. +#undef HAVE_IPHLPAPI_H
  62648. +
  62649. +/* Define to 1 if you have the <ip_compat.h> header file. */
  62650. +#undef HAVE_IP_COMPAT_H
  62651. +
  62652. +/* Define to 1 if you have the <ip_fil_compat.h> header file. */
  62653. +#undef HAVE_IP_FIL_COMPAT_H
  62654. +
  62655. +/* Define to 1 if you have the <ip_fil.h> header file. */
  62656. +#undef HAVE_IP_FIL_H
  62657. +
  62658. +/* Define to 1 if you have the `iphlpapi' library (-liphlpapi). */
  62659. +#undef HAVE_LIBIPHLPAPI
  62660. +
  62661. +/* Define to 1 if you have the `nm' library (-lnm). */
  62662. +#undef HAVE_LIBNM
  62663. +
  62664. +/* Define to 1 if you have the `nsl' library (-lnsl). */
  62665. +#undef HAVE_LIBNSL
  62666. +
  62667. +/* Define to 1 if you have the `resolv' library (-lresolv). */
  62668. +#undef HAVE_LIBRESOLV
  62669. +
  62670. +/* Define to 1 if you have the `socket' library (-lsocket). */
  62671. +#undef HAVE_LIBSOCKET
  62672. +
  62673. +/* Define to 1 if you have the `str' library (-lstr). */
  62674. +#undef HAVE_LIBSTR
  62675. +
  62676. +/* Define to 1 if you have the `ws2_32' library (-lws2_32). */
  62677. +#undef HAVE_LIBWS2_32
  62678. +
  62679. +/* Define to 1 if you have the <linux/if_tun.h> header file. */
  62680. +#undef HAVE_LINUX_IF_TUN_H
  62681. +
  62682. +/* Define to 1 if you have the <linux/ip_fwchains.h> header file. */
  62683. +#undef HAVE_LINUX_IP_FWCHAINS_H
  62684. +
  62685. +/* Define to 1 if you have the <linux/ip_fw.h> header file. */
  62686. +#undef HAVE_LINUX_IP_FW_H
  62687. +
  62688. +/* Define to 1 if you have the <linux/netfilter_ipv4/ipchains_core.h> header
  62689. + file. */
  62690. +#undef HAVE_LINUX_NETFILTER_IPV4_IPCHAINS_CORE_H
  62691. +
  62692. +/* Define if you have Linux PF_PACKET sockets. */
  62693. +#undef HAVE_LINUX_PF_PACKET
  62694. +
  62695. +/* Define if you have the Linux /proc filesystem. */
  62696. +#undef HAVE_LINUX_PROCFS
  62697. +
  62698. +/* Define to 1 if you have the <memory.h> header file. */
  62699. +#undef HAVE_MEMORY_H
  62700. +
  62701. +/* Define to 1 if you have the <netinet/in_var.h> header file. */
  62702. +#undef HAVE_NETINET_IN_VAR_H
  62703. +
  62704. +/* Define to 1 if you have the <netinet/ip_compat.h> header file. */
  62705. +#undef HAVE_NETINET_IP_COMPAT_H
  62706. +
  62707. +/* Define to 1 if you have the <netinet/ip_fil_compat.h> header file. */
  62708. +#undef HAVE_NETINET_IP_FIL_COMPAT_H
  62709. +
  62710. +/* Define to 1 if you have the <netinet/ip_fil.h> header file. */
  62711. +#undef HAVE_NETINET_IP_FIL_H
  62712. +
  62713. +/* Define to 1 if you have the <netinet/ip_fw.h> header file. */
  62714. +#undef HAVE_NETINET_IP_FW_H
  62715. +
  62716. +/* Define to 1 if you have the <net/bpf.h> header file. */
  62717. +#undef HAVE_NET_BPF_H
  62718. +
  62719. +/* Define to 1 if you have the <net/if_arp.h> header file. */
  62720. +#undef HAVE_NET_IF_ARP_H
  62721. +
  62722. +/* Define to 1 if you have the <net/if_dl.h> header file. */
  62723. +#undef HAVE_NET_IF_DL_H
  62724. +
  62725. +/* Define to 1 if you have the <net/if.h> header file. */
  62726. +#undef HAVE_NET_IF_H
  62727. +
  62728. +/* Define to 1 if you have the <net/if_tun.h> header file. */
  62729. +#undef HAVE_NET_IF_TUN_H
  62730. +
  62731. +/* Define to 1 if you have the <net/if_var.h> header file. */
  62732. +#undef HAVE_NET_IF_VAR_H
  62733. +
  62734. +/* Define to 1 if you have the <net/pfilt.h> header file. */
  62735. +#undef HAVE_NET_PFILT_H
  62736. +
  62737. +/* Define to 1 if you have the <net/pfvar.h> header file. */
  62738. +#undef HAVE_NET_PFVAR_H
  62739. +
  62740. +/* Define to 1 if you have the <net/radix.h> header file. */
  62741. +#undef HAVE_NET_RADIX_H
  62742. +
  62743. +/* Define to 1 if you have the <net/raw.h> header file. */
  62744. +#undef HAVE_NET_RAW_H
  62745. +
  62746. +/* Define to 1 if you have the <net/route.h> header file. */
  62747. +#undef HAVE_NET_ROUTE_H
  62748. +
  62749. +/* Define if you have cooked raw IP sockets. */
  62750. +#undef HAVE_RAWIP_COOKED
  62751. +
  62752. +/* Define if raw IP sockets require host byte ordering for ip_off, ip_len. */
  62753. +#undef HAVE_RAWIP_HOST_OFFLEN
  62754. +
  62755. +/* Define if <net/route.h> has rt_msghdr struct. */
  62756. +#undef HAVE_ROUTE_RT_MSGHDR
  62757. +
  62758. +/* Define if <netinet/in.h> has sockaddr_in6 struct. */
  62759. +#undef HAVE_SOCKADDR_IN6
  62760. +
  62761. +/* Define if sockaddr struct has sa_len. */
  62762. +#undef HAVE_SOCKADDR_SA_LEN
  62763. +
  62764. +/* Define to 1 if you have the <stdint.h> header file. */
  62765. +#undef HAVE_STDINT_H
  62766. +
  62767. +/* Define to 1 if you have the <stdlib.h> header file. */
  62768. +#undef HAVE_STDLIB_H
  62769. +
  62770. +/* Define if you have SNMP MIB2 STREAMS. */
  62771. +#undef HAVE_STREAMS_MIB2
  62772. +
  62773. +/* Define if you have route(7) STREAMS. */
  62774. +#undef HAVE_STREAMS_ROUTE
  62775. +
  62776. +/* Define to 1 if you have the <strings.h> header file. */
  62777. +#undef HAVE_STRINGS_H
  62778. +
  62779. +/* Define to 1 if you have the <string.h> header file. */
  62780. +#undef HAVE_STRING_H
  62781. +
  62782. +/* Define to 1 if you have the `strlcat' function. */
  62783. +#undef HAVE_STRLCAT
  62784. +
  62785. +/* Define to 1 if you have the `strlcpy' function. */
  62786. +#undef HAVE_STRLCPY
  62787. +
  62788. +/* Define to 1 if you have the <stropts.h> header file. */
  62789. +#undef HAVE_STROPTS_H
  62790. +
  62791. +/* Define to 1 if you have the `strsep' function. */
  62792. +#undef HAVE_STRSEP
  62793. +
  62794. +/* Define to 1 if you have the <sys/bufmod.h> header file. */
  62795. +#undef HAVE_SYS_BUFMOD_H
  62796. +
  62797. +/* Define to 1 if you have the <sys/dlpihdr.h> header file. */
  62798. +#undef HAVE_SYS_DLPIHDR_H
  62799. +
  62800. +/* Define to 1 if you have the <sys/dlpi_ext.h> header file. */
  62801. +#undef HAVE_SYS_DLPI_EXT_H
  62802. +
  62803. +/* Define to 1 if you have the <sys/dlpi.h> header file. */
  62804. +#undef HAVE_SYS_DLPI_H
  62805. +
  62806. +/* Define to 1 if you have the <sys/ioctl.h> header file. */
  62807. +#undef HAVE_SYS_IOCTL_H
  62808. +
  62809. +/* Define to 1 if you have the <sys/mib.h> header file. */
  62810. +#undef HAVE_SYS_MIB_H
  62811. +
  62812. +/* Define to 1 if you have the <sys/ndd_var.h> header file. */
  62813. +#undef HAVE_SYS_NDD_VAR_H
  62814. +
  62815. +/* Define to 1 if you have the <sys/socket.h> header file. */
  62816. +#undef HAVE_SYS_SOCKET_H
  62817. +
  62818. +/* Define to 1 if you have the <sys/sockio.h> header file. */
  62819. +#undef HAVE_SYS_SOCKIO_H
  62820. +
  62821. +/* Define to 1 if you have the <sys/stat.h> header file. */
  62822. +#undef HAVE_SYS_STAT_H
  62823. +
  62824. +/* Define to 1 if you have the <sys/sysctl.h> header file. */
  62825. +#undef HAVE_SYS_SYSCTL_H
  62826. +
  62827. +/* Define to 1 if you have the <sys/time.h> header file. */
  62828. +#undef HAVE_SYS_TIME_H
  62829. +
  62830. +/* Define to 1 if you have the <sys/types.h> header file. */
  62831. +#undef HAVE_SYS_TYPES_H
  62832. +
  62833. +/* Define to 1 if you have the <unistd.h> header file. */
  62834. +#undef HAVE_UNISTD_H
  62835. +
  62836. +/* Define to 1 if you have the <winsock2.h> header file. */
  62837. +#undef HAVE_WINSOCK2_H
  62838. +
  62839. +/* Name of package */
  62840. +#undef PACKAGE
  62841. +
  62842. +/* Define to the address where bug reports for this package should be sent. */
  62843. +#undef PACKAGE_BUGREPORT
  62844. +
  62845. +/* Define to the full name of this package. */
  62846. +#undef PACKAGE_NAME
  62847. +
  62848. +/* Define to the full name and version of this package. */
  62849. +#undef PACKAGE_STRING
  62850. +
  62851. +/* Define to the one symbol short name of this package. */
  62852. +#undef PACKAGE_TARNAME
  62853. +
  62854. +/* Define to the version of this package. */
  62855. +#undef PACKAGE_VERSION
  62856. +
  62857. +/* Define to 1 if you have the ANSI C header files. */
  62858. +#undef STDC_HEADERS
  62859. +
  62860. +/* Version number of package */
  62861. +#undef VERSION
  62862. +
  62863. +/* Define for faster code generation. */
  62864. +#undef WIN32_LEAN_AND_MEAN
  62865. +
  62866. +/* Define to empty if `const' does not conform to ANSI C. */
  62867. +#undef const
  62868. +
  62869. +/* Define to `__inline__' or `__inline' if that's what the C compiler
  62870. + calls it, or to nothing if 'inline' is not supported under any name. */
  62871. +#ifndef __cplusplus
  62872. +#undef inline
  62873. +#endif
  62874. +
  62875. +/* Define to `int' if <sys/types.h> does not define. */
  62876. +#undef pid_t
  62877. +
  62878. +/* Define to `unsigned' if <sys/types.h> does not define. */
  62879. +#undef size_t
  62880. +
  62881. +/* Use MingW32's internal snprintf */
  62882. +#undef snprintf
  62883. +
  62884. +#include <sys/types.h>
  62885. +
  62886. +#ifdef HAVE_WINSOCK2_H
  62887. +# include <winsock2.h>
  62888. +# include <windows.h>
  62889. +#endif
  62890. +
  62891. +#ifdef __svr4__
  62892. +# define BSD_COMP 1
  62893. +#endif
  62894. +
  62895. +#if defined(__osf__) && !defined(_SOCKADDR_LEN)
  62896. +# define _SOCKADDR_LEN 1
  62897. +#endif
  62898. +
  62899. +#ifndef HAVE_INET_PTON
  62900. +int inet_pton(int, const char *, void *);
  62901. +#endif
  62902. +
  62903. +#ifndef HAVE_STRLCAT
  62904. +int strlcat(char *, const char *, int);
  62905. +#endif
  62906. +
  62907. +#ifndef HAVE_STRLCPY
  62908. +int strlcpy(char *, const char *, int);
  62909. +#endif
  62910. +
  62911. +#ifndef HAVE_STRSEP
  62912. +char *strsep(char **, const char *);
  62913. +#endif
  62914. diff -Nur libdnet-1.11.orig/include/dnet/Makefile.in libdnet-1.11/include/dnet/Makefile.in
  62915. --- libdnet-1.11.orig/include/dnet/Makefile.in 2006-01-19 09:24:45.000000000 +0100
  62916. +++ libdnet-1.11/include/dnet/Makefile.in 2011-02-19 12:27:14.203563940 +0100
  62917. @@ -1,8 +1,9 @@
  62918. -# Makefile.in generated by automake 1.6.3 from Makefile.am.
  62919. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  62920. # @configure_input@
  62921. -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
  62922. -# Free Software Foundation, Inc.
  62923. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  62924. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  62925. +# Inc.
  62926. # This Makefile.in is free software; the Free Software Foundation
  62927. # gives unlimited permission to copy and/or distribute it,
  62928. # with or without modifications, as long as this notice is preserved.
  62929. @@ -13,216 +14,341 @@
  62930. # PARTICULAR PURPOSE.
  62931. @SET_MAKE@
  62932. -SHELL = @SHELL@
  62933. -srcdir = @srcdir@
  62934. -top_srcdir = @top_srcdir@
  62935. VPATH = @srcdir@
  62936. -prefix = @prefix@
  62937. -exec_prefix = @exec_prefix@
  62938. -
  62939. -bindir = @bindir@
  62940. -sbindir = @sbindir@
  62941. -libexecdir = @libexecdir@
  62942. -datadir = @datadir@
  62943. -sysconfdir = @sysconfdir@
  62944. -sharedstatedir = @sharedstatedir@
  62945. -localstatedir = @localstatedir@
  62946. -libdir = @libdir@
  62947. -infodir = @infodir@
  62948. -mandir = @mandir@
  62949. -includedir = @includedir@
  62950. -oldincludedir = /usr/include
  62951. pkgdatadir = $(datadir)/@PACKAGE@
  62952. -pkglibdir = $(libdir)/@PACKAGE@
  62953. pkgincludedir = $(includedir)/@PACKAGE@
  62954. -top_builddir = ../..
  62955. -
  62956. -ACLOCAL = @ACLOCAL@
  62957. -AUTOCONF = @AUTOCONF@
  62958. -AUTOMAKE = @AUTOMAKE@
  62959. -AUTOHEADER = @AUTOHEADER@
  62960. -
  62961. +pkglibdir = $(libdir)/@PACKAGE@
  62962. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  62963. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  62964. -INSTALL = @INSTALL@
  62965. -INSTALL_PROGRAM = @INSTALL_PROGRAM@
  62966. -INSTALL_DATA = @INSTALL_DATA@
  62967. install_sh_DATA = $(install_sh) -c -m 644
  62968. install_sh_PROGRAM = $(install_sh) -c
  62969. install_sh_SCRIPT = $(install_sh) -c
  62970. -INSTALL_SCRIPT = @INSTALL_SCRIPT@
  62971. INSTALL_HEADER = $(INSTALL_DATA)
  62972. -transform = @program_transform_name@
  62973. +transform = $(program_transform_name)
  62974. NORMAL_INSTALL = :
  62975. PRE_INSTALL = :
  62976. POST_INSTALL = :
  62977. NORMAL_UNINSTALL = :
  62978. PRE_UNINSTALL = :
  62979. POST_UNINSTALL = :
  62980. -host_alias = @host_alias@
  62981. +build_triplet = @build@
  62982. host_triplet = @host@
  62983. -
  62984. -EXEEXT = @EXEEXT@
  62985. -OBJEXT = @OBJEXT@
  62986. -PATH_SEPARATOR = @PATH_SEPARATOR@
  62987. +DIST_COMMON = $(dnetinclude_HEADERS) $(srcdir)/Makefile.am \
  62988. + $(srcdir)/Makefile.in $(top_srcdir)/Makefile.am.common
  62989. +subdir = include/dnet
  62990. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  62991. +am__aclocal_m4_deps = $(top_srcdir)/config/acinclude.m4 \
  62992. + $(top_srcdir)/configure.in
  62993. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  62994. + $(ACLOCAL_M4)
  62995. +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
  62996. +CONFIG_HEADER = $(top_builddir)/include/config.h
  62997. +CONFIG_CLEAN_FILES =
  62998. +CONFIG_CLEAN_VPATH_FILES =
  62999. +depcomp =
  63000. +am__depfiles_maybe =
  63001. +SOURCES =
  63002. +DIST_SOURCES =
  63003. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  63004. +am__vpath_adj = case $$p in \
  63005. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  63006. + *) f=$$p;; \
  63007. + esac;
  63008. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  63009. +am__install_max = 40
  63010. +am__nobase_strip_setup = \
  63011. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  63012. +am__nobase_strip = \
  63013. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  63014. +am__nobase_list = $(am__nobase_strip_setup); \
  63015. + for p in $$list; do echo "$$p $$p"; done | \
  63016. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  63017. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  63018. + if (++n[$$2] == $(am__install_max)) \
  63019. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  63020. + END { for (dir in files) print dir, files[dir] }'
  63021. +am__base_list = \
  63022. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  63023. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  63024. +am__installdirs = "$(DESTDIR)$(dnetincludedir)"
  63025. +HEADERS = $(dnetinclude_HEADERS)
  63026. +ETAGS = etags
  63027. +CTAGS = ctags
  63028. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  63029. +ACLOCAL = @ACLOCAL@
  63030. AMTAR = @AMTAR@
  63031. AR = @AR@
  63032. -AS = @AS@
  63033. +AUTOCONF = @AUTOCONF@
  63034. +AUTOHEADER = @AUTOHEADER@
  63035. +AUTOMAKE = @AUTOMAKE@
  63036. AWK = @AWK@
  63037. CC = @CC@
  63038. +CCDEPMODE = @CCDEPMODE@
  63039. +CFLAGS = @CFLAGS@
  63040. CHECKINC = @CHECKINC@
  63041. CHECKLIB = @CHECKLIB@
  63042. -CXX = @CXX@
  63043. -CXXCPP = @CXXCPP@
  63044. +CPP = @CPP@
  63045. +CPPFLAGS = @CPPFLAGS@
  63046. +CYGPATH_W = @CYGPATH_W@
  63047. +DEFS = @DEFS@
  63048. DEPDIR = @DEPDIR@
  63049. -DLLTOOL = @DLLTOOL@
  63050. -ECHO = @ECHO@
  63051. +DSYMUTIL = @DSYMUTIL@
  63052. +DUMPBIN = @DUMPBIN@
  63053. +ECHO_C = @ECHO_C@
  63054. +ECHO_N = @ECHO_N@
  63055. +ECHO_T = @ECHO_T@
  63056. EGREP = @EGREP@
  63057. -F77 = @F77@
  63058. -GCJ = @GCJ@
  63059. -GCJFLAGS = @GCJFLAGS@
  63060. +EXEEXT = @EXEEXT@
  63061. +FGREP = @FGREP@
  63062. +GREP = @GREP@
  63063. +INSTALL = @INSTALL@
  63064. +INSTALL_DATA = @INSTALL_DATA@
  63065. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  63066. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  63067. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  63068. +LD = @LD@
  63069. +LDFLAGS = @LDFLAGS@
  63070. +LIBOBJS = @LIBOBJS@
  63071. +LIBS = @LIBS@
  63072. LIBTOOL = @LIBTOOL@
  63073. +LIPO = @LIPO@
  63074. LN_S = @LN_S@
  63075. +LTLIBOBJS = @LTLIBOBJS@
  63076. MAINT = @MAINT@
  63077. +MAKEINFO = @MAKEINFO@
  63078. +MKDIR_P = @MKDIR_P@
  63079. +NM = @NM@
  63080. +NMEDIT = @NMEDIT@
  63081. OBJDUMP = @OBJDUMP@
  63082. +OBJEXT = @OBJEXT@
  63083. +OTOOL = @OTOOL@
  63084. +OTOOL64 = @OTOOL64@
  63085. PACKAGE = @PACKAGE@
  63086. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  63087. +PACKAGE_NAME = @PACKAGE_NAME@
  63088. +PACKAGE_STRING = @PACKAGE_STRING@
  63089. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  63090. +PACKAGE_URL = @PACKAGE_URL@
  63091. +PACKAGE_VERSION = @PACKAGE_VERSION@
  63092. +PATH_SEPARATOR = @PATH_SEPARATOR@
  63093. PYTHON = @PYTHON@
  63094. RANLIB = @RANLIB@
  63095. -RC = @RC@
  63096. +SED = @SED@
  63097. +SET_MAKE = @SET_MAKE@
  63098. +SHELL = @SHELL@
  63099. STRIP = @STRIP@
  63100. TCLINC = @TCLINC@
  63101. TCLLIB = @TCLLIB@
  63102. VERSION = @VERSION@
  63103. +abs_builddir = @abs_builddir@
  63104. +abs_srcdir = @abs_srcdir@
  63105. +abs_top_builddir = @abs_top_builddir@
  63106. +abs_top_srcdir = @abs_top_srcdir@
  63107. ac_aux_dir = @ac_aux_dir@
  63108. +ac_ct_CC = @ac_ct_CC@
  63109. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  63110. am__include = @am__include@
  63111. +am__leading_dot = @am__leading_dot@
  63112. am__quote = @am__quote@
  63113. +am__tar = @am__tar@
  63114. +am__untar = @am__untar@
  63115. +bindir = @bindir@
  63116. +build = @build@
  63117. +build_alias = @build_alias@
  63118. +build_cpu = @build_cpu@
  63119. +build_os = @build_os@
  63120. +build_vendor = @build_vendor@
  63121. +builddir = @builddir@
  63122. +datadir = @datadir@
  63123. +datarootdir = @datarootdir@
  63124. +docdir = @docdir@
  63125. +dvidir = @dvidir@
  63126. +exec_prefix = @exec_prefix@
  63127. +host = @host@
  63128. +host_alias = @host_alias@
  63129. +host_cpu = @host_cpu@
  63130. +host_os = @host_os@
  63131. +host_vendor = @host_vendor@
  63132. +htmldir = @htmldir@
  63133. +includedir = @includedir@
  63134. +infodir = @infodir@
  63135. install_sh = @install_sh@
  63136. -
  63137. +libdir = @libdir@
  63138. +libexecdir = @libexecdir@
  63139. +localedir = @localedir@
  63140. +localstatedir = @localstatedir@
  63141. +lt_ECHO = @lt_ECHO@
  63142. +mandir = @mandir@
  63143. +mkdir_p = @mkdir_p@
  63144. +oldincludedir = @oldincludedir@
  63145. +pdfdir = @pdfdir@
  63146. +prefix = @prefix@
  63147. +program_transform_name = @program_transform_name@
  63148. +psdir = @psdir@
  63149. +sbindir = @sbindir@
  63150. +sharedstatedir = @sharedstatedir@
  63151. +srcdir = @srcdir@
  63152. +sysconfdir = @sysconfdir@
  63153. +target_alias = @target_alias@
  63154. +top_build_prefix = @top_build_prefix@
  63155. +top_builddir = @top_builddir@
  63156. +top_srcdir = @top_srcdir@
  63157. AUTOMAKE_OPTIONS = foreign no-dependencies
  63158. -
  63159. AM_CPPFLAGS = -I$(top_srcdir)/include
  63160. -
  63161. dnetincludedir = $(includedir)/dnet
  63162. -
  63163. dnetinclude_HEADERS = addr.h arp.h blob.h eth.h fw.h icmp.h intf.h ip.h \
  63164. ip6.h os.h rand.h route.h tcp.h tun.h udp.h
  63165. -subdir = include/dnet
  63166. -mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
  63167. -CONFIG_HEADER = $(top_builddir)/include/config.h
  63168. -CONFIG_CLEAN_FILES =
  63169. -depcomp =
  63170. -am__depfiles_maybe =
  63171. -DIST_SOURCES =
  63172. -HEADERS = $(dnetinclude_HEADERS)
  63173. -
  63174. -DIST_COMMON = $(dnetinclude_HEADERS) Makefile.am Makefile.in
  63175. all: all-am
  63176. .SUFFIXES:
  63177. -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/Makefile.am.common $(top_srcdir)/configure.in $(ACLOCAL_M4)
  63178. - cd $(top_srcdir) && \
  63179. - $(AUTOMAKE) --foreign include/dnet/Makefile
  63180. -Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
  63181. - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
  63182. +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.common $(am__configure_deps)
  63183. + @for dep in $?; do \
  63184. + case '$(am__configure_deps)' in \
  63185. + *$$dep*) \
  63186. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  63187. + && { if test -f $@; then exit 0; else break; fi; }; \
  63188. + exit 1;; \
  63189. + esac; \
  63190. + done; \
  63191. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign include/dnet/Makefile'; \
  63192. + $(am__cd) $(top_srcdir) && \
  63193. + $(AUTOMAKE) --foreign include/dnet/Makefile
  63194. +.PRECIOUS: Makefile
  63195. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  63196. + @case '$?' in \
  63197. + *config.status*) \
  63198. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  63199. + *) \
  63200. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  63201. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  63202. + esac;
  63203. +
  63204. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  63205. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  63206. +
  63207. +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  63208. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  63209. +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  63210. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  63211. +$(am__aclocal_m4_deps):
  63212. mostlyclean-libtool:
  63213. -rm -f *.lo
  63214. clean-libtool:
  63215. -rm -rf .libs _libs
  63216. -
  63217. -distclean-libtool:
  63218. - -rm -f libtool
  63219. -uninstall-info-am:
  63220. -dnetincludeHEADERS_INSTALL = $(INSTALL_HEADER)
  63221. install-dnetincludeHEADERS: $(dnetinclude_HEADERS)
  63222. @$(NORMAL_INSTALL)
  63223. - $(mkinstalldirs) $(DESTDIR)$(dnetincludedir)
  63224. - @list='$(dnetinclude_HEADERS)'; for p in $$list; do \
  63225. + test -z "$(dnetincludedir)" || $(MKDIR_P) "$(DESTDIR)$(dnetincludedir)"
  63226. + @list='$(dnetinclude_HEADERS)'; test -n "$(dnetincludedir)" || list=; \
  63227. + for p in $$list; do \
  63228. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  63229. - f="`echo $$p | sed -e 's|^.*/||'`"; \
  63230. - echo " $(dnetincludeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(dnetincludedir)/$$f"; \
  63231. - $(dnetincludeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(dnetincludedir)/$$f; \
  63232. + echo "$$d$$p"; \
  63233. + done | $(am__base_list) | \
  63234. + while read files; do \
  63235. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(dnetincludedir)'"; \
  63236. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(dnetincludedir)" || exit $$?; \
  63237. done
  63238. uninstall-dnetincludeHEADERS:
  63239. @$(NORMAL_UNINSTALL)
  63240. - @list='$(dnetinclude_HEADERS)'; for p in $$list; do \
  63241. - f="`echo $$p | sed -e 's|^.*/||'`"; \
  63242. - echo " rm -f $(DESTDIR)$(dnetincludedir)/$$f"; \
  63243. - rm -f $(DESTDIR)$(dnetincludedir)/$$f; \
  63244. - done
  63245. -
  63246. -ETAGS = etags
  63247. -ETAGSFLAGS =
  63248. -
  63249. -tags: TAGS
  63250. + @list='$(dnetinclude_HEADERS)'; test -n "$(dnetincludedir)" || list=; \
  63251. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  63252. + test -n "$$files" || exit 0; \
  63253. + echo " ( cd '$(DESTDIR)$(dnetincludedir)' && rm -f" $$files ")"; \
  63254. + cd "$(DESTDIR)$(dnetincludedir)" && rm -f $$files
  63255. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  63256. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  63257. unique=`for i in $$list; do \
  63258. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  63259. done | \
  63260. - $(AWK) ' { files[$$0] = 1; } \
  63261. - END { for (i in files) print i; }'`; \
  63262. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  63263. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  63264. mkid -fID $$unique
  63265. +tags: TAGS
  63266. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  63267. $(TAGS_FILES) $(LISP)
  63268. - tags=; \
  63269. + set x; \
  63270. here=`pwd`; \
  63271. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  63272. unique=`for i in $$list; do \
  63273. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  63274. done | \
  63275. - $(AWK) ' { files[$$0] = 1; } \
  63276. - END { for (i in files) print i; }'`; \
  63277. - test -z "$(ETAGS_ARGS)$$tags$$unique" \
  63278. - || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  63279. - $$tags $$unique
  63280. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  63281. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  63282. + shift; \
  63283. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  63284. + test -n "$$unique" || unique=$$empty_fix; \
  63285. + if test $$# -gt 0; then \
  63286. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  63287. + "$$@" $$unique; \
  63288. + else \
  63289. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  63290. + $$unique; \
  63291. + fi; \
  63292. + fi
  63293. +ctags: CTAGS
  63294. +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  63295. + $(TAGS_FILES) $(LISP)
  63296. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  63297. + unique=`for i in $$list; do \
  63298. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  63299. + done | \
  63300. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  63301. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  63302. + test -z "$(CTAGS_ARGS)$$unique" \
  63303. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  63304. + $$unique
  63305. GTAGS:
  63306. here=`$(am__cd) $(top_builddir) && pwd` \
  63307. - && cd $(top_srcdir) \
  63308. - && gtags -i $(GTAGS_ARGS) $$here
  63309. + && $(am__cd) $(top_srcdir) \
  63310. + && gtags -i $(GTAGS_ARGS) "$$here"
  63311. distclean-tags:
  63312. - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
  63313. -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  63314. -
  63315. -top_distdir = ../..
  63316. -distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
  63317. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  63318. distdir: $(DISTFILES)
  63319. - @list='$(DISTFILES)'; for file in $$list; do \
  63320. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  63321. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  63322. + list='$(DISTFILES)'; \
  63323. + dist_files=`for file in $$list; do echo $$file; done | \
  63324. + sed -e "s|^$$srcdirstrip/||;t" \
  63325. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  63326. + case $$dist_files in \
  63327. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  63328. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  63329. + sort -u` ;; \
  63330. + esac; \
  63331. + for file in $$dist_files; do \
  63332. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  63333. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  63334. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  63335. - dir="/$$dir"; \
  63336. - $(mkinstalldirs) "$(distdir)$$dir"; \
  63337. - else \
  63338. - dir=''; \
  63339. - fi; \
  63340. if test -d $$d/$$file; then \
  63341. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  63342. + if test -d "$(distdir)/$$file"; then \
  63343. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  63344. + fi; \
  63345. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  63346. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  63347. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  63348. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  63349. fi; \
  63350. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  63351. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  63352. else \
  63353. - test -f $(distdir)/$$file \
  63354. - || cp -p $$d/$$file $(distdir)/$$file \
  63355. + test -f "$(distdir)/$$file" \
  63356. + || cp -p $$d/$$file "$(distdir)/$$file" \
  63357. || exit 1; \
  63358. fi; \
  63359. done
  63360. check-am: all-am
  63361. check: check-am
  63362. all-am: Makefile $(HEADERS)
  63363. -
  63364. installdirs:
  63365. - $(mkinstalldirs) $(DESTDIR)$(dnetincludedir)
  63366. -
  63367. + for dir in "$(DESTDIR)$(dnetincludedir)"; do \
  63368. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  63369. + done
  63370. install: install-am
  63371. install-exec: install-exec-am
  63372. install-data: install-data-am
  63373. @@ -234,7 +360,7 @@
  63374. installcheck: installcheck-am
  63375. install-strip:
  63376. $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  63377. - INSTALL_STRIP_FLAG=-s \
  63378. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  63379. `test -z '$(STRIP)' || \
  63380. echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  63381. mostlyclean-generic:
  63382. @@ -242,7 +368,8 @@
  63383. clean-generic:
  63384. distclean-generic:
  63385. - -rm -f Makefile $(CONFIG_CLEAN_FILES)
  63386. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  63387. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  63388. maintainer-clean-generic:
  63389. @echo "This command is intended for maintainers to use"
  63390. @@ -252,48 +379,82 @@
  63391. clean-am: clean-generic clean-libtool mostlyclean-am
  63392. distclean: distclean-am
  63393. -
  63394. -distclean-am: clean-am distclean-generic distclean-libtool \
  63395. - distclean-tags
  63396. + -rm -f Makefile
  63397. +distclean-am: clean-am distclean-generic distclean-tags
  63398. dvi: dvi-am
  63399. dvi-am:
  63400. +html: html-am
  63401. +
  63402. +html-am:
  63403. +
  63404. info: info-am
  63405. info-am:
  63406. install-data-am: install-dnetincludeHEADERS
  63407. +install-dvi: install-dvi-am
  63408. +
  63409. +install-dvi-am:
  63410. +
  63411. install-exec-am:
  63412. +install-html: install-html-am
  63413. +
  63414. +install-html-am:
  63415. +
  63416. install-info: install-info-am
  63417. +install-info-am:
  63418. +
  63419. install-man:
  63420. +install-pdf: install-pdf-am
  63421. +
  63422. +install-pdf-am:
  63423. +
  63424. +install-ps: install-ps-am
  63425. +
  63426. +install-ps-am:
  63427. +
  63428. installcheck-am:
  63429. maintainer-clean: maintainer-clean-am
  63430. -
  63431. + -rm -f Makefile
  63432. maintainer-clean-am: distclean-am maintainer-clean-generic
  63433. mostlyclean: mostlyclean-am
  63434. mostlyclean-am: mostlyclean-generic mostlyclean-libtool
  63435. -uninstall-am: uninstall-dnetincludeHEADERS uninstall-info-am
  63436. +pdf: pdf-am
  63437. +
  63438. +pdf-am:
  63439. +
  63440. +ps: ps-am
  63441. +
  63442. +ps-am:
  63443. +
  63444. +uninstall-am: uninstall-dnetincludeHEADERS
  63445. +
  63446. +.MAKE: install-am install-strip
  63447. +
  63448. +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  63449. + clean-libtool ctags distclean distclean-generic \
  63450. + distclean-libtool distclean-tags distdir dvi dvi-am html \
  63451. + html-am info info-am install install-am install-data \
  63452. + install-data-am install-dnetincludeHEADERS install-dvi \
  63453. + install-dvi-am install-exec install-exec-am install-html \
  63454. + install-html-am install-info install-info-am install-man \
  63455. + install-pdf install-pdf-am install-ps install-ps-am \
  63456. + install-strip installcheck installcheck-am installdirs \
  63457. + maintainer-clean maintainer-clean-generic mostlyclean \
  63458. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  63459. + tags uninstall uninstall-am uninstall-dnetincludeHEADERS
  63460. -.PHONY: GTAGS all all-am check check-am clean clean-generic \
  63461. - clean-libtool distclean distclean-generic distclean-libtool \
  63462. - distclean-tags distdir dvi dvi-am info info-am install \
  63463. - install-am install-data install-data-am \
  63464. - install-dnetincludeHEADERS install-exec install-exec-am \
  63465. - install-info install-info-am install-man install-strip \
  63466. - installcheck installcheck-am installdirs maintainer-clean \
  63467. - maintainer-clean-generic mostlyclean mostlyclean-generic \
  63468. - mostlyclean-libtool tags uninstall uninstall-am \
  63469. - uninstall-dnetincludeHEADERS uninstall-info-am
  63470. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  63471. # Otherwise a system limit (for SysV at least) may be exceeded.
  63472. diff -Nur libdnet-1.11.orig/include/Makefile.in libdnet-1.11/include/Makefile.in
  63473. --- libdnet-1.11.orig/include/Makefile.in 2006-01-19 09:24:45.000000000 +0100
  63474. +++ libdnet-1.11/include/Makefile.in 2011-02-19 12:27:14.163562830 +0100
  63475. @@ -1,8 +1,9 @@
  63476. -# Makefile.in generated by automake 1.6.3 from Makefile.am.
  63477. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  63478. # @configure_input@
  63479. -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
  63480. -# Free Software Foundation, Inc.
  63481. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  63482. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  63483. +# Inc.
  63484. # This Makefile.in is free software; the Free Software Foundation
  63485. # gives unlimited permission to copy and/or distribute it,
  63486. # with or without modifications, as long as this notice is preserved.
  63487. @@ -13,140 +14,278 @@
  63488. # PARTICULAR PURPOSE.
  63489. @SET_MAKE@
  63490. -SHELL = @SHELL@
  63491. -srcdir = @srcdir@
  63492. -top_srcdir = @top_srcdir@
  63493. VPATH = @srcdir@
  63494. -prefix = @prefix@
  63495. -exec_prefix = @exec_prefix@
  63496. -
  63497. -bindir = @bindir@
  63498. -sbindir = @sbindir@
  63499. -libexecdir = @libexecdir@
  63500. -datadir = @datadir@
  63501. -sysconfdir = @sysconfdir@
  63502. -sharedstatedir = @sharedstatedir@
  63503. -localstatedir = @localstatedir@
  63504. -libdir = @libdir@
  63505. -infodir = @infodir@
  63506. -mandir = @mandir@
  63507. -includedir = @includedir@
  63508. -oldincludedir = /usr/include
  63509. pkgdatadir = $(datadir)/@PACKAGE@
  63510. -pkglibdir = $(libdir)/@PACKAGE@
  63511. pkgincludedir = $(includedir)/@PACKAGE@
  63512. -top_builddir = ..
  63513. -
  63514. -ACLOCAL = @ACLOCAL@
  63515. -AUTOCONF = @AUTOCONF@
  63516. -AUTOMAKE = @AUTOMAKE@
  63517. -AUTOHEADER = @AUTOHEADER@
  63518. -
  63519. +pkglibdir = $(libdir)/@PACKAGE@
  63520. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  63521. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  63522. -INSTALL = @INSTALL@
  63523. -INSTALL_PROGRAM = @INSTALL_PROGRAM@
  63524. -INSTALL_DATA = @INSTALL_DATA@
  63525. install_sh_DATA = $(install_sh) -c -m 644
  63526. install_sh_PROGRAM = $(install_sh) -c
  63527. install_sh_SCRIPT = $(install_sh) -c
  63528. -INSTALL_SCRIPT = @INSTALL_SCRIPT@
  63529. INSTALL_HEADER = $(INSTALL_DATA)
  63530. -transform = @program_transform_name@
  63531. +transform = $(program_transform_name)
  63532. NORMAL_INSTALL = :
  63533. PRE_INSTALL = :
  63534. POST_INSTALL = :
  63535. NORMAL_UNINSTALL = :
  63536. PRE_UNINSTALL = :
  63537. POST_UNINSTALL = :
  63538. -host_alias = @host_alias@
  63539. +build_triplet = @build@
  63540. host_triplet = @host@
  63541. -
  63542. -EXEEXT = @EXEEXT@
  63543. -OBJEXT = @OBJEXT@
  63544. -PATH_SEPARATOR = @PATH_SEPARATOR@
  63545. +DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \
  63546. + $(srcdir)/Makefile.in $(srcdir)/config.h.in \
  63547. + $(top_srcdir)/Makefile.am.common
  63548. +subdir = include
  63549. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  63550. +am__aclocal_m4_deps = $(top_srcdir)/config/acinclude.m4 \
  63551. + $(top_srcdir)/configure.in
  63552. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  63553. + $(ACLOCAL_M4)
  63554. +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
  63555. +CONFIG_HEADER = config.h
  63556. +CONFIG_CLEAN_FILES =
  63557. +CONFIG_CLEAN_VPATH_FILES =
  63558. +depcomp =
  63559. +am__depfiles_maybe =
  63560. +SOURCES =
  63561. +DIST_SOURCES =
  63562. +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  63563. + html-recursive info-recursive install-data-recursive \
  63564. + install-dvi-recursive install-exec-recursive \
  63565. + install-html-recursive install-info-recursive \
  63566. + install-pdf-recursive install-ps-recursive install-recursive \
  63567. + installcheck-recursive installdirs-recursive pdf-recursive \
  63568. + ps-recursive uninstall-recursive
  63569. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  63570. +am__vpath_adj = case $$p in \
  63571. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  63572. + *) f=$$p;; \
  63573. + esac;
  63574. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  63575. +am__install_max = 40
  63576. +am__nobase_strip_setup = \
  63577. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  63578. +am__nobase_strip = \
  63579. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  63580. +am__nobase_list = $(am__nobase_strip_setup); \
  63581. + for p in $$list; do echo "$$p $$p"; done | \
  63582. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  63583. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  63584. + if (++n[$$2] == $(am__install_max)) \
  63585. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  63586. + END { for (dir in files) print dir, files[dir] }'
  63587. +am__base_list = \
  63588. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  63589. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  63590. +am__installdirs = "$(DESTDIR)$(includedir)"
  63591. +HEADERS = $(include_HEADERS)
  63592. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  63593. + distclean-recursive maintainer-clean-recursive
  63594. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  63595. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  63596. + distdir
  63597. +ETAGS = etags
  63598. +CTAGS = ctags
  63599. +DIST_SUBDIRS = $(SUBDIRS)
  63600. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  63601. +am__relativize = \
  63602. + dir0=`pwd`; \
  63603. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  63604. + sed_rest='s,^[^/]*/*,,'; \
  63605. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  63606. + sed_butlast='s,/*[^/]*$$,,'; \
  63607. + while test -n "$$dir1"; do \
  63608. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  63609. + if test "$$first" != "."; then \
  63610. + if test "$$first" = ".."; then \
  63611. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  63612. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  63613. + else \
  63614. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  63615. + if test "$$first2" = "$$first"; then \
  63616. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  63617. + else \
  63618. + dir2="../$$dir2"; \
  63619. + fi; \
  63620. + dir0="$$dir0"/"$$first"; \
  63621. + fi; \
  63622. + fi; \
  63623. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  63624. + done; \
  63625. + reldir="$$dir2"
  63626. +ACLOCAL = @ACLOCAL@
  63627. AMTAR = @AMTAR@
  63628. AR = @AR@
  63629. -AS = @AS@
  63630. +AUTOCONF = @AUTOCONF@
  63631. +AUTOHEADER = @AUTOHEADER@
  63632. +AUTOMAKE = @AUTOMAKE@
  63633. AWK = @AWK@
  63634. CC = @CC@
  63635. +CCDEPMODE = @CCDEPMODE@
  63636. +CFLAGS = @CFLAGS@
  63637. CHECKINC = @CHECKINC@
  63638. CHECKLIB = @CHECKLIB@
  63639. -CXX = @CXX@
  63640. -CXXCPP = @CXXCPP@
  63641. +CPP = @CPP@
  63642. +CPPFLAGS = @CPPFLAGS@
  63643. +CYGPATH_W = @CYGPATH_W@
  63644. +DEFS = @DEFS@
  63645. DEPDIR = @DEPDIR@
  63646. -DLLTOOL = @DLLTOOL@
  63647. -ECHO = @ECHO@
  63648. +DSYMUTIL = @DSYMUTIL@
  63649. +DUMPBIN = @DUMPBIN@
  63650. +ECHO_C = @ECHO_C@
  63651. +ECHO_N = @ECHO_N@
  63652. +ECHO_T = @ECHO_T@
  63653. EGREP = @EGREP@
  63654. -F77 = @F77@
  63655. -GCJ = @GCJ@
  63656. -GCJFLAGS = @GCJFLAGS@
  63657. +EXEEXT = @EXEEXT@
  63658. +FGREP = @FGREP@
  63659. +GREP = @GREP@
  63660. +INSTALL = @INSTALL@
  63661. +INSTALL_DATA = @INSTALL_DATA@
  63662. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  63663. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  63664. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  63665. +LD = @LD@
  63666. +LDFLAGS = @LDFLAGS@
  63667. +LIBOBJS = @LIBOBJS@
  63668. +LIBS = @LIBS@
  63669. LIBTOOL = @LIBTOOL@
  63670. +LIPO = @LIPO@
  63671. LN_S = @LN_S@
  63672. +LTLIBOBJS = @LTLIBOBJS@
  63673. MAINT = @MAINT@
  63674. +MAKEINFO = @MAKEINFO@
  63675. +MKDIR_P = @MKDIR_P@
  63676. +NM = @NM@
  63677. +NMEDIT = @NMEDIT@
  63678. OBJDUMP = @OBJDUMP@
  63679. +OBJEXT = @OBJEXT@
  63680. +OTOOL = @OTOOL@
  63681. +OTOOL64 = @OTOOL64@
  63682. PACKAGE = @PACKAGE@
  63683. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  63684. +PACKAGE_NAME = @PACKAGE_NAME@
  63685. +PACKAGE_STRING = @PACKAGE_STRING@
  63686. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  63687. +PACKAGE_URL = @PACKAGE_URL@
  63688. +PACKAGE_VERSION = @PACKAGE_VERSION@
  63689. +PATH_SEPARATOR = @PATH_SEPARATOR@
  63690. PYTHON = @PYTHON@
  63691. RANLIB = @RANLIB@
  63692. -RC = @RC@
  63693. +SED = @SED@
  63694. +SET_MAKE = @SET_MAKE@
  63695. +SHELL = @SHELL@
  63696. STRIP = @STRIP@
  63697. TCLINC = @TCLINC@
  63698. TCLLIB = @TCLLIB@
  63699. VERSION = @VERSION@
  63700. +abs_builddir = @abs_builddir@
  63701. +abs_srcdir = @abs_srcdir@
  63702. +abs_top_builddir = @abs_top_builddir@
  63703. +abs_top_srcdir = @abs_top_srcdir@
  63704. ac_aux_dir = @ac_aux_dir@
  63705. +ac_ct_CC = @ac_ct_CC@
  63706. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  63707. am__include = @am__include@
  63708. +am__leading_dot = @am__leading_dot@
  63709. am__quote = @am__quote@
  63710. +am__tar = @am__tar@
  63711. +am__untar = @am__untar@
  63712. +bindir = @bindir@
  63713. +build = @build@
  63714. +build_alias = @build_alias@
  63715. +build_cpu = @build_cpu@
  63716. +build_os = @build_os@
  63717. +build_vendor = @build_vendor@
  63718. +builddir = @builddir@
  63719. +datadir = @datadir@
  63720. +datarootdir = @datarootdir@
  63721. +docdir = @docdir@
  63722. +dvidir = @dvidir@
  63723. +exec_prefix = @exec_prefix@
  63724. +host = @host@
  63725. +host_alias = @host_alias@
  63726. +host_cpu = @host_cpu@
  63727. +host_os = @host_os@
  63728. +host_vendor = @host_vendor@
  63729. +htmldir = @htmldir@
  63730. +includedir = @includedir@
  63731. +infodir = @infodir@
  63732. install_sh = @install_sh@
  63733. -
  63734. +libdir = @libdir@
  63735. +libexecdir = @libexecdir@
  63736. +localedir = @localedir@
  63737. +localstatedir = @localstatedir@
  63738. +lt_ECHO = @lt_ECHO@
  63739. +mandir = @mandir@
  63740. +mkdir_p = @mkdir_p@
  63741. +oldincludedir = @oldincludedir@
  63742. +pdfdir = @pdfdir@
  63743. +prefix = @prefix@
  63744. +program_transform_name = @program_transform_name@
  63745. +psdir = @psdir@
  63746. +sbindir = @sbindir@
  63747. +sharedstatedir = @sharedstatedir@
  63748. +srcdir = @srcdir@
  63749. +sysconfdir = @sysconfdir@
  63750. +target_alias = @target_alias@
  63751. +top_build_prefix = @top_build_prefix@
  63752. +top_builddir = @top_builddir@
  63753. +top_srcdir = @top_srcdir@
  63754. AUTOMAKE_OPTIONS = foreign no-dependencies
  63755. -
  63756. AM_CPPFLAGS = -I$(top_srcdir)/include
  63757. -
  63758. include_HEADERS = dnet.h
  63759. -
  63760. SUBDIRS = dnet
  63761. -
  63762. EXTRA_DIST = err.h queue.h
  63763. -subdir = include
  63764. -mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
  63765. -CONFIG_HEADER = config.h
  63766. -CONFIG_CLEAN_FILES =
  63767. -depcomp =
  63768. -am__depfiles_maybe =
  63769. -DIST_SOURCES =
  63770. -HEADERS = $(include_HEADERS)
  63771. -
  63772. -
  63773. -RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \
  63774. - uninstall-info-recursive all-recursive install-data-recursive \
  63775. - install-exec-recursive installdirs-recursive install-recursive \
  63776. - uninstall-recursive check-recursive installcheck-recursive
  63777. -DIST_COMMON = $(include_HEADERS) Makefile.am Makefile.in config.h.in
  63778. -DIST_SUBDIRS = $(SUBDIRS)
  63779. all: config.h
  63780. $(MAKE) $(AM_MAKEFLAGS) all-recursive
  63781. .SUFFIXES:
  63782. -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/Makefile.am.common $(top_srcdir)/configure.in $(ACLOCAL_M4)
  63783. - cd $(top_srcdir) && \
  63784. - $(AUTOMAKE) --foreign include/Makefile
  63785. -Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
  63786. - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
  63787. +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.common $(am__configure_deps)
  63788. + @for dep in $?; do \
  63789. + case '$(am__configure_deps)' in \
  63790. + *$$dep*) \
  63791. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  63792. + && { if test -f $@; then exit 0; else break; fi; }; \
  63793. + exit 1;; \
  63794. + esac; \
  63795. + done; \
  63796. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign include/Makefile'; \
  63797. + $(am__cd) $(top_srcdir) && \
  63798. + $(AUTOMAKE) --foreign include/Makefile
  63799. +.PRECIOUS: Makefile
  63800. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  63801. + @case '$?' in \
  63802. + *config.status*) \
  63803. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  63804. + *) \
  63805. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  63806. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  63807. + esac;
  63808. +
  63809. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  63810. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  63811. +
  63812. +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  63813. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  63814. +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  63815. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  63816. +$(am__aclocal_m4_deps):
  63817. config.h: stamp-h1
  63818. @if test ! -f $@; then \
  63819. rm -f stamp-h1; \
  63820. - $(MAKE) stamp-h1; \
  63821. + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
  63822. else :; fi
  63823. stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
  63824. @rm -f stamp-h1
  63825. cd $(top_builddir) && $(SHELL) ./config.status include/config.h
  63826. -
  63827. -$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/acconfig.h
  63828. - cd $(top_srcdir) && $(AUTOHEADER)
  63829. - touch $(srcdir)/config.h.in
  63830. +$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) $(top_srcdir)/acconfig.h
  63831. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  63832. + rm -f stamp-h1
  63833. + touch $@
  63834. distclean-hdr:
  63835. -rm -f config.h stamp-h1
  63836. @@ -156,28 +295,26 @@
  63837. clean-libtool:
  63838. -rm -rf .libs _libs
  63839. -
  63840. -distclean-libtool:
  63841. - -rm -f libtool
  63842. -uninstall-info-am:
  63843. -includeHEADERS_INSTALL = $(INSTALL_HEADER)
  63844. install-includeHEADERS: $(include_HEADERS)
  63845. @$(NORMAL_INSTALL)
  63846. - $(mkinstalldirs) $(DESTDIR)$(includedir)
  63847. - @list='$(include_HEADERS)'; for p in $$list; do \
  63848. + test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
  63849. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  63850. + for p in $$list; do \
  63851. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  63852. - f="`echo $$p | sed -e 's|^.*/||'`"; \
  63853. - echo " $(includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(includedir)/$$f"; \
  63854. - $(includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(includedir)/$$f; \
  63855. + echo "$$d$$p"; \
  63856. + done | $(am__base_list) | \
  63857. + while read files; do \
  63858. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
  63859. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
  63860. done
  63861. uninstall-includeHEADERS:
  63862. @$(NORMAL_UNINSTALL)
  63863. - @list='$(include_HEADERS)'; for p in $$list; do \
  63864. - f="`echo $$p | sed -e 's|^.*/||'`"; \
  63865. - echo " rm -f $(DESTDIR)$(includedir)/$$f"; \
  63866. - rm -f $(DESTDIR)$(includedir)/$$f; \
  63867. - done
  63868. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  63869. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  63870. + test -n "$$files" || exit 0; \
  63871. + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
  63872. + cd "$(DESTDIR)$(includedir)" && rm -f $$files
  63873. # This directory's subdirectories are mostly independent; you can cd
  63874. # into them and run `make' without going through this Makefile.
  63875. @@ -186,7 +323,13 @@
  63876. # (which will cause the Makefiles to be regenerated when you run `make');
  63877. # (2) otherwise, pass the desired values on the `make' command line.
  63878. $(RECURSIVE_TARGETS):
  63879. - @set fnord $$MAKEFLAGS; amf=$$2; \
  63880. + @fail= failcom='exit 1'; \
  63881. + for f in x $$MAKEFLAGS; do \
  63882. + case $$f in \
  63883. + *=* | --[!k]*);; \
  63884. + *k*) failcom='fail=yes';; \
  63885. + esac; \
  63886. + done; \
  63887. dot_seen=no; \
  63888. target=`echo $@ | sed s/-recursive//`; \
  63889. list='$(SUBDIRS)'; for subdir in $$list; do \
  63890. @@ -197,16 +340,21 @@
  63891. else \
  63892. local_target="$$target"; \
  63893. fi; \
  63894. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  63895. - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  63896. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  63897. + || eval $$failcom; \
  63898. done; \
  63899. if test "$$dot_seen" = "no"; then \
  63900. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  63901. fi; test -z "$$fail"
  63902. -mostlyclean-recursive clean-recursive distclean-recursive \
  63903. -maintainer-clean-recursive:
  63904. - @set fnord $$MAKEFLAGS; amf=$$2; \
  63905. +$(RECURSIVE_CLEAN_TARGETS):
  63906. + @fail= failcom='exit 1'; \
  63907. + for f in x $$MAKEFLAGS; do \
  63908. + case $$f in \
  63909. + *=* | --[!k]*);; \
  63910. + *k*) failcom='fail=yes';; \
  63911. + esac; \
  63912. + done; \
  63913. dot_seen=no; \
  63914. case "$@" in \
  63915. distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
  63916. @@ -226,89 +374,137 @@
  63917. else \
  63918. local_target="$$target"; \
  63919. fi; \
  63920. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  63921. - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  63922. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  63923. + || eval $$failcom; \
  63924. done && test -z "$$fail"
  63925. tags-recursive:
  63926. list='$(SUBDIRS)'; for subdir in $$list; do \
  63927. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  63928. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  63929. + done
  63930. +ctags-recursive:
  63931. + list='$(SUBDIRS)'; for subdir in $$list; do \
  63932. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  63933. done
  63934. -
  63935. -ETAGS = etags
  63936. -ETAGSFLAGS =
  63937. -
  63938. -tags: TAGS
  63939. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  63940. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  63941. unique=`for i in $$list; do \
  63942. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  63943. done | \
  63944. - $(AWK) ' { files[$$0] = 1; } \
  63945. - END { for (i in files) print i; }'`; \
  63946. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  63947. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  63948. mkid -fID $$unique
  63949. +tags: TAGS
  63950. TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  63951. $(TAGS_FILES) $(LISP)
  63952. - tags=; \
  63953. + set x; \
  63954. here=`pwd`; \
  63955. + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  63956. + include_option=--etags-include; \
  63957. + empty_fix=.; \
  63958. + else \
  63959. + include_option=--include; \
  63960. + empty_fix=; \
  63961. + fi; \
  63962. list='$(SUBDIRS)'; for subdir in $$list; do \
  63963. if test "$$subdir" = .; then :; else \
  63964. - test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
  63965. + test ! -f $$subdir/TAGS || \
  63966. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  63967. fi; \
  63968. done; \
  63969. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  63970. unique=`for i in $$list; do \
  63971. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  63972. done | \
  63973. - $(AWK) ' { files[$$0] = 1; } \
  63974. - END { for (i in files) print i; }'`; \
  63975. - test -z "$(ETAGS_ARGS)$$tags$$unique" \
  63976. - || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  63977. - $$tags $$unique
  63978. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  63979. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  63980. + shift; \
  63981. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  63982. + test -n "$$unique" || unique=$$empty_fix; \
  63983. + if test $$# -gt 0; then \
  63984. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  63985. + "$$@" $$unique; \
  63986. + else \
  63987. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  63988. + $$unique; \
  63989. + fi; \
  63990. + fi
  63991. +ctags: CTAGS
  63992. +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  63993. + $(TAGS_FILES) $(LISP)
  63994. + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  63995. + unique=`for i in $$list; do \
  63996. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  63997. + done | \
  63998. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  63999. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  64000. + test -z "$(CTAGS_ARGS)$$unique" \
  64001. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  64002. + $$unique
  64003. GTAGS:
  64004. here=`$(am__cd) $(top_builddir) && pwd` \
  64005. - && cd $(top_srcdir) \
  64006. - && gtags -i $(GTAGS_ARGS) $$here
  64007. + && $(am__cd) $(top_srcdir) \
  64008. + && gtags -i $(GTAGS_ARGS) "$$here"
  64009. distclean-tags:
  64010. - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
  64011. -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  64012. -
  64013. -top_distdir = ..
  64014. -distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
  64015. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  64016. distdir: $(DISTFILES)
  64017. - @list='$(DISTFILES)'; for file in $$list; do \
  64018. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  64019. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  64020. + list='$(DISTFILES)'; \
  64021. + dist_files=`for file in $$list; do echo $$file; done | \
  64022. + sed -e "s|^$$srcdirstrip/||;t" \
  64023. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  64024. + case $$dist_files in \
  64025. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  64026. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  64027. + sort -u` ;; \
  64028. + esac; \
  64029. + for file in $$dist_files; do \
  64030. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  64031. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  64032. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  64033. - dir="/$$dir"; \
  64034. - $(mkinstalldirs) "$(distdir)$$dir"; \
  64035. - else \
  64036. - dir=''; \
  64037. - fi; \
  64038. if test -d $$d/$$file; then \
  64039. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  64040. + if test -d "$(distdir)/$$file"; then \
  64041. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  64042. + fi; \
  64043. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  64044. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  64045. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  64046. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  64047. fi; \
  64048. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  64049. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  64050. else \
  64051. - test -f $(distdir)/$$file \
  64052. - || cp -p $$d/$$file $(distdir)/$$file \
  64053. + test -f "$(distdir)/$$file" \
  64054. + || cp -p $$d/$$file "$(distdir)/$$file" \
  64055. || exit 1; \
  64056. fi; \
  64057. done
  64058. - list='$(SUBDIRS)'; for subdir in $$list; do \
  64059. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  64060. if test "$$subdir" = .; then :; else \
  64061. - test -d $(distdir)/$$subdir \
  64062. - || mkdir $(distdir)/$$subdir \
  64063. + test -d "$(distdir)/$$subdir" \
  64064. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  64065. || exit 1; \
  64066. - (cd $$subdir && \
  64067. + fi; \
  64068. + done
  64069. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  64070. + if test "$$subdir" = .; then :; else \
  64071. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  64072. + $(am__relativize); \
  64073. + new_distdir=$$reldir; \
  64074. + dir1=$$subdir; dir2="$(top_distdir)"; \
  64075. + $(am__relativize); \
  64076. + new_top_distdir=$$reldir; \
  64077. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  64078. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  64079. + ($(am__cd) $$subdir && \
  64080. $(MAKE) $(AM_MAKEFLAGS) \
  64081. - top_distdir="$(top_distdir)" \
  64082. - distdir=../$(distdir)/$$subdir \
  64083. + top_distdir="$$new_top_distdir" \
  64084. + distdir="$$new_distdir" \
  64085. + am__remove_distdir=: \
  64086. + am__skip_length_check=: \
  64087. + am__skip_mode_fix=: \
  64088. distdir) \
  64089. || exit 1; \
  64090. fi; \
  64091. @@ -318,8 +514,9 @@
  64092. all-am: Makefile $(HEADERS) config.h
  64093. installdirs: installdirs-recursive
  64094. installdirs-am:
  64095. - $(mkinstalldirs) $(DESTDIR)$(includedir)
  64096. -
  64097. + for dir in "$(DESTDIR)$(includedir)"; do \
  64098. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  64099. + done
  64100. install: install-recursive
  64101. install-exec: install-exec-recursive
  64102. install-data: install-data-recursive
  64103. @@ -331,7 +528,7 @@
  64104. installcheck: installcheck-recursive
  64105. install-strip:
  64106. $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  64107. - INSTALL_STRIP_FLAG=-s \
  64108. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  64109. `test -z '$(STRIP)' || \
  64110. echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  64111. mostlyclean-generic:
  64112. @@ -339,7 +536,8 @@
  64113. clean-generic:
  64114. distclean-generic:
  64115. - -rm -f Makefile $(CONFIG_CLEAN_FILES)
  64116. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  64117. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  64118. maintainer-clean-generic:
  64119. @echo "This command is intended for maintainers to use"
  64120. @@ -349,56 +547,85 @@
  64121. clean-am: clean-generic clean-libtool mostlyclean-am
  64122. distclean: distclean-recursive
  64123. -
  64124. -distclean-am: clean-am distclean-generic distclean-hdr distclean-libtool \
  64125. - distclean-tags
  64126. + -rm -f Makefile
  64127. +distclean-am: clean-am distclean-generic distclean-hdr distclean-tags
  64128. dvi: dvi-recursive
  64129. dvi-am:
  64130. +html: html-recursive
  64131. +
  64132. +html-am:
  64133. +
  64134. info: info-recursive
  64135. info-am:
  64136. install-data-am: install-includeHEADERS
  64137. +install-dvi: install-dvi-recursive
  64138. +
  64139. +install-dvi-am:
  64140. +
  64141. install-exec-am:
  64142. +install-html: install-html-recursive
  64143. +
  64144. +install-html-am:
  64145. +
  64146. install-info: install-info-recursive
  64147. +install-info-am:
  64148. +
  64149. install-man:
  64150. +install-pdf: install-pdf-recursive
  64151. +
  64152. +install-pdf-am:
  64153. +
  64154. +install-ps: install-ps-recursive
  64155. +
  64156. +install-ps-am:
  64157. +
  64158. installcheck-am:
  64159. maintainer-clean: maintainer-clean-recursive
  64160. -
  64161. + -rm -f Makefile
  64162. maintainer-clean-am: distclean-am maintainer-clean-generic
  64163. mostlyclean: mostlyclean-recursive
  64164. mostlyclean-am: mostlyclean-generic mostlyclean-libtool
  64165. -uninstall-am: uninstall-includeHEADERS uninstall-info-am
  64166. +pdf: pdf-recursive
  64167. +
  64168. +pdf-am:
  64169. -uninstall-info: uninstall-info-recursive
  64170. +ps: ps-recursive
  64171. -.PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \
  64172. - clean-generic clean-libtool clean-recursive distclean \
  64173. - distclean-generic distclean-hdr distclean-libtool \
  64174. - distclean-recursive distclean-tags distdir dvi dvi-am \
  64175. - dvi-recursive info info-am info-recursive install install-am \
  64176. - install-data install-data-am install-data-recursive \
  64177. - install-exec install-exec-am install-exec-recursive \
  64178. +ps-am:
  64179. +
  64180. +uninstall-am: uninstall-includeHEADERS
  64181. +
  64182. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
  64183. + ctags-recursive install-am install-strip tags-recursive
  64184. +
  64185. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  64186. + all all-am check check-am clean clean-generic clean-libtool \
  64187. + ctags ctags-recursive distclean distclean-generic \
  64188. + distclean-hdr distclean-libtool distclean-tags distdir dvi \
  64189. + dvi-am html html-am info info-am install install-am \
  64190. + install-data install-data-am install-dvi install-dvi-am \
  64191. + install-exec install-exec-am install-html install-html-am \
  64192. install-includeHEADERS install-info install-info-am \
  64193. - install-info-recursive install-man install-recursive \
  64194. - install-strip installcheck installcheck-am installdirs \
  64195. - installdirs-am installdirs-recursive maintainer-clean \
  64196. - maintainer-clean-generic maintainer-clean-recursive mostlyclean \
  64197. - mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \
  64198. - tags tags-recursive uninstall uninstall-am \
  64199. - uninstall-includeHEADERS uninstall-info-am \
  64200. - uninstall-info-recursive uninstall-recursive
  64201. + install-man install-pdf install-pdf-am install-ps \
  64202. + install-ps-am install-strip installcheck installcheck-am \
  64203. + installdirs installdirs-am maintainer-clean \
  64204. + maintainer-clean-generic mostlyclean mostlyclean-generic \
  64205. + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
  64206. + uninstall uninstall-am uninstall-includeHEADERS
  64207. +
  64208. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  64209. # Otherwise a system limit (for SysV at least) may be exceeded.
  64210. diff -Nur libdnet-1.11.orig/Makefile.in libdnet-1.11/Makefile.in
  64211. --- libdnet-1.11.orig/Makefile.in 2006-01-19 09:24:45.000000000 +0100
  64212. +++ libdnet-1.11/Makefile.in 2011-02-19 12:27:14.533563207 +0100
  64213. @@ -1,8 +1,9 @@
  64214. -# Makefile.in generated by automake 1.6.3 from Makefile.am.
  64215. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  64216. # @configure_input@
  64217. -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
  64218. -# Free Software Foundation, Inc.
  64219. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  64220. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  64221. +# Inc.
  64222. # This Makefile.in is free software; the Free Software Foundation
  64223. # gives unlimited permission to copy and/or distribute it,
  64224. # with or without modifications, as long as this notice is preserved.
  64225. @@ -13,104 +14,246 @@
  64226. # PARTICULAR PURPOSE.
  64227. @SET_MAKE@
  64228. -SHELL = @SHELL@
  64229. -srcdir = @srcdir@
  64230. -top_srcdir = @top_srcdir@
  64231. VPATH = @srcdir@
  64232. -prefix = @prefix@
  64233. -exec_prefix = @exec_prefix@
  64234. -
  64235. -bindir = @bindir@
  64236. -sbindir = @sbindir@
  64237. -libexecdir = @libexecdir@
  64238. -datadir = @datadir@
  64239. -sysconfdir = @sysconfdir@
  64240. -sharedstatedir = @sharedstatedir@
  64241. -localstatedir = @localstatedir@
  64242. -libdir = @libdir@
  64243. -infodir = @infodir@
  64244. -mandir = @mandir@
  64245. -includedir = @includedir@
  64246. -oldincludedir = /usr/include
  64247. pkgdatadir = $(datadir)/@PACKAGE@
  64248. -pkglibdir = $(libdir)/@PACKAGE@
  64249. pkgincludedir = $(includedir)/@PACKAGE@
  64250. -top_builddir = .
  64251. -
  64252. -ACLOCAL = @ACLOCAL@
  64253. -AUTOCONF = @AUTOCONF@
  64254. -AUTOMAKE = @AUTOMAKE@
  64255. -AUTOHEADER = @AUTOHEADER@
  64256. -
  64257. +pkglibdir = $(libdir)/@PACKAGE@
  64258. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  64259. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  64260. -INSTALL = @INSTALL@
  64261. -INSTALL_PROGRAM = @INSTALL_PROGRAM@
  64262. -INSTALL_DATA = @INSTALL_DATA@
  64263. install_sh_DATA = $(install_sh) -c -m 644
  64264. install_sh_PROGRAM = $(install_sh) -c
  64265. install_sh_SCRIPT = $(install_sh) -c
  64266. -INSTALL_SCRIPT = @INSTALL_SCRIPT@
  64267. INSTALL_HEADER = $(INSTALL_DATA)
  64268. -transform = @program_transform_name@
  64269. +transform = $(program_transform_name)
  64270. NORMAL_INSTALL = :
  64271. PRE_INSTALL = :
  64272. POST_INSTALL = :
  64273. NORMAL_UNINSTALL = :
  64274. PRE_UNINSTALL = :
  64275. POST_UNINSTALL = :
  64276. -host_alias = @host_alias@
  64277. +build_triplet = @build@
  64278. host_triplet = @host@
  64279. -
  64280. -EXEEXT = @EXEEXT@
  64281. -OBJEXT = @OBJEXT@
  64282. -PATH_SEPARATOR = @PATH_SEPARATOR@
  64283. +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
  64284. + $(srcdir)/Makefile.in $(srcdir)/dnet-config.in \
  64285. + $(top_srcdir)/Makefile.am.common $(top_srcdir)/configure \
  64286. + INSTALL THANKS TODO acconfig.h config/config.guess \
  64287. + config/config.sub config/install-sh config/ltmain.sh \
  64288. + config/missing config/mkinstalldirs
  64289. +subdir = .
  64290. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  64291. +am__aclocal_m4_deps = $(top_srcdir)/config/acinclude.m4 \
  64292. + $(top_srcdir)/configure.in
  64293. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  64294. + $(ACLOCAL_M4)
  64295. +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  64296. + configure.lineno config.status.lineno
  64297. +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
  64298. +CONFIG_HEADER = $(top_builddir)/include/config.h
  64299. +CONFIG_CLEAN_FILES = dnet-config
  64300. +CONFIG_CLEAN_VPATH_FILES =
  64301. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  64302. +am__vpath_adj = case $$p in \
  64303. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  64304. + *) f=$$p;; \
  64305. + esac;
  64306. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  64307. +am__install_max = 40
  64308. +am__nobase_strip_setup = \
  64309. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  64310. +am__nobase_strip = \
  64311. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  64312. +am__nobase_list = $(am__nobase_strip_setup); \
  64313. + for p in $$list; do echo "$$p $$p"; done | \
  64314. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  64315. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  64316. + if (++n[$$2] == $(am__install_max)) \
  64317. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  64318. + END { for (dir in files) print dir, files[dir] }'
  64319. +am__base_list = \
  64320. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  64321. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  64322. +am__installdirs = "$(DESTDIR)$(bindir)"
  64323. +SCRIPTS = $(bin_SCRIPTS)
  64324. +depcomp =
  64325. +am__depfiles_maybe =
  64326. +SOURCES =
  64327. +DIST_SOURCES =
  64328. +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  64329. + html-recursive info-recursive install-data-recursive \
  64330. + install-dvi-recursive install-exec-recursive \
  64331. + install-html-recursive install-info-recursive \
  64332. + install-pdf-recursive install-ps-recursive install-recursive \
  64333. + installcheck-recursive installdirs-recursive pdf-recursive \
  64334. + ps-recursive uninstall-recursive
  64335. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  64336. + distclean-recursive maintainer-clean-recursive
  64337. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  64338. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  64339. + distdir dist dist-all distcheck
  64340. +ETAGS = etags
  64341. +CTAGS = ctags
  64342. +DIST_SUBDIRS = $(SUBDIRS)
  64343. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  64344. +distdir = $(PACKAGE)-$(VERSION)
  64345. +top_distdir = $(distdir)
  64346. +am__remove_distdir = \
  64347. + { test ! -d "$(distdir)" \
  64348. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  64349. + && rm -fr "$(distdir)"; }; }
  64350. +am__relativize = \
  64351. + dir0=`pwd`; \
  64352. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  64353. + sed_rest='s,^[^/]*/*,,'; \
  64354. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  64355. + sed_butlast='s,/*[^/]*$$,,'; \
  64356. + while test -n "$$dir1"; do \
  64357. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  64358. + if test "$$first" != "."; then \
  64359. + if test "$$first" = ".."; then \
  64360. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  64361. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  64362. + else \
  64363. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  64364. + if test "$$first2" = "$$first"; then \
  64365. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  64366. + else \
  64367. + dir2="../$$dir2"; \
  64368. + fi; \
  64369. + dir0="$$dir0"/"$$first"; \
  64370. + fi; \
  64371. + fi; \
  64372. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  64373. + done; \
  64374. + reldir="$$dir2"
  64375. +DIST_ARCHIVES = $(distdir).tar.gz
  64376. +GZIP_ENV = --best
  64377. +distuninstallcheck_listfiles = find . -type f -print
  64378. +distcleancheck_listfiles = find . -type f -print
  64379. +ACLOCAL = @ACLOCAL@
  64380. AMTAR = @AMTAR@
  64381. AR = @AR@
  64382. -AS = @AS@
  64383. +AUTOCONF = @AUTOCONF@
  64384. +AUTOHEADER = @AUTOHEADER@
  64385. +AUTOMAKE = @AUTOMAKE@
  64386. AWK = @AWK@
  64387. CC = @CC@
  64388. +CCDEPMODE = @CCDEPMODE@
  64389. +CFLAGS = @CFLAGS@
  64390. CHECKINC = @CHECKINC@
  64391. CHECKLIB = @CHECKLIB@
  64392. -CXX = @CXX@
  64393. -CXXCPP = @CXXCPP@
  64394. +CPP = @CPP@
  64395. +CPPFLAGS = @CPPFLAGS@
  64396. +CYGPATH_W = @CYGPATH_W@
  64397. +DEFS = @DEFS@
  64398. DEPDIR = @DEPDIR@
  64399. -DLLTOOL = @DLLTOOL@
  64400. -ECHO = @ECHO@
  64401. +DSYMUTIL = @DSYMUTIL@
  64402. +DUMPBIN = @DUMPBIN@
  64403. +ECHO_C = @ECHO_C@
  64404. +ECHO_N = @ECHO_N@
  64405. +ECHO_T = @ECHO_T@
  64406. EGREP = @EGREP@
  64407. -F77 = @F77@
  64408. -GCJ = @GCJ@
  64409. -GCJFLAGS = @GCJFLAGS@
  64410. +EXEEXT = @EXEEXT@
  64411. +FGREP = @FGREP@
  64412. +GREP = @GREP@
  64413. +INSTALL = @INSTALL@
  64414. +INSTALL_DATA = @INSTALL_DATA@
  64415. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  64416. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  64417. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  64418. +LD = @LD@
  64419. +LDFLAGS = @LDFLAGS@
  64420. +LIBOBJS = @LIBOBJS@
  64421. +LIBS = @LIBS@
  64422. LIBTOOL = @LIBTOOL@
  64423. +LIPO = @LIPO@
  64424. LN_S = @LN_S@
  64425. +LTLIBOBJS = @LTLIBOBJS@
  64426. MAINT = @MAINT@
  64427. +MAKEINFO = @MAKEINFO@
  64428. +MKDIR_P = @MKDIR_P@
  64429. +NM = @NM@
  64430. +NMEDIT = @NMEDIT@
  64431. OBJDUMP = @OBJDUMP@
  64432. +OBJEXT = @OBJEXT@
  64433. +OTOOL = @OTOOL@
  64434. +OTOOL64 = @OTOOL64@
  64435. PACKAGE = @PACKAGE@
  64436. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  64437. +PACKAGE_NAME = @PACKAGE_NAME@
  64438. +PACKAGE_STRING = @PACKAGE_STRING@
  64439. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  64440. +PACKAGE_URL = @PACKAGE_URL@
  64441. +PACKAGE_VERSION = @PACKAGE_VERSION@
  64442. +PATH_SEPARATOR = @PATH_SEPARATOR@
  64443. PYTHON = @PYTHON@
  64444. RANLIB = @RANLIB@
  64445. -RC = @RC@
  64446. +SED = @SED@
  64447. +SET_MAKE = @SET_MAKE@
  64448. +SHELL = @SHELL@
  64449. STRIP = @STRIP@
  64450. TCLINC = @TCLINC@
  64451. TCLLIB = @TCLLIB@
  64452. VERSION = @VERSION@
  64453. +abs_builddir = @abs_builddir@
  64454. +abs_srcdir = @abs_srcdir@
  64455. +abs_top_builddir = @abs_top_builddir@
  64456. +abs_top_srcdir = @abs_top_srcdir@
  64457. ac_aux_dir = @ac_aux_dir@
  64458. +ac_ct_CC = @ac_ct_CC@
  64459. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  64460. am__include = @am__include@
  64461. +am__leading_dot = @am__leading_dot@
  64462. am__quote = @am__quote@
  64463. +am__tar = @am__tar@
  64464. +am__untar = @am__untar@
  64465. +bindir = @bindir@
  64466. +build = @build@
  64467. +build_alias = @build_alias@
  64468. +build_cpu = @build_cpu@
  64469. +build_os = @build_os@
  64470. +build_vendor = @build_vendor@
  64471. +builddir = @builddir@
  64472. +datadir = @datadir@
  64473. +datarootdir = @datarootdir@
  64474. +docdir = @docdir@
  64475. +dvidir = @dvidir@
  64476. +exec_prefix = @exec_prefix@
  64477. +host = @host@
  64478. +host_alias = @host_alias@
  64479. +host_cpu = @host_cpu@
  64480. +host_os = @host_os@
  64481. +host_vendor = @host_vendor@
  64482. +htmldir = @htmldir@
  64483. +includedir = @includedir@
  64484. +infodir = @infodir@
  64485. install_sh = @install_sh@
  64486. -
  64487. +libdir = @libdir@
  64488. +libexecdir = @libexecdir@
  64489. +localedir = @localedir@
  64490. +localstatedir = @localstatedir@
  64491. +lt_ECHO = @lt_ECHO@
  64492. +mandir = @mandir@
  64493. +mkdir_p = @mkdir_p@
  64494. +oldincludedir = @oldincludedir@
  64495. +pdfdir = @pdfdir@
  64496. +prefix = @prefix@
  64497. +program_transform_name = @program_transform_name@
  64498. +psdir = @psdir@
  64499. +sbindir = @sbindir@
  64500. +sharedstatedir = @sharedstatedir@
  64501. +srcdir = @srcdir@
  64502. +sysconfdir = @sysconfdir@
  64503. +target_alias = @target_alias@
  64504. +top_build_prefix = @top_build_prefix@
  64505. +top_builddir = @top_builddir@
  64506. +top_srcdir = @top_srcdir@
  64507. AUTOMAKE_OPTIONS = foreign no-dependencies
  64508. -
  64509. AM_CPPFLAGS = -I$(top_srcdir)/include
  64510. -
  64511. SUBDIRS = include man src python test
  64512. -
  64513. bin_SCRIPTS = dnet-config
  64514. -
  64515. EXTRA_DIST = LICENSE Makefile.am.common acconfig.h
  64516. -
  64517. CLEANFILES = dnet-config
  64518. -
  64519. AUX_DIST = $(ac_aux_dir)/acinclude.m4 \
  64520. $(ac_aux_dir)/config.guess \
  64521. $(ac_aux_dir)/config.sub \
  64522. @@ -119,68 +262,79 @@
  64523. $(ac_aux_dir)/missing \
  64524. $(ac_aux_dir)/mkinstalldirs
  64525. -subdir = .
  64526. -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  64527. -mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
  64528. -CONFIG_HEADER = $(top_builddir)/include/config.h
  64529. -CONFIG_CLEAN_FILES = dnet-config
  64530. -SCRIPTS = $(bin_SCRIPTS)
  64531. -
  64532. -depcomp =
  64533. -am__depfiles_maybe =
  64534. -DIST_SOURCES =
  64535. -
  64536. -RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \
  64537. - uninstall-info-recursive all-recursive install-data-recursive \
  64538. - install-exec-recursive installdirs-recursive install-recursive \
  64539. - uninstall-recursive check-recursive installcheck-recursive
  64540. -DIST_COMMON = README INSTALL Makefile.am Makefile.in THANKS TODO \
  64541. - acconfig.h aclocal.m4 config/acinclude.m4 config/config.guess \
  64542. - config/config.sub config/install-sh config/ltmain.sh \
  64543. - config/missing config/mkinstalldirs configure configure.in \
  64544. - dnet-config.in
  64545. -DIST_SUBDIRS = $(SUBDIRS)
  64546. all: all-recursive
  64547. .SUFFIXES:
  64548. +am--refresh:
  64549. + @:
  64550. +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.common $(am__configure_deps)
  64551. + @for dep in $?; do \
  64552. + case '$(am__configure_deps)' in \
  64553. + *$$dep*) \
  64554. + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
  64555. + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
  64556. + && exit 0; \
  64557. + exit 1;; \
  64558. + esac; \
  64559. + done; \
  64560. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
  64561. + $(am__cd) $(top_srcdir) && \
  64562. + $(AUTOMAKE) --foreign Makefile
  64563. +.PRECIOUS: Makefile
  64564. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  64565. + @case '$?' in \
  64566. + *config.status*) \
  64567. + echo ' $(SHELL) ./config.status'; \
  64568. + $(SHELL) ./config.status;; \
  64569. + *) \
  64570. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
  64571. + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
  64572. + esac;
  64573. -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  64574. - configure.lineno
  64575. -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/Makefile.am.common $(top_srcdir)/configure.in $(ACLOCAL_M4)
  64576. - cd $(top_srcdir) && \
  64577. - $(AUTOMAKE) --foreign Makefile
  64578. -Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
  64579. - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)
  64580. -
  64581. -$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  64582. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  64583. $(SHELL) ./config.status --recheck
  64584. -$(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
  64585. - cd $(srcdir) && $(AUTOCONF)
  64586. -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in
  64587. - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  64588. -dnet-config: $(top_builddir)/config.status dnet-config.in
  64589. +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  64590. + $(am__cd) $(srcdir) && $(AUTOCONF)
  64591. +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  64592. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  64593. +$(am__aclocal_m4_deps):
  64594. +dnet-config: $(top_builddir)/config.status $(srcdir)/dnet-config.in
  64595. cd $(top_builddir) && $(SHELL) ./config.status $@
  64596. -binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
  64597. install-binSCRIPTS: $(bin_SCRIPTS)
  64598. @$(NORMAL_INSTALL)
  64599. - $(mkinstalldirs) $(DESTDIR)$(bindir)
  64600. - @list='$(bin_SCRIPTS)'; for p in $$list; do \
  64601. + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
  64602. + @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
  64603. + for p in $$list; do \
  64604. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  64605. - if test -f $$d$$p; then \
  64606. - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
  64607. - echo " $(binSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(bindir)/$$f"; \
  64608. - $(binSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(bindir)/$$f; \
  64609. - else :; fi; \
  64610. - done
  64611. + if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
  64612. + done | \
  64613. + sed -e 'p;s,.*/,,;n' \
  64614. + -e 'h;s|.*|.|' \
  64615. + -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
  64616. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
  64617. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  64618. + if ($$2 == $$4) { files[d] = files[d] " " $$1; \
  64619. + if (++n[d] == $(am__install_max)) { \
  64620. + print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
  64621. + else { print "f", d "/" $$4, $$1 } } \
  64622. + END { for (d in files) print "f", d, files[d] }' | \
  64623. + while read type dir files; do \
  64624. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  64625. + test -z "$$files" || { \
  64626. + echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \
  64627. + $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
  64628. + } \
  64629. + ; done
  64630. uninstall-binSCRIPTS:
  64631. @$(NORMAL_UNINSTALL)
  64632. - @list='$(bin_SCRIPTS)'; for p in $$list; do \
  64633. - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
  64634. - echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
  64635. - rm -f $(DESTDIR)$(bindir)/$$f; \
  64636. - done
  64637. + @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \
  64638. + files=`for p in $$list; do echo "$$p"; done | \
  64639. + sed -e 's,.*/,,;$(transform)'`; \
  64640. + test -n "$$list" || exit 0; \
  64641. + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
  64642. + cd "$(DESTDIR)$(bindir)" && rm -f $$files
  64643. mostlyclean-libtool:
  64644. -rm -f *.lo
  64645. @@ -189,8 +343,7 @@
  64646. -rm -rf .libs _libs
  64647. distclean-libtool:
  64648. - -rm -f libtool
  64649. -uninstall-info-am:
  64650. + -rm -f libtool config.lt
  64651. # This directory's subdirectories are mostly independent; you can cd
  64652. # into them and run `make' without going through this Makefile.
  64653. @@ -199,7 +352,13 @@
  64654. # (which will cause the Makefiles to be regenerated when you run `make');
  64655. # (2) otherwise, pass the desired values on the `make' command line.
  64656. $(RECURSIVE_TARGETS):
  64657. - @set fnord $$MAKEFLAGS; amf=$$2; \
  64658. + @fail= failcom='exit 1'; \
  64659. + for f in x $$MAKEFLAGS; do \
  64660. + case $$f in \
  64661. + *=* | --[!k]*);; \
  64662. + *k*) failcom='fail=yes';; \
  64663. + esac; \
  64664. + done; \
  64665. dot_seen=no; \
  64666. target=`echo $@ | sed s/-recursive//`; \
  64667. list='$(SUBDIRS)'; for subdir in $$list; do \
  64668. @@ -210,16 +369,21 @@
  64669. else \
  64670. local_target="$$target"; \
  64671. fi; \
  64672. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  64673. - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  64674. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  64675. + || eval $$failcom; \
  64676. done; \
  64677. if test "$$dot_seen" = "no"; then \
  64678. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  64679. fi; test -z "$$fail"
  64680. -mostlyclean-recursive clean-recursive distclean-recursive \
  64681. -maintainer-clean-recursive:
  64682. - @set fnord $$MAKEFLAGS; amf=$$2; \
  64683. +$(RECURSIVE_CLEAN_TARGETS):
  64684. + @fail= failcom='exit 1'; \
  64685. + for f in x $$MAKEFLAGS; do \
  64686. + case $$f in \
  64687. + *=* | --[!k]*);; \
  64688. + *k*) failcom='fail=yes';; \
  64689. + esac; \
  64690. + done; \
  64691. dot_seen=no; \
  64692. case "$@" in \
  64693. distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
  64694. @@ -239,130 +403,213 @@
  64695. else \
  64696. local_target="$$target"; \
  64697. fi; \
  64698. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  64699. - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  64700. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  64701. + || eval $$failcom; \
  64702. done && test -z "$$fail"
  64703. tags-recursive:
  64704. list='$(SUBDIRS)'; for subdir in $$list; do \
  64705. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  64706. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  64707. + done
  64708. +ctags-recursive:
  64709. + list='$(SUBDIRS)'; for subdir in $$list; do \
  64710. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  64711. done
  64712. -
  64713. -ETAGS = etags
  64714. -ETAGSFLAGS =
  64715. -
  64716. -tags: TAGS
  64717. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  64718. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  64719. unique=`for i in $$list; do \
  64720. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  64721. done | \
  64722. - $(AWK) ' { files[$$0] = 1; } \
  64723. - END { for (i in files) print i; }'`; \
  64724. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  64725. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  64726. mkid -fID $$unique
  64727. +tags: TAGS
  64728. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  64729. $(TAGS_FILES) $(LISP)
  64730. - tags=; \
  64731. + set x; \
  64732. here=`pwd`; \
  64733. + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  64734. + include_option=--etags-include; \
  64735. + empty_fix=.; \
  64736. + else \
  64737. + include_option=--include; \
  64738. + empty_fix=; \
  64739. + fi; \
  64740. list='$(SUBDIRS)'; for subdir in $$list; do \
  64741. if test "$$subdir" = .; then :; else \
  64742. - test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
  64743. + test ! -f $$subdir/TAGS || \
  64744. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  64745. fi; \
  64746. done; \
  64747. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  64748. unique=`for i in $$list; do \
  64749. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  64750. done | \
  64751. - $(AWK) ' { files[$$0] = 1; } \
  64752. - END { for (i in files) print i; }'`; \
  64753. - test -z "$(ETAGS_ARGS)$$tags$$unique" \
  64754. - || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  64755. - $$tags $$unique
  64756. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  64757. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  64758. + shift; \
  64759. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  64760. + test -n "$$unique" || unique=$$empty_fix; \
  64761. + if test $$# -gt 0; then \
  64762. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  64763. + "$$@" $$unique; \
  64764. + else \
  64765. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  64766. + $$unique; \
  64767. + fi; \
  64768. + fi
  64769. +ctags: CTAGS
  64770. +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  64771. + $(TAGS_FILES) $(LISP)
  64772. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  64773. + unique=`for i in $$list; do \
  64774. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  64775. + done | \
  64776. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  64777. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  64778. + test -z "$(CTAGS_ARGS)$$unique" \
  64779. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  64780. + $$unique
  64781. GTAGS:
  64782. here=`$(am__cd) $(top_builddir) && pwd` \
  64783. - && cd $(top_srcdir) \
  64784. - && gtags -i $(GTAGS_ARGS) $$here
  64785. + && $(am__cd) $(top_srcdir) \
  64786. + && gtags -i $(GTAGS_ARGS) "$$here"
  64787. distclean-tags:
  64788. - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
  64789. -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  64790. -
  64791. -top_distdir = .
  64792. -distdir = $(PACKAGE)-$(VERSION)
  64793. -
  64794. -am__remove_distdir = \
  64795. - { test ! -d $(distdir) \
  64796. - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  64797. - && rm -fr $(distdir); }; }
  64798. -
  64799. -GZIP_ENV = --best
  64800. -distcleancheck_listfiles = find . -type f -print
  64801. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  64802. distdir: $(DISTFILES)
  64803. $(am__remove_distdir)
  64804. - mkdir $(distdir)
  64805. - $(mkinstalldirs) $(distdir)/. $(distdir)/config $(distdir)/python
  64806. - @list='$(DISTFILES)'; for file in $$list; do \
  64807. + test -d "$(distdir)" || mkdir "$(distdir)"
  64808. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  64809. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  64810. + list='$(DISTFILES)'; \
  64811. + dist_files=`for file in $$list; do echo $$file; done | \
  64812. + sed -e "s|^$$srcdirstrip/||;t" \
  64813. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  64814. + case $$dist_files in \
  64815. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  64816. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  64817. + sort -u` ;; \
  64818. + esac; \
  64819. + for file in $$dist_files; do \
  64820. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  64821. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  64822. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  64823. - dir="/$$dir"; \
  64824. - $(mkinstalldirs) "$(distdir)$$dir"; \
  64825. - else \
  64826. - dir=''; \
  64827. - fi; \
  64828. if test -d $$d/$$file; then \
  64829. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  64830. + if test -d "$(distdir)/$$file"; then \
  64831. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  64832. + fi; \
  64833. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  64834. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  64835. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  64836. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  64837. fi; \
  64838. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  64839. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  64840. else \
  64841. - test -f $(distdir)/$$file \
  64842. - || cp -p $$d/$$file $(distdir)/$$file \
  64843. + test -f "$(distdir)/$$file" \
  64844. + || cp -p $$d/$$file "$(distdir)/$$file" \
  64845. || exit 1; \
  64846. fi; \
  64847. done
  64848. - list='$(SUBDIRS)'; for subdir in $$list; do \
  64849. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  64850. if test "$$subdir" = .; then :; else \
  64851. - test -d $(distdir)/$$subdir \
  64852. - || mkdir $(distdir)/$$subdir \
  64853. + test -d "$(distdir)/$$subdir" \
  64854. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  64855. || exit 1; \
  64856. - (cd $$subdir && \
  64857. + fi; \
  64858. + done
  64859. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  64860. + if test "$$subdir" = .; then :; else \
  64861. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  64862. + $(am__relativize); \
  64863. + new_distdir=$$reldir; \
  64864. + dir1=$$subdir; dir2="$(top_distdir)"; \
  64865. + $(am__relativize); \
  64866. + new_top_distdir=$$reldir; \
  64867. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  64868. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  64869. + ($(am__cd) $$subdir && \
  64870. $(MAKE) $(AM_MAKEFLAGS) \
  64871. - top_distdir="$(top_distdir)" \
  64872. - distdir=../$(distdir)/$$subdir \
  64873. + top_distdir="$$new_top_distdir" \
  64874. + distdir="$$new_distdir" \
  64875. + am__remove_distdir=: \
  64876. + am__skip_length_check=: \
  64877. + am__skip_mode_fix=: \
  64878. distdir) \
  64879. || exit 1; \
  64880. fi; \
  64881. done
  64882. - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  64883. + -test -n "$(am__skip_mode_fix)" \
  64884. + || find "$(distdir)" -type d ! -perm -755 \
  64885. + -exec chmod u+rwx,go+rx {} \; -o \
  64886. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  64887. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  64888. - ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
  64889. - || chmod -R a+r $(distdir)
  64890. + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  64891. + || chmod -R a+r "$(distdir)"
  64892. dist-gzip: distdir
  64893. - $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  64894. + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  64895. + $(am__remove_distdir)
  64896. +
  64897. +dist-bzip2: distdir
  64898. + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
  64899. + $(am__remove_distdir)
  64900. +
  64901. +dist-lzma: distdir
  64902. + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  64903. + $(am__remove_distdir)
  64904. +
  64905. +dist-xz: distdir
  64906. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  64907. + $(am__remove_distdir)
  64908. +
  64909. +dist-tarZ: distdir
  64910. + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  64911. + $(am__remove_distdir)
  64912. +
  64913. +dist-shar: distdir
  64914. + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
  64915. + $(am__remove_distdir)
  64916. +
  64917. +dist-zip: distdir
  64918. + -rm -f $(distdir).zip
  64919. + zip -rq $(distdir).zip $(distdir)
  64920. $(am__remove_distdir)
  64921. dist dist-all: distdir
  64922. - $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  64923. + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  64924. $(am__remove_distdir)
  64925. # This target untars the dist file and tries a VPATH configuration. Then
  64926. # it guarantees that the distribution is self-contained by making another
  64927. # tarfile.
  64928. distcheck: dist
  64929. - $(am__remove_distdir)
  64930. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
  64931. + case '$(DIST_ARCHIVES)' in \
  64932. + *.tar.gz*) \
  64933. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  64934. + *.tar.bz2*) \
  64935. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  64936. + *.tar.lzma*) \
  64937. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  64938. + *.tar.xz*) \
  64939. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  64940. + *.tar.Z*) \
  64941. + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  64942. + *.shar.gz*) \
  64943. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  64944. + *.zip*) \
  64945. + unzip $(distdir).zip ;;\
  64946. + esac
  64947. chmod -R a-w $(distdir); chmod a+w $(distdir)
  64948. - mkdir $(distdir)/=build
  64949. - mkdir $(distdir)/=inst
  64950. + mkdir $(distdir)/_build
  64951. + mkdir $(distdir)/_inst
  64952. chmod a-w $(distdir)
  64953. - dc_install_base=`$(am__cd) $(distdir)/=inst && pwd` \
  64954. - && cd $(distdir)/=build \
  64955. - && ../configure --srcdir=.. --prefix=$$dc_install_base \
  64956. + test -d $(distdir)/_build || exit 0; \
  64957. + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  64958. + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  64959. + && am__cwd=`pwd` \
  64960. + && $(am__cd) $(distdir)/_build \
  64961. + && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  64962. $(DISTCHECK_CONFIGURE_FLAGS) \
  64963. && $(MAKE) $(AM_MAKEFLAGS) \
  64964. && $(MAKE) $(AM_MAKEFLAGS) dvi \
  64965. @@ -370,23 +617,42 @@
  64966. && $(MAKE) $(AM_MAKEFLAGS) install \
  64967. && $(MAKE) $(AM_MAKEFLAGS) installcheck \
  64968. && $(MAKE) $(AM_MAKEFLAGS) uninstall \
  64969. - && (test `find $$dc_install_base -type f -print | wc -l` -le 1 \
  64970. - || { echo "ERROR: files left after uninstall:" ; \
  64971. - find $$dc_install_base -type f -print ; \
  64972. - exit 1; } >&2 ) \
  64973. - && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \
  64974. - && rm -f $(distdir).tar.gz \
  64975. - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  64976. + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
  64977. + distuninstallcheck \
  64978. + && chmod -R a-w "$$dc_install_base" \
  64979. + && ({ \
  64980. + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
  64981. + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
  64982. + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
  64983. + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
  64984. + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
  64985. + } || { rm -rf "$$dc_destdir"; exit 1; }) \
  64986. + && rm -rf "$$dc_destdir" \
  64987. + && $(MAKE) $(AM_MAKEFLAGS) dist \
  64988. + && rm -rf $(DIST_ARCHIVES) \
  64989. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  64990. + && cd "$$am__cwd" \
  64991. + || exit 1
  64992. $(am__remove_distdir)
  64993. - @echo "$(distdir).tar.gz is ready for distribution" | \
  64994. - sed 'h;s/./=/g;p;x;p;x'
  64995. + @(echo "$(distdir) archives ready for distribution: "; \
  64996. + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  64997. + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  64998. +distuninstallcheck:
  64999. + @$(am__cd) '$(distuninstallcheck_dir)' \
  65000. + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  65001. + || { echo "ERROR: files left after uninstall:" ; \
  65002. + if test -n "$(DESTDIR)"; then \
  65003. + echo " (check DESTDIR support)"; \
  65004. + fi ; \
  65005. + $(distuninstallcheck_listfiles) ; \
  65006. + exit 1; } >&2
  65007. distcleancheck: distclean
  65008. - if test '$(srcdir)' = . ; then \
  65009. + @if test '$(srcdir)' = . ; then \
  65010. echo "ERROR: distcleancheck can only run from a VPATH build" ; \
  65011. exit 1 ; \
  65012. fi
  65013. - test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
  65014. - || { echo "ERROR: files left after distclean:" ; \
  65015. + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
  65016. + || { echo "ERROR: files left in build directory after distclean:" ; \
  65017. $(distcleancheck_listfiles) ; \
  65018. exit 1; } >&2
  65019. check-am: all-am
  65020. @@ -394,8 +660,9 @@
  65021. all-am: Makefile $(SCRIPTS)
  65022. installdirs: installdirs-recursive
  65023. installdirs-am:
  65024. - $(mkinstalldirs) $(DESTDIR)$(bindir)
  65025. -
  65026. + for dir in "$(DESTDIR)$(bindir)"; do \
  65027. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  65028. + done
  65029. install: install-recursive
  65030. install-exec: install-exec-recursive
  65031. install-data: install-data-recursive
  65032. @@ -407,7 +674,7 @@
  65033. installcheck: installcheck-recursive
  65034. install-strip:
  65035. $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  65036. - INSTALL_STRIP_FLAG=-s \
  65037. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  65038. `test -z '$(STRIP)' || \
  65039. echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  65040. mostlyclean-generic:
  65041. @@ -416,7 +683,8 @@
  65042. -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
  65043. distclean-generic:
  65044. - -rm -f Makefile $(CONFIG_CLEAN_FILES)
  65045. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  65046. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  65047. maintainer-clean-generic:
  65048. @echo "This command is intended for maintainers to use"
  65049. @@ -427,6 +695,7 @@
  65050. distclean: distclean-recursive
  65051. -rm -f $(am__CONFIG_DISTCLEAN_FILES)
  65052. + -rm -f Makefile
  65053. distclean-am: clean-am distclean-generic distclean-libtool \
  65054. distclean-tags
  65055. @@ -434,49 +703,82 @@
  65056. dvi-am:
  65057. +html: html-recursive
  65058. +
  65059. +html-am:
  65060. +
  65061. info: info-recursive
  65062. info-am:
  65063. install-data-am:
  65064. +install-dvi: install-dvi-recursive
  65065. +
  65066. +install-dvi-am:
  65067. +
  65068. install-exec-am: install-binSCRIPTS
  65069. +install-html: install-html-recursive
  65070. +
  65071. +install-html-am:
  65072. +
  65073. install-info: install-info-recursive
  65074. +install-info-am:
  65075. +
  65076. install-man:
  65077. +install-pdf: install-pdf-recursive
  65078. +
  65079. +install-pdf-am:
  65080. +
  65081. +install-ps: install-ps-recursive
  65082. +
  65083. +install-ps-am:
  65084. +
  65085. installcheck-am:
  65086. maintainer-clean: maintainer-clean-recursive
  65087. -rm -f $(am__CONFIG_DISTCLEAN_FILES)
  65088. - -rm -rf autom4te.cache
  65089. + -rm -rf $(top_srcdir)/autom4te.cache
  65090. + -rm -f Makefile
  65091. maintainer-clean-am: distclean-am maintainer-clean-generic
  65092. mostlyclean: mostlyclean-recursive
  65093. mostlyclean-am: mostlyclean-generic mostlyclean-libtool
  65094. -uninstall-am: uninstall-binSCRIPTS uninstall-info-am
  65095. +pdf: pdf-recursive
  65096. +
  65097. +pdf-am:
  65098. +
  65099. +ps: ps-recursive
  65100. +
  65101. +ps-am:
  65102. -uninstall-info: uninstall-info-recursive
  65103. +uninstall-am: uninstall-binSCRIPTS
  65104. +
  65105. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
  65106. + install-am install-strip tags-recursive
  65107. +
  65108. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  65109. + all all-am am--refresh check check-am clean clean-generic \
  65110. + clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
  65111. + dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
  65112. + distcheck distclean distclean-generic distclean-libtool \
  65113. + distclean-tags distcleancheck distdir distuninstallcheck dvi \
  65114. + dvi-am html html-am info info-am install install-am \
  65115. + install-binSCRIPTS install-data install-data-am install-dvi \
  65116. + install-dvi-am install-exec install-exec-am install-html \
  65117. + install-html-am install-info install-info-am install-man \
  65118. + install-pdf install-pdf-am install-ps install-ps-am \
  65119. + install-strip installcheck installcheck-am installdirs \
  65120. + installdirs-am maintainer-clean maintainer-clean-generic \
  65121. + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
  65122. + ps ps-am tags tags-recursive uninstall uninstall-am \
  65123. + uninstall-binSCRIPTS
  65124. -.PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \
  65125. - clean-generic clean-libtool clean-recursive dist dist-all \
  65126. - dist-gzip distcheck distclean distclean-generic \
  65127. - distclean-libtool distclean-recursive distclean-tags \
  65128. - distcleancheck distdir dvi dvi-am dvi-recursive info info-am \
  65129. - info-recursive install install-am install-binSCRIPTS \
  65130. - install-data install-data-am install-data-recursive \
  65131. - install-exec install-exec-am install-exec-recursive \
  65132. - install-info install-info-am install-info-recursive install-man \
  65133. - install-recursive install-strip installcheck installcheck-am \
  65134. - installdirs installdirs-am installdirs-recursive \
  65135. - maintainer-clean maintainer-clean-generic \
  65136. - maintainer-clean-recursive mostlyclean mostlyclean-generic \
  65137. - mostlyclean-libtool mostlyclean-recursive tags tags-recursive \
  65138. - uninstall uninstall-am uninstall-binSCRIPTS uninstall-info-am \
  65139. - uninstall-info-recursive uninstall-recursive
  65140. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  65141. # Otherwise a system limit (for SysV at least) may be exceeded.
  65142. diff -Nur libdnet-1.11.orig/man/Makefile.in libdnet-1.11/man/Makefile.in
  65143. --- libdnet-1.11.orig/man/Makefile.in 2006-01-19 09:24:45.000000000 +0100
  65144. +++ libdnet-1.11/man/Makefile.in 2011-02-19 12:27:14.243562986 +0100
  65145. @@ -1,8 +1,9 @@
  65146. -# Makefile.in generated by automake 1.6.3 from Makefile.am.
  65147. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  65148. # @configure_input@
  65149. -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
  65150. -# Free Software Foundation, Inc.
  65151. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  65152. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  65153. +# Inc.
  65154. # This Makefile.in is free software; the Free Software Foundation
  65155. # gives unlimited permission to copy and/or distribute it,
  65156. # with or without modifications, as long as this notice is preserved.
  65157. @@ -13,207 +14,323 @@
  65158. # PARTICULAR PURPOSE.
  65159. @SET_MAKE@
  65160. -SHELL = @SHELL@
  65161. -
  65162. -srcdir = @srcdir@
  65163. -top_srcdir = @top_srcdir@
  65164. VPATH = @srcdir@
  65165. -prefix = @prefix@
  65166. -exec_prefix = @exec_prefix@
  65167. -
  65168. -bindir = @bindir@
  65169. -sbindir = @sbindir@
  65170. -libexecdir = @libexecdir@
  65171. -datadir = @datadir@
  65172. -sysconfdir = @sysconfdir@
  65173. -sharedstatedir = @sharedstatedir@
  65174. -localstatedir = @localstatedir@
  65175. -libdir = @libdir@
  65176. -infodir = @infodir@
  65177. -mandir = @mandir@
  65178. -includedir = @includedir@
  65179. -oldincludedir = /usr/include
  65180. pkgdatadir = $(datadir)/@PACKAGE@
  65181. -pkglibdir = $(libdir)/@PACKAGE@
  65182. pkgincludedir = $(includedir)/@PACKAGE@
  65183. -top_builddir = ..
  65184. -
  65185. -ACLOCAL = @ACLOCAL@
  65186. -AUTOCONF = @AUTOCONF@
  65187. -AUTOMAKE = @AUTOMAKE@
  65188. -AUTOHEADER = @AUTOHEADER@
  65189. -
  65190. +pkglibdir = $(libdir)/@PACKAGE@
  65191. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  65192. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  65193. -INSTALL = @INSTALL@
  65194. -INSTALL_PROGRAM = @INSTALL_PROGRAM@
  65195. -INSTALL_DATA = @INSTALL_DATA@
  65196. install_sh_DATA = $(install_sh) -c -m 644
  65197. install_sh_PROGRAM = $(install_sh) -c
  65198. install_sh_SCRIPT = $(install_sh) -c
  65199. -INSTALL_SCRIPT = @INSTALL_SCRIPT@
  65200. INSTALL_HEADER = $(INSTALL_DATA)
  65201. -transform = @program_transform_name@
  65202. +transform = $(program_transform_name)
  65203. NORMAL_INSTALL = :
  65204. PRE_INSTALL = :
  65205. POST_INSTALL = :
  65206. NORMAL_UNINSTALL = :
  65207. PRE_UNINSTALL = :
  65208. POST_UNINSTALL = :
  65209. -host_alias = @host_alias@
  65210. +build_triplet = @build@
  65211. host_triplet = @host@
  65212. -
  65213. -EXEEXT = @EXEEXT@
  65214. -OBJEXT = @OBJEXT@
  65215. -PATH_SEPARATOR = @PATH_SEPARATOR@
  65216. +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
  65217. + $(top_srcdir)/Makefile.am.common
  65218. +subdir = man
  65219. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  65220. +am__aclocal_m4_deps = $(top_srcdir)/config/acinclude.m4 \
  65221. + $(top_srcdir)/configure.in
  65222. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  65223. + $(ACLOCAL_M4)
  65224. +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
  65225. +CONFIG_HEADER = $(top_builddir)/include/config.h
  65226. +CONFIG_CLEAN_FILES =
  65227. +CONFIG_CLEAN_VPATH_FILES =
  65228. +depcomp =
  65229. +am__depfiles_maybe =
  65230. +SOURCES =
  65231. +DIST_SOURCES =
  65232. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  65233. +am__vpath_adj = case $$p in \
  65234. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  65235. + *) f=$$p;; \
  65236. + esac;
  65237. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  65238. +am__install_max = 40
  65239. +am__nobase_strip_setup = \
  65240. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  65241. +am__nobase_strip = \
  65242. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  65243. +am__nobase_list = $(am__nobase_strip_setup); \
  65244. + for p in $$list; do echo "$$p $$p"; done | \
  65245. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  65246. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  65247. + if (++n[$$2] == $(am__install_max)) \
  65248. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  65249. + END { for (dir in files) print dir, files[dir] }'
  65250. +am__base_list = \
  65251. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  65252. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  65253. +man3dir = $(mandir)/man3
  65254. +am__installdirs = "$(DESTDIR)$(man3dir)"
  65255. +NROFF = nroff
  65256. +MANS = $(man_MANS)
  65257. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  65258. +ACLOCAL = @ACLOCAL@
  65259. AMTAR = @AMTAR@
  65260. AR = @AR@
  65261. -AS = @AS@
  65262. +AUTOCONF = @AUTOCONF@
  65263. +AUTOHEADER = @AUTOHEADER@
  65264. +AUTOMAKE = @AUTOMAKE@
  65265. AWK = @AWK@
  65266. CC = @CC@
  65267. +CCDEPMODE = @CCDEPMODE@
  65268. +CFLAGS = @CFLAGS@
  65269. CHECKINC = @CHECKINC@
  65270. CHECKLIB = @CHECKLIB@
  65271. -CXX = @CXX@
  65272. -CXXCPP = @CXXCPP@
  65273. +CPP = @CPP@
  65274. +CPPFLAGS = @CPPFLAGS@
  65275. +CYGPATH_W = @CYGPATH_W@
  65276. +DEFS = @DEFS@
  65277. DEPDIR = @DEPDIR@
  65278. -DLLTOOL = @DLLTOOL@
  65279. -ECHO = @ECHO@
  65280. +DSYMUTIL = @DSYMUTIL@
  65281. +DUMPBIN = @DUMPBIN@
  65282. +ECHO_C = @ECHO_C@
  65283. +ECHO_N = @ECHO_N@
  65284. +ECHO_T = @ECHO_T@
  65285. EGREP = @EGREP@
  65286. -F77 = @F77@
  65287. -GCJ = @GCJ@
  65288. -GCJFLAGS = @GCJFLAGS@
  65289. +EXEEXT = @EXEEXT@
  65290. +FGREP = @FGREP@
  65291. +GREP = @GREP@
  65292. +INSTALL = @INSTALL@
  65293. +INSTALL_DATA = @INSTALL_DATA@
  65294. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  65295. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  65296. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  65297. +LD = @LD@
  65298. +LDFLAGS = @LDFLAGS@
  65299. +LIBOBJS = @LIBOBJS@
  65300. +LIBS = @LIBS@
  65301. LIBTOOL = @LIBTOOL@
  65302. +LIPO = @LIPO@
  65303. LN_S = @LN_S@
  65304. +LTLIBOBJS = @LTLIBOBJS@
  65305. MAINT = @MAINT@
  65306. +MAKEINFO = @MAKEINFO@
  65307. +MKDIR_P = @MKDIR_P@
  65308. +NM = @NM@
  65309. +NMEDIT = @NMEDIT@
  65310. OBJDUMP = @OBJDUMP@
  65311. +OBJEXT = @OBJEXT@
  65312. +OTOOL = @OTOOL@
  65313. +OTOOL64 = @OTOOL64@
  65314. PACKAGE = @PACKAGE@
  65315. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  65316. +PACKAGE_NAME = @PACKAGE_NAME@
  65317. +PACKAGE_STRING = @PACKAGE_STRING@
  65318. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  65319. +PACKAGE_URL = @PACKAGE_URL@
  65320. +PACKAGE_VERSION = @PACKAGE_VERSION@
  65321. +PATH_SEPARATOR = @PATH_SEPARATOR@
  65322. PYTHON = @PYTHON@
  65323. RANLIB = @RANLIB@
  65324. -RC = @RC@
  65325. +SED = @SED@
  65326. +SET_MAKE = @SET_MAKE@
  65327. +SHELL = @SHELL@
  65328. STRIP = @STRIP@
  65329. TCLINC = @TCLINC@
  65330. TCLLIB = @TCLLIB@
  65331. VERSION = @VERSION@
  65332. +abs_builddir = @abs_builddir@
  65333. +abs_srcdir = @abs_srcdir@
  65334. +abs_top_builddir = @abs_top_builddir@
  65335. +abs_top_srcdir = @abs_top_srcdir@
  65336. ac_aux_dir = @ac_aux_dir@
  65337. +ac_ct_CC = @ac_ct_CC@
  65338. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  65339. am__include = @am__include@
  65340. +am__leading_dot = @am__leading_dot@
  65341. am__quote = @am__quote@
  65342. +am__tar = @am__tar@
  65343. +am__untar = @am__untar@
  65344. +bindir = @bindir@
  65345. +build = @build@
  65346. +build_alias = @build_alias@
  65347. +build_cpu = @build_cpu@
  65348. +build_os = @build_os@
  65349. +build_vendor = @build_vendor@
  65350. +builddir = @builddir@
  65351. +datadir = @datadir@
  65352. +datarootdir = @datarootdir@
  65353. +docdir = @docdir@
  65354. +dvidir = @dvidir@
  65355. +exec_prefix = @exec_prefix@
  65356. +host = @host@
  65357. +host_alias = @host_alias@
  65358. +host_cpu = @host_cpu@
  65359. +host_os = @host_os@
  65360. +host_vendor = @host_vendor@
  65361. +htmldir = @htmldir@
  65362. +includedir = @includedir@
  65363. +infodir = @infodir@
  65364. install_sh = @install_sh@
  65365. -
  65366. +libdir = @libdir@
  65367. +libexecdir = @libexecdir@
  65368. +localedir = @localedir@
  65369. +localstatedir = @localstatedir@
  65370. +lt_ECHO = @lt_ECHO@
  65371. +mandir = @mandir@
  65372. +mkdir_p = @mkdir_p@
  65373. +oldincludedir = @oldincludedir@
  65374. +pdfdir = @pdfdir@
  65375. +prefix = @prefix@
  65376. +program_transform_name = @program_transform_name@
  65377. +psdir = @psdir@
  65378. +sbindir = @sbindir@
  65379. +sharedstatedir = @sharedstatedir@
  65380. +srcdir = @srcdir@
  65381. +sysconfdir = @sysconfdir@
  65382. +target_alias = @target_alias@
  65383. +top_build_prefix = @top_build_prefix@
  65384. +top_builddir = @top_builddir@
  65385. +top_srcdir = @top_srcdir@
  65386. AUTOMAKE_OPTIONS = foreign no-dependencies
  65387. -
  65388. AM_CPPFLAGS = -I$(top_srcdir)/include
  65389. -
  65390. man_MANS = dnet.3
  65391. -
  65392. EXTRA_DIST = $(man_MANS)
  65393. -subdir = man
  65394. -mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
  65395. -CONFIG_HEADER = $(top_builddir)/include/config.h
  65396. -CONFIG_CLEAN_FILES =
  65397. -depcomp =
  65398. -am__depfiles_maybe =
  65399. -DIST_SOURCES =
  65400. -
  65401. -NROFF = nroff
  65402. -MANS = $(man_MANS)
  65403. -DIST_COMMON = Makefile.am Makefile.in
  65404. all: all-am
  65405. .SUFFIXES:
  65406. -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/Makefile.am.common $(top_srcdir)/configure.in $(ACLOCAL_M4)
  65407. - cd $(top_srcdir) && \
  65408. - $(AUTOMAKE) --foreign man/Makefile
  65409. -Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
  65410. - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
  65411. +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.common $(am__configure_deps)
  65412. + @for dep in $?; do \
  65413. + case '$(am__configure_deps)' in \
  65414. + *$$dep*) \
  65415. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  65416. + && { if test -f $@; then exit 0; else break; fi; }; \
  65417. + exit 1;; \
  65418. + esac; \
  65419. + done; \
  65420. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign man/Makefile'; \
  65421. + $(am__cd) $(top_srcdir) && \
  65422. + $(AUTOMAKE) --foreign man/Makefile
  65423. +.PRECIOUS: Makefile
  65424. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  65425. + @case '$?' in \
  65426. + *config.status*) \
  65427. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  65428. + *) \
  65429. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  65430. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  65431. + esac;
  65432. +
  65433. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  65434. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  65435. +
  65436. +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  65437. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  65438. +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  65439. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  65440. +$(am__aclocal_m4_deps):
  65441. mostlyclean-libtool:
  65442. -rm -f *.lo
  65443. clean-libtool:
  65444. -rm -rf .libs _libs
  65445. -
  65446. -distclean-libtool:
  65447. - -rm -f libtool
  65448. -uninstall-info-am:
  65449. -
  65450. -man3dir = $(mandir)/man3
  65451. -install-man3: $(man3_MANS) $(man_MANS)
  65452. +install-man3: $(man_MANS)
  65453. @$(NORMAL_INSTALL)
  65454. - $(mkinstalldirs) $(DESTDIR)$(man3dir)
  65455. - @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
  65456. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  65457. - for i in $$l2; do \
  65458. - case "$$i" in \
  65459. - *.3*) list="$$list $$i" ;; \
  65460. - esac; \
  65461. + test -z "$(man3dir)" || $(MKDIR_P) "$(DESTDIR)$(man3dir)"
  65462. + @list=''; test -n "$(man3dir)" || exit 0; \
  65463. + { for i in $$list; do echo "$$i"; done; \
  65464. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  65465. + sed -n '/\.3[a-z]*$$/p'; \
  65466. + } | while read p; do \
  65467. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  65468. + echo "$$d$$p"; echo "$$p"; \
  65469. + done | \
  65470. + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \
  65471. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
  65472. + sed 'N;N;s,\n, ,g' | { \
  65473. + list=; while read file base inst; do \
  65474. + if test "$$base" = "$$inst"; then list="$$list $$file"; else \
  65475. + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
  65476. + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst" || exit $$?; \
  65477. + fi; \
  65478. done; \
  65479. - for i in $$list; do \
  65480. - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
  65481. - else file=$$i; fi; \
  65482. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  65483. - case "$$ext" in \
  65484. - 3*) ;; \
  65485. - *) ext='3' ;; \
  65486. - esac; \
  65487. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  65488. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  65489. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  65490. - echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man3dir)/$$inst"; \
  65491. - $(INSTALL_DATA) $$file $(DESTDIR)$(man3dir)/$$inst; \
  65492. - done
  65493. + for i in $$list; do echo "$$i"; done | $(am__base_list) | \
  65494. + while read files; do \
  65495. + test -z "$$files" || { \
  65496. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man3dir)'"; \
  65497. + $(INSTALL_DATA) $$files "$(DESTDIR)$(man3dir)" || exit $$?; }; \
  65498. + done; }
  65499. +
  65500. uninstall-man3:
  65501. @$(NORMAL_UNINSTALL)
  65502. - @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
  65503. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  65504. - for i in $$l2; do \
  65505. - case "$$i" in \
  65506. - *.3*) list="$$list $$i" ;; \
  65507. - esac; \
  65508. - done; \
  65509. - for i in $$list; do \
  65510. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  65511. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  65512. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  65513. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  65514. - echo " rm -f $(DESTDIR)$(man3dir)/$$inst"; \
  65515. - rm -f $(DESTDIR)$(man3dir)/$$inst; \
  65516. - done
  65517. + @list=''; test -n "$(man3dir)" || exit 0; \
  65518. + files=`{ for i in $$list; do echo "$$i"; done; \
  65519. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  65520. + sed -n '/\.3[a-z]*$$/p'; \
  65521. + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \
  65522. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
  65523. + test -z "$$files" || { \
  65524. + echo " ( cd '$(DESTDIR)$(man3dir)' && rm -f" $$files ")"; \
  65525. + cd "$(DESTDIR)$(man3dir)" && rm -f $$files; }
  65526. tags: TAGS
  65527. TAGS:
  65528. -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  65529. +ctags: CTAGS
  65530. +CTAGS:
  65531. -top_distdir = ..
  65532. -distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
  65533. distdir: $(DISTFILES)
  65534. - @list='$(DISTFILES)'; for file in $$list; do \
  65535. + @list='$(MANS)'; if test -n "$$list"; then \
  65536. + list=`for p in $$list; do \
  65537. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  65538. + if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
  65539. + if test -n "$$list" && \
  65540. + grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
  65541. + echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
  65542. + grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
  65543. + echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
  65544. + echo " typically \`make maintainer-clean' will remove them" >&2; \
  65545. + exit 1; \
  65546. + else :; fi; \
  65547. + else :; fi
  65548. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  65549. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  65550. + list='$(DISTFILES)'; \
  65551. + dist_files=`for file in $$list; do echo $$file; done | \
  65552. + sed -e "s|^$$srcdirstrip/||;t" \
  65553. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  65554. + case $$dist_files in \
  65555. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  65556. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  65557. + sort -u` ;; \
  65558. + esac; \
  65559. + for file in $$dist_files; do \
  65560. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  65561. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  65562. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  65563. - dir="/$$dir"; \
  65564. - $(mkinstalldirs) "$(distdir)$$dir"; \
  65565. - else \
  65566. - dir=''; \
  65567. - fi; \
  65568. if test -d $$d/$$file; then \
  65569. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  65570. + if test -d "$(distdir)/$$file"; then \
  65571. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  65572. + fi; \
  65573. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  65574. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  65575. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  65576. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  65577. fi; \
  65578. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  65579. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  65580. else \
  65581. - test -f $(distdir)/$$file \
  65582. - || cp -p $$d/$$file $(distdir)/$$file \
  65583. + test -f "$(distdir)/$$file" \
  65584. + || cp -p $$d/$$file "$(distdir)/$$file" \
  65585. || exit 1; \
  65586. fi; \
  65587. done
  65588. check-am: all-am
  65589. check: check-am
  65590. all-am: Makefile $(MANS)
  65591. -
  65592. installdirs:
  65593. - $(mkinstalldirs) $(DESTDIR)$(man3dir)
  65594. -
  65595. + for dir in "$(DESTDIR)$(man3dir)"; do \
  65596. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  65597. + done
  65598. install: install-am
  65599. install-exec: install-exec-am
  65600. install-data: install-data-am
  65601. @@ -225,7 +342,7 @@
  65602. installcheck: installcheck-am
  65603. install-strip:
  65604. $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  65605. - INSTALL_STRIP_FLAG=-s \
  65606. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  65607. `test -z '$(STRIP)' || \
  65608. echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  65609. mostlyclean-generic:
  65610. @@ -233,7 +350,8 @@
  65611. clean-generic:
  65612. distclean-generic:
  65613. - -rm -f Makefile $(CONFIG_CLEAN_FILES)
  65614. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  65615. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  65616. maintainer-clean-generic:
  65617. @echo "This command is intended for maintainers to use"
  65618. @@ -243,52 +361,87 @@
  65619. clean-am: clean-generic clean-libtool mostlyclean-am
  65620. distclean: distclean-am
  65621. -
  65622. -distclean-am: clean-am distclean-generic distclean-libtool
  65623. + -rm -f Makefile
  65624. +distclean-am: clean-am distclean-generic
  65625. dvi: dvi-am
  65626. dvi-am:
  65627. +html: html-am
  65628. +
  65629. +html-am:
  65630. +
  65631. info: info-am
  65632. info-am:
  65633. install-data-am: install-man
  65634. +install-dvi: install-dvi-am
  65635. +
  65636. +install-dvi-am:
  65637. +
  65638. install-exec-am:
  65639. +install-html: install-html-am
  65640. +
  65641. +install-html-am:
  65642. +
  65643. install-info: install-info-am
  65644. +install-info-am:
  65645. +
  65646. install-man: install-man3
  65647. +install-pdf: install-pdf-am
  65648. +
  65649. +install-pdf-am:
  65650. +
  65651. +install-ps: install-ps-am
  65652. +
  65653. +install-ps-am:
  65654. +
  65655. installcheck-am:
  65656. maintainer-clean: maintainer-clean-am
  65657. -
  65658. + -rm -f Makefile
  65659. maintainer-clean-am: distclean-am maintainer-clean-generic
  65660. mostlyclean: mostlyclean-am
  65661. mostlyclean-am: mostlyclean-generic mostlyclean-libtool
  65662. -uninstall-am: uninstall-info-am uninstall-man
  65663. +pdf: pdf-am
  65664. +
  65665. +pdf-am:
  65666. +
  65667. +ps: ps-am
  65668. +
  65669. +ps-am:
  65670. +
  65671. +uninstall-am: uninstall-man
  65672. uninstall-man: uninstall-man3
  65673. +.MAKE: install-am install-strip
  65674. +
  65675. .PHONY: all all-am check check-am clean clean-generic clean-libtool \
  65676. distclean distclean-generic distclean-libtool distdir dvi \
  65677. - dvi-am info info-am install install-am install-data \
  65678. - install-data-am install-exec install-exec-am install-info \
  65679. - install-info-am install-man install-man3 install-strip \
  65680. - installcheck installcheck-am installdirs maintainer-clean \
  65681. - maintainer-clean-generic mostlyclean mostlyclean-generic \
  65682. - mostlyclean-libtool uninstall uninstall-am uninstall-info-am \
  65683. - uninstall-man uninstall-man3
  65684. + dvi-am html html-am info info-am install install-am \
  65685. + install-data install-data-am install-dvi install-dvi-am \
  65686. + install-exec install-exec-am install-html install-html-am \
  65687. + install-info install-info-am install-man install-man3 \
  65688. + install-pdf install-pdf-am install-ps install-ps-am \
  65689. + install-strip installcheck installcheck-am installdirs \
  65690. + maintainer-clean maintainer-clean-generic mostlyclean \
  65691. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  65692. + uninstall uninstall-am uninstall-man uninstall-man3
  65693. dnet.3.txt: dnet.3
  65694. groff -t -e -mdoc -Tascii dnet.3 | col -bx > $@
  65695. +
  65696. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  65697. # Otherwise a system limit (for SysV at least) may be exceeded.
  65698. .NOEXPORT:
  65699. diff -Nur libdnet-1.11.orig/python/Makefile.in libdnet-1.11/python/Makefile.in
  65700. --- libdnet-1.11.orig/python/Makefile.in 2006-01-19 09:24:45.000000000 +0100
  65701. +++ libdnet-1.11/python/Makefile.in 2011-02-19 12:27:14.283562840 +0100
  65702. @@ -1,8 +1,9 @@
  65703. -# Makefile.in generated by automake 1.6.3 from Makefile.am.
  65704. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  65705. # @configure_input@
  65706. -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
  65707. -# Free Software Foundation, Inc.
  65708. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  65709. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  65710. +# Inc.
  65711. # This Makefile.in is free software; the Free Software Foundation
  65712. # gives unlimited permission to copy and/or distribute it,
  65713. # with or without modifications, as long as this notice is preserved.
  65714. @@ -13,124 +14,206 @@
  65715. # PARTICULAR PURPOSE.
  65716. @SET_MAKE@
  65717. -SHELL = @SHELL@
  65718. -srcdir = @srcdir@
  65719. -top_srcdir = @top_srcdir@
  65720. VPATH = @srcdir@
  65721. -prefix = @prefix@
  65722. -exec_prefix = @exec_prefix@
  65723. -
  65724. -bindir = @bindir@
  65725. -sbindir = @sbindir@
  65726. -libexecdir = @libexecdir@
  65727. -datadir = @datadir@
  65728. -sysconfdir = @sysconfdir@
  65729. -sharedstatedir = @sharedstatedir@
  65730. -localstatedir = @localstatedir@
  65731. -libdir = @libdir@
  65732. -infodir = @infodir@
  65733. -mandir = @mandir@
  65734. -includedir = @includedir@
  65735. -oldincludedir = /usr/include
  65736. pkgdatadir = $(datadir)/@PACKAGE@
  65737. -pkglibdir = $(libdir)/@PACKAGE@
  65738. pkgincludedir = $(includedir)/@PACKAGE@
  65739. -top_builddir = ..
  65740. -
  65741. -ACLOCAL = @ACLOCAL@
  65742. -AUTOCONF = @AUTOCONF@
  65743. -AUTOMAKE = @AUTOMAKE@
  65744. -AUTOHEADER = @AUTOHEADER@
  65745. -
  65746. +pkglibdir = $(libdir)/@PACKAGE@
  65747. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  65748. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  65749. -INSTALL = @INSTALL@
  65750. -INSTALL_PROGRAM = @INSTALL_PROGRAM@
  65751. -INSTALL_DATA = @INSTALL_DATA@
  65752. install_sh_DATA = $(install_sh) -c -m 644
  65753. install_sh_PROGRAM = $(install_sh) -c
  65754. install_sh_SCRIPT = $(install_sh) -c
  65755. -INSTALL_SCRIPT = @INSTALL_SCRIPT@
  65756. INSTALL_HEADER = $(INSTALL_DATA)
  65757. -transform = @program_transform_name@
  65758. +transform = $(program_transform_name)
  65759. NORMAL_INSTALL = :
  65760. PRE_INSTALL = :
  65761. POST_INSTALL = :
  65762. NORMAL_UNINSTALL = :
  65763. PRE_UNINSTALL = :
  65764. POST_UNINSTALL = :
  65765. -host_alias = @host_alias@
  65766. +build_triplet = @build@
  65767. host_triplet = @host@
  65768. -
  65769. -EXEEXT = @EXEEXT@
  65770. -OBJEXT = @OBJEXT@
  65771. -PATH_SEPARATOR = @PATH_SEPARATOR@
  65772. +DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
  65773. + $(srcdir)/setup.py.in $(top_srcdir)/Makefile.am.common
  65774. +subdir = python
  65775. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  65776. +am__aclocal_m4_deps = $(top_srcdir)/config/acinclude.m4 \
  65777. + $(top_srcdir)/configure.in
  65778. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  65779. + $(ACLOCAL_M4)
  65780. +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
  65781. +CONFIG_HEADER = $(top_builddir)/include/config.h
  65782. +CONFIG_CLEAN_FILES = setup.py
  65783. +CONFIG_CLEAN_VPATH_FILES =
  65784. +SCRIPTS = $(noinst_SCRIPTS)
  65785. +depcomp =
  65786. +am__depfiles_maybe =
  65787. +SOURCES =
  65788. +DIST_SOURCES =
  65789. +am__tty_colors = \
  65790. +red=; grn=; lgn=; blu=; std=
  65791. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  65792. +ACLOCAL = @ACLOCAL@
  65793. AMTAR = @AMTAR@
  65794. AR = @AR@
  65795. -AS = @AS@
  65796. +AUTOCONF = @AUTOCONF@
  65797. +AUTOHEADER = @AUTOHEADER@
  65798. +AUTOMAKE = @AUTOMAKE@
  65799. AWK = @AWK@
  65800. CC = @CC@
  65801. +CCDEPMODE = @CCDEPMODE@
  65802. +CFLAGS = @CFLAGS@
  65803. CHECKINC = @CHECKINC@
  65804. CHECKLIB = @CHECKLIB@
  65805. -CXX = @CXX@
  65806. -CXXCPP = @CXXCPP@
  65807. +CPP = @CPP@
  65808. +CPPFLAGS = @CPPFLAGS@
  65809. +CYGPATH_W = @CYGPATH_W@
  65810. +DEFS = @DEFS@
  65811. DEPDIR = @DEPDIR@
  65812. -DLLTOOL = @DLLTOOL@
  65813. -ECHO = @ECHO@
  65814. +DSYMUTIL = @DSYMUTIL@
  65815. +DUMPBIN = @DUMPBIN@
  65816. +ECHO_C = @ECHO_C@
  65817. +ECHO_N = @ECHO_N@
  65818. +ECHO_T = @ECHO_T@
  65819. EGREP = @EGREP@
  65820. -F77 = @F77@
  65821. -GCJ = @GCJ@
  65822. -GCJFLAGS = @GCJFLAGS@
  65823. +EXEEXT = @EXEEXT@
  65824. +FGREP = @FGREP@
  65825. +GREP = @GREP@
  65826. +INSTALL = @INSTALL@
  65827. +INSTALL_DATA = @INSTALL_DATA@
  65828. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  65829. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  65830. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  65831. +LD = @LD@
  65832. +LDFLAGS = @LDFLAGS@
  65833. +LIBOBJS = @LIBOBJS@
  65834. +LIBS = @LIBS@
  65835. LIBTOOL = @LIBTOOL@
  65836. +LIPO = @LIPO@
  65837. LN_S = @LN_S@
  65838. +LTLIBOBJS = @LTLIBOBJS@
  65839. MAINT = @MAINT@
  65840. +MAKEINFO = @MAKEINFO@
  65841. +MKDIR_P = @MKDIR_P@
  65842. +NM = @NM@
  65843. +NMEDIT = @NMEDIT@
  65844. OBJDUMP = @OBJDUMP@
  65845. +OBJEXT = @OBJEXT@
  65846. +OTOOL = @OTOOL@
  65847. +OTOOL64 = @OTOOL64@
  65848. PACKAGE = @PACKAGE@
  65849. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  65850. +PACKAGE_NAME = @PACKAGE_NAME@
  65851. +PACKAGE_STRING = @PACKAGE_STRING@
  65852. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  65853. +PACKAGE_URL = @PACKAGE_URL@
  65854. +PACKAGE_VERSION = @PACKAGE_VERSION@
  65855. +PATH_SEPARATOR = @PATH_SEPARATOR@
  65856. PYTHON = @PYTHON@
  65857. RANLIB = @RANLIB@
  65858. -RC = @RC@
  65859. +SED = @SED@
  65860. +SET_MAKE = @SET_MAKE@
  65861. +SHELL = @SHELL@
  65862. STRIP = @STRIP@
  65863. TCLINC = @TCLINC@
  65864. TCLLIB = @TCLLIB@
  65865. VERSION = @VERSION@
  65866. +abs_builddir = @abs_builddir@
  65867. +abs_srcdir = @abs_srcdir@
  65868. +abs_top_builddir = @abs_top_builddir@
  65869. +abs_top_srcdir = @abs_top_srcdir@
  65870. ac_aux_dir = @ac_aux_dir@
  65871. +ac_ct_CC = @ac_ct_CC@
  65872. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  65873. am__include = @am__include@
  65874. +am__leading_dot = @am__leading_dot@
  65875. am__quote = @am__quote@
  65876. +am__tar = @am__tar@
  65877. +am__untar = @am__untar@
  65878. +bindir = @bindir@
  65879. +build = @build@
  65880. +build_alias = @build_alias@
  65881. +build_cpu = @build_cpu@
  65882. +build_os = @build_os@
  65883. +build_vendor = @build_vendor@
  65884. +builddir = @builddir@
  65885. +datadir = @datadir@
  65886. +datarootdir = @datarootdir@
  65887. +docdir = @docdir@
  65888. +dvidir = @dvidir@
  65889. +exec_prefix = @exec_prefix@
  65890. +host = @host@
  65891. +host_alias = @host_alias@
  65892. +host_cpu = @host_cpu@
  65893. +host_os = @host_os@
  65894. +host_vendor = @host_vendor@
  65895. +htmldir = @htmldir@
  65896. +includedir = @includedir@
  65897. +infodir = @infodir@
  65898. install_sh = @install_sh@
  65899. -
  65900. +libdir = @libdir@
  65901. +libexecdir = @libexecdir@
  65902. +localedir = @localedir@
  65903. +localstatedir = @localstatedir@
  65904. +lt_ECHO = @lt_ECHO@
  65905. +mandir = @mandir@
  65906. +mkdir_p = @mkdir_p@
  65907. +oldincludedir = @oldincludedir@
  65908. +pdfdir = @pdfdir@
  65909. +prefix = @prefix@
  65910. +program_transform_name = @program_transform_name@
  65911. +psdir = @psdir@
  65912. +sbindir = @sbindir@
  65913. +sharedstatedir = @sharedstatedir@
  65914. +srcdir = @srcdir@
  65915. +sysconfdir = @sysconfdir@
  65916. +target_alias = @target_alias@
  65917. +top_build_prefix = @top_build_prefix@
  65918. +top_builddir = @top_builddir@
  65919. +top_srcdir = @top_srcdir@
  65920. AUTOMAKE_OPTIONS = foreign no-dependencies
  65921. -
  65922. AM_CPPFLAGS = -I$(top_srcdir)/include
  65923. -
  65924. # XXX - nasty automake fudging here...
  65925. @PYTHON_TRUE@noinst_SCRIPTS = python-build
  65926. -
  65927. @PYTHON_TRUE@TESTS = test.py
  65928. -
  65929. EXTRA_DIST = dnet.pyx dnet.c setup.py.in test.py
  65930. -
  65931. DISTCLEANFILES = *~
  65932. -subdir = python
  65933. -mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
  65934. -CONFIG_HEADER = $(top_builddir)/include/config.h
  65935. -CONFIG_CLEAN_FILES = setup.py
  65936. -SCRIPTS = $(noinst_SCRIPTS)
  65937. -
  65938. -depcomp =
  65939. -am__depfiles_maybe =
  65940. -DIST_SOURCES =
  65941. -DIST_COMMON = README Makefile.am Makefile.in setup.py.in
  65942. all: all-am
  65943. .SUFFIXES:
  65944. -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/Makefile.am.common $(top_srcdir)/configure.in $(ACLOCAL_M4)
  65945. - cd $(top_srcdir) && \
  65946. - $(AUTOMAKE) --foreign python/Makefile
  65947. -Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
  65948. - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
  65949. -setup.py: $(top_builddir)/config.status setup.py.in
  65950. +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.common $(am__configure_deps)
  65951. + @for dep in $?; do \
  65952. + case '$(am__configure_deps)' in \
  65953. + *$$dep*) \
  65954. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  65955. + && { if test -f $@; then exit 0; else break; fi; }; \
  65956. + exit 1;; \
  65957. + esac; \
  65958. + done; \
  65959. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign python/Makefile'; \
  65960. + $(am__cd) $(top_srcdir) && \
  65961. + $(AUTOMAKE) --foreign python/Makefile
  65962. +.PRECIOUS: Makefile
  65963. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  65964. + @case '$?' in \
  65965. + *config.status*) \
  65966. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  65967. + *) \
  65968. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  65969. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  65970. + esac;
  65971. +
  65972. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  65973. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  65974. +
  65975. +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  65976. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  65977. +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  65978. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  65979. +$(am__aclocal_m4_deps):
  65980. +setup.py: $(top_builddir)/config.status $(srcdir)/setup.py.in
  65981. cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
  65982. mostlyclean-libtool:
  65983. @@ -138,18 +221,18 @@
  65984. clean-libtool:
  65985. -rm -rf .libs _libs
  65986. -
  65987. -distclean-libtool:
  65988. - -rm -f libtool
  65989. -uninstall-info-am:
  65990. tags: TAGS
  65991. TAGS:
  65992. +ctags: CTAGS
  65993. +CTAGS:
  65994. +
  65995. check-TESTS: $(TESTS)
  65996. - @failed=0; all=0; xfail=0; xpass=0; \
  65997. + @failed=0; all=0; xfail=0; xpass=0; skip=0; \
  65998. srcdir=$(srcdir); export srcdir; \
  65999. - list='$(TESTS)'; \
  66000. + list=' $(TESTS) '; \
  66001. + $(am__tty_colors); \
  66002. if test -n "$$list"; then \
  66003. for tst in $$list; do \
  66004. if test -f ./$$tst; then dir=./; \
  66005. @@ -158,71 +241,112 @@
  66006. if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
  66007. all=`expr $$all + 1`; \
  66008. case " $(XFAIL_TESTS) " in \
  66009. - *" $$tst "*) \
  66010. - xpass=`expr $$xpass + 1`; \
  66011. - failed=`expr $$failed + 1`; \
  66012. - echo "XPASS: $$tst"; \
  66013. + *[\ \ ]$$tst[\ \ ]*) \
  66014. + xpass=`expr $$xpass + 1`; \
  66015. + failed=`expr $$failed + 1`; \
  66016. + col=$$red; res=XPASS; \
  66017. ;; \
  66018. *) \
  66019. - echo "PASS: $$tst"; \
  66020. + col=$$grn; res=PASS; \
  66021. ;; \
  66022. esac; \
  66023. elif test $$? -ne 77; then \
  66024. all=`expr $$all + 1`; \
  66025. case " $(XFAIL_TESTS) " in \
  66026. - *" $$tst "*) \
  66027. - xfail=`expr $$xfail + 1`; \
  66028. - echo "XFAIL: $$tst"; \
  66029. + *[\ \ ]$$tst[\ \ ]*) \
  66030. + xfail=`expr $$xfail + 1`; \
  66031. + col=$$lgn; res=XFAIL; \
  66032. ;; \
  66033. *) \
  66034. - failed=`expr $$failed + 1`; \
  66035. - echo "FAIL: $$tst"; \
  66036. + failed=`expr $$failed + 1`; \
  66037. + col=$$red; res=FAIL; \
  66038. ;; \
  66039. esac; \
  66040. + else \
  66041. + skip=`expr $$skip + 1`; \
  66042. + col=$$blu; res=SKIP; \
  66043. fi; \
  66044. + echo "$${col}$$res$${std}: $$tst"; \
  66045. done; \
  66046. + if test "$$all" -eq 1; then \
  66047. + tests="test"; \
  66048. + All=""; \
  66049. + else \
  66050. + tests="tests"; \
  66051. + All="All "; \
  66052. + fi; \
  66053. if test "$$failed" -eq 0; then \
  66054. if test "$$xfail" -eq 0; then \
  66055. - banner="All $$all tests passed"; \
  66056. + banner="$$All$$all $$tests passed"; \
  66057. else \
  66058. - banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
  66059. + if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
  66060. + banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
  66061. fi; \
  66062. else \
  66063. if test "$$xpass" -eq 0; then \
  66064. - banner="$$failed of $$all tests failed"; \
  66065. + banner="$$failed of $$all $$tests failed"; \
  66066. + else \
  66067. + if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
  66068. + banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
  66069. + fi; \
  66070. + fi; \
  66071. + dashes="$$banner"; \
  66072. + skipped=""; \
  66073. + if test "$$skip" -ne 0; then \
  66074. + if test "$$skip" -eq 1; then \
  66075. + skipped="($$skip test was not run)"; \
  66076. else \
  66077. - banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
  66078. + skipped="($$skip tests were not run)"; \
  66079. fi; \
  66080. + test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
  66081. + dashes="$$skipped"; \
  66082. + fi; \
  66083. + report=""; \
  66084. + if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
  66085. + report="Please report to $(PACKAGE_BUGREPORT)"; \
  66086. + test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
  66087. + dashes="$$report"; \
  66088. + fi; \
  66089. + dashes=`echo "$$dashes" | sed s/./=/g`; \
  66090. + if test "$$failed" -eq 0; then \
  66091. + echo "$$grn$$dashes"; \
  66092. + else \
  66093. + echo "$$red$$dashes"; \
  66094. fi; \
  66095. - dashes=`echo "$$banner" | sed s/./=/g`; \
  66096. - echo "$$dashes"; \
  66097. echo "$$banner"; \
  66098. - echo "$$dashes"; \
  66099. + test -z "$$skipped" || echo "$$skipped"; \
  66100. + test -z "$$report" || echo "$$report"; \
  66101. + echo "$$dashes$$std"; \
  66102. test "$$failed" -eq 0; \
  66103. else :; fi
  66104. -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  66105. -
  66106. -top_distdir = ..
  66107. -distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
  66108. distdir: $(DISTFILES)
  66109. - @list='$(DISTFILES)'; for file in $$list; do \
  66110. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  66111. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  66112. + list='$(DISTFILES)'; \
  66113. + dist_files=`for file in $$list; do echo $$file; done | \
  66114. + sed -e "s|^$$srcdirstrip/||;t" \
  66115. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  66116. + case $$dist_files in \
  66117. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  66118. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  66119. + sort -u` ;; \
  66120. + esac; \
  66121. + for file in $$dist_files; do \
  66122. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  66123. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  66124. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  66125. - dir="/$$dir"; \
  66126. - $(mkinstalldirs) "$(distdir)$$dir"; \
  66127. - else \
  66128. - dir=''; \
  66129. - fi; \
  66130. if test -d $$d/$$file; then \
  66131. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  66132. + if test -d "$(distdir)/$$file"; then \
  66133. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  66134. + fi; \
  66135. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  66136. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  66137. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  66138. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  66139. fi; \
  66140. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  66141. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  66142. else \
  66143. - test -f $(distdir)/$$file \
  66144. - || cp -p $$d/$$file $(distdir)/$$file \
  66145. + test -f "$(distdir)/$$file" \
  66146. + || cp -p $$d/$$file "$(distdir)/$$file" \
  66147. || exit 1; \
  66148. fi; \
  66149. done
  66150. @@ -230,9 +354,7 @@
  66151. $(MAKE) $(AM_MAKEFLAGS) check-TESTS
  66152. check: check-am
  66153. all-am: Makefile $(SCRIPTS)
  66154. -
  66155. installdirs:
  66156. -
  66157. install: install-am
  66158. install-exec: install-exec-am
  66159. install-data: install-data-am
  66160. @@ -244,7 +366,7 @@
  66161. installcheck: installcheck-am
  66162. install-strip:
  66163. $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  66164. - INSTALL_STRIP_FLAG=-s \
  66165. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  66166. `test -z '$(STRIP)' || \
  66167. echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  66168. mostlyclean-generic:
  66169. @@ -252,56 +374,92 @@
  66170. clean-generic:
  66171. distclean-generic:
  66172. - -rm -f Makefile $(CONFIG_CLEAN_FILES)
  66173. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  66174. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  66175. -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
  66176. maintainer-clean-generic:
  66177. @echo "This command is intended for maintainers to use"
  66178. @echo "it deletes files that may require special tools to rebuild."
  66179. -clean: clean-am
  66180. +@PYTHON_FALSE@clean: clean-am
  66181. clean-am: clean-generic clean-libtool mostlyclean-am
  66182. -distclean: distclean-am
  66183. -
  66184. -distclean-am: clean-am distclean-generic distclean-libtool
  66185. +@PYTHON_FALSE@distclean: distclean-am
  66186. + -rm -f Makefile
  66187. +distclean-am: clean-am distclean-generic
  66188. dvi: dvi-am
  66189. dvi-am:
  66190. +html: html-am
  66191. +
  66192. +html-am:
  66193. +
  66194. info: info-am
  66195. info-am:
  66196. install-data-am:
  66197. +install-dvi: install-dvi-am
  66198. +
  66199. +install-dvi-am:
  66200. +
  66201. install-exec-am: install-exec-local
  66202. +install-html: install-html-am
  66203. +
  66204. +install-html-am:
  66205. +
  66206. install-info: install-info-am
  66207. +install-info-am:
  66208. +
  66209. install-man:
  66210. +install-pdf: install-pdf-am
  66211. +
  66212. +install-pdf-am:
  66213. +
  66214. +install-ps: install-ps-am
  66215. +
  66216. +install-ps-am:
  66217. +
  66218. installcheck-am:
  66219. maintainer-clean: maintainer-clean-am
  66220. -
  66221. + -rm -f Makefile
  66222. maintainer-clean-am: distclean-am maintainer-clean-generic
  66223. mostlyclean: mostlyclean-am
  66224. mostlyclean-am: mostlyclean-generic mostlyclean-libtool
  66225. -uninstall-am: uninstall-info-am
  66226. +pdf: pdf-am
  66227. +
  66228. +pdf-am:
  66229. +
  66230. +ps: ps-am
  66231. +
  66232. +ps-am:
  66233. +
  66234. +uninstall-am:
  66235. +
  66236. +.MAKE: check-am install-am install-strip
  66237. .PHONY: all all-am check check-TESTS check-am clean clean-generic \
  66238. clean-libtool distclean distclean-generic distclean-libtool \
  66239. - distdir dvi dvi-am info info-am install install-am install-data \
  66240. - install-data-am install-exec install-exec-am install-exec-local \
  66241. - install-info install-info-am install-man install-strip \
  66242. - installcheck installcheck-am installdirs maintainer-clean \
  66243. - maintainer-clean-generic mostlyclean mostlyclean-generic \
  66244. - mostlyclean-libtool uninstall uninstall-am uninstall-info-am
  66245. + distdir dvi dvi-am html html-am info info-am install \
  66246. + install-am install-data install-data-am install-dvi \
  66247. + install-dvi-am install-exec install-exec-am install-exec-local \
  66248. + install-html install-html-am install-info install-info-am \
  66249. + install-man install-pdf install-pdf-am install-ps \
  66250. + install-ps-am install-strip installcheck installcheck-am \
  66251. + installdirs maintainer-clean maintainer-clean-generic \
  66252. + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
  66253. + ps ps-am uninstall uninstall-am
  66254. @PYTHON_TRUE@$(srcdir)/dnet.c: $(srcdir)/dnet.pyx
  66255. @@ -324,6 +482,7 @@
  66256. @PYTHON_TRUE@install-exec-local: python-install
  66257. @PYTHON_FALSE@install-exec-local:
  66258. +
  66259. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  66260. # Otherwise a system limit (for SysV at least) may be exceeded.
  66261. .NOEXPORT:
  66262. diff -Nur libdnet-1.11.orig/src/Makefile.in libdnet-1.11/src/Makefile.in
  66263. --- libdnet-1.11.orig/src/Makefile.in 2006-01-19 09:24:45.000000000 +0100
  66264. +++ libdnet-1.11/src/Makefile.in 2011-02-19 12:27:14.333563061 +0100
  66265. @@ -1,8 +1,9 @@
  66266. -# Makefile.in generated by automake 1.6.3 from Makefile.am.
  66267. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  66268. # @configure_input@
  66269. -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
  66270. -# Free Software Foundation, Inc.
  66271. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  66272. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  66273. +# Inc.
  66274. # This Makefile.in is free software; the Free Software Foundation
  66275. # gives unlimited permission to copy and/or distribute it,
  66276. # with or without modifications, as long as this notice is preserved.
  66277. @@ -13,194 +14,298 @@
  66278. # PARTICULAR PURPOSE.
  66279. @SET_MAKE@
  66280. -SHELL = @SHELL@
  66281. -srcdir = @srcdir@
  66282. -top_srcdir = @top_srcdir@
  66283. VPATH = @srcdir@
  66284. -prefix = @prefix@
  66285. -exec_prefix = @exec_prefix@
  66286. -
  66287. -bindir = @bindir@
  66288. -sbindir = @sbindir@
  66289. -libexecdir = @libexecdir@
  66290. -datadir = @datadir@
  66291. -sysconfdir = @sysconfdir@
  66292. -sharedstatedir = @sharedstatedir@
  66293. -localstatedir = @localstatedir@
  66294. -libdir = @libdir@
  66295. -infodir = @infodir@
  66296. -mandir = @mandir@
  66297. -includedir = @includedir@
  66298. -oldincludedir = /usr/include
  66299. pkgdatadir = $(datadir)/@PACKAGE@
  66300. -pkglibdir = $(libdir)/@PACKAGE@
  66301. pkgincludedir = $(includedir)/@PACKAGE@
  66302. -top_builddir = ..
  66303. -
  66304. -ACLOCAL = @ACLOCAL@
  66305. -AUTOCONF = @AUTOCONF@
  66306. -AUTOMAKE = @AUTOMAKE@
  66307. -AUTOHEADER = @AUTOHEADER@
  66308. -
  66309. +pkglibdir = $(libdir)/@PACKAGE@
  66310. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  66311. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  66312. -INSTALL = @INSTALL@
  66313. -INSTALL_PROGRAM = @INSTALL_PROGRAM@
  66314. -INSTALL_DATA = @INSTALL_DATA@
  66315. install_sh_DATA = $(install_sh) -c -m 644
  66316. install_sh_PROGRAM = $(install_sh) -c
  66317. install_sh_SCRIPT = $(install_sh) -c
  66318. -INSTALL_SCRIPT = @INSTALL_SCRIPT@
  66319. INSTALL_HEADER = $(INSTALL_DATA)
  66320. -transform = @program_transform_name@
  66321. +transform = $(program_transform_name)
  66322. NORMAL_INSTALL = :
  66323. PRE_INSTALL = :
  66324. POST_INSTALL = :
  66325. NORMAL_UNINSTALL = :
  66326. PRE_UNINSTALL = :
  66327. POST_UNINSTALL = :
  66328. -host_alias = @host_alias@
  66329. +build_triplet = @build@
  66330. host_triplet = @host@
  66331. -
  66332. -EXEEXT = @EXEEXT@
  66333. -OBJEXT = @OBJEXT@
  66334. -PATH_SEPARATOR = @PATH_SEPARATOR@
  66335. +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
  66336. + $(top_srcdir)/Makefile.am.common arp-bsd.c arp-ioctl.c \
  66337. + arp-none.c arp-win32.c err.c eth-bsd.c eth-dlpi.c eth-linux.c \
  66338. + eth-ndd.c eth-none.c eth-pfilt.c eth-snoop.c eth-win32.c \
  66339. + fw-ipchains.c fw-ipf.c fw-ipfw.c fw-none.c fw-pf.c \
  66340. + fw-pktfilter.c intf-win32.c intf.c ip-cooked.c ip-win32.c ip.c \
  66341. + memcmp.c route-bsd.c route-hpux.c route-linux.c route-none.c \
  66342. + route-win32.c strlcat.c strlcpy.c strsep.c tun-bsd.c \
  66343. + tun-linux.c tun-none.c tun-solaris.c
  66344. +subdir = src
  66345. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  66346. +am__aclocal_m4_deps = $(top_srcdir)/config/acinclude.m4 \
  66347. + $(top_srcdir)/configure.in
  66348. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  66349. + $(ACLOCAL_M4)
  66350. +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
  66351. +CONFIG_HEADER = $(top_builddir)/include/config.h
  66352. +CONFIG_CLEAN_FILES =
  66353. +CONFIG_CLEAN_VPATH_FILES =
  66354. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  66355. +am__vpath_adj = case $$p in \
  66356. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  66357. + *) f=$$p;; \
  66358. + esac;
  66359. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  66360. +am__install_max = 40
  66361. +am__nobase_strip_setup = \
  66362. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  66363. +am__nobase_strip = \
  66364. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  66365. +am__nobase_list = $(am__nobase_strip_setup); \
  66366. + for p in $$list; do echo "$$p $$p"; done | \
  66367. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  66368. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  66369. + if (++n[$$2] == $(am__install_max)) \
  66370. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  66371. + END { for (dir in files) print dir, files[dir] }'
  66372. +am__base_list = \
  66373. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  66374. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  66375. +am__installdirs = "$(DESTDIR)$(libdir)"
  66376. +LTLIBRARIES = $(lib_LTLIBRARIES)
  66377. +libdnet_la_DEPENDENCIES = @LTLIBOBJS@
  66378. +am_libdnet_la_OBJECTS = addr-util.lo addr.lo blob.lo ip-util.lo ip6.lo \
  66379. + rand.lo
  66380. +libdnet_la_OBJECTS = $(am_libdnet_la_OBJECTS)
  66381. +libdnet_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  66382. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  66383. + $(libdnet_la_LDFLAGS) $(LDFLAGS) -o $@
  66384. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include
  66385. +depcomp =
  66386. +am__depfiles_maybe =
  66387. +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  66388. + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  66389. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  66390. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  66391. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  66392. +CCLD = $(CC)
  66393. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  66394. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  66395. + $(LDFLAGS) -o $@
  66396. +SOURCES = $(libdnet_la_SOURCES)
  66397. +DIST_SOURCES = $(libdnet_la_SOURCES)
  66398. +ETAGS = etags
  66399. +CTAGS = ctags
  66400. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  66401. +ACLOCAL = @ACLOCAL@
  66402. AMTAR = @AMTAR@
  66403. AR = @AR@
  66404. -AS = @AS@
  66405. +AUTOCONF = @AUTOCONF@
  66406. +AUTOHEADER = @AUTOHEADER@
  66407. +AUTOMAKE = @AUTOMAKE@
  66408. AWK = @AWK@
  66409. CC = @CC@
  66410. +CCDEPMODE = @CCDEPMODE@
  66411. +CFLAGS = @CFLAGS@
  66412. CHECKINC = @CHECKINC@
  66413. CHECKLIB = @CHECKLIB@
  66414. -CXX = @CXX@
  66415. -CXXCPP = @CXXCPP@
  66416. +CPP = @CPP@
  66417. +CPPFLAGS = @CPPFLAGS@
  66418. +CYGPATH_W = @CYGPATH_W@
  66419. +DEFS = @DEFS@
  66420. DEPDIR = @DEPDIR@
  66421. -DLLTOOL = @DLLTOOL@
  66422. -ECHO = @ECHO@
  66423. +DSYMUTIL = @DSYMUTIL@
  66424. +DUMPBIN = @DUMPBIN@
  66425. +ECHO_C = @ECHO_C@
  66426. +ECHO_N = @ECHO_N@
  66427. +ECHO_T = @ECHO_T@
  66428. EGREP = @EGREP@
  66429. -F77 = @F77@
  66430. -GCJ = @GCJ@
  66431. -GCJFLAGS = @GCJFLAGS@
  66432. +EXEEXT = @EXEEXT@
  66433. +FGREP = @FGREP@
  66434. +GREP = @GREP@
  66435. +INSTALL = @INSTALL@
  66436. +INSTALL_DATA = @INSTALL_DATA@
  66437. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  66438. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  66439. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  66440. +LD = @LD@
  66441. +LDFLAGS = @LDFLAGS@
  66442. +LIBOBJS = @LIBOBJS@
  66443. +LIBS = @LIBS@
  66444. LIBTOOL = @LIBTOOL@
  66445. +LIPO = @LIPO@
  66446. LN_S = @LN_S@
  66447. +LTLIBOBJS = @LTLIBOBJS@
  66448. MAINT = @MAINT@
  66449. +MAKEINFO = @MAKEINFO@
  66450. +MKDIR_P = @MKDIR_P@
  66451. +NM = @NM@
  66452. +NMEDIT = @NMEDIT@
  66453. OBJDUMP = @OBJDUMP@
  66454. +OBJEXT = @OBJEXT@
  66455. +OTOOL = @OTOOL@
  66456. +OTOOL64 = @OTOOL64@
  66457. PACKAGE = @PACKAGE@
  66458. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  66459. +PACKAGE_NAME = @PACKAGE_NAME@
  66460. +PACKAGE_STRING = @PACKAGE_STRING@
  66461. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  66462. +PACKAGE_URL = @PACKAGE_URL@
  66463. +PACKAGE_VERSION = @PACKAGE_VERSION@
  66464. +PATH_SEPARATOR = @PATH_SEPARATOR@
  66465. PYTHON = @PYTHON@
  66466. RANLIB = @RANLIB@
  66467. -RC = @RC@
  66468. +SED = @SED@
  66469. +SET_MAKE = @SET_MAKE@
  66470. +SHELL = @SHELL@
  66471. STRIP = @STRIP@
  66472. TCLINC = @TCLINC@
  66473. TCLLIB = @TCLLIB@
  66474. VERSION = @VERSION@
  66475. +abs_builddir = @abs_builddir@
  66476. +abs_srcdir = @abs_srcdir@
  66477. +abs_top_builddir = @abs_top_builddir@
  66478. +abs_top_srcdir = @abs_top_srcdir@
  66479. ac_aux_dir = @ac_aux_dir@
  66480. +ac_ct_CC = @ac_ct_CC@
  66481. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  66482. am__include = @am__include@
  66483. +am__leading_dot = @am__leading_dot@
  66484. am__quote = @am__quote@
  66485. +am__tar = @am__tar@
  66486. +am__untar = @am__untar@
  66487. +bindir = @bindir@
  66488. +build = @build@
  66489. +build_alias = @build_alias@
  66490. +build_cpu = @build_cpu@
  66491. +build_os = @build_os@
  66492. +build_vendor = @build_vendor@
  66493. +builddir = @builddir@
  66494. +datadir = @datadir@
  66495. +datarootdir = @datarootdir@
  66496. +docdir = @docdir@
  66497. +dvidir = @dvidir@
  66498. +exec_prefix = @exec_prefix@
  66499. +host = @host@
  66500. +host_alias = @host_alias@
  66501. +host_cpu = @host_cpu@
  66502. +host_os = @host_os@
  66503. +host_vendor = @host_vendor@
  66504. +htmldir = @htmldir@
  66505. +includedir = @includedir@
  66506. +infodir = @infodir@
  66507. install_sh = @install_sh@
  66508. -
  66509. +libdir = @libdir@
  66510. +libexecdir = @libexecdir@
  66511. +localedir = @localedir@
  66512. +localstatedir = @localstatedir@
  66513. +lt_ECHO = @lt_ECHO@
  66514. +mandir = @mandir@
  66515. +mkdir_p = @mkdir_p@
  66516. +oldincludedir = @oldincludedir@
  66517. +pdfdir = @pdfdir@
  66518. +prefix = @prefix@
  66519. +program_transform_name = @program_transform_name@
  66520. +psdir = @psdir@
  66521. +sbindir = @sbindir@
  66522. +sharedstatedir = @sharedstatedir@
  66523. +srcdir = @srcdir@
  66524. +sysconfdir = @sysconfdir@
  66525. +target_alias = @target_alias@
  66526. +top_build_prefix = @top_build_prefix@
  66527. +top_builddir = @top_builddir@
  66528. +top_srcdir = @top_srcdir@
  66529. AUTOMAKE_OPTIONS = foreign no-dependencies
  66530. -
  66531. AM_CPPFLAGS = -I$(top_srcdir)/include
  66532. -
  66533. lib_LTLIBRARIES = libdnet.la
  66534. -
  66535. libdnet_la_SOURCES = addr-util.c addr.c blob.c ip-util.c ip6.c rand.c
  66536. -
  66537. libdnet_la_LIBADD = @LTLIBOBJS@
  66538. -
  66539. libdnet_la_LDFLAGS = -version-info 1:1:0
  66540. -subdir = src
  66541. -mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
  66542. -CONFIG_HEADER = $(top_builddir)/include/config.h
  66543. -CONFIG_CLEAN_FILES =
  66544. -LTLIBRARIES = $(lib_LTLIBRARIES)
  66545. -
  66546. -libdnet_la_DEPENDENCIES = @LTLIBOBJS@
  66547. -am_libdnet_la_OBJECTS = addr-util.lo addr.lo blob.lo ip-util.lo ip6.lo \
  66548. - rand.lo
  66549. -libdnet_la_OBJECTS = $(am_libdnet_la_OBJECTS)
  66550. -
  66551. -DEFS = @DEFS@
  66552. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include
  66553. -CPPFLAGS = @CPPFLAGS@
  66554. -LDFLAGS = @LDFLAGS@
  66555. -LIBS = @LIBS@
  66556. -depcomp =
  66557. -am__depfiles_maybe =
  66558. -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  66559. - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  66560. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
  66561. - $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  66562. -CCLD = $(CC)
  66563. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  66564. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  66565. -CFLAGS = @CFLAGS@
  66566. -DIST_SOURCES = $(libdnet_la_SOURCES)
  66567. -DIST_COMMON = Makefile.am Makefile.in arp-bsd.c arp-ioctl.c arp-none.c \
  66568. - arp-win32.c err.c eth-bsd.c eth-dlpi.c eth-linux.c eth-ndd.c \
  66569. - eth-none.c eth-pfilt.c eth-snoop.c eth-win32.c fw-ipchains.c \
  66570. - fw-ipf.c fw-ipfw.c fw-none.c fw-pf.c fw-pktfilter.c \
  66571. - intf-win32.c intf.c ip-cooked.c ip-win32.c ip.c memcmp.c \
  66572. - route-bsd.c route-hpux.c route-linux.c route-none.c \
  66573. - route-win32.c strlcat.c strlcpy.c strsep.c tun-bsd.c \
  66574. - tun-linux.c tun-none.c tun-solaris.c
  66575. -SOURCES = $(libdnet_la_SOURCES)
  66576. -
  66577. all: all-am
  66578. .SUFFIXES:
  66579. .SUFFIXES: .c .lo .o .obj
  66580. -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/Makefile.am.common $(top_srcdir)/configure.in $(ACLOCAL_M4)
  66581. - cd $(top_srcdir) && \
  66582. - $(AUTOMAKE) --foreign src/Makefile
  66583. -Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
  66584. - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
  66585. -libLTLIBRARIES_INSTALL = $(INSTALL)
  66586. +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.common $(am__configure_deps)
  66587. + @for dep in $?; do \
  66588. + case '$(am__configure_deps)' in \
  66589. + *$$dep*) \
  66590. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  66591. + && { if test -f $@; then exit 0; else break; fi; }; \
  66592. + exit 1;; \
  66593. + esac; \
  66594. + done; \
  66595. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
  66596. + $(am__cd) $(top_srcdir) && \
  66597. + $(AUTOMAKE) --foreign src/Makefile
  66598. +.PRECIOUS: Makefile
  66599. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  66600. + @case '$?' in \
  66601. + *config.status*) \
  66602. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  66603. + *) \
  66604. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  66605. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  66606. + esac;
  66607. +
  66608. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  66609. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  66610. +
  66611. +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  66612. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  66613. +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  66614. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  66615. +$(am__aclocal_m4_deps):
  66616. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  66617. @$(NORMAL_INSTALL)
  66618. - $(mkinstalldirs) $(DESTDIR)$(libdir)
  66619. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  66620. + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  66621. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  66622. + list2=; for p in $$list; do \
  66623. if test -f $$p; then \
  66624. - f="`echo $$p | sed -e 's|^.*/||'`"; \
  66625. - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f"; \
  66626. - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f; \
  66627. + list2="$$list2 $$p"; \
  66628. else :; fi; \
  66629. - done
  66630. + done; \
  66631. + test -z "$$list2" || { \
  66632. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  66633. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  66634. + }
  66635. uninstall-libLTLIBRARIES:
  66636. @$(NORMAL_UNINSTALL)
  66637. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  66638. - p="`echo $$p | sed -e 's|^.*/||'`"; \
  66639. - echo " $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p"; \
  66640. - $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
  66641. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  66642. + for p in $$list; do \
  66643. + $(am__strip_dir) \
  66644. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  66645. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  66646. done
  66647. clean-libLTLIBRARIES:
  66648. -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
  66649. @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  66650. dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
  66651. - test -z "$dir" && dir=.; \
  66652. + test "$$dir" != "$$p" || dir=.; \
  66653. echo "rm -f \"$${dir}/so_locations\""; \
  66654. rm -f "$${dir}/so_locations"; \
  66655. done
  66656. libdnet.la: $(libdnet_la_OBJECTS) $(libdnet_la_DEPENDENCIES)
  66657. - $(LINK) -rpath $(libdir) $(libdnet_la_LDFLAGS) $(libdnet_la_OBJECTS) $(libdnet_la_LIBADD) $(LIBS)
  66658. + $(libdnet_la_LINK) -rpath $(libdir) $(libdnet_la_OBJECTS) $(libdnet_la_LIBADD) $(LIBS)
  66659. mostlyclean-compile:
  66660. - -rm -f *.$(OBJEXT) core *.core
  66661. + -rm -f *.$(OBJEXT)
  66662. distclean-compile:
  66663. -rm -f *.tab.c
  66664. .c.o:
  66665. - $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
  66666. + $(COMPILE) -c $<
  66667. .c.obj:
  66668. - $(COMPILE) -c `cygpath -w $<`
  66669. + $(COMPILE) -c `$(CYGPATH_W) '$<'`
  66670. .c.lo:
  66671. - $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
  66672. + $(LTCOMPILE) -c -o $@ $<
  66673. mostlyclean-libtool:
  66674. -rm -f *.lo
  66675. @@ -208,78 +313,95 @@
  66676. clean-libtool:
  66677. -rm -rf .libs _libs
  66678. -distclean-libtool:
  66679. - -rm -f libtool
  66680. -uninstall-info-am:
  66681. -
  66682. -ETAGS = etags
  66683. -ETAGSFLAGS =
  66684. -
  66685. -tags: TAGS
  66686. -
  66687. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  66688. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  66689. unique=`for i in $$list; do \
  66690. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  66691. done | \
  66692. - $(AWK) ' { files[$$0] = 1; } \
  66693. - END { for (i in files) print i; }'`; \
  66694. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  66695. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  66696. mkid -fID $$unique
  66697. +tags: TAGS
  66698. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  66699. $(TAGS_FILES) $(LISP)
  66700. - tags=; \
  66701. + set x; \
  66702. here=`pwd`; \
  66703. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  66704. unique=`for i in $$list; do \
  66705. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  66706. done | \
  66707. - $(AWK) ' { files[$$0] = 1; } \
  66708. - END { for (i in files) print i; }'`; \
  66709. - test -z "$(ETAGS_ARGS)$$tags$$unique" \
  66710. - || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  66711. - $$tags $$unique
  66712. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  66713. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  66714. + shift; \
  66715. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  66716. + test -n "$$unique" || unique=$$empty_fix; \
  66717. + if test $$# -gt 0; then \
  66718. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  66719. + "$$@" $$unique; \
  66720. + else \
  66721. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  66722. + $$unique; \
  66723. + fi; \
  66724. + fi
  66725. +ctags: CTAGS
  66726. +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  66727. + $(TAGS_FILES) $(LISP)
  66728. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  66729. + unique=`for i in $$list; do \
  66730. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  66731. + done | \
  66732. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  66733. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  66734. + test -z "$(CTAGS_ARGS)$$unique" \
  66735. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  66736. + $$unique
  66737. GTAGS:
  66738. here=`$(am__cd) $(top_builddir) && pwd` \
  66739. - && cd $(top_srcdir) \
  66740. - && gtags -i $(GTAGS_ARGS) $$here
  66741. + && $(am__cd) $(top_srcdir) \
  66742. + && gtags -i $(GTAGS_ARGS) "$$here"
  66743. distclean-tags:
  66744. - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
  66745. -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  66746. -
  66747. -top_distdir = ..
  66748. -distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
  66749. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  66750. distdir: $(DISTFILES)
  66751. - @list='$(DISTFILES)'; for file in $$list; do \
  66752. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  66753. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  66754. + list='$(DISTFILES)'; \
  66755. + dist_files=`for file in $$list; do echo $$file; done | \
  66756. + sed -e "s|^$$srcdirstrip/||;t" \
  66757. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  66758. + case $$dist_files in \
  66759. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  66760. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  66761. + sort -u` ;; \
  66762. + esac; \
  66763. + for file in $$dist_files; do \
  66764. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  66765. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  66766. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  66767. - dir="/$$dir"; \
  66768. - $(mkinstalldirs) "$(distdir)$$dir"; \
  66769. - else \
  66770. - dir=''; \
  66771. - fi; \
  66772. if test -d $$d/$$file; then \
  66773. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  66774. + if test -d "$(distdir)/$$file"; then \
  66775. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  66776. + fi; \
  66777. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  66778. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  66779. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  66780. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  66781. fi; \
  66782. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  66783. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  66784. else \
  66785. - test -f $(distdir)/$$file \
  66786. - || cp -p $$d/$$file $(distdir)/$$file \
  66787. + test -f "$(distdir)/$$file" \
  66788. + || cp -p $$d/$$file "$(distdir)/$$file" \
  66789. || exit 1; \
  66790. fi; \
  66791. done
  66792. check-am: all-am
  66793. check: check-am
  66794. all-am: Makefile $(LTLIBRARIES)
  66795. -
  66796. installdirs:
  66797. - $(mkinstalldirs) $(DESTDIR)$(libdir)
  66798. -
  66799. + for dir in "$(DESTDIR)$(libdir)"; do \
  66800. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  66801. + done
  66802. install: install-am
  66803. install-exec: install-exec-am
  66804. install-data: install-data-am
  66805. @@ -291,7 +413,7 @@
  66806. installcheck: installcheck-am
  66807. install-strip:
  66808. $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  66809. - INSTALL_STRIP_FLAG=-s \
  66810. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  66811. `test -z '$(STRIP)' || \
  66812. echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  66813. mostlyclean-generic:
  66814. @@ -299,7 +421,8 @@
  66815. clean-generic:
  66816. distclean-generic:
  66817. - -rm -f Makefile $(CONFIG_CLEAN_FILES)
  66818. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  66819. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  66820. maintainer-clean-generic:
  66821. @echo "This command is intended for maintainers to use"
  66822. @@ -310,30 +433,52 @@
  66823. mostlyclean-am
  66824. distclean: distclean-am
  66825. -
  66826. + -rm -f Makefile
  66827. distclean-am: clean-am distclean-compile distclean-generic \
  66828. - distclean-libtool distclean-tags
  66829. + distclean-tags
  66830. dvi: dvi-am
  66831. dvi-am:
  66832. +html: html-am
  66833. +
  66834. +html-am:
  66835. +
  66836. info: info-am
  66837. info-am:
  66838. install-data-am:
  66839. +install-dvi: install-dvi-am
  66840. +
  66841. +install-dvi-am:
  66842. +
  66843. install-exec-am: install-libLTLIBRARIES
  66844. +install-html: install-html-am
  66845. +
  66846. +install-html-am:
  66847. +
  66848. install-info: install-info-am
  66849. +install-info-am:
  66850. +
  66851. install-man:
  66852. +install-pdf: install-pdf-am
  66853. +
  66854. +install-pdf-am:
  66855. +
  66856. +install-ps: install-ps-am
  66857. +
  66858. +install-ps-am:
  66859. +
  66860. installcheck-am:
  66861. maintainer-clean: maintainer-clean-am
  66862. -
  66863. + -rm -f Makefile
  66864. maintainer-clean-am: distclean-am maintainer-clean-generic
  66865. mostlyclean: mostlyclean-am
  66866. @@ -341,19 +486,32 @@
  66867. mostlyclean-am: mostlyclean-compile mostlyclean-generic \
  66868. mostlyclean-libtool
  66869. -uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES
  66870. +pdf: pdf-am
  66871. +
  66872. +pdf-am:
  66873. +
  66874. +ps: ps-am
  66875. +
  66876. +ps-am:
  66877. +
  66878. +uninstall-am: uninstall-libLTLIBRARIES
  66879. +
  66880. +.MAKE: install-am install-strip
  66881. +
  66882. +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  66883. + clean-libLTLIBRARIES clean-libtool ctags distclean \
  66884. + distclean-compile distclean-generic distclean-libtool \
  66885. + distclean-tags distdir dvi dvi-am html html-am info info-am \
  66886. + install install-am install-data install-data-am install-dvi \
  66887. + install-dvi-am install-exec install-exec-am install-html \
  66888. + install-html-am install-info install-info-am \
  66889. + install-libLTLIBRARIES install-man install-pdf install-pdf-am \
  66890. + install-ps install-ps-am install-strip installcheck \
  66891. + installcheck-am installdirs maintainer-clean \
  66892. + maintainer-clean-generic mostlyclean mostlyclean-compile \
  66893. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  66894. + tags uninstall uninstall-am uninstall-libLTLIBRARIES
  66895. -.PHONY: GTAGS all all-am check check-am clean clean-generic \
  66896. - clean-libLTLIBRARIES clean-libtool distclean distclean-compile \
  66897. - distclean-generic distclean-libtool distclean-tags distdir dvi \
  66898. - dvi-am info info-am install install-am install-data \
  66899. - install-data-am install-exec install-exec-am install-info \
  66900. - install-info-am install-libLTLIBRARIES install-man \
  66901. - install-strip installcheck installcheck-am installdirs \
  66902. - maintainer-clean maintainer-clean-generic mostlyclean \
  66903. - mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
  66904. - tags uninstall uninstall-am uninstall-info-am \
  66905. - uninstall-libLTLIBRARIES
  66906. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  66907. # Otherwise a system limit (for SysV at least) may be exceeded.
  66908. diff -Nur libdnet-1.11.orig/test/check/Makefile.in libdnet-1.11/test/check/Makefile.in
  66909. --- libdnet-1.11.orig/test/check/Makefile.in 2006-01-19 09:24:46.000000000 +0100
  66910. +++ libdnet-1.11/test/check/Makefile.in 2011-02-19 12:27:14.433562997 +0100
  66911. @@ -1,8 +1,9 @@
  66912. -# Makefile.in generated by automake 1.6.3 from Makefile.am.
  66913. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  66914. # @configure_input@
  66915. -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
  66916. -# Free Software Foundation, Inc.
  66917. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  66918. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  66919. +# Inc.
  66920. # This Makefile.in is free software; the Free Software Foundation
  66921. # gives unlimited permission to copy and/or distribute it,
  66922. # with or without modifications, as long as this notice is preserved.
  66923. @@ -13,254 +14,327 @@
  66924. # PARTICULAR PURPOSE.
  66925. @SET_MAKE@
  66926. -SHELL = @SHELL@
  66927. -srcdir = @srcdir@
  66928. -top_srcdir = @top_srcdir@
  66929. VPATH = @srcdir@
  66930. -prefix = @prefix@
  66931. -exec_prefix = @exec_prefix@
  66932. -
  66933. -bindir = @bindir@
  66934. -sbindir = @sbindir@
  66935. -libexecdir = @libexecdir@
  66936. -datadir = @datadir@
  66937. -sysconfdir = @sysconfdir@
  66938. -sharedstatedir = @sharedstatedir@
  66939. -localstatedir = @localstatedir@
  66940. -libdir = @libdir@
  66941. -infodir = @infodir@
  66942. -mandir = @mandir@
  66943. -includedir = @includedir@
  66944. -oldincludedir = /usr/include
  66945. pkgdatadir = $(datadir)/@PACKAGE@
  66946. -pkglibdir = $(libdir)/@PACKAGE@
  66947. pkgincludedir = $(includedir)/@PACKAGE@
  66948. -top_builddir = ../..
  66949. -
  66950. -ACLOCAL = @ACLOCAL@
  66951. -AUTOCONF = @AUTOCONF@
  66952. -AUTOMAKE = @AUTOMAKE@
  66953. -AUTOHEADER = @AUTOHEADER@
  66954. -
  66955. +pkglibdir = $(libdir)/@PACKAGE@
  66956. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  66957. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  66958. -INSTALL = @INSTALL@
  66959. -INSTALL_PROGRAM = @INSTALL_PROGRAM@
  66960. -INSTALL_DATA = @INSTALL_DATA@
  66961. install_sh_DATA = $(install_sh) -c -m 644
  66962. install_sh_PROGRAM = $(install_sh) -c
  66963. install_sh_SCRIPT = $(install_sh) -c
  66964. -INSTALL_SCRIPT = @INSTALL_SCRIPT@
  66965. INSTALL_HEADER = $(INSTALL_DATA)
  66966. -transform = @program_transform_name@
  66967. +transform = $(program_transform_name)
  66968. NORMAL_INSTALL = :
  66969. PRE_INSTALL = :
  66970. POST_INSTALL = :
  66971. NORMAL_UNINSTALL = :
  66972. PRE_UNINSTALL = :
  66973. POST_UNINSTALL = :
  66974. -host_alias = @host_alias@
  66975. +build_triplet = @build@
  66976. host_triplet = @host@
  66977. -
  66978. -EXEEXT = @EXEEXT@
  66979. -OBJEXT = @OBJEXT@
  66980. -PATH_SEPARATOR = @PATH_SEPARATOR@
  66981. -AMTAR = @AMTAR@
  66982. -AR = @AR@
  66983. -AS = @AS@
  66984. -AWK = @AWK@
  66985. -CC = @CC@
  66986. -CHECKINC = @CHECKINC@
  66987. -CHECKLIB = @CHECKLIB@
  66988. -CXX = @CXX@
  66989. -CXXCPP = @CXXCPP@
  66990. -DEPDIR = @DEPDIR@
  66991. -DLLTOOL = @DLLTOOL@
  66992. -ECHO = @ECHO@
  66993. -EGREP = @EGREP@
  66994. -F77 = @F77@
  66995. -GCJ = @GCJ@
  66996. -GCJFLAGS = @GCJFLAGS@
  66997. -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  66998. -LIBTOOL = @LIBTOOL@
  66999. -LN_S = @LN_S@
  67000. -MAINT = @MAINT@
  67001. -OBJDUMP = @OBJDUMP@
  67002. -PACKAGE = @PACKAGE@
  67003. -PYTHON = @PYTHON@
  67004. -RANLIB = @RANLIB@
  67005. -RC = @RC@
  67006. -STRIP = @STRIP@
  67007. -TCLINC = @TCLINC@
  67008. -TCLLIB = @TCLLIB@
  67009. -VERSION = @VERSION@
  67010. -ac_aux_dir = @ac_aux_dir@
  67011. -am__include = @am__include@
  67012. -am__quote = @am__quote@
  67013. -install_sh = @install_sh@
  67014. -
  67015. -AUTOMAKE_OPTIONS = foreign no-dependencies
  67016. -
  67017. -AM_CPPFLAGS = -I$(top_srcdir)/include
  67018. -
  67019. -INCLUDES = -I$(top_srcdir)/include @CHECKINC@
  67020. -
  67021. -@HAVE_CHECK_TRUE@TESTS = check_addr check_arp check_blob check_eth check_fw check_ip \
  67022. -@HAVE_CHECK_TRUE@ check_intf check_rand check_route
  67023. -
  67024. -@HAVE_CHECK_FALSE@TESTS =
  67025. -
  67026. -noinst_PROGRAMS = $(TESTS)
  67027. -
  67028. -check_addr_SOURCES = check_addr.c
  67029. -check_arp_SOURCES = check_arp.c
  67030. -check_blob_SOURCES = check_blob.c
  67031. -check_eth_SOURCES = check_eth.c
  67032. -check_fw_SOURCES = check_fw.c
  67033. -check_intf_SOURCES = check_intf.c
  67034. -check_ip_SOURCES = check_ip.c
  67035. -check_rand_SOURCES = check_rand.c
  67036. -check_route_SOURCES = check_route.c
  67037. -
  67038. -LDADD = $(top_builddir)/src/libdnet.la @CHECKLIB@
  67039. +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
  67040. + $(top_srcdir)/Makefile.am.common
  67041. +@HAVE_CHECK_TRUE@TESTS = check_addr$(EXEEXT) check_arp$(EXEEXT) \
  67042. +@HAVE_CHECK_TRUE@ check_blob$(EXEEXT) check_eth$(EXEEXT) \
  67043. +@HAVE_CHECK_TRUE@ check_fw$(EXEEXT) check_ip$(EXEEXT) \
  67044. +@HAVE_CHECK_TRUE@ check_intf$(EXEEXT) check_rand$(EXEEXT) \
  67045. +@HAVE_CHECK_TRUE@ check_route$(EXEEXT)
  67046. +noinst_PROGRAMS = $(am__EXEEXT_1)
  67047. subdir = test/check
  67048. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  67049. +am__aclocal_m4_deps = $(top_srcdir)/config/acinclude.m4 \
  67050. + $(top_srcdir)/configure.in
  67051. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  67052. + $(ACLOCAL_M4)
  67053. mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
  67054. CONFIG_HEADER = $(top_builddir)/include/config.h
  67055. CONFIG_CLEAN_FILES =
  67056. -@HAVE_CHECK_TRUE@noinst_PROGRAMS = check_addr$(EXEEXT) \
  67057. -@HAVE_CHECK_TRUE@ check_arp$(EXEEXT) check_blob$(EXEEXT) \
  67058. -@HAVE_CHECK_TRUE@ check_eth$(EXEEXT) check_fw$(EXEEXT) \
  67059. -@HAVE_CHECK_TRUE@ check_ip$(EXEEXT) check_intf$(EXEEXT) \
  67060. -@HAVE_CHECK_TRUE@ check_rand$(EXEEXT) check_route$(EXEEXT)
  67061. -@HAVE_CHECK_FALSE@noinst_PROGRAMS =
  67062. +CONFIG_CLEAN_VPATH_FILES =
  67063. +@HAVE_CHECK_TRUE@am__EXEEXT_1 = check_addr$(EXEEXT) check_arp$(EXEEXT) \
  67064. +@HAVE_CHECK_TRUE@ check_blob$(EXEEXT) check_eth$(EXEEXT) \
  67065. +@HAVE_CHECK_TRUE@ check_fw$(EXEEXT) check_ip$(EXEEXT) \
  67066. +@HAVE_CHECK_TRUE@ check_intf$(EXEEXT) check_rand$(EXEEXT) \
  67067. +@HAVE_CHECK_TRUE@ check_route$(EXEEXT)
  67068. PROGRAMS = $(noinst_PROGRAMS)
  67069. -
  67070. am_check_addr_OBJECTS = check_addr.$(OBJEXT)
  67071. check_addr_OBJECTS = $(am_check_addr_OBJECTS)
  67072. check_addr_LDADD = $(LDADD)
  67073. check_addr_DEPENDENCIES = $(top_builddir)/src/libdnet.la
  67074. -check_addr_LDFLAGS =
  67075. am_check_arp_OBJECTS = check_arp.$(OBJEXT)
  67076. check_arp_OBJECTS = $(am_check_arp_OBJECTS)
  67077. check_arp_LDADD = $(LDADD)
  67078. check_arp_DEPENDENCIES = $(top_builddir)/src/libdnet.la
  67079. -check_arp_LDFLAGS =
  67080. am_check_blob_OBJECTS = check_blob.$(OBJEXT)
  67081. check_blob_OBJECTS = $(am_check_blob_OBJECTS)
  67082. check_blob_LDADD = $(LDADD)
  67083. check_blob_DEPENDENCIES = $(top_builddir)/src/libdnet.la
  67084. -check_blob_LDFLAGS =
  67085. am_check_eth_OBJECTS = check_eth.$(OBJEXT)
  67086. check_eth_OBJECTS = $(am_check_eth_OBJECTS)
  67087. check_eth_LDADD = $(LDADD)
  67088. check_eth_DEPENDENCIES = $(top_builddir)/src/libdnet.la
  67089. -check_eth_LDFLAGS =
  67090. am_check_fw_OBJECTS = check_fw.$(OBJEXT)
  67091. check_fw_OBJECTS = $(am_check_fw_OBJECTS)
  67092. check_fw_LDADD = $(LDADD)
  67093. check_fw_DEPENDENCIES = $(top_builddir)/src/libdnet.la
  67094. -check_fw_LDFLAGS =
  67095. am_check_intf_OBJECTS = check_intf.$(OBJEXT)
  67096. check_intf_OBJECTS = $(am_check_intf_OBJECTS)
  67097. check_intf_LDADD = $(LDADD)
  67098. check_intf_DEPENDENCIES = $(top_builddir)/src/libdnet.la
  67099. -check_intf_LDFLAGS =
  67100. am_check_ip_OBJECTS = check_ip.$(OBJEXT)
  67101. check_ip_OBJECTS = $(am_check_ip_OBJECTS)
  67102. check_ip_LDADD = $(LDADD)
  67103. check_ip_DEPENDENCIES = $(top_builddir)/src/libdnet.la
  67104. -check_ip_LDFLAGS =
  67105. am_check_rand_OBJECTS = check_rand.$(OBJEXT)
  67106. check_rand_OBJECTS = $(am_check_rand_OBJECTS)
  67107. check_rand_LDADD = $(LDADD)
  67108. check_rand_DEPENDENCIES = $(top_builddir)/src/libdnet.la
  67109. -check_rand_LDFLAGS =
  67110. am_check_route_OBJECTS = check_route.$(OBJEXT)
  67111. check_route_OBJECTS = $(am_check_route_OBJECTS)
  67112. check_route_LDADD = $(LDADD)
  67113. check_route_DEPENDENCIES = $(top_builddir)/src/libdnet.la
  67114. -check_route_LDFLAGS =
  67115. -
  67116. -DEFS = @DEFS@
  67117. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include
  67118. -CPPFLAGS = @CPPFLAGS@
  67119. -LDFLAGS = @LDFLAGS@
  67120. -LIBS = @LIBS@
  67121. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include
  67122. depcomp =
  67123. am__depfiles_maybe =
  67124. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  67125. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  67126. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
  67127. - $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  67128. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  67129. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  67130. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  67131. CCLD = $(CC)
  67132. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  67133. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  67134. -CFLAGS = @CFLAGS@
  67135. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  67136. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  67137. + $(LDFLAGS) -o $@
  67138. +SOURCES = $(check_addr_SOURCES) $(check_arp_SOURCES) \
  67139. + $(check_blob_SOURCES) $(check_eth_SOURCES) $(check_fw_SOURCES) \
  67140. + $(check_intf_SOURCES) $(check_ip_SOURCES) \
  67141. + $(check_rand_SOURCES) $(check_route_SOURCES)
  67142. DIST_SOURCES = $(check_addr_SOURCES) $(check_arp_SOURCES) \
  67143. $(check_blob_SOURCES) $(check_eth_SOURCES) $(check_fw_SOURCES) \
  67144. - $(check_intf_SOURCES) $(check_ip_SOURCES) $(check_rand_SOURCES) \
  67145. - $(check_route_SOURCES)
  67146. -DIST_COMMON = Makefile.am Makefile.in
  67147. -SOURCES = $(check_addr_SOURCES) $(check_arp_SOURCES) $(check_blob_SOURCES) $(check_eth_SOURCES) $(check_fw_SOURCES) $(check_intf_SOURCES) $(check_ip_SOURCES) $(check_rand_SOURCES) $(check_route_SOURCES)
  67148. -
  67149. + $(check_intf_SOURCES) $(check_ip_SOURCES) \
  67150. + $(check_rand_SOURCES) $(check_route_SOURCES)
  67151. +ETAGS = etags
  67152. +CTAGS = ctags
  67153. +am__tty_colors = \
  67154. +red=; grn=; lgn=; blu=; std=
  67155. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  67156. +ACLOCAL = @ACLOCAL@
  67157. +AMTAR = @AMTAR@
  67158. +AR = @AR@
  67159. +AUTOCONF = @AUTOCONF@
  67160. +AUTOHEADER = @AUTOHEADER@
  67161. +AUTOMAKE = @AUTOMAKE@
  67162. +AWK = @AWK@
  67163. +CC = @CC@
  67164. +CCDEPMODE = @CCDEPMODE@
  67165. +CFLAGS = @CFLAGS@
  67166. +CHECKINC = @CHECKINC@
  67167. +CHECKLIB = @CHECKLIB@
  67168. +CPP = @CPP@
  67169. +CPPFLAGS = @CPPFLAGS@
  67170. +CYGPATH_W = @CYGPATH_W@
  67171. +DEFS = @DEFS@
  67172. +DEPDIR = @DEPDIR@
  67173. +DSYMUTIL = @DSYMUTIL@
  67174. +DUMPBIN = @DUMPBIN@
  67175. +ECHO_C = @ECHO_C@
  67176. +ECHO_N = @ECHO_N@
  67177. +ECHO_T = @ECHO_T@
  67178. +EGREP = @EGREP@
  67179. +EXEEXT = @EXEEXT@
  67180. +FGREP = @FGREP@
  67181. +GREP = @GREP@
  67182. +INSTALL = @INSTALL@
  67183. +INSTALL_DATA = @INSTALL_DATA@
  67184. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  67185. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  67186. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  67187. +LD = @LD@
  67188. +LDFLAGS = @LDFLAGS@
  67189. +LIBOBJS = @LIBOBJS@
  67190. +LIBS = @LIBS@
  67191. +LIBTOOL = @LIBTOOL@
  67192. +LIPO = @LIPO@
  67193. +LN_S = @LN_S@
  67194. +LTLIBOBJS = @LTLIBOBJS@
  67195. +MAINT = @MAINT@
  67196. +MAKEINFO = @MAKEINFO@
  67197. +MKDIR_P = @MKDIR_P@
  67198. +NM = @NM@
  67199. +NMEDIT = @NMEDIT@
  67200. +OBJDUMP = @OBJDUMP@
  67201. +OBJEXT = @OBJEXT@
  67202. +OTOOL = @OTOOL@
  67203. +OTOOL64 = @OTOOL64@
  67204. +PACKAGE = @PACKAGE@
  67205. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  67206. +PACKAGE_NAME = @PACKAGE_NAME@
  67207. +PACKAGE_STRING = @PACKAGE_STRING@
  67208. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  67209. +PACKAGE_URL = @PACKAGE_URL@
  67210. +PACKAGE_VERSION = @PACKAGE_VERSION@
  67211. +PATH_SEPARATOR = @PATH_SEPARATOR@
  67212. +PYTHON = @PYTHON@
  67213. +RANLIB = @RANLIB@
  67214. +SED = @SED@
  67215. +SET_MAKE = @SET_MAKE@
  67216. +SHELL = @SHELL@
  67217. +STRIP = @STRIP@
  67218. +TCLINC = @TCLINC@
  67219. +TCLLIB = @TCLLIB@
  67220. +VERSION = @VERSION@
  67221. +abs_builddir = @abs_builddir@
  67222. +abs_srcdir = @abs_srcdir@
  67223. +abs_top_builddir = @abs_top_builddir@
  67224. +abs_top_srcdir = @abs_top_srcdir@
  67225. +ac_aux_dir = @ac_aux_dir@
  67226. +ac_ct_CC = @ac_ct_CC@
  67227. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  67228. +am__include = @am__include@
  67229. +am__leading_dot = @am__leading_dot@
  67230. +am__quote = @am__quote@
  67231. +am__tar = @am__tar@
  67232. +am__untar = @am__untar@
  67233. +bindir = @bindir@
  67234. +build = @build@
  67235. +build_alias = @build_alias@
  67236. +build_cpu = @build_cpu@
  67237. +build_os = @build_os@
  67238. +build_vendor = @build_vendor@
  67239. +builddir = @builddir@
  67240. +datadir = @datadir@
  67241. +datarootdir = @datarootdir@
  67242. +docdir = @docdir@
  67243. +dvidir = @dvidir@
  67244. +exec_prefix = @exec_prefix@
  67245. +host = @host@
  67246. +host_alias = @host_alias@
  67247. +host_cpu = @host_cpu@
  67248. +host_os = @host_os@
  67249. +host_vendor = @host_vendor@
  67250. +htmldir = @htmldir@
  67251. +includedir = @includedir@
  67252. +infodir = @infodir@
  67253. +install_sh = @install_sh@
  67254. +libdir = @libdir@
  67255. +libexecdir = @libexecdir@
  67256. +localedir = @localedir@
  67257. +localstatedir = @localstatedir@
  67258. +lt_ECHO = @lt_ECHO@
  67259. +mandir = @mandir@
  67260. +mkdir_p = @mkdir_p@
  67261. +oldincludedir = @oldincludedir@
  67262. +pdfdir = @pdfdir@
  67263. +prefix = @prefix@
  67264. +program_transform_name = @program_transform_name@
  67265. +psdir = @psdir@
  67266. +sbindir = @sbindir@
  67267. +sharedstatedir = @sharedstatedir@
  67268. +srcdir = @srcdir@
  67269. +sysconfdir = @sysconfdir@
  67270. +target_alias = @target_alias@
  67271. +top_build_prefix = @top_build_prefix@
  67272. +top_builddir = @top_builddir@
  67273. +top_srcdir = @top_srcdir@
  67274. +AUTOMAKE_OPTIONS = foreign no-dependencies
  67275. +AM_CPPFLAGS = -I$(top_srcdir)/include
  67276. +INCLUDES = -I$(top_srcdir)/include @CHECKINC@
  67277. +check_addr_SOURCES = check_addr.c
  67278. +check_arp_SOURCES = check_arp.c
  67279. +check_blob_SOURCES = check_blob.c
  67280. +check_eth_SOURCES = check_eth.c
  67281. +check_fw_SOURCES = check_fw.c
  67282. +check_intf_SOURCES = check_intf.c
  67283. +check_ip_SOURCES = check_ip.c
  67284. +check_rand_SOURCES = check_rand.c
  67285. +check_route_SOURCES = check_route.c
  67286. +LDADD = $(top_builddir)/src/libdnet.la @CHECKLIB@
  67287. all: all-am
  67288. .SUFFIXES:
  67289. .SUFFIXES: .c .lo .o .obj
  67290. -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/Makefile.am.common $(top_srcdir)/configure.in $(ACLOCAL_M4)
  67291. - cd $(top_srcdir) && \
  67292. - $(AUTOMAKE) --foreign test/check/Makefile
  67293. -Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
  67294. - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
  67295. +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.common $(am__configure_deps)
  67296. + @for dep in $?; do \
  67297. + case '$(am__configure_deps)' in \
  67298. + *$$dep*) \
  67299. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  67300. + && { if test -f $@; then exit 0; else break; fi; }; \
  67301. + exit 1;; \
  67302. + esac; \
  67303. + done; \
  67304. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign test/check/Makefile'; \
  67305. + $(am__cd) $(top_srcdir) && \
  67306. + $(AUTOMAKE) --foreign test/check/Makefile
  67307. +.PRECIOUS: Makefile
  67308. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  67309. + @case '$?' in \
  67310. + *config.status*) \
  67311. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  67312. + *) \
  67313. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  67314. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  67315. + esac;
  67316. +
  67317. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  67318. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  67319. +
  67320. +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  67321. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  67322. +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  67323. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  67324. +$(am__aclocal_m4_deps):
  67325. clean-noinstPROGRAMS:
  67326. - @list='$(noinst_PROGRAMS)'; for p in $$list; do \
  67327. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  67328. - echo " rm -f $$p $$f"; \
  67329. - rm -f $$p $$f ; \
  67330. - done
  67331. + @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
  67332. + echo " rm -f" $$list; \
  67333. + rm -f $$list || exit $$?; \
  67334. + test -n "$(EXEEXT)" || exit 0; \
  67335. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  67336. + echo " rm -f" $$list; \
  67337. + rm -f $$list
  67338. check_addr$(EXEEXT): $(check_addr_OBJECTS) $(check_addr_DEPENDENCIES)
  67339. @rm -f check_addr$(EXEEXT)
  67340. - $(LINK) $(check_addr_LDFLAGS) $(check_addr_OBJECTS) $(check_addr_LDADD) $(LIBS)
  67341. + $(LINK) $(check_addr_OBJECTS) $(check_addr_LDADD) $(LIBS)
  67342. check_arp$(EXEEXT): $(check_arp_OBJECTS) $(check_arp_DEPENDENCIES)
  67343. @rm -f check_arp$(EXEEXT)
  67344. - $(LINK) $(check_arp_LDFLAGS) $(check_arp_OBJECTS) $(check_arp_LDADD) $(LIBS)
  67345. + $(LINK) $(check_arp_OBJECTS) $(check_arp_LDADD) $(LIBS)
  67346. check_blob$(EXEEXT): $(check_blob_OBJECTS) $(check_blob_DEPENDENCIES)
  67347. @rm -f check_blob$(EXEEXT)
  67348. - $(LINK) $(check_blob_LDFLAGS) $(check_blob_OBJECTS) $(check_blob_LDADD) $(LIBS)
  67349. + $(LINK) $(check_blob_OBJECTS) $(check_blob_LDADD) $(LIBS)
  67350. check_eth$(EXEEXT): $(check_eth_OBJECTS) $(check_eth_DEPENDENCIES)
  67351. @rm -f check_eth$(EXEEXT)
  67352. - $(LINK) $(check_eth_LDFLAGS) $(check_eth_OBJECTS) $(check_eth_LDADD) $(LIBS)
  67353. + $(LINK) $(check_eth_OBJECTS) $(check_eth_LDADD) $(LIBS)
  67354. check_fw$(EXEEXT): $(check_fw_OBJECTS) $(check_fw_DEPENDENCIES)
  67355. @rm -f check_fw$(EXEEXT)
  67356. - $(LINK) $(check_fw_LDFLAGS) $(check_fw_OBJECTS) $(check_fw_LDADD) $(LIBS)
  67357. + $(LINK) $(check_fw_OBJECTS) $(check_fw_LDADD) $(LIBS)
  67358. check_intf$(EXEEXT): $(check_intf_OBJECTS) $(check_intf_DEPENDENCIES)
  67359. @rm -f check_intf$(EXEEXT)
  67360. - $(LINK) $(check_intf_LDFLAGS) $(check_intf_OBJECTS) $(check_intf_LDADD) $(LIBS)
  67361. + $(LINK) $(check_intf_OBJECTS) $(check_intf_LDADD) $(LIBS)
  67362. check_ip$(EXEEXT): $(check_ip_OBJECTS) $(check_ip_DEPENDENCIES)
  67363. @rm -f check_ip$(EXEEXT)
  67364. - $(LINK) $(check_ip_LDFLAGS) $(check_ip_OBJECTS) $(check_ip_LDADD) $(LIBS)
  67365. + $(LINK) $(check_ip_OBJECTS) $(check_ip_LDADD) $(LIBS)
  67366. check_rand$(EXEEXT): $(check_rand_OBJECTS) $(check_rand_DEPENDENCIES)
  67367. @rm -f check_rand$(EXEEXT)
  67368. - $(LINK) $(check_rand_LDFLAGS) $(check_rand_OBJECTS) $(check_rand_LDADD) $(LIBS)
  67369. + $(LINK) $(check_rand_OBJECTS) $(check_rand_LDADD) $(LIBS)
  67370. check_route$(EXEEXT): $(check_route_OBJECTS) $(check_route_DEPENDENCIES)
  67371. @rm -f check_route$(EXEEXT)
  67372. - $(LINK) $(check_route_LDFLAGS) $(check_route_OBJECTS) $(check_route_LDADD) $(LIBS)
  67373. + $(LINK) $(check_route_OBJECTS) $(check_route_LDADD) $(LIBS)
  67374. mostlyclean-compile:
  67375. - -rm -f *.$(OBJEXT) core *.core
  67376. + -rm -f *.$(OBJEXT)
  67377. distclean-compile:
  67378. -rm -f *.tab.c
  67379. .c.o:
  67380. - $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
  67381. + $(COMPILE) -c $<
  67382. .c.obj:
  67383. - $(COMPILE) -c `cygpath -w $<`
  67384. + $(COMPILE) -c `$(CYGPATH_W) '$<'`
  67385. .c.lo:
  67386. - $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
  67387. + $(LTCOMPILE) -c -o $@ $<
  67388. mostlyclean-libtool:
  67389. -rm -f *.lo
  67390. @@ -268,50 +342,63 @@
  67391. clean-libtool:
  67392. -rm -rf .libs _libs
  67393. -distclean-libtool:
  67394. - -rm -f libtool
  67395. -uninstall-info-am:
  67396. -
  67397. -ETAGS = etags
  67398. -ETAGSFLAGS =
  67399. -
  67400. -tags: TAGS
  67401. -
  67402. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  67403. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  67404. unique=`for i in $$list; do \
  67405. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  67406. done | \
  67407. - $(AWK) ' { files[$$0] = 1; } \
  67408. - END { for (i in files) print i; }'`; \
  67409. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  67410. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  67411. mkid -fID $$unique
  67412. +tags: TAGS
  67413. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  67414. $(TAGS_FILES) $(LISP)
  67415. - tags=; \
  67416. + set x; \
  67417. here=`pwd`; \
  67418. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  67419. unique=`for i in $$list; do \
  67420. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  67421. done | \
  67422. - $(AWK) ' { files[$$0] = 1; } \
  67423. - END { for (i in files) print i; }'`; \
  67424. - test -z "$(ETAGS_ARGS)$$tags$$unique" \
  67425. - || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  67426. - $$tags $$unique
  67427. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  67428. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  67429. + shift; \
  67430. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  67431. + test -n "$$unique" || unique=$$empty_fix; \
  67432. + if test $$# -gt 0; then \
  67433. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  67434. + "$$@" $$unique; \
  67435. + else \
  67436. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  67437. + $$unique; \
  67438. + fi; \
  67439. + fi
  67440. +ctags: CTAGS
  67441. +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  67442. + $(TAGS_FILES) $(LISP)
  67443. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  67444. + unique=`for i in $$list; do \
  67445. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  67446. + done | \
  67447. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  67448. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  67449. + test -z "$(CTAGS_ARGS)$$unique" \
  67450. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  67451. + $$unique
  67452. GTAGS:
  67453. here=`$(am__cd) $(top_builddir) && pwd` \
  67454. - && cd $(top_srcdir) \
  67455. - && gtags -i $(GTAGS_ARGS) $$here
  67456. + && $(am__cd) $(top_srcdir) \
  67457. + && gtags -i $(GTAGS_ARGS) "$$here"
  67458. distclean-tags:
  67459. - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
  67460. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  67461. check-TESTS: $(TESTS)
  67462. - @failed=0; all=0; xfail=0; xpass=0; \
  67463. + @failed=0; all=0; xfail=0; xpass=0; skip=0; \
  67464. srcdir=$(srcdir); export srcdir; \
  67465. - list='$(TESTS)'; \
  67466. + list=' $(TESTS) '; \
  67467. + $(am__tty_colors); \
  67468. if test -n "$$list"; then \
  67469. for tst in $$list; do \
  67470. if test -f ./$$tst; then dir=./; \
  67471. @@ -320,71 +407,112 @@
  67472. if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
  67473. all=`expr $$all + 1`; \
  67474. case " $(XFAIL_TESTS) " in \
  67475. - *" $$tst "*) \
  67476. - xpass=`expr $$xpass + 1`; \
  67477. - failed=`expr $$failed + 1`; \
  67478. - echo "XPASS: $$tst"; \
  67479. + *[\ \ ]$$tst[\ \ ]*) \
  67480. + xpass=`expr $$xpass + 1`; \
  67481. + failed=`expr $$failed + 1`; \
  67482. + col=$$red; res=XPASS; \
  67483. ;; \
  67484. *) \
  67485. - echo "PASS: $$tst"; \
  67486. + col=$$grn; res=PASS; \
  67487. ;; \
  67488. esac; \
  67489. elif test $$? -ne 77; then \
  67490. all=`expr $$all + 1`; \
  67491. case " $(XFAIL_TESTS) " in \
  67492. - *" $$tst "*) \
  67493. - xfail=`expr $$xfail + 1`; \
  67494. - echo "XFAIL: $$tst"; \
  67495. + *[\ \ ]$$tst[\ \ ]*) \
  67496. + xfail=`expr $$xfail + 1`; \
  67497. + col=$$lgn; res=XFAIL; \
  67498. ;; \
  67499. *) \
  67500. - failed=`expr $$failed + 1`; \
  67501. - echo "FAIL: $$tst"; \
  67502. + failed=`expr $$failed + 1`; \
  67503. + col=$$red; res=FAIL; \
  67504. ;; \
  67505. esac; \
  67506. + else \
  67507. + skip=`expr $$skip + 1`; \
  67508. + col=$$blu; res=SKIP; \
  67509. fi; \
  67510. + echo "$${col}$$res$${std}: $$tst"; \
  67511. done; \
  67512. + if test "$$all" -eq 1; then \
  67513. + tests="test"; \
  67514. + All=""; \
  67515. + else \
  67516. + tests="tests"; \
  67517. + All="All "; \
  67518. + fi; \
  67519. if test "$$failed" -eq 0; then \
  67520. if test "$$xfail" -eq 0; then \
  67521. - banner="All $$all tests passed"; \
  67522. + banner="$$All$$all $$tests passed"; \
  67523. else \
  67524. - banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
  67525. + if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
  67526. + banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
  67527. fi; \
  67528. else \
  67529. if test "$$xpass" -eq 0; then \
  67530. - banner="$$failed of $$all tests failed"; \
  67531. + banner="$$failed of $$all $$tests failed"; \
  67532. else \
  67533. - banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
  67534. + if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
  67535. + banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
  67536. fi; \
  67537. fi; \
  67538. - dashes=`echo "$$banner" | sed s/./=/g`; \
  67539. - echo "$$dashes"; \
  67540. + dashes="$$banner"; \
  67541. + skipped=""; \
  67542. + if test "$$skip" -ne 0; then \
  67543. + if test "$$skip" -eq 1; then \
  67544. + skipped="($$skip test was not run)"; \
  67545. + else \
  67546. + skipped="($$skip tests were not run)"; \
  67547. + fi; \
  67548. + test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
  67549. + dashes="$$skipped"; \
  67550. + fi; \
  67551. + report=""; \
  67552. + if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
  67553. + report="Please report to $(PACKAGE_BUGREPORT)"; \
  67554. + test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
  67555. + dashes="$$report"; \
  67556. + fi; \
  67557. + dashes=`echo "$$dashes" | sed s/./=/g`; \
  67558. + if test "$$failed" -eq 0; then \
  67559. + echo "$$grn$$dashes"; \
  67560. + else \
  67561. + echo "$$red$$dashes"; \
  67562. + fi; \
  67563. echo "$$banner"; \
  67564. - echo "$$dashes"; \
  67565. + test -z "$$skipped" || echo "$$skipped"; \
  67566. + test -z "$$report" || echo "$$report"; \
  67567. + echo "$$dashes$$std"; \
  67568. test "$$failed" -eq 0; \
  67569. else :; fi
  67570. -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  67571. -
  67572. -top_distdir = ../..
  67573. -distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
  67574. distdir: $(DISTFILES)
  67575. - @list='$(DISTFILES)'; for file in $$list; do \
  67576. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  67577. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  67578. + list='$(DISTFILES)'; \
  67579. + dist_files=`for file in $$list; do echo $$file; done | \
  67580. + sed -e "s|^$$srcdirstrip/||;t" \
  67581. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  67582. + case $$dist_files in \
  67583. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  67584. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  67585. + sort -u` ;; \
  67586. + esac; \
  67587. + for file in $$dist_files; do \
  67588. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  67589. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  67590. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  67591. - dir="/$$dir"; \
  67592. - $(mkinstalldirs) "$(distdir)$$dir"; \
  67593. - else \
  67594. - dir=''; \
  67595. - fi; \
  67596. if test -d $$d/$$file; then \
  67597. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  67598. + if test -d "$(distdir)/$$file"; then \
  67599. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  67600. + fi; \
  67601. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  67602. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  67603. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  67604. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  67605. fi; \
  67606. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  67607. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  67608. else \
  67609. - test -f $(distdir)/$$file \
  67610. - || cp -p $$d/$$file $(distdir)/$$file \
  67611. + test -f "$(distdir)/$$file" \
  67612. + || cp -p $$d/$$file "$(distdir)/$$file" \
  67613. || exit 1; \
  67614. fi; \
  67615. done
  67616. @@ -392,9 +520,7 @@
  67617. $(MAKE) $(AM_MAKEFLAGS) check-TESTS
  67618. check: check-am
  67619. all-am: Makefile $(PROGRAMS)
  67620. -
  67621. installdirs:
  67622. -
  67623. install: install-am
  67624. install-exec: install-exec-am
  67625. install-data: install-data-am
  67626. @@ -406,7 +532,7 @@
  67627. installcheck: installcheck-am
  67628. install-strip:
  67629. $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  67630. - INSTALL_STRIP_FLAG=-s \
  67631. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  67632. `test -z '$(STRIP)' || \
  67633. echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  67634. mostlyclean-generic:
  67635. @@ -414,7 +540,8 @@
  67636. clean-generic:
  67637. distclean-generic:
  67638. - -rm -f Makefile $(CONFIG_CLEAN_FILES)
  67639. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  67640. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  67641. maintainer-clean-generic:
  67642. @echo "This command is intended for maintainers to use"
  67643. @@ -425,30 +552,52 @@
  67644. mostlyclean-am
  67645. distclean: distclean-am
  67646. -
  67647. + -rm -f Makefile
  67648. distclean-am: clean-am distclean-compile distclean-generic \
  67649. - distclean-libtool distclean-tags
  67650. + distclean-tags
  67651. dvi: dvi-am
  67652. dvi-am:
  67653. +html: html-am
  67654. +
  67655. +html-am:
  67656. +
  67657. info: info-am
  67658. info-am:
  67659. install-data-am:
  67660. +install-dvi: install-dvi-am
  67661. +
  67662. +install-dvi-am:
  67663. +
  67664. install-exec-am:
  67665. +install-html: install-html-am
  67666. +
  67667. +install-html-am:
  67668. +
  67669. install-info: install-info-am
  67670. +install-info-am:
  67671. +
  67672. install-man:
  67673. +install-pdf: install-pdf-am
  67674. +
  67675. +install-pdf-am:
  67676. +
  67677. +install-ps: install-ps-am
  67678. +
  67679. +install-ps-am:
  67680. +
  67681. installcheck-am:
  67682. maintainer-clean: maintainer-clean-am
  67683. -
  67684. + -rm -f Makefile
  67685. maintainer-clean-am: distclean-am maintainer-clean-generic
  67686. mostlyclean: mostlyclean-am
  67687. @@ -456,18 +605,32 @@
  67688. mostlyclean-am: mostlyclean-compile mostlyclean-generic \
  67689. mostlyclean-libtool
  67690. -uninstall-am: uninstall-info-am
  67691. +pdf: pdf-am
  67692. -.PHONY: GTAGS all all-am check check-TESTS check-am clean clean-generic \
  67693. - clean-libtool clean-noinstPROGRAMS distclean distclean-compile \
  67694. - distclean-generic distclean-libtool distclean-tags distdir dvi \
  67695. - dvi-am info info-am install install-am install-data \
  67696. - install-data-am install-exec install-exec-am install-info \
  67697. - install-info-am install-man install-strip installcheck \
  67698. +pdf-am:
  67699. +
  67700. +ps: ps-am
  67701. +
  67702. +ps-am:
  67703. +
  67704. +uninstall-am:
  67705. +
  67706. +.MAKE: check-am install-am install-strip
  67707. +
  67708. +.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
  67709. + clean-generic clean-libtool clean-noinstPROGRAMS ctags \
  67710. + distclean distclean-compile distclean-generic \
  67711. + distclean-libtool distclean-tags distdir dvi dvi-am html \
  67712. + html-am info info-am install install-am install-data \
  67713. + install-data-am install-dvi install-dvi-am install-exec \
  67714. + install-exec-am install-html install-html-am install-info \
  67715. + install-info-am install-man install-pdf install-pdf-am \
  67716. + install-ps install-ps-am install-strip installcheck \
  67717. installcheck-am installdirs maintainer-clean \
  67718. maintainer-clean-generic mostlyclean mostlyclean-compile \
  67719. - mostlyclean-generic mostlyclean-libtool tags uninstall \
  67720. - uninstall-am uninstall-info-am
  67721. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  67722. + tags uninstall uninstall-am
  67723. +
  67724. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  67725. # Otherwise a system limit (for SysV at least) may be exceeded.
  67726. diff -Nur libdnet-1.11.orig/test/dnet/Makefile.in libdnet-1.11/test/dnet/Makefile.in
  67727. --- libdnet-1.11.orig/test/dnet/Makefile.in 2006-01-19 09:24:46.000000000 +0100
  67728. +++ libdnet-1.11/test/dnet/Makefile.in 2011-02-19 12:27:14.483562779 +0100
  67729. @@ -1,8 +1,9 @@
  67730. -# Makefile.in generated by automake 1.6.3 from Makefile.am.
  67731. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  67732. # @configure_input@
  67733. -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
  67734. -# Free Software Foundation, Inc.
  67735. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  67736. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  67737. +# Inc.
  67738. # This Makefile.in is free software; the Free Software Foundation
  67739. # gives unlimited permission to copy and/or distribute it,
  67740. # with or without modifications, as long as this notice is preserved.
  67741. @@ -13,322 +14,456 @@
  67742. # PARTICULAR PURPOSE.
  67743. @SET_MAKE@
  67744. -SHELL = @SHELL@
  67745. -srcdir = @srcdir@
  67746. -top_srcdir = @top_srcdir@
  67747. VPATH = @srcdir@
  67748. -prefix = @prefix@
  67749. -exec_prefix = @exec_prefix@
  67750. -
  67751. -bindir = @bindir@
  67752. -sbindir = @sbindir@
  67753. -libexecdir = @libexecdir@
  67754. -datadir = @datadir@
  67755. -sysconfdir = @sysconfdir@
  67756. -sharedstatedir = @sharedstatedir@
  67757. -localstatedir = @localstatedir@
  67758. -libdir = @libdir@
  67759. -infodir = @infodir@
  67760. -mandir = @mandir@
  67761. -includedir = @includedir@
  67762. -oldincludedir = /usr/include
  67763. pkgdatadir = $(datadir)/@PACKAGE@
  67764. -pkglibdir = $(libdir)/@PACKAGE@
  67765. pkgincludedir = $(includedir)/@PACKAGE@
  67766. -top_builddir = ../..
  67767. -
  67768. -ACLOCAL = @ACLOCAL@
  67769. -AUTOCONF = @AUTOCONF@
  67770. -AUTOMAKE = @AUTOMAKE@
  67771. -AUTOHEADER = @AUTOHEADER@
  67772. -
  67773. +pkglibdir = $(libdir)/@PACKAGE@
  67774. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  67775. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  67776. -INSTALL = @INSTALL@
  67777. -INSTALL_PROGRAM = @INSTALL_PROGRAM@
  67778. -INSTALL_DATA = @INSTALL_DATA@
  67779. install_sh_DATA = $(install_sh) -c -m 644
  67780. install_sh_PROGRAM = $(install_sh) -c
  67781. install_sh_SCRIPT = $(install_sh) -c
  67782. -INSTALL_SCRIPT = @INSTALL_SCRIPT@
  67783. INSTALL_HEADER = $(INSTALL_DATA)
  67784. -transform = @program_transform_name@
  67785. +transform = $(program_transform_name)
  67786. NORMAL_INSTALL = :
  67787. PRE_INSTALL = :
  67788. POST_INSTALL = :
  67789. NORMAL_UNINSTALL = :
  67790. PRE_UNINSTALL = :
  67791. POST_UNINSTALL = :
  67792. -host_alias = @host_alias@
  67793. +build_triplet = @build@
  67794. host_triplet = @host@
  67795. -
  67796. -EXEEXT = @EXEEXT@
  67797. -OBJEXT = @OBJEXT@
  67798. -PATH_SEPARATOR = @PATH_SEPARATOR@
  67799. +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
  67800. + $(top_srcdir)/Makefile.am.common
  67801. +sbin_PROGRAMS = dnet$(EXEEXT)
  67802. +subdir = test/dnet
  67803. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  67804. +am__aclocal_m4_deps = $(top_srcdir)/config/acinclude.m4 \
  67805. + $(top_srcdir)/configure.in
  67806. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  67807. + $(ACLOCAL_M4)
  67808. +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
  67809. +CONFIG_HEADER = $(top_builddir)/include/config.h
  67810. +CONFIG_CLEAN_FILES =
  67811. +CONFIG_CLEAN_VPATH_FILES =
  67812. +am__installdirs = "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man8dir)"
  67813. +PROGRAMS = $(sbin_PROGRAMS)
  67814. +am_dnet_OBJECTS = addr.$(OBJEXT) arp.$(OBJEXT) aton.$(OBJEXT) \
  67815. + dnet.$(OBJEXT) eth.$(OBJEXT) fw.$(OBJEXT) hex.$(OBJEXT) \
  67816. + icmp.$(OBJEXT) intf.$(OBJEXT) ip.$(OBJEXT) rand.$(OBJEXT) \
  67817. + route.$(OBJEXT) send.$(OBJEXT) tcp.$(OBJEXT) udp.$(OBJEXT)
  67818. +dnet_OBJECTS = $(am_dnet_OBJECTS)
  67819. +dnet_DEPENDENCIES = $(top_builddir)/src/libdnet.la
  67820. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include
  67821. +depcomp =
  67822. +am__depfiles_maybe =
  67823. +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  67824. + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  67825. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  67826. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  67827. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  67828. +CCLD = $(CC)
  67829. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  67830. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  67831. + $(LDFLAGS) -o $@
  67832. +SOURCES = $(dnet_SOURCES)
  67833. +DIST_SOURCES = $(dnet_SOURCES)
  67834. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  67835. +am__vpath_adj = case $$p in \
  67836. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  67837. + *) f=$$p;; \
  67838. + esac;
  67839. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  67840. +am__install_max = 40
  67841. +am__nobase_strip_setup = \
  67842. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  67843. +am__nobase_strip = \
  67844. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  67845. +am__nobase_list = $(am__nobase_strip_setup); \
  67846. + for p in $$list; do echo "$$p $$p"; done | \
  67847. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  67848. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  67849. + if (++n[$$2] == $(am__install_max)) \
  67850. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  67851. + END { for (dir in files) print dir, files[dir] }'
  67852. +am__base_list = \
  67853. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  67854. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  67855. +man8dir = $(mandir)/man8
  67856. +NROFF = nroff
  67857. +MANS = $(man_MANS)
  67858. +ETAGS = etags
  67859. +CTAGS = ctags
  67860. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  67861. +ACLOCAL = @ACLOCAL@
  67862. AMTAR = @AMTAR@
  67863. AR = @AR@
  67864. -AS = @AS@
  67865. +AUTOCONF = @AUTOCONF@
  67866. +AUTOHEADER = @AUTOHEADER@
  67867. +AUTOMAKE = @AUTOMAKE@
  67868. AWK = @AWK@
  67869. CC = @CC@
  67870. +CCDEPMODE = @CCDEPMODE@
  67871. +CFLAGS = @CFLAGS@
  67872. CHECKINC = @CHECKINC@
  67873. CHECKLIB = @CHECKLIB@
  67874. -CXX = @CXX@
  67875. -CXXCPP = @CXXCPP@
  67876. +CPP = @CPP@
  67877. +CPPFLAGS = @CPPFLAGS@
  67878. +CYGPATH_W = @CYGPATH_W@
  67879. +DEFS = @DEFS@
  67880. DEPDIR = @DEPDIR@
  67881. -DLLTOOL = @DLLTOOL@
  67882. -ECHO = @ECHO@
  67883. +DSYMUTIL = @DSYMUTIL@
  67884. +DUMPBIN = @DUMPBIN@
  67885. +ECHO_C = @ECHO_C@
  67886. +ECHO_N = @ECHO_N@
  67887. +ECHO_T = @ECHO_T@
  67888. EGREP = @EGREP@
  67889. -F77 = @F77@
  67890. -GCJ = @GCJ@
  67891. -GCJFLAGS = @GCJFLAGS@
  67892. +EXEEXT = @EXEEXT@
  67893. +FGREP = @FGREP@
  67894. +GREP = @GREP@
  67895. +INSTALL = @INSTALL@
  67896. +INSTALL_DATA = @INSTALL_DATA@
  67897. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  67898. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  67899. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  67900. +LD = @LD@
  67901. +LDFLAGS = @LDFLAGS@
  67902. +LIBOBJS = @LIBOBJS@
  67903. +LIBS = @LIBS@
  67904. LIBTOOL = @LIBTOOL@
  67905. +LIPO = @LIPO@
  67906. LN_S = @LN_S@
  67907. +LTLIBOBJS = @LTLIBOBJS@
  67908. MAINT = @MAINT@
  67909. +MAKEINFO = @MAKEINFO@
  67910. +MKDIR_P = @MKDIR_P@
  67911. +NM = @NM@
  67912. +NMEDIT = @NMEDIT@
  67913. OBJDUMP = @OBJDUMP@
  67914. +OBJEXT = @OBJEXT@
  67915. +OTOOL = @OTOOL@
  67916. +OTOOL64 = @OTOOL64@
  67917. PACKAGE = @PACKAGE@
  67918. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  67919. +PACKAGE_NAME = @PACKAGE_NAME@
  67920. +PACKAGE_STRING = @PACKAGE_STRING@
  67921. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  67922. +PACKAGE_URL = @PACKAGE_URL@
  67923. +PACKAGE_VERSION = @PACKAGE_VERSION@
  67924. +PATH_SEPARATOR = @PATH_SEPARATOR@
  67925. PYTHON = @PYTHON@
  67926. RANLIB = @RANLIB@
  67927. -RC = @RC@
  67928. +SED = @SED@
  67929. +SET_MAKE = @SET_MAKE@
  67930. +SHELL = @SHELL@
  67931. STRIP = @STRIP@
  67932. TCLINC = @TCLINC@
  67933. TCLLIB = @TCLLIB@
  67934. VERSION = @VERSION@
  67935. +abs_builddir = @abs_builddir@
  67936. +abs_srcdir = @abs_srcdir@
  67937. +abs_top_builddir = @abs_top_builddir@
  67938. +abs_top_srcdir = @abs_top_srcdir@
  67939. ac_aux_dir = @ac_aux_dir@
  67940. +ac_ct_CC = @ac_ct_CC@
  67941. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  67942. am__include = @am__include@
  67943. +am__leading_dot = @am__leading_dot@
  67944. am__quote = @am__quote@
  67945. +am__tar = @am__tar@
  67946. +am__untar = @am__untar@
  67947. +bindir = @bindir@
  67948. +build = @build@
  67949. +build_alias = @build_alias@
  67950. +build_cpu = @build_cpu@
  67951. +build_os = @build_os@
  67952. +build_vendor = @build_vendor@
  67953. +builddir = @builddir@
  67954. +datadir = @datadir@
  67955. +datarootdir = @datarootdir@
  67956. +docdir = @docdir@
  67957. +dvidir = @dvidir@
  67958. +exec_prefix = @exec_prefix@
  67959. +host = @host@
  67960. +host_alias = @host_alias@
  67961. +host_cpu = @host_cpu@
  67962. +host_os = @host_os@
  67963. +host_vendor = @host_vendor@
  67964. +htmldir = @htmldir@
  67965. +includedir = @includedir@
  67966. +infodir = @infodir@
  67967. install_sh = @install_sh@
  67968. -
  67969. +libdir = @libdir@
  67970. +libexecdir = @libexecdir@
  67971. +localedir = @localedir@
  67972. +localstatedir = @localstatedir@
  67973. +lt_ECHO = @lt_ECHO@
  67974. +mandir = @mandir@
  67975. +mkdir_p = @mkdir_p@
  67976. +oldincludedir = @oldincludedir@
  67977. +pdfdir = @pdfdir@
  67978. +prefix = @prefix@
  67979. +program_transform_name = @program_transform_name@
  67980. +psdir = @psdir@
  67981. +sbindir = @sbindir@
  67982. +sharedstatedir = @sharedstatedir@
  67983. +srcdir = @srcdir@
  67984. +sysconfdir = @sysconfdir@
  67985. +target_alias = @target_alias@
  67986. +top_build_prefix = @top_build_prefix@
  67987. +top_builddir = @top_builddir@
  67988. +top_srcdir = @top_srcdir@
  67989. AUTOMAKE_OPTIONS = foreign no-dependencies
  67990. -
  67991. AM_CPPFLAGS = -I$(top_srcdir)/include
  67992. -
  67993. -sbin_PROGRAMS = dnet
  67994. -
  67995. dnet_SOURCES = addr.c arp.c aton.c aton.h dnet.c eth.c fw.c hex.c \
  67996. icmp.c intf.c ip.c mod.h rand.c route.c send.c tcp.c udp.c
  67997. -
  67998. man_MANS = dnet.8
  67999. -
  68000. EXTRA_DIST = $(man_MANS)
  68001. -
  68002. dnet_LDADD = $(top_builddir)/src/libdnet.la
  68003. -subdir = test/dnet
  68004. -mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
  68005. -CONFIG_HEADER = $(top_builddir)/include/config.h
  68006. -CONFIG_CLEAN_FILES =
  68007. -sbin_PROGRAMS = dnet$(EXEEXT)
  68008. -PROGRAMS = $(sbin_PROGRAMS)
  68009. -
  68010. -am_dnet_OBJECTS = addr.$(OBJEXT) arp.$(OBJEXT) aton.$(OBJEXT) \
  68011. - dnet.$(OBJEXT) eth.$(OBJEXT) fw.$(OBJEXT) hex.$(OBJEXT) \
  68012. - icmp.$(OBJEXT) intf.$(OBJEXT) ip.$(OBJEXT) rand.$(OBJEXT) \
  68013. - route.$(OBJEXT) send.$(OBJEXT) tcp.$(OBJEXT) udp.$(OBJEXT)
  68014. -dnet_OBJECTS = $(am_dnet_OBJECTS)
  68015. -dnet_DEPENDENCIES = $(top_builddir)/src/libdnet.la
  68016. -dnet_LDFLAGS =
  68017. -
  68018. -DEFS = @DEFS@
  68019. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include
  68020. -CPPFLAGS = @CPPFLAGS@
  68021. -LDFLAGS = @LDFLAGS@
  68022. -LIBS = @LIBS@
  68023. -depcomp =
  68024. -am__depfiles_maybe =
  68025. -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  68026. - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  68027. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
  68028. - $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  68029. -CCLD = $(CC)
  68030. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  68031. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  68032. -CFLAGS = @CFLAGS@
  68033. -DIST_SOURCES = $(dnet_SOURCES)
  68034. -
  68035. -NROFF = nroff
  68036. -MANS = $(man_MANS)
  68037. -DIST_COMMON = Makefile.am Makefile.in
  68038. -SOURCES = $(dnet_SOURCES)
  68039. -
  68040. all: all-am
  68041. .SUFFIXES:
  68042. .SUFFIXES: .c .lo .o .obj
  68043. -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/Makefile.am.common $(top_srcdir)/configure.in $(ACLOCAL_M4)
  68044. - cd $(top_srcdir) && \
  68045. - $(AUTOMAKE) --foreign test/dnet/Makefile
  68046. -Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
  68047. - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
  68048. -sbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
  68049. +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.common $(am__configure_deps)
  68050. + @for dep in $?; do \
  68051. + case '$(am__configure_deps)' in \
  68052. + *$$dep*) \
  68053. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  68054. + && { if test -f $@; then exit 0; else break; fi; }; \
  68055. + exit 1;; \
  68056. + esac; \
  68057. + done; \
  68058. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign test/dnet/Makefile'; \
  68059. + $(am__cd) $(top_srcdir) && \
  68060. + $(AUTOMAKE) --foreign test/dnet/Makefile
  68061. +.PRECIOUS: Makefile
  68062. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  68063. + @case '$?' in \
  68064. + *config.status*) \
  68065. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  68066. + *) \
  68067. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  68068. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  68069. + esac;
  68070. +
  68071. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  68072. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  68073. +
  68074. +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  68075. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  68076. +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  68077. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  68078. +$(am__aclocal_m4_deps):
  68079. install-sbinPROGRAMS: $(sbin_PROGRAMS)
  68080. @$(NORMAL_INSTALL)
  68081. - $(mkinstalldirs) $(DESTDIR)$(sbindir)
  68082. - @list='$(sbin_PROGRAMS)'; for p in $$list; do \
  68083. - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  68084. - if test -f $$p \
  68085. - || test -f $$p1 \
  68086. - ; then \
  68087. - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
  68088. - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(sbinPROGRAMS_INSTALL) $$p $(DESTDIR)$(sbindir)/$$f"; \
  68089. - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(sbinPROGRAMS_INSTALL) $$p $(DESTDIR)$(sbindir)/$$f; \
  68090. - else :; fi; \
  68091. - done
  68092. + test -z "$(sbindir)" || $(MKDIR_P) "$(DESTDIR)$(sbindir)"
  68093. + @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \
  68094. + for p in $$list; do echo "$$p $$p"; done | \
  68095. + sed 's/$(EXEEXT)$$//' | \
  68096. + while read p p1; do if test -f $$p || test -f $$p1; \
  68097. + then echo "$$p"; echo "$$p"; else :; fi; \
  68098. + done | \
  68099. + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
  68100. + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
  68101. + sed 'N;N;N;s,\n, ,g' | \
  68102. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
  68103. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  68104. + if ($$2 == $$4) files[d] = files[d] " " $$1; \
  68105. + else { print "f", $$3 "/" $$4, $$1; } } \
  68106. + END { for (d in files) print "f", d, files[d] }' | \
  68107. + while read type dir files; do \
  68108. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  68109. + test -z "$$files" || { \
  68110. + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(sbindir)$$dir'"; \
  68111. + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(sbindir)$$dir" || exit $$?; \
  68112. + } \
  68113. + ; done
  68114. uninstall-sbinPROGRAMS:
  68115. @$(NORMAL_UNINSTALL)
  68116. - @list='$(sbin_PROGRAMS)'; for p in $$list; do \
  68117. - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
  68118. - echo " rm -f $(DESTDIR)$(sbindir)/$$f"; \
  68119. - rm -f $(DESTDIR)$(sbindir)/$$f; \
  68120. - done
  68121. + @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \
  68122. + files=`for p in $$list; do echo "$$p"; done | \
  68123. + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
  68124. + -e 's/$$/$(EXEEXT)/' `; \
  68125. + test -n "$$list" || exit 0; \
  68126. + echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \
  68127. + cd "$(DESTDIR)$(sbindir)" && rm -f $$files
  68128. clean-sbinPROGRAMS:
  68129. - @list='$(sbin_PROGRAMS)'; for p in $$list; do \
  68130. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  68131. - echo " rm -f $$p $$f"; \
  68132. - rm -f $$p $$f ; \
  68133. - done
  68134. + @list='$(sbin_PROGRAMS)'; test -n "$$list" || exit 0; \
  68135. + echo " rm -f" $$list; \
  68136. + rm -f $$list || exit $$?; \
  68137. + test -n "$(EXEEXT)" || exit 0; \
  68138. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  68139. + echo " rm -f" $$list; \
  68140. + rm -f $$list
  68141. dnet$(EXEEXT): $(dnet_OBJECTS) $(dnet_DEPENDENCIES)
  68142. @rm -f dnet$(EXEEXT)
  68143. - $(LINK) $(dnet_LDFLAGS) $(dnet_OBJECTS) $(dnet_LDADD) $(LIBS)
  68144. + $(LINK) $(dnet_OBJECTS) $(dnet_LDADD) $(LIBS)
  68145. mostlyclean-compile:
  68146. - -rm -f *.$(OBJEXT) core *.core
  68147. + -rm -f *.$(OBJEXT)
  68148. distclean-compile:
  68149. -rm -f *.tab.c
  68150. .c.o:
  68151. - $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
  68152. + $(COMPILE) -c $<
  68153. .c.obj:
  68154. - $(COMPILE) -c `cygpath -w $<`
  68155. + $(COMPILE) -c `$(CYGPATH_W) '$<'`
  68156. .c.lo:
  68157. - $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
  68158. + $(LTCOMPILE) -c -o $@ $<
  68159. mostlyclean-libtool:
  68160. -rm -f *.lo
  68161. clean-libtool:
  68162. -rm -rf .libs _libs
  68163. -
  68164. -distclean-libtool:
  68165. - -rm -f libtool
  68166. -uninstall-info-am:
  68167. -
  68168. -man8dir = $(mandir)/man8
  68169. -install-man8: $(man8_MANS) $(man_MANS)
  68170. +install-man8: $(man_MANS)
  68171. @$(NORMAL_INSTALL)
  68172. - $(mkinstalldirs) $(DESTDIR)$(man8dir)
  68173. - @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
  68174. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  68175. - for i in $$l2; do \
  68176. - case "$$i" in \
  68177. - *.8*) list="$$list $$i" ;; \
  68178. - esac; \
  68179. + test -z "$(man8dir)" || $(MKDIR_P) "$(DESTDIR)$(man8dir)"
  68180. + @list=''; test -n "$(man8dir)" || exit 0; \
  68181. + { for i in $$list; do echo "$$i"; done; \
  68182. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  68183. + sed -n '/\.8[a-z]*$$/p'; \
  68184. + } | while read p; do \
  68185. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  68186. + echo "$$d$$p"; echo "$$p"; \
  68187. + done | \
  68188. + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \
  68189. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
  68190. + sed 'N;N;s,\n, ,g' | { \
  68191. + list=; while read file base inst; do \
  68192. + if test "$$base" = "$$inst"; then list="$$list $$file"; else \
  68193. + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \
  68194. + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst" || exit $$?; \
  68195. + fi; \
  68196. done; \
  68197. - for i in $$list; do \
  68198. - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
  68199. - else file=$$i; fi; \
  68200. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  68201. - case "$$ext" in \
  68202. - 8*) ;; \
  68203. - *) ext='8' ;; \
  68204. - esac; \
  68205. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  68206. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  68207. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  68208. - echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man8dir)/$$inst"; \
  68209. - $(INSTALL_DATA) $$file $(DESTDIR)$(man8dir)/$$inst; \
  68210. - done
  68211. + for i in $$list; do echo "$$i"; done | $(am__base_list) | \
  68212. + while read files; do \
  68213. + test -z "$$files" || { \
  68214. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man8dir)'"; \
  68215. + $(INSTALL_DATA) $$files "$(DESTDIR)$(man8dir)" || exit $$?; }; \
  68216. + done; }
  68217. +
  68218. uninstall-man8:
  68219. @$(NORMAL_UNINSTALL)
  68220. - @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
  68221. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  68222. - for i in $$l2; do \
  68223. - case "$$i" in \
  68224. - *.8*) list="$$list $$i" ;; \
  68225. - esac; \
  68226. - done; \
  68227. - for i in $$list; do \
  68228. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  68229. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  68230. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  68231. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  68232. - echo " rm -f $(DESTDIR)$(man8dir)/$$inst"; \
  68233. - rm -f $(DESTDIR)$(man8dir)/$$inst; \
  68234. - done
  68235. -
  68236. -ETAGS = etags
  68237. -ETAGSFLAGS =
  68238. -
  68239. -tags: TAGS
  68240. + @list=''; test -n "$(man8dir)" || exit 0; \
  68241. + files=`{ for i in $$list; do echo "$$i"; done; \
  68242. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  68243. + sed -n '/\.8[a-z]*$$/p'; \
  68244. + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \
  68245. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
  68246. + test -z "$$files" || { \
  68247. + echo " ( cd '$(DESTDIR)$(man8dir)' && rm -f" $$files ")"; \
  68248. + cd "$(DESTDIR)$(man8dir)" && rm -f $$files; }
  68249. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  68250. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  68251. unique=`for i in $$list; do \
  68252. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  68253. done | \
  68254. - $(AWK) ' { files[$$0] = 1; } \
  68255. - END { for (i in files) print i; }'`; \
  68256. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  68257. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  68258. mkid -fID $$unique
  68259. +tags: TAGS
  68260. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  68261. $(TAGS_FILES) $(LISP)
  68262. - tags=; \
  68263. + set x; \
  68264. here=`pwd`; \
  68265. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  68266. unique=`for i in $$list; do \
  68267. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  68268. done | \
  68269. - $(AWK) ' { files[$$0] = 1; } \
  68270. - END { for (i in files) print i; }'`; \
  68271. - test -z "$(ETAGS_ARGS)$$tags$$unique" \
  68272. - || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  68273. - $$tags $$unique
  68274. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  68275. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  68276. + shift; \
  68277. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  68278. + test -n "$$unique" || unique=$$empty_fix; \
  68279. + if test $$# -gt 0; then \
  68280. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  68281. + "$$@" $$unique; \
  68282. + else \
  68283. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  68284. + $$unique; \
  68285. + fi; \
  68286. + fi
  68287. +ctags: CTAGS
  68288. +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  68289. + $(TAGS_FILES) $(LISP)
  68290. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  68291. + unique=`for i in $$list; do \
  68292. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  68293. + done | \
  68294. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  68295. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  68296. + test -z "$(CTAGS_ARGS)$$unique" \
  68297. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  68298. + $$unique
  68299. GTAGS:
  68300. here=`$(am__cd) $(top_builddir) && pwd` \
  68301. - && cd $(top_srcdir) \
  68302. - && gtags -i $(GTAGS_ARGS) $$here
  68303. + && $(am__cd) $(top_srcdir) \
  68304. + && gtags -i $(GTAGS_ARGS) "$$here"
  68305. distclean-tags:
  68306. - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
  68307. -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  68308. -
  68309. -top_distdir = ../..
  68310. -distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
  68311. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  68312. distdir: $(DISTFILES)
  68313. - @list='$(DISTFILES)'; for file in $$list; do \
  68314. + @list='$(MANS)'; if test -n "$$list"; then \
  68315. + list=`for p in $$list; do \
  68316. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  68317. + if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
  68318. + if test -n "$$list" && \
  68319. + grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
  68320. + echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
  68321. + grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
  68322. + echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
  68323. + echo " typically \`make maintainer-clean' will remove them" >&2; \
  68324. + exit 1; \
  68325. + else :; fi; \
  68326. + else :; fi
  68327. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  68328. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  68329. + list='$(DISTFILES)'; \
  68330. + dist_files=`for file in $$list; do echo $$file; done | \
  68331. + sed -e "s|^$$srcdirstrip/||;t" \
  68332. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  68333. + case $$dist_files in \
  68334. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  68335. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  68336. + sort -u` ;; \
  68337. + esac; \
  68338. + for file in $$dist_files; do \
  68339. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  68340. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  68341. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  68342. - dir="/$$dir"; \
  68343. - $(mkinstalldirs) "$(distdir)$$dir"; \
  68344. - else \
  68345. - dir=''; \
  68346. - fi; \
  68347. if test -d $$d/$$file; then \
  68348. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  68349. + if test -d "$(distdir)/$$file"; then \
  68350. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  68351. + fi; \
  68352. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  68353. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  68354. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  68355. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  68356. fi; \
  68357. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  68358. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  68359. else \
  68360. - test -f $(distdir)/$$file \
  68361. - || cp -p $$d/$$file $(distdir)/$$file \
  68362. + test -f "$(distdir)/$$file" \
  68363. + || cp -p $$d/$$file "$(distdir)/$$file" \
  68364. || exit 1; \
  68365. fi; \
  68366. done
  68367. check-am: all-am
  68368. check: check-am
  68369. all-am: Makefile $(PROGRAMS) $(MANS)
  68370. -
  68371. installdirs:
  68372. - $(mkinstalldirs) $(DESTDIR)$(sbindir) $(DESTDIR)$(man8dir)
  68373. -
  68374. + for dir in "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man8dir)"; do \
  68375. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  68376. + done
  68377. install: install-am
  68378. install-exec: install-exec-am
  68379. install-data: install-data-am
  68380. @@ -340,7 +475,7 @@
  68381. installcheck: installcheck-am
  68382. install-strip:
  68383. $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  68384. - INSTALL_STRIP_FLAG=-s \
  68385. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  68386. `test -z '$(STRIP)' || \
  68387. echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  68388. mostlyclean-generic:
  68389. @@ -348,40 +483,64 @@
  68390. clean-generic:
  68391. distclean-generic:
  68392. - -rm -f Makefile $(CONFIG_CLEAN_FILES)
  68393. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  68394. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  68395. maintainer-clean-generic:
  68396. @echo "This command is intended for maintainers to use"
  68397. @echo "it deletes files that may require special tools to rebuild."
  68398. clean: clean-am
  68399. -clean-am: clean-generic clean-libtool clean-sbinPROGRAMS mostlyclean-am
  68400. +clean-am: clean-generic clean-libtool clean-sbinPROGRAMS \
  68401. + mostlyclean-am
  68402. distclean: distclean-am
  68403. -
  68404. + -rm -f Makefile
  68405. distclean-am: clean-am distclean-compile distclean-generic \
  68406. - distclean-libtool distclean-tags
  68407. + distclean-tags
  68408. dvi: dvi-am
  68409. dvi-am:
  68410. +html: html-am
  68411. +
  68412. +html-am:
  68413. +
  68414. info: info-am
  68415. info-am:
  68416. install-data-am: install-man
  68417. +install-dvi: install-dvi-am
  68418. +
  68419. +install-dvi-am:
  68420. +
  68421. install-exec-am: install-sbinPROGRAMS
  68422. +install-html: install-html-am
  68423. +
  68424. +install-html-am:
  68425. +
  68426. install-info: install-info-am
  68427. +install-info-am:
  68428. +
  68429. install-man: install-man8
  68430. +install-pdf: install-pdf-am
  68431. +
  68432. +install-pdf-am:
  68433. +
  68434. +install-ps: install-ps-am
  68435. +
  68436. +install-ps-am:
  68437. +
  68438. installcheck-am:
  68439. maintainer-clean: maintainer-clean-am
  68440. -
  68441. + -rm -f Makefile
  68442. maintainer-clean-am: distclean-am maintainer-clean-generic
  68443. mostlyclean: mostlyclean-am
  68444. @@ -389,25 +548,39 @@
  68445. mostlyclean-am: mostlyclean-compile mostlyclean-generic \
  68446. mostlyclean-libtool
  68447. -uninstall-am: uninstall-info-am uninstall-man uninstall-sbinPROGRAMS
  68448. +pdf: pdf-am
  68449. +
  68450. +pdf-am:
  68451. +
  68452. +ps: ps-am
  68453. +
  68454. +ps-am:
  68455. +
  68456. +uninstall-am: uninstall-man uninstall-sbinPROGRAMS
  68457. uninstall-man: uninstall-man8
  68458. -.PHONY: GTAGS all all-am check check-am clean clean-generic \
  68459. - clean-libtool clean-sbinPROGRAMS distclean distclean-compile \
  68460. - distclean-generic distclean-libtool distclean-tags distdir dvi \
  68461. - dvi-am info info-am install install-am install-data \
  68462. - install-data-am install-exec install-exec-am install-info \
  68463. - install-info-am install-man install-man8 install-sbinPROGRAMS \
  68464. - install-strip installcheck installcheck-am installdirs \
  68465. - maintainer-clean maintainer-clean-generic mostlyclean \
  68466. - mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
  68467. - tags uninstall uninstall-am uninstall-info-am uninstall-man \
  68468. - uninstall-man8 uninstall-sbinPROGRAMS
  68469. +.MAKE: install-am install-strip
  68470. +
  68471. +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  68472. + clean-libtool clean-sbinPROGRAMS ctags distclean \
  68473. + distclean-compile distclean-generic distclean-libtool \
  68474. + distclean-tags distdir dvi dvi-am html html-am info info-am \
  68475. + install install-am install-data install-data-am install-dvi \
  68476. + install-dvi-am install-exec install-exec-am install-html \
  68477. + install-html-am install-info install-info-am install-man \
  68478. + install-man8 install-pdf install-pdf-am install-ps \
  68479. + install-ps-am install-sbinPROGRAMS install-strip installcheck \
  68480. + installcheck-am installdirs maintainer-clean \
  68481. + maintainer-clean-generic mostlyclean mostlyclean-compile \
  68482. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  68483. + tags uninstall uninstall-am uninstall-man uninstall-man8 \
  68484. + uninstall-sbinPROGRAMS
  68485. dnet.8.txt: dnet.8
  68486. groff -t -e -mdoc -Tascii dnet.8 | col -bx > $@
  68487. +
  68488. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  68489. # Otherwise a system limit (for SysV at least) may be exceeded.
  68490. .NOEXPORT:
  68491. diff -Nur libdnet-1.11.orig/test/Makefile.in libdnet-1.11/test/Makefile.in
  68492. --- libdnet-1.11.orig/test/Makefile.in 2006-01-19 09:24:45.000000000 +0100
  68493. +++ libdnet-1.11/test/Makefile.in 2011-02-19 12:27:14.373562993 +0100
  68494. @@ -1,8 +1,9 @@
  68495. -# Makefile.in generated by automake 1.6.3 from Makefile.am.
  68496. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  68497. # @configure_input@
  68498. -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
  68499. -# Free Software Foundation, Inc.
  68500. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  68501. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  68502. +# Inc.
  68503. # This Makefile.in is free software; the Free Software Foundation
  68504. # gives unlimited permission to copy and/or distribute it,
  68505. # with or without modifications, as long as this notice is preserved.
  68506. @@ -13,119 +14,236 @@
  68507. # PARTICULAR PURPOSE.
  68508. @SET_MAKE@
  68509. -SHELL = @SHELL@
  68510. -
  68511. -srcdir = @srcdir@
  68512. -top_srcdir = @top_srcdir@
  68513. VPATH = @srcdir@
  68514. -prefix = @prefix@
  68515. -exec_prefix = @exec_prefix@
  68516. -
  68517. -bindir = @bindir@
  68518. -sbindir = @sbindir@
  68519. -libexecdir = @libexecdir@
  68520. -datadir = @datadir@
  68521. -sysconfdir = @sysconfdir@
  68522. -sharedstatedir = @sharedstatedir@
  68523. -localstatedir = @localstatedir@
  68524. -libdir = @libdir@
  68525. -infodir = @infodir@
  68526. -mandir = @mandir@
  68527. -includedir = @includedir@
  68528. -oldincludedir = /usr/include
  68529. pkgdatadir = $(datadir)/@PACKAGE@
  68530. -pkglibdir = $(libdir)/@PACKAGE@
  68531. pkgincludedir = $(includedir)/@PACKAGE@
  68532. -top_builddir = ..
  68533. -
  68534. -ACLOCAL = @ACLOCAL@
  68535. -AUTOCONF = @AUTOCONF@
  68536. -AUTOMAKE = @AUTOMAKE@
  68537. -AUTOHEADER = @AUTOHEADER@
  68538. -
  68539. +pkglibdir = $(libdir)/@PACKAGE@
  68540. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  68541. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  68542. -INSTALL = @INSTALL@
  68543. -INSTALL_PROGRAM = @INSTALL_PROGRAM@
  68544. -INSTALL_DATA = @INSTALL_DATA@
  68545. install_sh_DATA = $(install_sh) -c -m 644
  68546. install_sh_PROGRAM = $(install_sh) -c
  68547. install_sh_SCRIPT = $(install_sh) -c
  68548. -INSTALL_SCRIPT = @INSTALL_SCRIPT@
  68549. INSTALL_HEADER = $(INSTALL_DATA)
  68550. -transform = @program_transform_name@
  68551. +transform = $(program_transform_name)
  68552. NORMAL_INSTALL = :
  68553. PRE_INSTALL = :
  68554. POST_INSTALL = :
  68555. NORMAL_UNINSTALL = :
  68556. PRE_UNINSTALL = :
  68557. POST_UNINSTALL = :
  68558. -host_alias = @host_alias@
  68559. +build_triplet = @build@
  68560. host_triplet = @host@
  68561. -
  68562. -EXEEXT = @EXEEXT@
  68563. -OBJEXT = @OBJEXT@
  68564. -PATH_SEPARATOR = @PATH_SEPARATOR@
  68565. +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
  68566. + $(top_srcdir)/Makefile.am.common
  68567. +subdir = test
  68568. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  68569. +am__aclocal_m4_deps = $(top_srcdir)/config/acinclude.m4 \
  68570. + $(top_srcdir)/configure.in
  68571. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  68572. + $(ACLOCAL_M4)
  68573. +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
  68574. +CONFIG_HEADER = $(top_builddir)/include/config.h
  68575. +CONFIG_CLEAN_FILES =
  68576. +CONFIG_CLEAN_VPATH_FILES =
  68577. +depcomp =
  68578. +am__depfiles_maybe =
  68579. +SOURCES =
  68580. +DIST_SOURCES =
  68581. +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  68582. + html-recursive info-recursive install-data-recursive \
  68583. + install-dvi-recursive install-exec-recursive \
  68584. + install-html-recursive install-info-recursive \
  68585. + install-pdf-recursive install-ps-recursive install-recursive \
  68586. + installcheck-recursive installdirs-recursive pdf-recursive \
  68587. + ps-recursive uninstall-recursive
  68588. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  68589. + distclean-recursive maintainer-clean-recursive
  68590. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  68591. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  68592. + distdir
  68593. +ETAGS = etags
  68594. +CTAGS = ctags
  68595. +DIST_SUBDIRS = $(SUBDIRS)
  68596. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  68597. +am__relativize = \
  68598. + dir0=`pwd`; \
  68599. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  68600. + sed_rest='s,^[^/]*/*,,'; \
  68601. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  68602. + sed_butlast='s,/*[^/]*$$,,'; \
  68603. + while test -n "$$dir1"; do \
  68604. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  68605. + if test "$$first" != "."; then \
  68606. + if test "$$first" = ".."; then \
  68607. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  68608. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  68609. + else \
  68610. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  68611. + if test "$$first2" = "$$first"; then \
  68612. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  68613. + else \
  68614. + dir2="../$$dir2"; \
  68615. + fi; \
  68616. + dir0="$$dir0"/"$$first"; \
  68617. + fi; \
  68618. + fi; \
  68619. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  68620. + done; \
  68621. + reldir="$$dir2"
  68622. +ACLOCAL = @ACLOCAL@
  68623. AMTAR = @AMTAR@
  68624. AR = @AR@
  68625. -AS = @AS@
  68626. +AUTOCONF = @AUTOCONF@
  68627. +AUTOHEADER = @AUTOHEADER@
  68628. +AUTOMAKE = @AUTOMAKE@
  68629. AWK = @AWK@
  68630. CC = @CC@
  68631. +CCDEPMODE = @CCDEPMODE@
  68632. +CFLAGS = @CFLAGS@
  68633. CHECKINC = @CHECKINC@
  68634. CHECKLIB = @CHECKLIB@
  68635. -CXX = @CXX@
  68636. -CXXCPP = @CXXCPP@
  68637. +CPP = @CPP@
  68638. +CPPFLAGS = @CPPFLAGS@
  68639. +CYGPATH_W = @CYGPATH_W@
  68640. +DEFS = @DEFS@
  68641. DEPDIR = @DEPDIR@
  68642. -DLLTOOL = @DLLTOOL@
  68643. -ECHO = @ECHO@
  68644. +DSYMUTIL = @DSYMUTIL@
  68645. +DUMPBIN = @DUMPBIN@
  68646. +ECHO_C = @ECHO_C@
  68647. +ECHO_N = @ECHO_N@
  68648. +ECHO_T = @ECHO_T@
  68649. EGREP = @EGREP@
  68650. -F77 = @F77@
  68651. -GCJ = @GCJ@
  68652. -GCJFLAGS = @GCJFLAGS@
  68653. +EXEEXT = @EXEEXT@
  68654. +FGREP = @FGREP@
  68655. +GREP = @GREP@
  68656. +INSTALL = @INSTALL@
  68657. +INSTALL_DATA = @INSTALL_DATA@
  68658. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  68659. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  68660. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  68661. +LD = @LD@
  68662. +LDFLAGS = @LDFLAGS@
  68663. +LIBOBJS = @LIBOBJS@
  68664. +LIBS = @LIBS@
  68665. LIBTOOL = @LIBTOOL@
  68666. +LIPO = @LIPO@
  68667. LN_S = @LN_S@
  68668. +LTLIBOBJS = @LTLIBOBJS@
  68669. MAINT = @MAINT@
  68670. +MAKEINFO = @MAKEINFO@
  68671. +MKDIR_P = @MKDIR_P@
  68672. +NM = @NM@
  68673. +NMEDIT = @NMEDIT@
  68674. OBJDUMP = @OBJDUMP@
  68675. +OBJEXT = @OBJEXT@
  68676. +OTOOL = @OTOOL@
  68677. +OTOOL64 = @OTOOL64@
  68678. PACKAGE = @PACKAGE@
  68679. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  68680. +PACKAGE_NAME = @PACKAGE_NAME@
  68681. +PACKAGE_STRING = @PACKAGE_STRING@
  68682. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  68683. +PACKAGE_URL = @PACKAGE_URL@
  68684. +PACKAGE_VERSION = @PACKAGE_VERSION@
  68685. +PATH_SEPARATOR = @PATH_SEPARATOR@
  68686. PYTHON = @PYTHON@
  68687. RANLIB = @RANLIB@
  68688. -RC = @RC@
  68689. +SED = @SED@
  68690. +SET_MAKE = @SET_MAKE@
  68691. +SHELL = @SHELL@
  68692. STRIP = @STRIP@
  68693. TCLINC = @TCLINC@
  68694. TCLLIB = @TCLLIB@
  68695. VERSION = @VERSION@
  68696. +abs_builddir = @abs_builddir@
  68697. +abs_srcdir = @abs_srcdir@
  68698. +abs_top_builddir = @abs_top_builddir@
  68699. +abs_top_srcdir = @abs_top_srcdir@
  68700. ac_aux_dir = @ac_aux_dir@
  68701. +ac_ct_CC = @ac_ct_CC@
  68702. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  68703. am__include = @am__include@
  68704. +am__leading_dot = @am__leading_dot@
  68705. am__quote = @am__quote@
  68706. +am__tar = @am__tar@
  68707. +am__untar = @am__untar@
  68708. +bindir = @bindir@
  68709. +build = @build@
  68710. +build_alias = @build_alias@
  68711. +build_cpu = @build_cpu@
  68712. +build_os = @build_os@
  68713. +build_vendor = @build_vendor@
  68714. +builddir = @builddir@
  68715. +datadir = @datadir@
  68716. +datarootdir = @datarootdir@
  68717. +docdir = @docdir@
  68718. +dvidir = @dvidir@
  68719. +exec_prefix = @exec_prefix@
  68720. +host = @host@
  68721. +host_alias = @host_alias@
  68722. +host_cpu = @host_cpu@
  68723. +host_os = @host_os@
  68724. +host_vendor = @host_vendor@
  68725. +htmldir = @htmldir@
  68726. +includedir = @includedir@
  68727. +infodir = @infodir@
  68728. install_sh = @install_sh@
  68729. -
  68730. +libdir = @libdir@
  68731. +libexecdir = @libexecdir@
  68732. +localedir = @localedir@
  68733. +localstatedir = @localstatedir@
  68734. +lt_ECHO = @lt_ECHO@
  68735. +mandir = @mandir@
  68736. +mkdir_p = @mkdir_p@
  68737. +oldincludedir = @oldincludedir@
  68738. +pdfdir = @pdfdir@
  68739. +prefix = @prefix@
  68740. +program_transform_name = @program_transform_name@
  68741. +psdir = @psdir@
  68742. +sbindir = @sbindir@
  68743. +sharedstatedir = @sharedstatedir@
  68744. +srcdir = @srcdir@
  68745. +sysconfdir = @sysconfdir@
  68746. +target_alias = @target_alias@
  68747. +top_build_prefix = @top_build_prefix@
  68748. +top_builddir = @top_builddir@
  68749. +top_srcdir = @top_srcdir@
  68750. AUTOMAKE_OPTIONS = foreign no-dependencies
  68751. -
  68752. AM_CPPFLAGS = -I$(top_srcdir)/include
  68753. -
  68754. SUBDIRS = check dnet
  68755. -subdir = test
  68756. -mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
  68757. -CONFIG_HEADER = $(top_builddir)/include/config.h
  68758. -CONFIG_CLEAN_FILES =
  68759. -depcomp =
  68760. -am__depfiles_maybe =
  68761. -DIST_SOURCES =
  68762. -
  68763. -RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \
  68764. - uninstall-info-recursive all-recursive install-data-recursive \
  68765. - install-exec-recursive installdirs-recursive install-recursive \
  68766. - uninstall-recursive check-recursive installcheck-recursive
  68767. -DIST_COMMON = Makefile.am Makefile.in
  68768. -DIST_SUBDIRS = $(SUBDIRS)
  68769. all: all-recursive
  68770. .SUFFIXES:
  68771. -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/Makefile.am.common $(top_srcdir)/configure.in $(ACLOCAL_M4)
  68772. - cd $(top_srcdir) && \
  68773. - $(AUTOMAKE) --foreign test/Makefile
  68774. -Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
  68775. - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
  68776. +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.common $(am__configure_deps)
  68777. + @for dep in $?; do \
  68778. + case '$(am__configure_deps)' in \
  68779. + *$$dep*) \
  68780. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  68781. + && { if test -f $@; then exit 0; else break; fi; }; \
  68782. + exit 1;; \
  68783. + esac; \
  68784. + done; \
  68785. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign test/Makefile'; \
  68786. + $(am__cd) $(top_srcdir) && \
  68787. + $(AUTOMAKE) --foreign test/Makefile
  68788. +.PRECIOUS: Makefile
  68789. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  68790. + @case '$?' in \
  68791. + *config.status*) \
  68792. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  68793. + *) \
  68794. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  68795. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  68796. + esac;
  68797. +
  68798. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  68799. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  68800. +
  68801. +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  68802. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  68803. +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  68804. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  68805. +$(am__aclocal_m4_deps):
  68806. mostlyclean-libtool:
  68807. -rm -f *.lo
  68808. @@ -133,10 +251,6 @@
  68809. clean-libtool:
  68810. -rm -rf .libs _libs
  68811. -distclean-libtool:
  68812. - -rm -f libtool
  68813. -uninstall-info-am:
  68814. -
  68815. # This directory's subdirectories are mostly independent; you can cd
  68816. # into them and run `make' without going through this Makefile.
  68817. # To change the values of `make' variables: instead of editing Makefiles,
  68818. @@ -144,7 +258,13 @@
  68819. # (which will cause the Makefiles to be regenerated when you run `make');
  68820. # (2) otherwise, pass the desired values on the `make' command line.
  68821. $(RECURSIVE_TARGETS):
  68822. - @set fnord $$MAKEFLAGS; amf=$$2; \
  68823. + @fail= failcom='exit 1'; \
  68824. + for f in x $$MAKEFLAGS; do \
  68825. + case $$f in \
  68826. + *=* | --[!k]*);; \
  68827. + *k*) failcom='fail=yes';; \
  68828. + esac; \
  68829. + done; \
  68830. dot_seen=no; \
  68831. target=`echo $@ | sed s/-recursive//`; \
  68832. list='$(SUBDIRS)'; for subdir in $$list; do \
  68833. @@ -155,16 +275,21 @@
  68834. else \
  68835. local_target="$$target"; \
  68836. fi; \
  68837. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  68838. - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  68839. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  68840. + || eval $$failcom; \
  68841. done; \
  68842. if test "$$dot_seen" = "no"; then \
  68843. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  68844. fi; test -z "$$fail"
  68845. -mostlyclean-recursive clean-recursive distclean-recursive \
  68846. -maintainer-clean-recursive:
  68847. - @set fnord $$MAKEFLAGS; amf=$$2; \
  68848. +$(RECURSIVE_CLEAN_TARGETS):
  68849. + @fail= failcom='exit 1'; \
  68850. + for f in x $$MAKEFLAGS; do \
  68851. + case $$f in \
  68852. + *=* | --[!k]*);; \
  68853. + *k*) failcom='fail=yes';; \
  68854. + esac; \
  68855. + done; \
  68856. dot_seen=no; \
  68857. case "$@" in \
  68858. distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
  68859. @@ -184,89 +309,137 @@
  68860. else \
  68861. local_target="$$target"; \
  68862. fi; \
  68863. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  68864. - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  68865. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  68866. + || eval $$failcom; \
  68867. done && test -z "$$fail"
  68868. tags-recursive:
  68869. list='$(SUBDIRS)'; for subdir in $$list; do \
  68870. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  68871. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  68872. + done
  68873. +ctags-recursive:
  68874. + list='$(SUBDIRS)'; for subdir in $$list; do \
  68875. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  68876. done
  68877. -
  68878. -ETAGS = etags
  68879. -ETAGSFLAGS =
  68880. -
  68881. -tags: TAGS
  68882. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  68883. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  68884. unique=`for i in $$list; do \
  68885. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  68886. done | \
  68887. - $(AWK) ' { files[$$0] = 1; } \
  68888. - END { for (i in files) print i; }'`; \
  68889. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  68890. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  68891. mkid -fID $$unique
  68892. +tags: TAGS
  68893. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  68894. $(TAGS_FILES) $(LISP)
  68895. - tags=; \
  68896. + set x; \
  68897. here=`pwd`; \
  68898. + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  68899. + include_option=--etags-include; \
  68900. + empty_fix=.; \
  68901. + else \
  68902. + include_option=--include; \
  68903. + empty_fix=; \
  68904. + fi; \
  68905. list='$(SUBDIRS)'; for subdir in $$list; do \
  68906. if test "$$subdir" = .; then :; else \
  68907. - test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
  68908. + test ! -f $$subdir/TAGS || \
  68909. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  68910. fi; \
  68911. done; \
  68912. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  68913. unique=`for i in $$list; do \
  68914. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  68915. done | \
  68916. - $(AWK) ' { files[$$0] = 1; } \
  68917. - END { for (i in files) print i; }'`; \
  68918. - test -z "$(ETAGS_ARGS)$$tags$$unique" \
  68919. - || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  68920. - $$tags $$unique
  68921. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  68922. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  68923. + shift; \
  68924. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  68925. + test -n "$$unique" || unique=$$empty_fix; \
  68926. + if test $$# -gt 0; then \
  68927. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  68928. + "$$@" $$unique; \
  68929. + else \
  68930. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  68931. + $$unique; \
  68932. + fi; \
  68933. + fi
  68934. +ctags: CTAGS
  68935. +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  68936. + $(TAGS_FILES) $(LISP)
  68937. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  68938. + unique=`for i in $$list; do \
  68939. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  68940. + done | \
  68941. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  68942. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  68943. + test -z "$(CTAGS_ARGS)$$unique" \
  68944. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  68945. + $$unique
  68946. GTAGS:
  68947. here=`$(am__cd) $(top_builddir) && pwd` \
  68948. - && cd $(top_srcdir) \
  68949. - && gtags -i $(GTAGS_ARGS) $$here
  68950. + && $(am__cd) $(top_srcdir) \
  68951. + && gtags -i $(GTAGS_ARGS) "$$here"
  68952. distclean-tags:
  68953. - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
  68954. -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  68955. -
  68956. -top_distdir = ..
  68957. -distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
  68958. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  68959. distdir: $(DISTFILES)
  68960. - @list='$(DISTFILES)'; for file in $$list; do \
  68961. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  68962. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  68963. + list='$(DISTFILES)'; \
  68964. + dist_files=`for file in $$list; do echo $$file; done | \
  68965. + sed -e "s|^$$srcdirstrip/||;t" \
  68966. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  68967. + case $$dist_files in \
  68968. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  68969. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  68970. + sort -u` ;; \
  68971. + esac; \
  68972. + for file in $$dist_files; do \
  68973. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  68974. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  68975. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  68976. - dir="/$$dir"; \
  68977. - $(mkinstalldirs) "$(distdir)$$dir"; \
  68978. - else \
  68979. - dir=''; \
  68980. - fi; \
  68981. if test -d $$d/$$file; then \
  68982. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  68983. + if test -d "$(distdir)/$$file"; then \
  68984. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  68985. + fi; \
  68986. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  68987. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  68988. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  68989. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  68990. fi; \
  68991. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  68992. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  68993. else \
  68994. - test -f $(distdir)/$$file \
  68995. - || cp -p $$d/$$file $(distdir)/$$file \
  68996. + test -f "$(distdir)/$$file" \
  68997. + || cp -p $$d/$$file "$(distdir)/$$file" \
  68998. || exit 1; \
  68999. fi; \
  69000. done
  69001. - list='$(SUBDIRS)'; for subdir in $$list; do \
  69002. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  69003. if test "$$subdir" = .; then :; else \
  69004. - test -d $(distdir)/$$subdir \
  69005. - || mkdir $(distdir)/$$subdir \
  69006. + test -d "$(distdir)/$$subdir" \
  69007. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  69008. || exit 1; \
  69009. - (cd $$subdir && \
  69010. + fi; \
  69011. + done
  69012. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  69013. + if test "$$subdir" = .; then :; else \
  69014. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  69015. + $(am__relativize); \
  69016. + new_distdir=$$reldir; \
  69017. + dir1=$$subdir; dir2="$(top_distdir)"; \
  69018. + $(am__relativize); \
  69019. + new_top_distdir=$$reldir; \
  69020. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  69021. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  69022. + ($(am__cd) $$subdir && \
  69023. $(MAKE) $(AM_MAKEFLAGS) \
  69024. - top_distdir="$(top_distdir)" \
  69025. - distdir=../$(distdir)/$$subdir \
  69026. + top_distdir="$$new_top_distdir" \
  69027. + distdir="$$new_distdir" \
  69028. + am__remove_distdir=: \
  69029. + am__skip_length_check=: \
  69030. + am__skip_mode_fix=: \
  69031. distdir) \
  69032. || exit 1; \
  69033. fi; \
  69034. @@ -276,7 +449,6 @@
  69035. all-am: Makefile
  69036. installdirs: installdirs-recursive
  69037. installdirs-am:
  69038. -
  69039. install: install-recursive
  69040. install-exec: install-exec-recursive
  69041. install-data: install-data-recursive
  69042. @@ -288,7 +460,7 @@
  69043. installcheck: installcheck-recursive
  69044. install-strip:
  69045. $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  69046. - INSTALL_STRIP_FLAG=-s \
  69047. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  69048. `test -z '$(STRIP)' || \
  69049. echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  69050. mostlyclean-generic:
  69051. @@ -296,7 +468,8 @@
  69052. clean-generic:
  69053. distclean-generic:
  69054. - -rm -f Makefile $(CONFIG_CLEAN_FILES)
  69055. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  69056. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  69057. maintainer-clean-generic:
  69058. @echo "This command is intended for maintainers to use"
  69059. @@ -306,54 +479,84 @@
  69060. clean-am: clean-generic clean-libtool mostlyclean-am
  69061. distclean: distclean-recursive
  69062. -
  69063. -distclean-am: clean-am distclean-generic distclean-libtool \
  69064. - distclean-tags
  69065. + -rm -f Makefile
  69066. +distclean-am: clean-am distclean-generic distclean-tags
  69067. dvi: dvi-recursive
  69068. dvi-am:
  69069. +html: html-recursive
  69070. +
  69071. +html-am:
  69072. +
  69073. info: info-recursive
  69074. info-am:
  69075. install-data-am:
  69076. +install-dvi: install-dvi-recursive
  69077. +
  69078. +install-dvi-am:
  69079. +
  69080. install-exec-am:
  69081. +install-html: install-html-recursive
  69082. +
  69083. +install-html-am:
  69084. +
  69085. install-info: install-info-recursive
  69086. +install-info-am:
  69087. +
  69088. install-man:
  69089. +install-pdf: install-pdf-recursive
  69090. +
  69091. +install-pdf-am:
  69092. +
  69093. +install-ps: install-ps-recursive
  69094. +
  69095. +install-ps-am:
  69096. +
  69097. installcheck-am:
  69098. maintainer-clean: maintainer-clean-recursive
  69099. -
  69100. + -rm -f Makefile
  69101. maintainer-clean-am: distclean-am maintainer-clean-generic
  69102. mostlyclean: mostlyclean-recursive
  69103. mostlyclean-am: mostlyclean-generic mostlyclean-libtool
  69104. -uninstall-am: uninstall-info-am
  69105. +pdf: pdf-recursive
  69106. +
  69107. +pdf-am:
  69108. +
  69109. +ps: ps-recursive
  69110. +
  69111. +ps-am:
  69112. -uninstall-info: uninstall-info-recursive
  69113. +uninstall-am:
  69114. +
  69115. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
  69116. + install-am install-strip tags-recursive
  69117. +
  69118. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  69119. + all all-am check check-am clean clean-generic clean-libtool \
  69120. + ctags ctags-recursive distclean distclean-generic \
  69121. + distclean-libtool distclean-tags distdir dvi dvi-am html \
  69122. + html-am info info-am install install-am install-data \
  69123. + install-data-am install-dvi install-dvi-am install-exec \
  69124. + install-exec-am install-html install-html-am install-info \
  69125. + install-info-am install-man install-pdf install-pdf-am \
  69126. + install-ps install-ps-am install-strip installcheck \
  69127. + installcheck-am installdirs installdirs-am maintainer-clean \
  69128. + maintainer-clean-generic mostlyclean mostlyclean-generic \
  69129. + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
  69130. + uninstall uninstall-am
  69131. -.PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \
  69132. - clean-generic clean-libtool clean-recursive distclean \
  69133. - distclean-generic distclean-libtool distclean-recursive \
  69134. - distclean-tags distdir dvi dvi-am dvi-recursive info info-am \
  69135. - info-recursive install install-am install-data install-data-am \
  69136. - install-data-recursive install-exec install-exec-am \
  69137. - install-exec-recursive install-info install-info-am \
  69138. - install-info-recursive install-man install-recursive \
  69139. - install-strip installcheck installcheck-am installdirs \
  69140. - installdirs-am installdirs-recursive maintainer-clean \
  69141. - maintainer-clean-generic maintainer-clean-recursive mostlyclean \
  69142. - mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \
  69143. - tags tags-recursive uninstall uninstall-am uninstall-info-am \
  69144. - uninstall-info-recursive uninstall-recursive
  69145. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  69146. # Otherwise a system limit (for SysV at least) may be exceeded.